Interface Rotatable
- All Superinterfaces:
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
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault intReturns the rotation, from0(south) to15, clockwise.default RotatablewithRotation(int rotation) Returns the same block with anotherrotationvalue.
-
Method Details
-
getRotation
default int getRotation()Returns the rotation, from0(south) to15, clockwise.- Returns:
- the rotation, from
0(south) to15, clockwise - Since:
- 0.1.0
-
withRotation
Returns the same block with anotherrotationvalue.- Parameters:
rotation- the rotation, from0to15- Returns:
- the same block with another
rotationvalue - Since:
- 0.1.0
-