ColumnFinePosition
interface 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
}
}Content copied to clipboard