From ab548afbfb0963aa690fb1ac81f9c48b0449d1d8 Mon Sep 17 00:00:00 2001 From: ganymedes01 Date: Thu, 18 Jun 2015 13:15:59 -0300 Subject: [PATCH] Change permission levels on ore recipes parameters --- .../minecraftforge/oredict/ShapedOreRecipe.java | 16 ++++++++-------- .../oredict/ShapelessOreRecipe.java | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/net/minecraftforge/oredict/ShapedOreRecipe.java b/src/main/java/net/minecraftforge/oredict/ShapedOreRecipe.java index 58538c60d..2794e8af8 100644 --- a/src/main/java/net/minecraftforge/oredict/ShapedOreRecipe.java +++ b/src/main/java/net/minecraftforge/oredict/ShapedOreRecipe.java @@ -17,14 +17,14 @@ import net.minecraftforge.common.ForgeHooks; public class ShapedOreRecipe implements IRecipe { //Added in for future ease of change, but hard coded for now. - private static final int MAX_CRAFT_GRID_WIDTH = 3; - private static final int MAX_CRAFT_GRID_HEIGHT = 3; + public static final int MAX_CRAFT_GRID_WIDTH = 3; + public static final int MAX_CRAFT_GRID_HEIGHT = 3; - private ItemStack output = null; - private Object[] input = null; - private int width = 0; - private int height = 0; - private boolean mirrored = true; + protected ItemStack output = null; + protected Object[] input = null; + protected int width = 0; + protected int height = 0; + protected boolean mirrored = true; public ShapedOreRecipe(Block result, Object... recipe){ this(new ItemStack(result), recipe); } public ShapedOreRecipe(Item result, Object... recipe){ this(new ItemStack(result), recipe); } @@ -184,7 +184,7 @@ public class ShapedOreRecipe implements IRecipe } @SuppressWarnings("unchecked") - private boolean checkMatch(InventoryCrafting inv, int startX, int startY, boolean mirror) + protected boolean checkMatch(InventoryCrafting inv, int startX, int startY, boolean mirror) { for (int x = 0; x < MAX_CRAFT_GRID_WIDTH; x++) { diff --git a/src/main/java/net/minecraftforge/oredict/ShapelessOreRecipe.java b/src/main/java/net/minecraftforge/oredict/ShapelessOreRecipe.java index b69b121bf..69c8151a0 100644 --- a/src/main/java/net/minecraftforge/oredict/ShapelessOreRecipe.java +++ b/src/main/java/net/minecraftforge/oredict/ShapelessOreRecipe.java @@ -16,8 +16,8 @@ import net.minecraftforge.common.ForgeHooks; public class ShapelessOreRecipe implements IRecipe { - private ItemStack output = null; - private ArrayList input = new ArrayList(); + protected ItemStack output = null; + protected ArrayList input = new ArrayList(); public ShapelessOreRecipe(Block result, Object... recipe){ this(new ItemStack(result), recipe); } public ShapelessOreRecipe(Item result, Object... recipe){ this(new ItemStack(result), recipe); }