From 0ab63c3b5ac0dd28e31dbb1fbe86a1212e52b985 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Tue, 28 Apr 2020 01:20:43 +0800 Subject: Added axes and furnaces as workstations Signed-off-by: shedaniel --- src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/main/java/me') diff --git a/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java b/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java index f979b199a..76495ed77 100644 --- a/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java +++ b/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java @@ -77,6 +77,7 @@ import net.minecraft.item.*; import net.minecraft.potion.PotionUtil; import net.minecraft.recipe.*; import net.minecraft.tag.BlockTags; +import net.minecraft.tag.Tag; import net.minecraft.text.LiteralText; import net.minecraft.util.Identifier; import net.minecraft.util.math.MathHelper; @@ -99,7 +100,7 @@ public class DefaultPlugin implements REIPluginV0 { public static final Identifier PLUGIN = new Identifier("roughlyenoughitems", "default_plugin"); public static final Identifier COMPOSTING = new Identifier("minecraft", "plugins/composting"); public static final Identifier FUEL = new Identifier("minecraft", "plugins/fuel"); - public static final Identifier BEACON = new Identifier("roughlyenoughitems", "plugins/beacon"); + public static final Identifier BEACON = new Identifier("minecraft", "plugins/beacon"); public static final Identifier INFO = new Identifier("roughlyenoughitems", "plugins/information"); private static final Identifier DISPLAY_TEXTURE = new Identifier("roughlyenoughitems", "textures/gui/display.png"); private static final Identifier DISPLAY_TEXTURE_DARK = new Identifier("roughlyenoughitems", "textures/gui/display_dark.png"); @@ -376,10 +377,17 @@ public class DefaultPlugin implements REIPluginV0 { recipeHelper.registerWorkingStations(SMOKING, EntryStack.create(Items.SMOKER)); recipeHelper.registerWorkingStations(BLASTING, EntryStack.create(Items.BLAST_FURNACE)); recipeHelper.registerWorkingStations(CAMPFIRE, EntryStack.create(Items.CAMPFIRE)); + recipeHelper.registerWorkingStations(FUEL, EntryStack.create(Items.FURNACE), EntryStack.create(Items.SMOKER), EntryStack.create(Items.BLAST_FURNACE)); recipeHelper.registerWorkingStations(BREWING, EntryStack.create(Items.BREWING_STAND)); recipeHelper.registerWorkingStations(STONE_CUTTING, EntryStack.create(Items.STONECUTTER)); recipeHelper.registerWorkingStations(COMPOSTING, EntryStack.create(Items.COMPOSTER)); recipeHelper.registerWorkingStations(BEACON, EntryStack.create(Items.BEACON)); + Tag axes = MinecraftClient.getInstance().getNetworkHandler().getTagManager().items().get(new Identifier("fabric", "axes")); + if (axes != null) { + for (Item item : axes.values()) { + recipeHelper.registerWorkingStations(STRIPPING, EntryStack.create(item)); + } + } recipeHelper.removeAutoCraftButton(FUEL); recipeHelper.removeAutoCraftButton(COMPOSTING); recipeHelper.removeAutoCraftButton(BEACON); -- cgit