IPos

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

Base interface for position class implementations.

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 fun toPair(): Pair<N, N>

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