Pos3DimensionalConvertible

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 y: N

Vertical y-coordinate, equivalent of y in a Minecraft world. This coordinate represents the height.

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): Self

Takes the x and z coordinate and adds them together with the given new y.

Link copied to clipboard
open operator fun component1(): N
Link copied to clipboard
open operator fun component2(): N
Link copied to clipboard
open operator fun component3(): N
Link copied to clipboard
open fun toBlockPos(): BlockPos
Link copied to clipboard
open fun toMcBlockPos(): BlockPos
Link copied to clipboard
open fun toMcVec3(): Vec3
Link copied to clipboard
open fun toMcVec3i(): Vec3i
Link copied to clipboard
open fun toMcVector3d(): Vector3d
Link copied to clipboard
open fun toMcVector3f(): Vector3f
Link copied to clipboard
open fun toPair(): Pair<N, N>

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

Link copied to clipboard
open fun toTriple(): Triple<N, N, N>

Converts this position to a Kotlin Triple of x, y and z.

Link copied to clipboard
abstract fun withoutHeight(): In2d

Removes the y coordinate and returns a new instance of Pos2Dimensional.