public long asEncodedLong() {
        return (long) this.x & 0xffffffffL | ((long) this.z & 0xffffffffL) << 32;
    }
An immutable and serializable chuck location object
helper/src/main/java/me/lucko/helper/serialize/ChunkPosition.java