public boolean inRegion(Location loc) {
        Objects.requireNonNull(loc, "loc");
        return loc.getWorld().getName().equals(this.min.getWorld()) && inRegion(loc.getX(), loc.getY(), loc.getZ());
    }
An immutable and serializable region object
helper/src/main/java/me/lucko/helper/serialize/Region.java