diff options
author | sk89q <the.sk89q@gmail.com> | 2011-01-28 10:24:34 -0800 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-01-28 10:25:13 -0800 |
commit | 85827e3614b845e7a77d6a191b8bba7d01c4ff8c (patch) | |
tree | 4ec6d05fc57a58a9f0aef42ac195e1799f288ff4 /src | |
parent | c565b51d2026ffc44a1f8b0fd4440a83d7f181fd (diff) | |
download | bukkit-85827e3614b845e7a77d6a191b8bba7d01c4ff8c.tar bukkit-85827e3614b845e7a77d6a191b8bba7d01c4ff8c.tar.gz bukkit-85827e3614b845e7a77d6a191b8bba7d01c4ff8c.tar.lz bukkit-85827e3614b845e7a77d6a191b8bba7d01c4ff8c.tar.xz bukkit-85827e3614b845e7a77d6a191b8bba7d01c4ff8c.zip |
Added Block.isBlockPowered(), block.isBlockIndirectlyPowered().
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/block/Block.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/block/Block.java b/src/main/java/org/bukkit/block/Block.java index cb4ba7dc..457530c6 100644 --- a/src/main/java/org/bukkit/block/Block.java +++ b/src/main/java/org/bukkit/block/Block.java @@ -187,4 +187,18 @@ public interface Block { * @return Biome type containing this block */ Biome getBiome(); + + /** + * Returns true if the block is being powered by Redstone. + * + * @return + */ + boolean isBlockPowered(); + + /** + * Returns true if the block is being indirectly powered by Redstone. + * + * @return + */ + boolean isBlockIndirectlyPowered(); } |