diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-29 23:17:43 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-30 21:46:19 +0000 |
commit | 8fbe78a2c3b65f4140c4d0db4bed5a9bcdaf1792 (patch) | |
tree | cc229f65097c54cfcd769f686c43efa1dacc8d2f /src/main/java/net/minecraft/server/EntityProjectile.java | |
parent | 8665161eaa0160467ce33598c13f1aed4b549a4d (diff) | |
download | craftbukkit-8fbe78a2c3b65f4140c4d0db4bed5a9bcdaf1792.tar craftbukkit-8fbe78a2c3b65f4140c4d0db4bed5a9bcdaf1792.tar.gz craftbukkit-8fbe78a2c3b65f4140c4d0db4bed5a9bcdaf1792.tar.lz craftbukkit-8fbe78a2c3b65f4140c4d0db4bed5a9bcdaf1792.tar.xz craftbukkit-8fbe78a2c3b65f4140c4d0db4bed5a9bcdaf1792.zip |
Updated to use mc-dev rename revision 1
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityProjectile.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityProjectile.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/main/java/net/minecraft/server/EntityProjectile.java b/src/main/java/net/minecraft/server/EntityProjectile.java index 018580e5..c33e29a3 100644 --- a/src/main/java/net/minecraft/server/EntityProjectile.java +++ b/src/main/java/net/minecraft/server/EntityProjectile.java @@ -203,21 +203,21 @@ public abstract class EntityProjectile extends Entity { protected abstract void a(MovingObjectPosition movingobjectposition); public void b(NBTTagCompound nbttagcompound) { - nbttagcompound.a("xTile", (short) this.blockX); - nbttagcompound.a("yTile", (short) this.blockY); - nbttagcompound.a("zTile", (short) this.blockZ); - nbttagcompound.a("inTile", (byte) this.inBlockId); - nbttagcompound.a("shake", (byte) this.shake); - nbttagcompound.a("inGround", (byte) (this.inGround ? 1 : 0)); + nbttagcompound.setShort("xTile", (short) this.blockX); + nbttagcompound.setShort("yTile", (short) this.blockY); + nbttagcompound.setShort("zTile", (short) this.blockZ); + nbttagcompound.setByte("inTile", (byte) this.inBlockId); + nbttagcompound.setByte("shake", (byte) this.shake); + nbttagcompound.setByte("inGround", (byte) (this.inGround ? 1 : 0)); } public void a(NBTTagCompound nbttagcompound) { - this.blockX = nbttagcompound.e("xTile"); - this.blockY = nbttagcompound.e("yTile"); - this.blockZ = nbttagcompound.e("zTile"); - this.inBlockId = nbttagcompound.d("inTile") & 255; - this.shake = nbttagcompound.d("shake") & 255; - this.inGround = nbttagcompound.d("inGround") == 1; + this.blockX = nbttagcompound.getShort("xTile"); + this.blockY = nbttagcompound.getShort("yTile"); + this.blockZ = nbttagcompound.getShort("zTile"); + this.inBlockId = nbttagcompound.getByte("inTile") & 255; + this.shake = nbttagcompound.getByte("shake") & 255; + this.inGround = nbttagcompound.getByte("inGround") == 1; } public void a_(EntityHuman entityhuman) {} |