Interface Openable

All Superinterfaces:
BlockData
All Known Subinterfaces:
Door

public interface Openable extends BlockData
A block state carrying the open property: whether the block is open, like doors, trapdoors and gates.

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

Since:
0.1.0
  • Method Details

    • isOpen

      default boolean isOpen()
      Returns true if the block is open.
      Returns:
      true if the block is open
      Since:
      0.1.0
    • withOpen

      default Openable withOpen(boolean open)
      Returns the same block with another open value.
      Parameters:
      open - true to open the block
      Returns:
      the same block with another open value
      Since:
      0.1.0