mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
Added Block.isBlockPowered(), block.isBlockIndirectlyPowered().
This commit is contained in:
parent
c565b51d20
commit
85827e3614
1 changed files with 14 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue