diff options
author | Erik Broes <erikbroes@grum.nl> | 2012-02-29 22:31:04 +0100 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-03-01 01:12:41 +0000 |
commit | 33ba9f0a2f56bdba89574d25b44905af95480dbe (patch) | |
tree | dd446975bfd0406c3deac50c0bc1e156ca737698 /src/main/java/net/minecraft/server/ShapelessRecipes.java | |
parent | 8524ff8ef7be2d386e98f65fdca14c0157e8309f (diff) | |
download | craftbukkit-33ba9f0a2f56bdba89574d25b44905af95480dbe.tar craftbukkit-33ba9f0a2f56bdba89574d25b44905af95480dbe.tar.gz craftbukkit-33ba9f0a2f56bdba89574d25b44905af95480dbe.tar.lz craftbukkit-33ba9f0a2f56bdba89574d25b44905af95480dbe.tar.xz craftbukkit-33ba9f0a2f56bdba89574d25b44905af95480dbe.zip |
Updated to rename revision 02
Diffstat (limited to 'src/main/java/net/minecraft/server/ShapelessRecipes.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ShapelessRecipes.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/java/net/minecraft/server/ShapelessRecipes.java b/src/main/java/net/minecraft/server/ShapelessRecipes.java index bea33ccf..b542d1bc 100644 --- a/src/main/java/net/minecraft/server/ShapelessRecipes.java +++ b/src/main/java/net/minecraft/server/ShapelessRecipes.java @@ -12,20 +12,20 @@ import org.bukkit.inventory.ShapelessRecipe; public class ShapelessRecipes implements CraftingRecipe { - private final ItemStack a; - private final List b; + private final ItemStack result; + private final List ingredients; public ShapelessRecipes(ItemStack itemstack, List list) { - this.a = itemstack; - this.b = list; + this.result = itemstack; + this.ingredients = list; } // CraftBukkit start @SuppressWarnings("unchecked") public ShapelessRecipe toBukkitRecipe() { - CraftItemStack result = new CraftItemStack(this.a); + CraftItemStack result = new CraftItemStack(this.result); CraftShapelessRecipe recipe = new CraftShapelessRecipe(result, this); - for (ItemStack stack : (List<ItemStack>) this.b) { + for (ItemStack stack : (List<ItemStack>) this.ingredients) { if (stack != null) { recipe.addIngredient(org.bukkit.Material.getMaterial(stack.id), stack.getData()); } @@ -35,11 +35,11 @@ public class ShapelessRecipes implements CraftingRecipe { // CraftBukkit end public ItemStack b() { - return this.a; + return this.result; } public boolean a(InventoryCrafting inventorycrafting) { - ArrayList arraylist = new ArrayList(this.b); + ArrayList arraylist = new ArrayList(this.ingredients); for (int i = 0; i < 3; ++i) { for (int j = 0; j < 3; ++j) { @@ -70,10 +70,10 @@ public class ShapelessRecipes implements CraftingRecipe { } public ItemStack b(InventoryCrafting inventorycrafting) { - return this.a.cloneItemStack(); + return this.result.cloneItemStack(); } public int a() { - return this.b.size(); + return this.ingredients.size(); } } |