public static Position of(Location location) {
        Objects.requireNonNull(location, "location");
        return of(location.getX(), location.getY(), location.getZ(), location.getWorld().getName());
    }
An immutable and serializable location object
helper/src/main/java/me/lucko/helper/serialize/Position.java