aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-01-11 21:24:53 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-01-11 21:24:53 +0800
commitc9292fa51e69e051569caa9bd6f61572ac8fdeea (patch)
tree3f8f153e29a594153207db894e2b498bd2fda905 /src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java
parent20142b33f979ed4ec6818003447aa9221bedd675 (diff)
downloadRoughlyEnoughItems-c9292fa51e69e051569caa9bd6f61572ac8fdeea.tar.gz
RoughlyEnoughItems-c9292fa51e69e051569caa9bd6f61572ac8fdeea.tar.bz2
RoughlyEnoughItems-c9292fa51e69e051569caa9bd6f61572ac8fdeea.zip
More Recipes
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java')
-rw-r--r--src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java b/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java
index 62eaf185c..c2359e09b 100644
--- a/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java
+++ b/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java
@@ -5,18 +5,24 @@ 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.BlastingRecipe;
import net.minecraft.recipe.smelting.SmeltingRecipe;
+import net.minecraft.recipe.smelting.SmokingRecipe;
import net.minecraft.util.Identifier;
public class DefaultPlugin implements IRecipePlugin {
static final Identifier CRAFTING = new Identifier("roughlyenoughitems", "plugins/crafting");
static final Identifier SMELTING = new Identifier("roughlyenoughitems", "plugins/smelting");
+ static final Identifier SMOKING = new Identifier("roughlyenoughitems", "plugins/smoking");
+ static final Identifier BLASTING = new Identifier("roughlyenoughitems", "plugins/blasting");
@Override
public void registerPluginCategories() {
RecipeHelper.registerCategory(new DefaultCraftingCategory());
RecipeHelper.registerCategory(new DefaultSmeltingCategory());
+ RecipeHelper.registerCategory(new DefaultSmokingCategory());
+ RecipeHelper.registerCategory(new DefaultBlastingCategory());
}
@Override
@@ -28,6 +34,10 @@ public class DefaultPlugin implements IRecipePlugin {
RecipeHelper.registerRecipe(CRAFTING, new DefaultShapedDisplay((ShapedRecipe) value));
else if (value instanceof SmeltingRecipe)
RecipeHelper.registerRecipe(SMELTING, new DefaultSmeltingDisplay((SmeltingRecipe) value));
+ else if (value instanceof SmokingRecipe)
+ RecipeHelper.registerRecipe(SMOKING, new DefaultSmokingDisplay((SmokingRecipe) value));
+ else if (value instanceof BlastingRecipe)
+ RecipeHelper.registerRecipe(BLASTING, new DefaultBlastingDisplay((BlastingRecipe) value));
}
}