Re-Added carelessly removed function
This commit is contained in:
parent
184f3a6448
commit
057e6de3de
1 changed files with 10 additions and 0 deletions
|
@ -6,6 +6,7 @@ import net.minecraft.util.Mth;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.util.function.BiFunction;
|
import java.util.function.BiFunction;
|
||||||
|
import java.util.function.Function;
|
||||||
|
|
||||||
public class GeneratorOptions {
|
public class GeneratorOptions {
|
||||||
private static int biomeSizeNether;
|
private static int biomeSizeNether;
|
||||||
|
@ -52,6 +53,15 @@ public class GeneratorOptions {
|
||||||
return Mth.clamp(biomeSizeEndVoid, 1, 8192);
|
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) {
|
public static void setEndLandFunction(BiFunction<Point, Integer, Boolean> endLandFunction) {
|
||||||
GeneratorOptions.endLandFunction = endLandFunction;
|
GeneratorOptions.endLandFunction = endLandFunction;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue