Updated to Minecraft version 1.4

This commit is contained in:
Dinnerbone
2011-03-31 21:40:00 +01:00
parent 0635f7c1b8
commit 87c36febeb
84 changed files with 1024 additions and 793 deletions

View File

@@ -8,7 +8,7 @@ public class InventoryLargeChest implements IInventory {
// CraftBukkit start
public ItemStack[] getContents() {
ItemStack[] result = new ItemStack[m_()];
ItemStack[] result = new ItemStack[q_()];
for (int i = 0; i < result.length; i++) {
result[i] = c_(i);
}
@@ -22,8 +22,8 @@ public class InventoryLargeChest implements IInventory {
this.c = iinventory1;
}
public int m_() {
return this.b.m_() + this.c.m_();
public int q_() {
return this.b.q_() + this.c.q_();
}
public String c() {
@@ -31,28 +31,28 @@ public class InventoryLargeChest implements IInventory {
}
public ItemStack c_(int i) {
return i >= this.b.m_() ? this.c.c_(i - this.b.m_()) : this.b.c_(i);
return i >= this.b.q_() ? this.c.c_(i - this.b.q_()) : this.b.c_(i);
}
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);
return i >= this.b.q_() ? this.c.a(i - this.b.q_(), j) : this.b.a(i, j);
}
public void a(int i, ItemStack itemstack) {
if (i >= this.b.m_()) {
this.c.a(i - this.b.m_(), itemstack);
if (i >= this.b.q_()) {
this.c.a(i - this.b.q_(), itemstack);
} else {
this.b.a(i, itemstack);
}
}
public int n_() {
return this.b.n_();
public int r_() {
return this.b.r_();
}
public void h() {
this.b.h();
this.c.h();
public void i() {
this.b.i();
this.c.i();
}
public boolean a_(EntityHuman entityhuman) {