Location to short String

Turn a location in a simple and short string. No decimal numbers
This commit is contained in:
Miraculixx
2022-05-24 19:26:51 +02:00
committed by GitHub
parent d074543fb6
commit fb228ac846

View File

@@ -45,3 +45,4 @@ fun SimpleLocation3D.toVector() = Vector(x, y, z)
* Returns a simple string in the format of `[x, y, z]`.
*/
fun Location.toSimpleString() = "[$x, $y, $z]"
fun Location.toSimpleBlockString() = "[$blockX, $blockY, $blockZ]"