diff options
author | feildmaster <admin@feildmaster.com> | 2012-07-29 02:33:13 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2012-08-02 04:58:50 -0500 |
commit | a43d621c0138110d2ec362b2eaa8f938f241bb49 (patch) | |
tree | d2ebc0d7a4a969d3257b1b958236428a24117eb1 /src/main/java/net/minecraft/server/TileEntityPiston.java | |
parent | 08e2923bd4282579ca0cf7af0e6207cba0591e5c (diff) | |
download | craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.tar craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.tar.gz craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.tar.lz craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.tar.xz craftbukkit-a43d621c0138110d2ec362b2eaa8f938f241bb49.zip |
Update CraftBukkit to Minecraft 1.3.1
Diffstat (limited to 'src/main/java/net/minecraft/server/TileEntityPiston.java')
-rw-r--r-- | src/main/java/net/minecraft/server/TileEntityPiston.java | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/main/java/net/minecraft/server/TileEntityPiston.java b/src/main/java/net/minecraft/server/TileEntityPiston.java index b0e0465b..a5d3246a 100644 --- a/src/main/java/net/minecraft/server/TileEntityPiston.java +++ b/src/main/java/net/minecraft/server/TileEntityPiston.java @@ -13,7 +13,7 @@ public class TileEntityPiston extends TileEntity { private boolean e; private float f; private float g; - private static List h = new ArrayList(); + private List h = new ArrayList(); public TileEntityPiston() {} @@ -25,19 +25,19 @@ public class TileEntityPiston extends TileEntity { this.e = flag1; } - public int c() { + public int a() { return this.a; } - public int k() { + public int n() { return this.b; } - public boolean e() { + public boolean b() { return this.d; } - public int f() { + public int c() { return this.c; } @@ -50,10 +50,10 @@ public class TileEntityPiston extends TileEntity { } private void a(float f, float f1) { - if (!this.d) { - --f; - } else { + if (this.d) { f = 1.0F - f; + } else { + --f; } AxisAlignedBB axisalignedbb = Block.PISTON_MOVING.b(this.world, this.x, this.y, this.z, this.a, f, this.c); @@ -62,8 +62,8 @@ public class TileEntityPiston extends TileEntity { List list = this.world.getEntities((Entity) null, axisalignedbb); if (!list.isEmpty()) { - h.addAll(list); - Iterator iterator = h.iterator(); + this.h.addAll(list); + Iterator iterator = this.h.iterator(); while (iterator.hasNext()) { Entity entity = (Entity) iterator.next(); @@ -71,12 +71,12 @@ public class TileEntityPiston extends TileEntity { entity.move((double) (f1 * (float) Facing.b[this.c]), (double) (f1 * (float) Facing.c[this.c]), (double) (f1 * (float) Facing.d[this.c])); } - h.clear(); + this.h.clear(); } } } - public void g() { + public void i() { if (this.g < 1.0F && this.world != null) { this.g = this.f = 1.0F; this.world.q(this.x, this.y, this.z); @@ -87,7 +87,7 @@ public class TileEntityPiston extends TileEntity { } } - public void q_() { + public void g() { if (this.world == null) return; // CraftBukkit this.g = this.f; |