data improvements

This commit is contained in:
Tahg
2011-09-26 03:07:06 -04:00
parent b7c43fbff1
commit d226e551ae
13 changed files with 399 additions and 17 deletions

View File

@@ -5,7 +5,7 @@ public final class ItemStack {
public int count;
public int b;
public int id;
public int damage; // CraftBukkit - private -> public
private int damage;
public ItemStack(Block block) {
this(block, 1);
@@ -35,7 +35,7 @@ public final class ItemStack {
this.count = 0;
this.id = i;
this.count = j;
this.damage = k;
b(k); // CraftBukkit
}
public static ItemStack a(NBTTagCompound nbttagcompound) {
@@ -122,7 +122,7 @@ public final class ItemStack {
}
public void b(int i) {
this.damage = i;
this.damage = (id > 0) && (id < 256) ? Item.byId[id].filterData(i) : i; // CraftBukkit
}
public int i() {