center
Gets the center point of the block containing this Location.
This property returns a new Location at the center of the block by adding 0.5 to each coordinate. Useful for centering entities or effects within a block.
Example:
val loc = Location(world, 10.0, 64.0, -20.0)
val centered = loc.center // Location at (10.5, 64.5, -19.5)Content copied to clipboard
Return
A new Location at the center of the block