Added Block.isBlockPowered(), block.isBlockIndirectlyPowered().

This commit is contained in:
sk89q 2011-01-28 10:24:53 -08:00
parent b6b5a1ef77
commit 61c37bd369

View file

@ -337,6 +337,14 @@ public class CraftBlock implements Block {
return null;
}
public boolean isBlockPowered() {
return world.getHandle().o(x, y, z);
}
public boolean isBlockIndirectlyPowered() {
return world.getHandle().p(x, y, z);
}
public void update() {
type = world.getHandle().a(x, y, z);
data = (byte)world.getHandle().b(x, y, z);