Interface Rotatable

All Superinterfaces:
BlockData

public interface Rotatable extends BlockData
A block state carrying the rotation property: the sixteen-step orientation of signs, banners and heads.

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

Since:
0.1.0
  • Method Details

    • getRotation

      default int getRotation()
      Returns the rotation, from 0 (south) to 15, clockwise.
      Returns:
      the rotation, from 0 (south) to 15, clockwise
      Since:
      0.1.0
    • withRotation

      default Rotatable withRotation(int rotation)
      Returns the same block with another rotation value.
      Parameters:
      rotation - the rotation, from 0 to 15
      Returns:
      the same block with another rotation value
      Since:
      0.1.0