diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-02-23 02:37:56 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-02-23 02:37:56 +0000 |
commit | f759e0b60d3a575d31921c930e436af321b0e7e8 (patch) | |
tree | 4b1eb7ac01670854c686b1f6faa2f97ff337f7d7 /src/main/java/net/minecraft/server/InventoryLargeChest.java | |
parent | a124bfdab59cc9a9d8369425027e61eccd1d62fb (diff) | |
download | craftbukkit-f759e0b60d3a575d31921c930e436af321b0e7e8.tar craftbukkit-f759e0b60d3a575d31921c930e436af321b0e7e8.tar.gz craftbukkit-f759e0b60d3a575d31921c930e436af321b0e7e8.tar.lz craftbukkit-f759e0b60d3a575d31921c930e436af321b0e7e8.tar.xz craftbukkit-f759e0b60d3a575d31921c930e436af321b0e7e8.zip |
Update to Minecraft 1.3 beta
Diffstat (limited to 'src/main/java/net/minecraft/server/InventoryLargeChest.java')
-rw-r--r-- | src/main/java/net/minecraft/server/InventoryLargeChest.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/main/java/net/minecraft/server/InventoryLargeChest.java b/src/main/java/net/minecraft/server/InventoryLargeChest.java index bf2ba365..51e4cdff 100644 --- a/src/main/java/net/minecraft/server/InventoryLargeChest.java +++ b/src/main/java/net/minecraft/server/InventoryLargeChest.java @@ -8,9 +8,9 @@ public class InventoryLargeChest implements IInventory { // CraftBukkit start public ItemStack[] getContents() { - ItemStack[] result = new ItemStack[h_()]; + ItemStack[] result = new ItemStack[m_()]; for (int i = 0; i < result.length; i++) { - result[i] = a(i); + result[i] = c_(i); } return result; } @@ -22,37 +22,37 @@ public class InventoryLargeChest implements IInventory { this.c = iinventory1; } - public int h_() { - return this.b.h_() + this.c.h_(); + public int m_() { + return this.b.m_() + this.c.m_(); } - public String b() { + public String c() { return this.a; } - public ItemStack a(int i) { - return i >= this.b.h_() ? this.c.a(i - this.b.h_()) : this.b.a(i); + public ItemStack c_(int i) { + return i >= this.b.m_() ? this.c.c_(i - this.b.m_()) : this.b.c_(i); } - public ItemStack b(int i, int j) { - return i >= this.b.h_() ? this.c.b(i - this.b.h_(), j) : this.b.b(i, j); + public ItemStack a(int i, int j) { + return i >= this.b.m_() ? this.c.a(i - this.b.m_(), j) : this.b.a(i, j); } public void a(int i, ItemStack itemstack) { - if (i >= this.b.h_()) { - this.c.a(i - this.b.h_(), itemstack); + if (i >= this.b.m_()) { + this.c.a(i - this.b.m_(), itemstack); } else { this.b.a(i, itemstack); } } - public int c() { - return this.b.c(); + public int n_() { + return this.b.n_(); } - public void d() { - this.b.d(); - this.c.d(); + public void h() { + this.b.h(); + this.c.h(); } public boolean a_(EntityHuman entityhuman) { |