Interface Bisected
- All Superinterfaces:
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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe halves a two-part block may consist of. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault Bisected.HalfgetHalf()Returns the half this state represents.default BisectedwithHalf(Bisected.Half half) Returns the same block with anotherhalfvalue.
-
Method Details
-
getHalf
Returns the half this state represents.- Returns:
- the half this state represents
- Since:
- 0.1.0
-
withHalf
Returns the same block with anotherhalfvalue.- Parameters:
half- the half to represent; must be one of the values the block accepts- Returns:
- the same block with another
halfvalue - Since:
- 0.1.0
-