Add smeltable items to fuel registry closes #2278

This commit is contained in:
Justin Vitale 2020-11-08 21:46:44 +11:00
parent 39a83dad48
commit 81f033ceec
2 changed files with 34 additions and 0 deletions

View file

@ -93,6 +93,7 @@ public class TechReborn implements ModInitializer {
TRDispenserBehavior.init(); TRDispenserBehavior.init();
PoweredCraftingHandler.setup(); PoweredCraftingHandler.setup();
UseBlockHandler.init(); UseBlockHandler.init();
FuelRecipes.init();
Torus.genSizeMap(TechRebornConfig.fusionControlComputerMaxCoilSize); Torus.genSizeMap(TechRebornConfig.fusionControlComputerMaxCoilSize);

View file

@ -0,0 +1,33 @@
package techreborn.init;
import net.fabricmc.fabric.impl.content.registry.FuelRegistryImpl;
// Class containing definitions of burnable materials
public class FuelRecipes {
public static void init() {
FuelRegistryImpl registry = FuelRegistryImpl.INSTANCE;
// Basing it off https://minecraft.gamepedia.com/Furnace/table
// Rubber spam
registry.add(TRContent.RUBBER_BUTTON, 300);
registry.add(TRContent.RUBBER_LOG, 300);
registry.add(TRContent.RUBBER_LOG_STRIPPED, 300);
registry.add(TRContent.RUBBER_WOOD, 300);
registry.add(TRContent.STRIPPED_RUBBER_WOOD, 300);
registry.add(TRContent.RUBBER_PLANKS, 300);
registry.add(TRContent.RUBBER_PLANK_SLAB, 150);
registry.add(TRContent.RUBBER_FENCE, 300);
registry.add(TRContent.RUBBER_FENCE_GATE, 300);
registry.add(TRContent.RUBBER_PLANK_STAIR, 300);
registry.add(TRContent.RUBBER_TRAPDOOR, 300);
registry.add(TRContent.RUBBER_PRESSURE_PLATE, 300);
registry.add(TRContent.RUBBER_DOOR, 200);
registry.add(TRContent.RUBBER_SAPLING, 100);
// Other stuff
registry.add(TRContent.Machine.RESIN_BASIN, 300);
registry.add(TRContent.Plates.WOOD, 300);
}
}