Interface Bisected

All Superinterfaces:
BlockData
All Known Subinterfaces:
Door, Stairs

public interface Bisected extends BlockData
A block state carrying the half property: which half of a two-part block this state is.

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

Since:
0.1.0
  • Method Details

    • getHalf

      default Bisected.Half getHalf()
      Returns the half this state represents.
      Returns:
      the half this state represents
      Since:
      0.1.0
    • withHalf

      default Bisected withHalf(Bisected.Half half)
      Returns the same block with another half value.
      Parameters:
      half - the half to represent; must be one of the values the block accepts
      Returns:
      the same block with another half value
      Since:
      0.1.0