Interface Openable
- All Superinterfaces:
BlockData
- All Known Subinterfaces:
Door
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
-
Field Summary
-
Method Summary
-
Method Details
-
isOpen
default boolean isOpen()Returnstrueif the block is open.- Returns:
trueif the block is open- Since:
- 0.1.0
-
withOpen
Returns the same block with anotheropenvalue.- Parameters:
open-trueto open the block- Returns:
- the same block with another
openvalue - Since:
- 0.1.0
-