mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
Added Block.isBlockPowered(), block.isBlockIndirectlyPowered().
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user