Update to Minecraft 1.10

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2016-06-09 11:43:49 +10:00
parent 604d9373c0
commit a39b7e5f3a
161 changed files with 1176 additions and 1147 deletions

View File

@@ -20,8 +20,8 @@
public final class ItemStack {
public static final DecimalFormat a = new DecimalFormat("#.##");
@@ -47,10 +60,20 @@
this.k = false;
@@ -43,10 +56,20 @@
public ItemStack(Item item, int i, int j) {
this.item = item;
this.count = i;
- this.damage = j;
@@ -44,7 +44,7 @@
}
@@ -85,11 +108,131 @@
@@ -81,11 +104,131 @@
}
public EnumInteractionResult placeItem(EntityHuman entityhuman, World world, BlockPosition blockposition, EnumHand enumhand, EnumDirection enumdirection, float f, float f1, float f2) {
@@ -177,7 +177,7 @@
return enuminteractionresult;
}
@@ -114,7 +257,7 @@
@@ -110,7 +253,7 @@
nbttagcompound.setByte("Count", (byte) this.count);
nbttagcompound.setShort("Damage", (short) this.damage);
if (this.tag != null) {
@@ -186,7 +186,7 @@
}
return nbttagcompound;
@@ -123,13 +266,18 @@
@@ -119,13 +262,18 @@
public void c(NBTTagCompound nbttagcompound) {
this.item = Item.d(nbttagcompound.getString("id"));
this.count = nbttagcompound.getByte("Count");
@@ -206,7 +206,7 @@
if (this.item != null) {
this.item.a(this.tag);
}
@@ -166,11 +314,30 @@
@@ -162,11 +310,30 @@
}
public void setData(int i) {
@@ -239,7 +239,7 @@
}
public int j() {
@@ -218,6 +385,12 @@
@@ -214,6 +381,12 @@
this.count = 0;
}
@@ -252,7 +252,7 @@
this.damage = 0;
}
@@ -518,6 +691,7 @@
@@ -514,6 +687,7 @@
@Deprecated
public void setItem(Item item) {
this.item = item;