1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
package fyresmodjam;
import net.minecraftforge.common.config.Configuration;
public class CommonProxy {
public void register() {
}
public void sendPlayerMessage(String message) {
}
public void loadFromConfig(Configuration config) {
ModjamMod.pillarGlow = config
.get(Configuration.CATEGORY_GENERAL,
"pillar_glow",
ModjamMod.pillarGlow)
.getBoolean(ModjamMod.pillarGlow);
ModjamMod.pillarGenChance = config
.get(Configuration.CATEGORY_GENERAL,
"pillar_gen_difficulty",
ModjamMod.pillarGenChance)
.getInt();
ModjamMod.maxPillarsPerChunk = config.get(
Configuration.CATEGORY_GENERAL,
"max_pillars_per_chunk",
ModjamMod.maxPillarsPerChunk).getInt();
ModjamMod.towerGenChance = config
.get(Configuration.CATEGORY_GENERAL,
"tower_gen_difficulty",
ModjamMod.towerGenChance)
.getInt();
ModjamMod.trapGenChance = config
.get(Configuration.CATEGORY_GENERAL,
"trap_gen_difficulty",
ModjamMod.trapGenChance)
.getInt();
ModjamMod.mushroomReplaceChance = config.get(
Configuration.CATEGORY_GENERAL,
"mushroom_replace_difficulty",
ModjamMod.mushroomReplaceChance).getInt();
ModjamMod.spawnTraps = !(config
.get(Configuration.CATEGORY_GENERAL,
"disable_traps",
!ModjamMod.spawnTraps)
.getBoolean(!ModjamMod.spawnTraps));
ModjamMod.spawnTowers = config
.get(Configuration.CATEGORY_GENERAL,
"spawn_towers",
ModjamMod.spawnTowers)
.getBoolean(ModjamMod.spawnTowers);
ModjamMod.spawnRandomPillars = config.get(
Configuration.CATEGORY_GENERAL,
"spawn_random_pillars",
ModjamMod.spawnRandomPillars)
.getBoolean(ModjamMod.spawnRandomPillars);
ModjamMod.disableDisadvantages = config.get(
Configuration.CATEGORY_GENERAL,
"disable_disadvantages",
ModjamMod.disableDisadvantages)
.getBoolean(ModjamMod.disableDisadvantages);
ModjamMod.versionChecking = config
.get(Configuration.CATEGORY_GENERAL,
"version_checking",
ModjamMod.versionChecking)
.getBoolean(ModjamMod.versionChecking);
ModjamMod.showAllPillarsInCreative = config.get(
Configuration.CATEGORY_GENERAL,
"show_all_pillars_in_creative",
ModjamMod.showAllPillarsInCreative)
.getBoolean(ModjamMod.showAllPillarsInCreative);
ModjamMod.enableMobKillStats = config.get(
Configuration.CATEGORY_GENERAL,
"enable_mob_kill_stats",
ModjamMod.enableMobKillStats)
.getBoolean(ModjamMod.enableMobKillStats);
ModjamMod.enableWeaponKillStats = config.get(
Configuration.CATEGORY_GENERAL,
"enable_weapon_kill_stats",
ModjamMod.enableWeaponKillStats)
.getBoolean(ModjamMod.enableWeaponKillStats);
ModjamMod.enableCraftingStats = config.get(
Configuration.CATEGORY_GENERAL,
"enable_crafting_stats",
ModjamMod.enableCraftingStats)
.getBoolean(ModjamMod.enableCraftingStats);
ModjamMod.trapsBelowGroundOnly = config.get(
Configuration.CATEGORY_GENERAL,
"traps_below_ground_only",
ModjamMod.trapsBelowGroundOnly)
.getBoolean(ModjamMod.trapsBelowGroundOnly);
}
}
|