diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-11-20 00:01:14 -0800 |
---|---|---|
committer | Erik Broes <erikbroes@ripe.net> | 2011-11-20 00:01:33 -0800 |
commit | 345ea36c7bb3383c6e4825355d0043a646194eaa (patch) | |
tree | df116b57d92315c0a13c2fdc87d792b031c7239a /src/main/java/net/minecraft/server/TileEntityPiston.java | |
parent | 589f66bd1b766dc1fdd737ee885304196a2ed86a (diff) | |
download | craftbukkit-345ea36c7bb3383c6e4825355d0043a646194eaa.tar craftbukkit-345ea36c7bb3383c6e4825355d0043a646194eaa.tar.gz craftbukkit-345ea36c7bb3383c6e4825355d0043a646194eaa.tar.lz craftbukkit-345ea36c7bb3383c6e4825355d0043a646194eaa.tar.xz craftbukkit-345ea36c7bb3383c6e4825355d0043a646194eaa.zip |
Update for 1.0.0
Diffstat (limited to 'src/main/java/net/minecraft/server/TileEntityPiston.java')
-rw-r--r-- | src/main/java/net/minecraft/server/TileEntityPiston.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/main/java/net/minecraft/server/TileEntityPiston.java b/src/main/java/net/minecraft/server/TileEntityPiston.java index cc8b12f0..7467f11f 100644 --- a/src/main/java/net/minecraft/server/TileEntityPiston.java +++ b/src/main/java/net/minecraft/server/TileEntityPiston.java @@ -25,7 +25,7 @@ public class TileEntityPiston extends TileEntity { this.e = flag1; } - public int a() { + public int c() { return this.a; } @@ -33,11 +33,11 @@ public class TileEntityPiston extends TileEntity { return this.b; } - public boolean c() { + public boolean e() { return this.d; } - public int d() { + public int f() { return this.c; } @@ -56,7 +56,7 @@ public class TileEntityPiston extends TileEntity { f = 1.0F - f; } - AxisAlignedBB axisalignedbb = Block.PISTON_MOVING.a(this.world, this.x, this.y, this.z, this.a, f, this.c); + AxisAlignedBB axisalignedbb = Block.PISTON_MOVING.b(this.world, this.x, this.y, this.z, this.a, f, this.c); if (axisalignedbb != null) { List list = this.world.b((Entity) null, axisalignedbb); @@ -76,8 +76,8 @@ public class TileEntityPiston extends TileEntity { } } - public void e() { - if (this.g < 1.0F) { + public void g() { + if (this.g < 1.0F && this.world != null) { this.g = this.f = 1.0F; this.world.n(this.x, this.y, this.z); this.i(); @@ -87,7 +87,7 @@ public class TileEntityPiston extends TileEntity { } } - public void h_() { + public void l_() { if (this.world == null) return; // CraftBukkit this.g = this.f; @@ -112,11 +112,11 @@ public class TileEntityPiston extends TileEntity { public void a(NBTTagCompound nbttagcompound) { super.a(nbttagcompound); - this.a = nbttagcompound.e("blockId"); - this.b = nbttagcompound.e("blockData"); - this.c = nbttagcompound.e("facing"); - this.g = this.f = nbttagcompound.g("progress"); - this.d = nbttagcompound.m("extending"); + this.a = nbttagcompound.f("blockId"); + this.b = nbttagcompound.f("blockData"); + this.c = nbttagcompound.f("facing"); + this.g = this.f = nbttagcompound.h("progress"); + this.d = nbttagcompound.n("extending"); } public void b(NBTTagCompound nbttagcompound) { |