Updated CraftBukkit to 1.2

This commit is contained in:
Nathan Adams
2012-03-01 10:49:23 +00:00
parent e9ca87000c
commit 543c4879fe
143 changed files with 3710 additions and 4433 deletions

View File

@@ -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;