ColumnFinePosition

Represents a 2D fine (decimal) position in a Minecraft world, defined by double X and Z coordinates.

This is used as the result type for column fine position arguments, where the Y coordinate is not specified and must be provided separately.

Example usage in a command:

columnFinePosition("pos", centerIntegers = false) {
executes { context ->
val resolver = context.getArgument("pos", ColumnFinePositionResolver::class.java)
val col = resolver.resolve(context.source)
val pos = col.toPosition(64.0) // supply Y coordinate
1
}
}

Inheritors

Properties

Link copied to clipboard
abstract val x: Double

The precise X coordinate of the column fine position.

Link copied to clipboard
abstract val z: Double

The precise Z coordinate of the column fine position.

Functions

Link copied to clipboard
open fun toPosition(y: Double): FinePosition

Converts this column position to a full FinePosition by supplying a Y coordinate.