diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-03-31 21:40:00 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-03-31 21:40:00 +0100 |
commit | 87c36febeb1801bc89ec040dd24db1ebac75ee36 (patch) | |
tree | 35bf16b0ebe4eb5ddb401d2e55391e3c85fc0f52 /src/main/java/net/minecraft/server/EntityMinecart.java | |
parent | 0635f7c1b8b03c67bd3aa1a85514f7535cdf9168 (diff) | |
download | craftbukkit-87c36febeb1801bc89ec040dd24db1ebac75ee36.tar craftbukkit-87c36febeb1801bc89ec040dd24db1ebac75ee36.tar.gz craftbukkit-87c36febeb1801bc89ec040dd24db1ebac75ee36.tar.lz craftbukkit-87c36febeb1801bc89ec040dd24db1ebac75ee36.tar.xz craftbukkit-87c36febeb1801bc89ec040dd24db1ebac75ee36.zip |
Updated to Minecraft version 1.4
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityMinecart.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityMinecart.java | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/src/main/java/net/minecraft/server/EntityMinecart.java b/src/main/java/net/minecraft/server/EntityMinecart.java index 46ee72aa..ce6b1143 100644 --- a/src/main/java/net/minecraft/server/EntityMinecart.java +++ b/src/main/java/net/minecraft/server/EntityMinecart.java @@ -51,10 +51,13 @@ public class EntityMinecart extends Entity implements IInventory { this.b = 0; this.c = 1; this.i = false; - this.aC = true; - this.a(0.98F, 0.7F); + this.aD = true; + this.b(0.98F, 0.7F); this.height = this.width / 2.0F; - this.bg = false; + } + + protected boolean l() { + return false; } protected void a() {} @@ -114,7 +117,7 @@ public class EntityMinecart extends Entity implements IInventory { this.c = -this.c; this.b = 10; - this.R(); + this.W(); this.a += i * 10; if (this.a > 40) { this.a(Item.MINECART.id, 1, 0.0F); @@ -124,7 +127,7 @@ public class EntityMinecart extends Entity implements IInventory { this.a(Block.FURNACE.id, 1, 0.0F); } - this.C(); + this.D(); } return true; @@ -137,8 +140,8 @@ public class EntityMinecart extends Entity implements IInventory { return !this.dead; } - public void C() { - for (int i = 0; i < this.m_(); ++i) { + public void D() { + for (int i = 0; i < this.q_(); ++i) { ItemStack itemstack = this.c_(i); if (itemstack != null) { @@ -165,7 +168,7 @@ public class EntityMinecart extends Entity implements IInventory { } } - super.C(); + super.D(); } public void f_() { @@ -593,7 +596,7 @@ public class EntityMinecart extends Entity implements IInventory { } else if (this.d == 1) { NBTTagList nbttaglist = nbttagcompound.l("Items"); - this.h = new ItemStack[this.m_()]; + this.h = new ItemStack[this.q_()]; for (int i = 0; i < nbttaglist.c(); ++i) { NBTTagCompound nbttagcompound1 = (NBTTagCompound) nbttaglist.a(i); @@ -692,7 +695,7 @@ public class EntityMinecart extends Entity implements IInventory { } } - public int m_() { + public int q_() { return 27; } @@ -723,8 +726,8 @@ public class EntityMinecart extends Entity implements IInventory { public void a(int i, ItemStack itemstack) { this.h[i] = itemstack; - if (itemstack != null && itemstack.count > this.n_()) { - itemstack.count = this.n_(); + if (itemstack != null && itemstack.count > this.r_()) { + itemstack.count = this.r_(); } } @@ -732,11 +735,11 @@ public class EntityMinecart extends Entity implements IInventory { return "Minecart"; } - public int n_() { + public int r_() { return 64; } - public void h() {} + public void i() {} public boolean a(EntityHuman entityhuman) { if (this.d == 0) { |