/
Belyash5
/
Flu
Обзор
Документация
Войти
/
Belyash5
/
Flu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/java/com/hbm/handler/nei/FuelPoolHandler.java
37 строк
1 KB
George Paton
if rod is hot, only show cooling recipe, if rod is cold, show only disassembly recipe
26 мар 2025, 03:50
26 мар 2025, 03:50
86ce0f6
Код
Авторство
О чём код?
package com.hbm.handler.nei; import com.hbm.blocks.ModBlocks; import com.hbm.inventory.recipes.FuelPoolRecipes; import com.hbm.items.machine.ItemRBMKRod; import net.minecraft.item.ItemStack; public class FuelPoolHandler extends NEIUniversalHandler { public FuelPoolHandler() { super("Spent Fuel Pool Drum", ModBlocks.machine_waste_drum, FuelPoolRecipes.recipes); } @Override public String getKey() { return "ntmSpentDrum"; } @Override public void loadUsageRecipes(ItemStack ingredient) { if(ingredient != null && ingredient.getItem() != null && ingredient.getItem() instanceof ItemRBMKRod) { if(ItemRBMKRod.getCoreHeat(ingredient) < 50 && ItemRBMKRod.getHullHeat(ingredient) < 50) return; } super.loadUsageRecipes(ingredient); } @Override public void loadCraftingRecipes(ItemStack ingredient) { if(ingredient != null && ingredient.getItem() != null && ingredient.getItem() instanceof ItemRBMKRod) { if(ItemRBMKRod.getCoreHeat(ingredient) >= 50 || ItemRBMKRod.getHullHeat(ingredient) >= 50) return; } super.loadCraftingRecipes(ingredient); } }