public boolean inRegion(int x, int z) {
        return x >= this.min.getX() && x <= this.max.getX()
                && z >= this.min.getZ() && z <= this.max.getZ();
    }
An immutable and serializable chunk region object
helper/src/main/java/me/lucko/helper/serialize/ChunkRegion.java