auracore/src/main/java/dev/tilera/auracore/Config.java
Timo Ley 911352f2eb
All checks were successful
continuous-integration/drone/push Build is passing
feat: improve aspects
2023-01-06 17:48:28 +01:00

34 lines
1.4 KiB
Java

package dev.tilera.auracore;
import java.io.File;
import cpw.mods.fml.common.Loader;
import net.minecraftforge.common.config.Configuration;
public class Config {
private static Configuration config = new Configuration(new File(Loader.instance().getConfigDir(), "AuraCore.cfg"));
public static int nodeRarity = 23;
public static int specialNodeRarity = 75;
public static boolean replaceSilverwood = true;
public static boolean knowAllAspects = true;
public static boolean replaceAspects = true;
public static boolean legacyAspects = false;
public static boolean noScanning() {
return knowAllAspects;
}
public static void load() {
config.load();
nodeRarity = config.get("worldgen", "nodeRarity", nodeRarity).getInt(nodeRarity);
specialNodeRarity = config.get("worldgen", "specialNodeRarity", specialNodeRarity).getInt(specialNodeRarity);
replaceSilverwood = config.getBoolean("replaceSilverwood", "worldgen", replaceSilverwood, "Replace Silverwood trees with TC3 Silverwood");
knowAllAspects = config.getBoolean("knowAllAspects", "research", knowAllAspects, "Know all Aspects from beginning");
replaceAspects = config.getBoolean("replaceAspects", "client", replaceAspects, "Replace some aspect textures");
legacyAspects = config.getBoolean("legacyAspects", "aspects", legacyAspects, "Use TC3 item aspects");
config.save();
}
}