Files
Gadomancy/src/main/java/makeo/gadomancy/common/data/ModConfig.java
T

76 lines
4.2 KiB
Java

package makeo.gadomancy.common.data;
import net.minecraftforge.common.config.Configuration;
import java.io.File;
/**
* This class is part of the Gadomancy Mod
* Gadomancy is Open Source and distributed under the
* GNU LESSER GENERAL PUBLIC LICENSE
* for more read the LICENSE file
*
* Created by makeo @ 15.09.2015 18:25
*/
public class ModConfig {
private static Configuration config;
@Sync
public static int entityNoClipItemDatawatcherMasterId = 19;
@Sync
public static int entityNoClipItemDatawatcherFixedId = 20;
@Sync
public static int entityAuraCoreDatawatcherAspectsId = 21;
@Sync
public static int entityAuraCoreDatawatcherCoordId = 22;
@Sync
public static int entityAuraCoreDatawatcherTickId = 23;
@Sync
public static int golemDatawatcherId = 29;
@Sync
public static int dimOuterId = -73;
public static boolean doLightCalculations = true;
public static int maxMazeCount = -1;
public static int renderParticleDistance = 100;
public static boolean enableAdditionalNodeTypes;
//Skyblock stuff
public static boolean ancientStoneRecipes = false;
private ModConfig() {}
public static void init(File file) {
config = new Configuration(file);
config.load();
loadFromConfig();
config.save();
}
private static void loadFromConfig() {
entityNoClipItemDatawatcherMasterId = config.getInt("itemNoClipDatawatcherMasterId", "entities", 19, 0, 31, "Do not edit unless you know what are you doing! - Datawatcher ID of the Master-Coordinates for EntityNoClipItem");
entityNoClipItemDatawatcherFixedId = config.getInt("itemNoClipDatawatcherFixId", "entities", 20, 0, 31, "Do not edit unless you know what are you doing! - Datawatcher ID of the Fixed-Coordinates for EntityNoClipItem");
entityAuraCoreDatawatcherAspectsId = config.getInt("auraCoreDatawatcherAuraId", "entities", 21, 0, 31, "Do not edit unless you know what are you doing! - Datawatcher ID of the Auracore's current aspects");
entityAuraCoreDatawatcherCoordId = config.getInt("auraCoreDatawatcherCoordId", "entities", 22, 0, 31, "Do not edit unless you know what are you doing! - Datawatcher ID of the Auracore's starting crystal cluster coords");
entityAuraCoreDatawatcherTickId = config.getInt("auraCoreDatawatcherTickId", "entities", 23, 0, 31, "Do not edit unless you know what are you doing! - Datawatcher ID of the Auracore's interal effect tick to keep the core synced");
golemDatawatcherId = config.getInt("datawatcherId", "golem", 29, 0, 31, "Do not edit unless you know what are you doing!");
dimOuterId = config.getInt("dimOuterId", "dimension", -73, Integer.MIN_VALUE, Integer.MAX_VALUE, "Dimension Id for the eldrich mazes accessed via Node Manipulator");
doLightCalculations = config.getBoolean("calculateEldritchLight", "dimension", true, "TRUE = Calculating Light values for the Gadomancy-Eldritch Mazes; FALSE = No calculation, but some Light Bugs - Calculating the Light takes ~2 seconds -> Can be measured when trying to enter the eldritch mazed via Gadomancy Eldritch portal.");
maxMazeCount = config.getInt("maxMazeCount", "dimension", -1, -1, Integer.MAX_VALUE, "Defines how many Eldritch mazes may exist at the same time using the Gadomancy Eldritch ritual. (-1 = infinite) Note that 1 maze = 1 player; Once the player finishes the maze, the maze closes itself and teleports the player out.");
ancientStoneRecipes = config.getBoolean("ancientStoneRecipes", "skyblock", false, "TRUE = Adds recipes for Ancient Stone and Ancient Stone Pedestal (This may be usefull for severs and skyblock packs to craft the Node Manipulator and get more primodial pearls). You have to change this client- and server-side!");
renderParticleDistance = config.getInt("particleRenderDistance", "general", 100, 5, 1000, "Defines, how close a player has to be towards the particle origin to see the particles created by it.");
enableAdditionalNodeTypes = config.getBoolean("disableAdditionalNodeTypes", "general", true, "Enables our custom node types. This might solve some compatibility issues (e.g. WitchingGadgets). You have to change this client- and server-side!");
}
}