Interface Directional

All Superinterfaces:
BlockData
All Known Subinterfaces:
Door, Stairs

public interface Directional extends BlockData
A block state carrying the facing property: the side the block faces.

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

Since:
0.1.0
  • Method Details

    • getFacing

      default BlockFace getFacing()
      Returns the side the block faces.
      Returns:
      the side the block faces
      Since:
      0.1.0
    • withFacing

      default Directional withFacing(BlockFace facing)
      Returns the same block with another facing value.
      Parameters:
      facing - the side to face; must be one of the values the block accepts
      Returns:
      the same block with another facing value
      Since:
      0.1.0