Added method to print location in a more readable way

This commit is contained in:
copyandexecute
2021-08-27 19:27:14 +02:00
parent d9da143f7b
commit 424945d562

View File

@@ -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]"