1
0
Fork 0
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:
Bukkit/Spigot 2011-01-28 10:24:34 -08:00
parent 7d4be15159
commit ba1010e494

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