From 87c36febeb1801bc89ec040dd24db1ebac75ee36 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Thu, 31 Mar 2011 21:40:00 +0100 Subject: Updated to Minecraft version 1.4 --- .../net/minecraft/server/TileEntityFurnace.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/main/java/net/minecraft/server/TileEntityFurnace.java') diff --git a/src/main/java/net/minecraft/server/TileEntityFurnace.java b/src/main/java/net/minecraft/server/TileEntityFurnace.java index f500d8bb..848a74af 100644 --- a/src/main/java/net/minecraft/server/TileEntityFurnace.java +++ b/src/main/java/net/minecraft/server/TileEntityFurnace.java @@ -15,7 +15,7 @@ public class TileEntityFurnace extends TileEntity implements IInventory { public TileEntityFurnace() {} - public int m_() { + public int q_() { return this.h.length; } @@ -46,8 +46,8 @@ public class TileEntityFurnace extends TileEntity 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_(); } } @@ -59,7 +59,7 @@ public class TileEntityFurnace extends TileEntity implements IInventory { super.a(nbttagcompound); 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); @@ -94,7 +94,7 @@ public class TileEntityFurnace extends TileEntity implements IInventory { nbttagcompound.a("Items", (NBTBase) nbttaglist); } - public int n_() { + public int r_() { return 64; } @@ -111,7 +111,7 @@ public class TileEntityFurnace extends TileEntity implements IInventory { } if (!this.d.isStatic) { - if (this.a == 0 && this.i()) { + if (this.a == 0 && this.h()) { this.b = this.a = this.a(this.h[1]); if (this.a > 0) { flag1 = true; @@ -124,7 +124,7 @@ public class TileEntityFurnace extends TileEntity implements IInventory { } } - if (this.f() && this.i()) { + if (this.f() && this.h()) { ++this.c; if (this.c == 200) { this.c = 0; @@ -142,22 +142,22 @@ public class TileEntityFurnace extends TileEntity implements IInventory { } if (flag1) { - this.h(); + this.i(); } } - private boolean i() { + private boolean h() { if (this.h[0] == null) { return false; } else { ItemStack itemstack = FurnaceRecipes.a().a(this.h[0].a().id); - return itemstack == null ? false : (this.h[2] == null ? true : (!this.h[2].a(itemstack) ? false : (this.h[2].count < this.n_() && this.h[2].count < this.h[2].b() ? true : this.h[2].count < itemstack.b()))); + return itemstack == null ? false : (this.h[2] == null ? true : (!this.h[2].a(itemstack) ? false : (this.h[2].count < this.r_() && this.h[2].count < this.h[2].b() ? true : this.h[2].count < itemstack.b()))); } } public void g() { - if (this.i()) { + if (this.h()) { ItemStack itemstack = FurnaceRecipes.a().a(this.h[0].a().id); if (this.h[2] == null) { -- cgit v1.2.3