aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-01-25 21:29:01 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-01-25 21:29:01 +0800
commite8353e0d95d00266e9b188a816b73ce7a4dc090b (patch)
treeba8d37e326186fea7b8d479bee9ad40dd75c34fe /src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java
parent179890a17ef52f0bcf3cd75c77f047c4a03e49ec (diff)
downloadRoughlyEnoughItems-2.1.0.45.tar.gz
RoughlyEnoughItems-2.1.0.45.tar.bz2
RoughlyEnoughItems-2.1.0.45.zip
Stonecutter Recipesv2.1.0.45
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java')
-rw-r--r--src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java32
1 files changed, 19 insertions, 13 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java b/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java
index 3cabab0ec..1ac5a609b 100644
--- a/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java
+++ b/src/main/java/me/shedaniel/rei/plugin/DefaultPlugin.java
@@ -13,6 +13,7 @@ import net.minecraft.client.gui.container.FurnaceGui;
import net.minecraft.client.gui.container.SmokerGui;
import net.minecraft.client.gui.ingame.PlayerInventoryGui;
import net.minecraft.recipe.Recipe;
+import net.minecraft.recipe.StonecuttingRecipe;
import net.minecraft.recipe.cooking.BlastingRecipe;
import net.minecraft.recipe.cooking.CampfireCookingRecipe;
import net.minecraft.recipe.cooking.SmeltingRecipe;
@@ -30,6 +31,7 @@ public class DefaultPlugin implements IRecipePlugin {
public static final Identifier SMOKING = new Identifier("roughlyenoughitems", "plugins/smoking");
public static final Identifier BLASTING = new Identifier("roughlyenoughitems", "plugins/blasting");
public static final Identifier CAMPFIRE = new Identifier("roughlyenoughitems", "plugins/campfire");
+ public static final Identifier STONE_CUTTING = new Identifier("roughlyenoughitems", "plugins/stone_cutting");
public static final Identifier BREWING = new Identifier("roughlyenoughitems", "plugins/brewing");
private static final List<DefaultBrewingDisplay> BREWING_DISPLAYS = Lists.newArrayList();
@@ -45,30 +47,34 @@ public class DefaultPlugin implements IRecipePlugin {
RecipeHelper.registerCategory(new DefaultSmokingCategory());
RecipeHelper.registerCategory(new DefaultBlastingCategory());
RecipeHelper.registerCategory(new DefaultCampfireCategory());
+ RecipeHelper.registerCategory(new DefaultStoneCuttingCategory());
RecipeHelper.registerCategory(new DefaultBrewingCategory());
}
@Override
public void registerRecipes() {
- for(Recipe value : RecipeHelper.getRecipeManager().values())
- if (value instanceof ShapelessRecipe)
- 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));
- else if (value instanceof SmokingRecipe)
- RecipeHelper.registerRecipe(SMOKING, new DefaultSmokingDisplay((SmokingRecipe) value));
- else if (value instanceof BlastingRecipe)
- RecipeHelper.registerRecipe(BLASTING, new DefaultBlastingDisplay((BlastingRecipe) value));
- else if (value instanceof CampfireCookingRecipe)
- RecipeHelper.registerRecipe(CAMPFIRE, new DefaultCampfireDisplay((CampfireCookingRecipe) value));
+ for(Recipe recipe : RecipeHelper.getRecipeManager().values())
+ if (recipe instanceof ShapelessRecipe)
+ RecipeHelper.registerRecipe(CRAFTING, new DefaultShapelessDisplay((ShapelessRecipe) recipe));
+ else if (recipe instanceof ShapedRecipe)
+ RecipeHelper.registerRecipe(CRAFTING, new DefaultShapedDisplay((ShapedRecipe) recipe));
+ else if (recipe instanceof SmeltingRecipe)
+ RecipeHelper.registerRecipe(SMELTING, new DefaultSmeltingDisplay((SmeltingRecipe) recipe));
+ else if (recipe instanceof SmokingRecipe)
+ RecipeHelper.registerRecipe(SMOKING, new DefaultSmokingDisplay((SmokingRecipe) recipe));
+ else if (recipe instanceof BlastingRecipe)
+ RecipeHelper.registerRecipe(BLASTING, new DefaultBlastingDisplay((BlastingRecipe) recipe));
+ else if (recipe instanceof CampfireCookingRecipe)
+ RecipeHelper.registerRecipe(CAMPFIRE, new DefaultCampfireDisplay((CampfireCookingRecipe) recipe));
+ else if (recipe instanceof StonecuttingRecipe)
+ RecipeHelper.registerRecipe(STONE_CUTTING, new DefaultStoneCuttingDisplay((StonecuttingRecipe) recipe));
BREWING_DISPLAYS.forEach(display -> RecipeHelper.registerRecipe(BREWING, display));
}
@Override
public void registerSpeedCraft() {
RecipeHelper.registerSpeedCraftButtonArea(DefaultPlugin.CAMPFIRE, null);
+ RecipeHelper.registerSpeedCraftButtonArea(DefaultPlugin.STONE_CUTTING, null);
RecipeHelper.registerSpeedCraftButtonArea(DefaultPlugin.BREWING, null);
RecipeHelper.registerSpeedCraftFunctional(DefaultPlugin.CRAFTING, new SpeedCraftFunctional<DefaultCraftingDisplay>() {
@Override