getKey

fun getKey(vec: Vec3, roomX: Int, roomZ: Int, rotation: Int): MutableList<Int>

Returns a mutbale list of 3 Integers representing the players position in the current room. BlockPos or Vec3i would probably be the better data format, but list was chosen, because it is easier to serialize.