Pos2Dimensional

@Serializable
sealed interface Pos2Dimensional<N : Number> : IPos<N> (source)

Inheritors

Properties

Link copied to clipboard
abstract val x: N

Horizontal x-coordinate, equivalent of x in a Minecraft world.

Link copied to clipboard
abstract val z: N

Horizontal z-coordinate, equivalent of z in a Minecraft world. In general maths this would be the y coordinate on a regular 2d plane.

Functions

Link copied to clipboard
open operator fun component1(): N
Link copied to clipboard
open operator fun component2(): N
Link copied to clipboard
open fun toBlockPos(y: N): BlockPos
Link copied to clipboard
open fun toMcVec2(): Vec2
Link copied to clipboard
open fun toPair(): Pair<N, N>

Converts this position to a basic Kotlin Pair of x and z.