diff options
author | mbax <matt@phozop.net> | 2013-11-04 07:07:38 -0600 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-11-30 19:26:12 -0600 |
commit | 2726696652179a5ead7dc07dd39edf7dfda687f7 (patch) | |
tree | ff78e22fdd4fc01889a5f6cc482b599f965cd93a /src/main/java/net/minecraft/server/TileEntitySkull.java | |
parent | ff8b70fbb7a96b9d2ff078afcf3b3ff90f200981 (diff) | |
download | craftbukkit-2726696652179a5ead7dc07dd39edf7dfda687f7.tar craftbukkit-2726696652179a5ead7dc07dd39edf7dfda687f7.tar.gz craftbukkit-2726696652179a5ead7dc07dd39edf7dfda687f7.tar.lz craftbukkit-2726696652179a5ead7dc07dd39edf7dfda687f7.tar.xz craftbukkit-2726696652179a5ead7dc07dd39edf7dfda687f7.zip |
Update CraftBukkit to Minecraft 1.7.2
Diffstat (limited to 'src/main/java/net/minecraft/server/TileEntitySkull.java')
-rw-r--r-- | src/main/java/net/minecraft/server/TileEntitySkull.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/main/java/net/minecraft/server/TileEntitySkull.java b/src/main/java/net/minecraft/server/TileEntitySkull.java index b49f7316..c4946ed4 100644 --- a/src/main/java/net/minecraft/server/TileEntitySkull.java +++ b/src/main/java/net/minecraft/server/TileEntitySkull.java @@ -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; } } |