More generator options

This commit is contained in:
paulevsGitch 2021-01-05 12:00:27 +03:00
parent 061dbac03a
commit 02d43cb670
5 changed files with 82 additions and 1 deletions

View file

@ -5,10 +5,16 @@ import ru.betterend.config.Configs;
public class GeneratorOptions {
private static int biomeSizeLand;
private static int biomeSizeVoid;
private static boolean hasPortal;
private static boolean hasPillars;
private static boolean hasDragonFights;
public static void init() {
biomeSizeLand = Configs.GENERATOR_CONFIG.getIntRoot("biomeSizeLand", 256);
biomeSizeVoid = Configs.GENERATOR_CONFIG.getIntRoot("biomeSizeVoid", 256);
hasPortal = Configs.GENERATOR_CONFIG.getBooleanRoot("hasPortal", true);
hasPillars = Configs.GENERATOR_CONFIG.getBooleanRoot("hasPillars", true);
hasDragonFights = Configs.GENERATOR_CONFIG.getBooleanRoot("hasDragonFights", true);
}
public static int getBiomeSizeLand() {
@ -18,4 +24,16 @@ public class GeneratorOptions {
public static int getBiomeSizeVoid() {
return biomeSizeVoid;
}
public static boolean hasPortal() {
return hasPortal;
}
public static boolean hasPillars() {
return hasPillars;
}
public static boolean hasDragonFights() {
return hasDragonFights;
}
}