Interface Orientable

All Superinterfaces:
BlockData

public interface Orientable extends BlockData
A block state carrying the axis property: the axis the block is aligned on, like logs and pillars.

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

Since:
0.1.0
  • Method Details

    • getAxis

      default Orientable.Axis getAxis()
      Returns the axis the block is aligned on.
      Returns:
      the axis the block is aligned on
      Since:
      0.1.0
    • withAxis

      default Orientable withAxis(Orientable.Axis axis)
      Returns the same block with another axis value.
      Parameters:
      axis - the axis to align on
      Returns:
      the same block with another axis value
      Since:
      0.1.0