auracore/src/main/java/dev/tilera/auracore/Config.java

40 lines
2 KiB
Java
Raw Normal View History

2022-12-13 16:41:38 +01:00
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;
2023-01-21 22:58:54 +01:00
public static int newNodeRarity = 20;
2022-12-13 16:41:38 +01:00
public static boolean replaceSilverwood = true;
2023-01-05 12:14:11 +01:00
public static boolean knowAllAspects = true;
2023-01-06 17:48:28 +01:00
public static boolean replaceAspects = true;
public static boolean legacyAspects = false;
2023-01-21 22:58:54 +01:00
public static boolean generateEldritchRing = true;
public static boolean legacyCrucibleMechanics = true;
2022-12-13 16:41:38 +01:00
public static boolean noScanning() {
return knowAllAspects;
}
2022-12-13 16:41:38 +01:00
public static void load() {
config.load();
nodeRarity = config.get("worldgen", "nodeRarity", nodeRarity).getInt(nodeRarity);
specialNodeRarity = config.get("worldgen", "specialNodeRarity", specialNodeRarity).getInt(specialNodeRarity);
2023-01-21 22:58:54 +01:00
newNodeRarity = config.getInt("newNodeRarity", "worldgen", newNodeRarity, -1, Integer.MAX_VALUE, "Rarity of TC4 nodes generating instead of TC3 nodes (-1 to disable TC4 nodes)");
2022-12-13 16:41:38 +01:00
replaceSilverwood = config.getBoolean("replaceSilverwood", "worldgen", replaceSilverwood, "Replace Silverwood trees with TC3 Silverwood");
2023-01-05 12:14:11 +01:00
knowAllAspects = config.getBoolean("knowAllAspects", "research", knowAllAspects, "Know all Aspects from beginning");
2023-01-06 17:48:28 +01:00
replaceAspects = config.getBoolean("replaceAspects", "client", replaceAspects, "Replace some aspect textures");
legacyAspects = config.getBoolean("legacyAspects", "aspects", legacyAspects, "Use TC3 item aspects");
2023-01-21 22:58:54 +01:00
generateEldritchRing = config.getBoolean("generateEldritchRing", "worldgen", generateEldritchRing, "Generate Eldritch Ring structures");
legacyCrucibleMechanics = config.getBoolean("legacyCrucibleMechanics", "crucible", legacyCrucibleMechanics, "Use TC3 crucible mechanics");
2022-12-13 16:41:38 +01:00
config.save();
}
}