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

This commit is contained in:
sk89q 2011-01-28 10:24:34 -08:00
parent c565b51d20
commit 85827e3614

View File

@ -187,4 +187,18 @@ public interface Block {
* @return Biome type containing this block * @return Biome type containing this block
*/ */
Biome getBiome(); 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();
} }