diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-04-20 19:05:14 +0200 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-04-20 19:05:14 +0200 |
commit | 483a878b8bcf1feb789cb5fd9374d0a060cc4d8a (patch) | |
tree | fb56faee3872a85282e2fa88235580589c826e45 /src/main/java/net/minecraft/server/InventoryCraftResult.java | |
parent | ac9f297445a6116c5bb314b3be9f38520a58845e (diff) | |
download | craftbukkit-483a878b8bcf1feb789cb5fd9374d0a060cc4d8a.tar craftbukkit-483a878b8bcf1feb789cb5fd9374d0a060cc4d8a.tar.gz craftbukkit-483a878b8bcf1feb789cb5fd9374d0a060cc4d8a.tar.lz craftbukkit-483a878b8bcf1feb789cb5fd9374d0a060cc4d8a.tar.xz craftbukkit-483a878b8bcf1feb789cb5fd9374d0a060cc4d8a.zip |
Update for 1.4_00_01 -- if you bypassed Bukkit, you will most likely break.
Diffstat (limited to 'src/main/java/net/minecraft/server/InventoryCraftResult.java')
-rw-r--r-- | src/main/java/net/minecraft/server/InventoryCraftResult.java | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/main/java/net/minecraft/server/InventoryCraftResult.java b/src/main/java/net/minecraft/server/InventoryCraftResult.java index 53d56374..3475a921 100644 --- a/src/main/java/net/minecraft/server/InventoryCraftResult.java +++ b/src/main/java/net/minecraft/server/InventoryCraftResult.java @@ -2,48 +2,48 @@ package net.minecraft.server; public class InventoryCraftResult implements IInventory { - private ItemStack[] a = new ItemStack[1]; + private ItemStack[] items = new ItemStack[1]; // CraftBukkit start public ItemStack[] getContents() { - return a; + return items; } // CraftBukkit end public InventoryCraftResult() {} - public int q_() { + public int getSize() { return 1; } - public ItemStack c_(int i) { - return this.a[i]; + public ItemStack getItem(int i) { + return this.items[i]; } - public String c() { + public String getName() { return "Result"; } public ItemStack a(int i, int j) { - if (this.a[i] != null) { - ItemStack itemstack = this.a[i]; + if (this.items[i] != null) { + ItemStack itemstack = this.items[i]; - this.a[i] = null; + this.items[i] = null; return itemstack; } else { return null; } } - public void a(int i, ItemStack itemstack) { - this.a[i] = itemstack; + public void setItem(int i, ItemStack itemstack) { + this.items[i] = itemstack; } - public int r_() { + public int getMaxStackSize() { return 64; } - public void i() {} + public void update() {} public boolean a_(EntityHuman entityhuman) { return true; |