diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2012-10-24 22:53:23 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-10-27 22:19:03 -0400 |
commit | 60819c6693daf19dde68b04af38a4fee8c7da988 (patch) | |
tree | e7bd96a07f0e9d9f1f6b2721ddd1bb5dd71eaf48 /src/main/java/net/minecraft/server/BlockTripwireHook.java | |
parent | b9a72531b6e2ccc84bd021bca421255a957d96f7 (diff) | |
download | craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.gz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.lz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.xz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.zip |
Update CraftBukkit to Minecraft 1.4(.2).
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockTripwireHook.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockTripwireHook.java | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/main/java/net/minecraft/server/BlockTripwireHook.java b/src/main/java/net/minecraft/server/BlockTripwireHook.java index 6025e8fd..0fe164d6 100644 --- a/src/main/java/net/minecraft/server/BlockTripwireHook.java +++ b/src/main/java/net/minecraft/server/BlockTripwireHook.java @@ -16,19 +16,19 @@ public class BlockTripwireHook extends Block { return null; } - public boolean d() { + public boolean c() { return false; } - public boolean c() { + public boolean b() { return false; } - public int b() { + public int d() { return 29; } - public int p_() { + public int r_() { return 10; } @@ -117,7 +117,7 @@ public class BlockTripwireHook extends Block { j3 = world.getTypeId(l2, j, k3); if (j3 == Block.TRIPWIRE_SOURCE.id) { l3 = world.getData(l2, j, k3); - if ((l3 & 3) == Direction.e[l1]) { + if ((l3 & 3) == Direction.f[l1]) { k2 = i3; } break; @@ -136,7 +136,7 @@ public class BlockTripwireHook extends Block { flag4 |= flag6 && flag7; aint[i3] = l3; if (i3 == j1) { - world.a(i, j, k, l, this.p_()); + world.a(i, j, k, l, this.r_()); flag3 &= flag6; } } @@ -149,9 +149,9 @@ public class BlockTripwireHook extends Block { if (k2 > 0) { l2 = i + i2 * k2; k3 = k + j2 * k2; - j3 = Direction.e[l1]; + j3 = Direction.f[l1]; world.setData(l2, j, k3, j3 | i3); - this.e(world, l2, j, k3, j3); + this.d(world, l2, j, k3, j3); this.a(world, l2, j, k3, flag3, flag4, flag1, flag2); } @@ -170,7 +170,7 @@ public class BlockTripwireHook extends Block { if (l > 0) { world.setData(i, j, k, i1); if (flag) { - this.e(world, i, j, k, l1); + this.d(world, i, j, k, l1); } } @@ -208,7 +208,7 @@ public class BlockTripwireHook extends Block { } } - private void e(World world, int i, int j, int k, int l) { + private void d(World world, int i, int j, int k, int l) { world.applyPhysics(i, j, k, this.id); if (l == 3) { world.applyPhysics(i - 1, j, k, this.id); @@ -272,12 +272,12 @@ public class BlockTripwireHook extends Block { super.remove(world, i, j, k, l, i1); } - public boolean a(IBlockAccess iblockaccess, int i, int j, int k, int l) { + public boolean b(IBlockAccess iblockaccess, int i, int j, int k, int l) { return (iblockaccess.getData(i, j, k) & 8) == 8; } - public boolean c(World world, int i, int j, int k, int l) { - int i1 = world.getData(i, j, k); + public boolean c(IBlockAccess iblockaccess, int i, int j, int k, int l) { + int i1 = iblockaccess.getData(i, j, k); if ((i1 & 8) != 8) { return false; |