public Vector3i toVector() {
        return new Vector3i(this.x, this.y, this.z);
    }
An immutable and serializable block location object
helper/src/main/java/me/lucko/helper/serialize/BlockPosition.java