Interface Orientable
- All Superinterfaces:
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
-
Nested Class Summary
Nested Classes -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault Orientable.AxisgetAxis()Returns the axis the block is aligned on.default OrientablewithAxis(Orientable.Axis axis) Returns the same block with anotheraxisvalue.
-
Method Details
-
getAxis
Returns the axis the block is aligned on.- Returns:
- the axis the block is aligned on
- Since:
- 0.1.0
-
withAxis
Returns the same block with anotheraxisvalue.- Parameters:
axis- the axis to align on- Returns:
- the same block with another
axisvalue - Since:
- 0.1.0
-