Update for Minecraft 1.8

This commit is contained in:
Dinnerbone
2011-09-15 01:23:52 +01:00
parent 54bcd1c1f3
commit 5b2c774edc
107 changed files with 4415 additions and 3504 deletions

View File

@@ -97,7 +97,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
int j = nbttagcompound1.c("Slot") & 255;
if (j >= 0 && j < this.items.length) {
this.items[j] = new ItemStack(nbttagcompound1);
this.items[j] = ItemStack.a(nbttagcompound1);
}
}
}
@@ -111,7 +111,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
NBTTagCompound nbttagcompound1 = new NBTTagCompound();
nbttagcompound1.a("Slot", (byte) i);
this.items[i].a(nbttagcompound1);
this.items[i].b(nbttagcompound1);
nbttaglist.a((NBTBase) nbttagcompound1);
}
}
@@ -123,7 +123,11 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
return 64;
}
public boolean a_(EntityHuman entityhuman) {
public boolean a(EntityHuman entityhuman) {
return this.world.getTileEntity(this.x, this.y, this.z) != this ? false : entityhuman.e((double) this.x + 0.5D, (double) this.y + 0.5D, (double) this.z + 0.5D) <= 64.0D;
}
public void e() {}
public void t_() {}
}