Update CraftBukkit to Minecraft 1.7.2

This commit is contained in:
mbax
2013-11-04 07:07:38 -06:00
committed by Wesley Wolfe
parent ff8b70fbb7
commit 2726696652
349 changed files with 14339 additions and 11287 deletions

View File

@@ -3,24 +3,24 @@ package net.minecraft.server;
public class TileEntitySkull extends TileEntity {
private int a;
private int b;
private String c = "";
private int i;
private String j = "";
public TileEntitySkull() {}
public void b(NBTTagCompound nbttagcompound) {
super.b(nbttagcompound);
nbttagcompound.setByte("SkullType", (byte) (this.a & 255));
nbttagcompound.setByte("Rot", (byte) (this.b & 255));
nbttagcompound.setString("ExtraType", this.c);
nbttagcompound.setByte("Rot", (byte) (this.i & 255));
nbttagcompound.setString("ExtraType", this.j);
}
public void a(NBTTagCompound nbttagcompound) {
super.a(nbttagcompound);
this.a = nbttagcompound.getByte("SkullType");
this.b = nbttagcompound.getByte("Rot");
if (nbttagcompound.hasKey("ExtraType")) {
this.c = nbttagcompound.getString("ExtraType");
this.i = nbttagcompound.getByte("Rot");
if (nbttagcompound.hasKeyOfType("ExtraType", 8)) {
this.j = nbttagcompound.getString("ExtraType");
}
}
@@ -28,12 +28,12 @@ public class TileEntitySkull extends TileEntity {
NBTTagCompound nbttagcompound = new NBTTagCompound();
this.b(nbttagcompound);
return new Packet132TileEntityData(this.x, this.y, this.z, 4, nbttagcompound);
return new PacketPlayOutTileEntityData(this.x, this.y, this.z, 4, nbttagcompound);
}
public void setSkullType(int i, String s) {
this.a = i;
this.c = s;
this.j = s;
}
public int getSkullType() {
@@ -41,16 +41,16 @@ public class TileEntitySkull extends TileEntity {
}
public void setRotation(int i) {
this.b = i;
this.i = i;
}
// CraftBukkit start
public int getRotation() {
return this.b;
return this.i;
}
// CraftBukkit end
public String getExtraType() {
return this.c;
return this.j;
}
}