Added Block.isBlockPowered(), block.isBlockIndirectlyPowered().
This commit is contained in:
parent
c565b51d20
commit
85827e3614
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user