docs
This commit is contained in:
parent
c5c2a3a3cb
commit
99e1f94fb5
@ -26,7 +26,11 @@ operator fun BlockPos.plus(other: BlockRotation): BlockPos {
|
||||
}
|
||||
|
||||
/**
|
||||
* [top] clarifies about block's top facing direction, NOT bottom
|
||||
* Represents unique block orientation in space, by providing [front] and [top] directions
|
||||
*
|
||||
* Allows to get relative faces through [left], [right], [bottom] and [back]
|
||||
*
|
||||
* @see BlockRotationFreedom
|
||||
*/
|
||||
enum class BlockRotation(
|
||||
val front: Direction,
|
||||
|
@ -14,6 +14,9 @@ internal inline val BlockState.facingOne: Direction get() = this[BlockRotationFr
|
||||
internal inline val BlockState.facingTwo: Direction get() = this[BlockRotationFreedom.TWO.property].front
|
||||
internal inline val BlockState.facingThree: Direction get() = this[BlockRotationFreedom.THREE.property].front
|
||||
|
||||
/**
|
||||
* Controls the rotational freedom of block in space, employing [property] and [of] to get valid value from set of possible values
|
||||
*/
|
||||
enum class BlockRotationFreedom(vararg values: BlockRotation) {
|
||||
ONE(
|
||||
BlockRotation.NORTH,
|
||||
|
Loading…
Reference in New Issue
Block a user