mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-17 10:41:41 +01:00
Added Block.isBlockPowered(), block.isBlockIndirectlyPowered().
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
7d4be15159
commit
ba1010e494
1 changed files with 14 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue