summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorsk89q <the.sk89q@gmail.com>2011-01-28 10:24:53 -0800
committersk89q <the.sk89q@gmail.com>2011-01-28 10:25:28 -0800
commit61c37bd3696329ef2ea42d4578f8694b95ef5792 (patch)
treef4c550aa8a46d71e7343aa546d18074d7551080d /src/main/java
parentb6b5a1ef77792eb6f5d83e30a3e2c2a4435bdcbc (diff)
downloadcraftbukkit-61c37bd3696329ef2ea42d4578f8694b95ef5792.tar
craftbukkit-61c37bd3696329ef2ea42d4578f8694b95ef5792.tar.gz
craftbukkit-61c37bd3696329ef2ea42d4578f8694b95ef5792.tar.lz
craftbukkit-61c37bd3696329ef2ea42d4578f8694b95ef5792.tar.xz
craftbukkit-61c37bd3696329ef2ea42d4578f8694b95ef5792.zip
Added Block.isBlockPowered(), block.isBlockIndirectlyPowered().
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
index 4c000896..4d19e34b 100644
--- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
+++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
@@ -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);