summaryrefslogtreecommitdiff
path: root/src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2015-06-15 18:33:17 +0100
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2015-06-15 18:33:17 +0100
commit3fc5fd13960bd6e2031923e6a5c1ed6c5c8fcb08 (patch)
tree1ef4bb10dafb21a175c6ca2bae96f875681de951 /src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java
parentb56652854253bfa502d0f21afb7d47ca77ba8266 (diff)
Added config options for world gen
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java')
-rw-r--r--src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java b/src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java
index cd688b7..1a281bc 100644
--- a/src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java
+++ b/src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java
@@ -11,7 +11,7 @@ public class ConfigHandler
{
public static Configuration config;
public static final ConfigHandler INSTANCE = new ConfigHandler();
- public static final String[] categories = {"Timers", "Village Generation", "Misc"};
+ public static final String[] categories = {"Timers", "Village Generation", "Misc", "World Generation"};
public static int INGOT_COOLING_TIME;
public static int INGOT_MELTING_TIME;
@@ -44,6 +44,15 @@ public class ConfigHandler
public static boolean CURSE_VAMPIRE_HUNGER = true;
public static boolean CURSE_HUMBLE_BUNDLE = true;
+ public static boolean ENABLE_WORLD_GEN = true;
+ public static boolean ORE_GEN = true;
+ public static boolean CRYSTAL_GEN = true;
+ public static boolean STRUCTURE_1_GEN = true;
+ public static boolean STRUCTURE_2_GEN = true;
+ public static boolean STRUCTURE_3_GEN = true;
+ public static boolean STRUCTURE_4_GEN = true;
+ public static boolean STRUCTURE_5_GEN = true;
+
public void loadConfig(FMLPreInitializationEvent event)
{
config = new Configuration(event.getSuggestedConfigurationFile(),true);
@@ -73,6 +82,15 @@ public class ConfigHandler
FURNACE_MAX_INGOT_STACK = config.getInt("Ingot Furnace Max", categories[1], 5, 0, Integer.MAX_VALUE, "Determines the maximum number of ingots that can generate in a furnace.");
CRYSTAL_GLOW = config.getBoolean("Crystal Glow", categories[2], false, "If true, then crystal will slowly glow (can cause lag)");
+
+ ENABLE_WORLD_GEN = config.getBoolean("World Generation", categories[3], true, "If false, nothing will generate (this includes ore)");
+ ORE_GEN = config.getBoolean("Ore Generation", categories[3], true, "If false, ores won't generate");
+ CRYSTAL_GEN = config.getBoolean("Crystal Generation", categories[3], true, "If false, crystals won't generate");
+ STRUCTURE_1_GEN = config.getBoolean("Structure 1 Generation", categories[3], true, "If false, structure no.1 won't generate");
+ STRUCTURE_2_GEN = config.getBoolean("Structure 2 Generation", categories[3], true, "If false, structure no.2 won't generate");
+ STRUCTURE_3_GEN = config.getBoolean("Structure 3 Generation", categories[3], true, "If false, structure no.3 won't generate");
+ STRUCTURE_4_GEN = config.getBoolean("Structure 4 Generation", categories[3], true, "If false, structure no.4 won't generate");
+ STRUCTURE_5_GEN = config.getBoolean("Structure 5 Generation", categories[3], true, "If false, structure no.5 won't generate");
// CURSES_ENABLED = config.getBoolean("Curses", categories[3], true, "If set to false curses will be deactivated.");
// CURSE_ROTTEN_HEART = config.getBoolean("Rotten Heart", categories[3], true, "If set to false this curse will be deactivated.");