Re-Added carelessly removed function

This commit is contained in:
Frank 2022-06-21 18:43:30 +02:00
parent 184f3a6448
commit 057e6de3de

View file

@ -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<Point, Boolean> endLandFunction) {
GeneratorOptions.endLandFunction = (p, h) -> endLandFunction.apply(p);
}
public static void setEndLandFunction(BiFunction<Point, Integer, Boolean> endLandFunction) {
GeneratorOptions.endLandFunction = endLandFunction;
}