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

This commit is contained in:
sk89q
2011-01-28 10:24:34 -08:00
parent 587ee346f8
commit 578abb593b

View File

@@ -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();
}