Pos2DimensionalConvertible

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
abstract fun atY(y: N): In3d

Keeps the x and z coordinate, but puts this position into 3-dimensional space (Pos3Dimensional) at the given height y.

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.