summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/InventoryLargeChest.java
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2013-03-13 17:33:27 -0500
committerTravis Watkins <amaranth@ubuntu.com>2013-03-15 13:28:59 -0500
commit83d29e461c85733f0113b6eb19db6e3b42da2949 (patch)
treeb3063a1c28f478ab368d5ba3413a842def68c28f /src/main/java/net/minecraft/server/InventoryLargeChest.java
parentba6e4c38cfa98ad291974195cc46d70a4f138ac1 (diff)
downloadcraftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar
craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.gz
craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.lz
craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.tar.xz
craftbukkit-83d29e461c85733f0113b6eb19db6e3b42da2949.zip
Update CraftBukkit to Minecraft 1.5
Diffstat (limited to 'src/main/java/net/minecraft/server/InventoryLargeChest.java')
-rw-r--r--src/main/java/net/minecraft/server/InventoryLargeChest.java20
1 files changed, 14 insertions, 6 deletions
diff --git a/src/main/java/net/minecraft/server/InventoryLargeChest.java b/src/main/java/net/minecraft/server/InventoryLargeChest.java
index a13a5642..3eee4b8f 100644
--- a/src/main/java/net/minecraft/server/InventoryLargeChest.java
+++ b/src/main/java/net/minecraft/server/InventoryLargeChest.java
@@ -73,7 +73,11 @@ public class InventoryLargeChest implements IInventory {
}
public String getName() {
- return this.a;
+ return this.left.c() ? this.left.getName() : (this.right.c() ? this.right.getName() : this.a);
+ }
+
+ public boolean c() {
+ return this.left.c() || this.right.c();
}
public ItemStack getItem(int i) {
@@ -105,8 +109,8 @@ public class InventoryLargeChest implements IInventory {
this.right.update();
}
- public boolean a_(EntityHuman entityhuman) {
- return this.left.a_(entityhuman) && this.right.a_(entityhuman);
+ public boolean a(EntityHuman entityhuman) {
+ return this.left.a(entityhuman) && this.right.a(entityhuman);
}
public void startOpen() {
@@ -114,8 +118,12 @@ public class InventoryLargeChest implements IInventory {
this.right.startOpen();
}
- public void f() {
- this.left.f();
- this.right.f();
+ public void g() {
+ this.left.g();
+ this.right.g();
+ }
+
+ public boolean b(int i, ItemStack itemstack) {
+ return true;
}
}