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

@@ -15,7 +15,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
public TileEntityDispenser() {}
public int m_() {
public int q_() {
return 9;
}
@@ -30,7 +30,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
if (this.a[i].count <= j) {
itemstack = this.a[i];
this.a[i] = null;
this.h();
this.i();
return itemstack;
} else {
itemstack = this.a[i].a(j);
@@ -38,7 +38,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
this.a[i] = null;
}
this.h();
this.i();
return itemstack;
}
} else {
@@ -66,11 +66,11 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
public void a(int i, ItemStack itemstack) {
this.a[i] = itemstack;
if (itemstack != null && itemstack.count > this.n_()) {
itemstack.count = this.n_();
if (itemstack != null && itemstack.count > this.r_()) {
itemstack.count = this.r_();
}
this.h();
this.i();
}
public String c() {
@@ -81,7 +81,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
super.a(nbttagcompound);
NBTTagList nbttaglist = nbttagcompound.l("Items");
this.a = new ItemStack[this.m_()];
this.a = new ItemStack[this.q_()];
for (int i = 0; i < nbttaglist.c(); ++i) {
NBTTagCompound nbttagcompound1 = (NBTTagCompound) nbttaglist.a(i);
@@ -110,7 +110,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
nbttagcompound.a("Items", (NBTBase) nbttaglist);
}
public int n_() {
public int r_() {
return 64;
}