summaryrefslogtreecommitdiff
path: root/src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-07-16 13:11:34 +0300
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-07-16 13:11:34 +0300
commit3d7357fa29e92781778311d5cd9531bf63f586eb (patch)
tree9233d71e1e79d973e2a941f50d4cf4cbebc1c04d /src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java
parentfa76c133193de6a07844e83395581b3b26d3ea77 (diff)
Lots of fixes and improvements
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java')
-rw-r--r--src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java41
1 files changed, 33 insertions, 8 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java b/src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java
index e9040c9..4bfd893 100644
--- a/src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java
+++ b/src/main/java/darkknight/jewelrycraft/config/ConfigHandler.java
@@ -5,12 +5,23 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
public class ConfigHandler
{
- private static Configuration config;
- public static int ingotCoolingTime = 200;
- public static int ingotMeltingTime = 1500;
- public static int jewelryCraftingTime = 2000;
+ private static Configuration config;
+ public static int ingotCoolingTime = 200;
+ public static int ingotMeltingTime = 1500;
+ public static int jewelryCraftingTime = 2000;
- private static boolean isInitialized = false;
+ private static boolean isInitialized = false;
+ public static boolean generateVillageNetherstar = false;
+ public static boolean canFurnacesGenerateIngots = true;
+ public static int maxVillageJewelers = 1;
+ public static int jewelerWeight = 30;
+ public static int ingotChestMin = 1;
+ public static int ingotChestMax = 4;
+ public static int ingotChestMaxStack = 2;
+ public static int jewelsChestMin = 2;
+ public static int jewelsChestMax = 5;
+ public static int furnacesIngotStackMin = 2;
+ public static int furnacesIngotStackMax = 5;
public static void preInit(FMLPreInitializationEvent e)
{
@@ -20,9 +31,23 @@ public class ConfigHandler
config.load();
- ingotCoolingTime = config.get("timers", "Molder Ingot Cooling Time", ingotCoolingTime).getInt();
- ingotMeltingTime = config.get("timers", "Ingot Melting Time", ingotMeltingTime).getInt();
- jewelryCraftingTime = config.get("timers", "Jewelry Crafting Time", jewelryCraftingTime).getInt();
+ ingotCoolingTime = config.get("Timers", "Molder Ingot Cooling Time", ingotCoolingTime, "This sets the number of ticks you need to wait before the mold is cooled.").getInt();
+ ingotMeltingTime = config.get("Timers", "Ingot Melting Time", ingotMeltingTime, "This sets the number of ticks you need to wait before an ingot is completely smelted.").getInt();
+ jewelryCraftingTime = config.get("Timers", "Jewelry Crafting Time", jewelryCraftingTime, "This sets the number of ticks it takes for a jewel to be modified.").getInt();
+
+ generateVillageNetherstar = config.get("Village Generation", "Netherstar Generation", generateVillageNetherstar, "If set to true Nether Stars will be able to generate in Jewelers chests.").getBoolean(generateVillageNetherstar);
+ canFurnacesGenerateIngots = config.get("Village Generation", "Furnace Ingots Generation", canFurnacesGenerateIngots, "If set to true jewelers will generate ingots in furnaces.").getBoolean(canFurnacesGenerateIngots);
+
+ maxVillageJewelers = config.get("Village Generation", "Maximum Jewelers", maxVillageJewelers, "Sets how many jewelers can be in a village.").getInt();
+ jewelerWeight = config.get("Village Generation", "Jewelers Weight", jewelerWeight, "Chance of getting a jeweler in a village. The higher the value, the higher the chance.").getInt();
+
+ ingotChestMin = config.get("Village Generation", "Ingot Chest Min", ingotChestMin, "Minimum number of ingots that can be found in a chest from the Jeweler. (It's the chest from the back part)").getInt();
+ ingotChestMax = config.get("Village Generation", "Ingot Chest Max", ingotChestMax, "Maximum number of ingots that can be found in a chest from the Jeweler. (It's the chest from the back part)").getInt();
+ ingotChestMaxStack = config.get("Village Generation", "Ingot Chest Max Stack", ingotChestMaxStack, "Maximum number of the stack the ingots can be. For example: if set to 2 and ingots have a chance of generating, you have a chance of getting a stack of max 2 ingots in a chest.").getInt();
+ jewelsChestMin = config.get("Village Generation", "Jewelers Chest Min", jewelsChestMin, "Determines the minimum nuber of jewels/modifiers that can be generated in the front chests of a Jeweler.").getInt();
+ jewelsChestMax = config.get("Village Generation", "Jewelers Chest Max", jewelsChestMax, "Determines the maximum nuber of jewels/modifiers that can be generated in the front chests of a Jeweler.").getInt();
+ furnacesIngotStackMin = config.get("Village Generation", "Ingot Furnace Min", furnacesIngotStackMin, "Determines the minimum number of ingots that can generate in a furnace.").getInt();
+ furnacesIngotStackMax = config.get("Village Generation", "Ingot Furnace Max", furnacesIngotStackMax, "Determines the maximum number of ingots that can generate in a furnace.").getInt();
config.save();