diff --git a/src/main/java/org/betterx/bclib/api/v2/generator/GeneratorOptions.java b/src/main/java/org/betterx/bclib/api/v2/generator/GeneratorOptions.java index 0b4fc331..d7dac883 100644 --- a/src/main/java/org/betterx/bclib/api/v2/generator/GeneratorOptions.java +++ b/src/main/java/org/betterx/bclib/api/v2/generator/GeneratorOptions.java @@ -6,6 +6,7 @@ import net.minecraft.util.Mth; import java.awt.*; import java.util.function.BiFunction; +import java.util.function.Function; public class GeneratorOptions { private static int biomeSizeNether; @@ -52,6 +53,15 @@ public class GeneratorOptions { return Mth.clamp(biomeSizeEndVoid, 1, 8192); } + /** + * @param endLandFunction + * @deprecated use {@link #setEndLandFunction(BiFunction)} instead + */ + @Deprecated(forRemoval = true) + public static void setEndLandFunction(Function endLandFunction) { + GeneratorOptions.endLandFunction = (p, h) -> endLandFunction.apply(p); + } + public static void setEndLandFunction(BiFunction endLandFunction) { GeneratorOptions.endLandFunction = endLandFunction; }