Interface Powerable

All Superinterfaces:
BlockData
All Known Subinterfaces:
Door, NoteBlock

public interface Powerable extends BlockData
A block state carrying the powered property: whether the block receives redstone power.

Block states are immutable: with... methods return another state and leave this one untouched.

Since:
0.1.0
  • Method Details

    • isPowered

      default boolean isPowered()
      Returns true if the block is powered.
      Returns:
      true if the block is powered
      Since:
      0.1.0
    • withPowered

      default Powerable withPowered(boolean powered)
      Returns the same block with another powered value.
      Parameters:
      powered - true to power the block
      Returns:
      the same block with another powered value
      Since:
      0.1.0