toLong

fun toLong(): Long

Converts the chunk position to a long, where the 32 most significant bits are the z coordinate and the 32 least significant bits are the x coordinate.

This format matches that of net.minecraft.world.level.ChunkPos.toLong.