mirror of
https://github.com/GTNewHorizons/DummyCore.git
synced 2026-11-12 00:17:40 +00:00
Conflicts: DummyCore/Core/CoreInitialiser.java DummyCore/Utils/ColoredLightHandler.java
36 lines
1022 B
Java
36 lines
1022 B
Java
package DummyCore.Utils;
|
|
|
|
import net.minecraftforge.common.config.Configuration;
|
|
|
|
public class DummyConfig implements IDummyConfig{
|
|
|
|
public int MultiItemUID;
|
|
public int MultiBlockUID;
|
|
private static int mainMenuID;
|
|
public boolean removeMissingTexturesErrors;
|
|
public static boolean enableNotifierLogging;
|
|
public static boolean shouldChangeImage;
|
|
public static Configuration cfg;
|
|
public void load(Configuration config)
|
|
{
|
|
cfg = config;
|
|
removeMissingTexturesErrors = config.getBoolean("removeMissingTexturesErrors", "GLOBAL", true, "");
|
|
enableNotifierLogging = config.getBoolean("enableNotifierLogging", "GLOBAL", true, "");
|
|
shouldChangeImage = config.getBoolean("shouldChangeImageInCreativeTabs", "GLOBAL", true, "");
|
|
mainMenuID = config.getInt("mainMenuID", "GLOBAL", 0,0,Integer.MAX_VALUE, "");
|
|
}
|
|
|
|
public static void setMainMenu(int i)
|
|
{
|
|
cfg.load();
|
|
cfg.get("GLOBAL", "mainMenuID", 0, "").set(i);
|
|
mainMenuID = i;
|
|
cfg.save();
|
|
}
|
|
|
|
public static int getMainMenu()
|
|
{
|
|
return mainMenuID;
|
|
}
|
|
}
|