aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-04-28 01:20:43 +0800
committershedaniel <daniel@shedaniel.me>2020-04-28 01:20:43 +0800
commit0ab63c3b5ac0dd28e31dbb1fbe86a1212e52b985 (patch)
tree6f7221583d5e21b80d3c079ffbb15601895109a6
parentd2c2d1353fae065a4d3a92451807fc161d914aca (diff)
downloadRoughlyEnoughItems-0ab63c3b5ac0dd28e31dbb1fbe86a1212e52b985.tar.gz
RoughlyEnoughItems-0ab63c3b5ac0dd28e31dbb1fbe86a1212e52b985.tar.bz2
RoughlyEnoughItems-0ab63c3b5ac0dd28e31dbb1fbe86a1212e52b985.zip
Added axes and furnaces as workstations
Signed-off-by: shedaniel <daniel@shedaniel.me>
-rw-r--r--src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java10
1 files changed, 9 insertions, 1 deletions
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<Item> 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);