diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-03-01 10:49:23 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-03-01 14:38:31 +0000 |
commit | 543c4879fee3b7165764c5371d226c93fe3a657b (patch) | |
tree | 4fe9116464e1fe42a40dc3ba19b58234bd26f821 /src/main/java/net/minecraft/server/TileEntityBrewingStand.java | |
parent | e9ca87000c1794715bc3fe0a7d1caaf809057635 (diff) | |
download | craftbukkit-543c4879fee3b7165764c5371d226c93fe3a657b.tar craftbukkit-543c4879fee3b7165764c5371d226c93fe3a657b.tar.gz craftbukkit-543c4879fee3b7165764c5371d226c93fe3a657b.tar.lz craftbukkit-543c4879fee3b7165764c5371d226c93fe3a657b.tar.xz craftbukkit-543c4879fee3b7165764c5371d226c93fe3a657b.zip |
Updated CraftBukkit to 1.2
Diffstat (limited to 'src/main/java/net/minecraft/server/TileEntityBrewingStand.java')
-rw-r--r-- | src/main/java/net/minecraft/server/TileEntityBrewingStand.java | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/main/java/net/minecraft/server/TileEntityBrewingStand.java b/src/main/java/net/minecraft/server/TileEntityBrewingStand.java index 398dff92..0c50bb6b 100644 --- a/src/main/java/net/minecraft/server/TileEntityBrewingStand.java +++ b/src/main/java/net/minecraft/server/TileEntityBrewingStand.java @@ -42,14 +42,14 @@ public class TileEntityBrewingStand extends TileEntity implements IInventory { // CraftBukkit end public String getName() { - return "Brewing Stand"; + return "container.brewing"; } public int getSize() { return this.items.length; } - public void l_() { + public void q_() { if (this.brewTime > 0) { --this.brewTime; if (this.brewTime == 0) { @@ -74,10 +74,10 @@ public class TileEntityBrewingStand extends TileEntity implements IInventory { this.world.setData(this.x, this.y, this.z, i); } - super.l_(); + super.q_(); } - public int h() { + public int i() { return this.brewTime; } @@ -210,6 +210,17 @@ public class TileEntityBrewingStand extends TileEntity implements IInventory { } } + public ItemStack splitWithoutUpdate(int i) { + if (i >= 0 && i < this.items.length) { + ItemStack itemstack = this.items[i]; + + this.items[i] = null; + return itemstack; + } else { + return null; + } + } + public void setItem(int i, ItemStack itemstack) { if (i >= 0 && i < this.items.length) { this.items[i] = itemstack; |