Added method to print location in a more readable way
This commit is contained in:
@@ -40,3 +40,5 @@ fun SimpleLocation3D.withWorld(world: World) = Location(world, x, y, z).apply {
|
||||
fun SimpleChunkLocation.withWorld(world: World) = world.getChunkAt(x, z)
|
||||
fun Vector.toSimpleLoc() = SimpleLocation3D(x, y, z)
|
||||
fun SimpleLocation3D.toVector() = Vector(x, y, z)
|
||||
fun Location.printSimple(): String = "[$x, $y, $z]"
|
||||
|
||||
|
Reference in New Issue
Block a user