diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-01-11 17:16:53 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-01-11 17:16:53 +0800 |
| commit | 77ff77003ff31dabda47388ca2d9727a185b90f8 (patch) | |
| tree | 73f735d0bfd3a386f0f6551cbc02675ea43206d4 /src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java | |
| parent | def24dd1d0ebd6e12a3a459ece05c0fc94aae4de (diff) | |
| download | RoughlyEnoughItems-77ff77003ff31dabda47388ca2d9727a185b90f8.tar.gz RoughlyEnoughItems-77ff77003ff31dabda47388ca2d9727a185b90f8.tar.bz2 RoughlyEnoughItems-77ff77003ff31dabda47388ca2d9727a185b90f8.zip | |
Crafting Display
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java | 7 |
1 files changed, 6 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 03ed527de..62eaf185c 100644 --- a/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java +++ b/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java @@ -5,15 +5,18 @@ import me.shedaniel.rei.client.RecipeHelper; import net.minecraft.recipe.Recipe; import net.minecraft.recipe.crafting.ShapedRecipe; import net.minecraft.recipe.crafting.ShapelessRecipe; +import net.minecraft.recipe.smelting.SmeltingRecipe; import net.minecraft.util.Identifier; public class DefaultPlugin implements IRecipePlugin { - static final Identifier CRAFTING = new Identifier("roughlyenoughitems", "plugin/crafting"); + static final Identifier CRAFTING = new Identifier("roughlyenoughitems", "plugins/crafting"); + static final Identifier SMELTING = new Identifier("roughlyenoughitems", "plugins/smelting"); @Override public void registerPluginCategories() { RecipeHelper.registerCategory(new DefaultCraftingCategory()); + RecipeHelper.registerCategory(new DefaultSmeltingCategory()); } @Override @@ -23,6 +26,8 @@ public class DefaultPlugin implements IRecipePlugin { RecipeHelper.registerRecipe(CRAFTING, new DefaultShapelessDisplay((ShapelessRecipe) value)); else if (value instanceof ShapedRecipe) RecipeHelper.registerRecipe(CRAFTING, new DefaultShapedDisplay((ShapedRecipe) value)); + else if (value instanceof SmeltingRecipe) + RecipeHelper.registerRecipe(SMELTING, new DefaultSmeltingDisplay((SmeltingRecipe) value)); } } |
