/
Belyash5
/
Flu
Обзор
Документация
Войти
/
Belyash5
/
Flu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/java/com/hbm/handler/nei/RBMKWasteDecayHandler.java
40 строк
1 KB
George Paton
Add crafting recipes for RBMK fuel cooling, rod disassembly, and waste decaying
25 мар 2025, 08:42
25 мар 2025, 08:42
a2f5eea
Код
Авторство
О чём код?
package com.hbm.handler.nei; import java.util.HashMap; import com.hbm.blocks.ModBlocks; import com.hbm.inventory.RecipesCommon.ComparableStack; import com.hbm.items.ModItems; import com.hbm.items.special.ItemWasteLong; import com.hbm.items.special.ItemWasteShort; import net.minecraft.item.ItemStack; public class RBMKWasteDecayHandler extends NEIUniversalHandler { public RBMKWasteDecayHandler() { super("Nuclear Waste Decay", ModBlocks.machine_storage_drum, getRecipes()); } @Override public String getKey() { return "ntmRBMKWaste"; } public static HashMap<ComparableStack, ItemStack> getRecipes() { HashMap<ComparableStack, ItemStack> map = new HashMap<>(); for(ItemWasteShort.WasteClass waste : ItemWasteShort.WasteClass.values()) { map.put(new ComparableStack(ModItems.nuclear_waste_short, 1, waste), new ItemStack(ModItems.nuclear_waste_short_depleted, 1, waste.ordinal())); map.put(new ComparableStack(ModItems.nuclear_waste_short_tiny, 1, waste), new ItemStack(ModItems.nuclear_waste_short_depleted_tiny, 1, waste.ordinal())); } for(ItemWasteLong.WasteClass waste : ItemWasteLong.WasteClass.values()) { map.put(new ComparableStack(ModItems.nuclear_waste_long, 1, waste), new ItemStack(ModItems.nuclear_waste_long_depleted, 1, waste.ordinal())); map.put(new ComparableStack(ModItems.nuclear_waste_long_tiny, 1, waste), new ItemStack(ModItems.nuclear_waste_long_depleted_tiny, 1, waste.ordinal())); } return map; } }