diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-05-26 13:48:22 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-05-26 13:48:22 +0100 |
commit | 6903f2024217f0959c015e76b23297af8e3b573f (patch) | |
tree | 690bf275ce19c655bd64eea05be231ed0c318fd6 /src/main/java/net/minecraft/server/BlockPressurePlate.java | |
parent | f463453d73249fe73cf3e23ed37e6cee870c8bf4 (diff) | |
download | craftbukkit-6903f2024217f0959c015e76b23297af8e3b573f.tar craftbukkit-6903f2024217f0959c015e76b23297af8e3b573f.tar.gz craftbukkit-6903f2024217f0959c015e76b23297af8e3b573f.tar.lz craftbukkit-6903f2024217f0959c015e76b23297af8e3b573f.tar.xz craftbukkit-6903f2024217f0959c015e76b23297af8e3b573f.zip |
Implemented 1.6!
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockPressurePlate.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockPressurePlate.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/main/java/net/minecraft/server/BlockPressurePlate.java b/src/main/java/net/minecraft/server/BlockPressurePlate.java index 1a158d2d..2afbb309 100644 --- a/src/main/java/net/minecraft/server/BlockPressurePlate.java +++ b/src/main/java/net/minecraft/server/BlockPressurePlate.java @@ -20,8 +20,8 @@ public class BlockPressurePlate extends Block { private EnumMobType a; - protected BlockPressurePlate(int i, int j, EnumMobType enummobtype) { - super(i, j, Material.STONE); + protected BlockPressurePlate(int i, int j, EnumMobType enummobtype, Material material) { + super(i, j, material); this.a = enummobtype; this.a(true); float f = 0.0625F; @@ -29,7 +29,7 @@ public class BlockPressurePlate extends Block { this.a(f, 0.0F, f, 1.0F - f, 0.03125F, 1.0F - f); } - public int b() { + public int c() { return 20; } @@ -41,6 +41,10 @@ public class BlockPressurePlate extends Block { return false; } + public boolean b() { + return false; + } + public boolean canPlace(World world, int i, int j, int k) { return world.d(i, j - 1, k); } @@ -55,7 +59,7 @@ public class BlockPressurePlate extends Block { } if (flag) { - this.a_(world, i, j, k, world.getData(i, j, k)); + this.b_(world, i, j, k, world.getData(i, j, k)); world.setTypeId(i, j, k, 0); } } @@ -147,7 +151,7 @@ public class BlockPressurePlate extends Block { } if (flag1) { - world.c(i, j, k, this.id, this.b()); + world.c(i, j, k, this.id, this.c()); } } @@ -173,7 +177,7 @@ public class BlockPressurePlate extends Block { } } - public boolean b(IBlockAccess iblockaccess, int i, int j, int k, int l) { + public boolean a(IBlockAccess iblockaccess, int i, int j, int k, int l) { return iblockaccess.getData(i, j, k) > 0; } |