diff options
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; } |