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;
|
|
|
|
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;
|
2022-12-13 16:41:38 +01:00
|
|
|
|
2023-01-06 13:03:27 +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);
|
|
|
|
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");
|
2022-12-13 16:41:38 +01:00
|
|
|
config.save();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|