forked from Circulate233/RandomComplement
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRCConfig.java
More file actions
211 lines (176 loc) · 8.18 KB
/
Copy pathRCConfig.java
File metadata and controls
211 lines (176 loc) · 8.18 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
package com.circulation.random_complement;
import com.circulation.random_complement.common.network.SyncConfig;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraftforge.common.config.Config;
import net.minecraftforge.common.config.ConfigManager;
import net.minecraftforge.fml.client.event.ConfigChangedEvent;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.PlayerEvent;
import net.minecraftforge.fml.server.FMLServerHandler;
import static com.circulation.random_complement.RandomComplement.NET_CHANNEL;
@Config(modid = RandomComplement.MOD_ID)
@Mod.EventBusSubscriber(modid = RandomComplement.MOD_ID)
public class RCConfig {
@Config.Name("AE2")
public static final ae2 AE2 = new ae2();
@Config.Name("IC2")
public static final IC2 IC2 = new IC2();
@Config.Name("LazyAE")
public static final LazyAE LazyAE = new LazyAE();
@Config.Name("TE5")
public static final TE5 TE5 = new TE5();
@Config.Name("FTBU")
public static final FTBU FTBU = new FTBU();
@Config.Name("TF5")
public static final TF5 TF5 = new TF5();
@Config.Name("Botania")
public static final Botania Botania = new Botania();
@Config.Name("COFHCOHE")
public static final COFHCORE COFHCORE = new COFHCORE();
@Config.Name("NEE")
public static final NEE NEE = new NEE();
@Config.Comment({"Enable additional item information prompts"})
@Config.Name("ExTooltip")
public static boolean ExTooltip = true;
@SubscribeEvent
public static void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
if (event.getModID().equals(RandomComplement.MOD_ID)) {
ConfigManager.sync(RandomComplement.MOD_ID, Config.Type.INSTANCE);
if (FMLCommonHandler.instance().getSide().isServer()) {
for (EntityPlayerMP player : FMLServerHandler.instance().getServer().getPlayerList().getPlayers()) {
RandomComplement.NET_CHANNEL.sendTo(new SyncConfig(), player);
}
}
}
}
@SubscribeEvent
public static void onPlayerJoin(PlayerEvent.PlayerLoggedInEvent event) {
if (event.player instanceof EntityPlayerMP mp) {
NET_CHANNEL.sendTo(new SyncConfig(), mp);
}
}
public static class NEE {
@Config.Comment({"Whether to enable NEE compatibility for ae2exttable."})
@Config.Name("ae2e")
public boolean ae2e = true;
}
public static class ae2 {
@Config.Comment({"Enable the whole AE ecosystem integration"})
@Config.Name("Enable")
@Config.RequiresMcRestart
public boolean Enable = true;
@Config.Comment({"Disable the Build permission check for AE2's security station"})
@Config.Name("SecurityCache")
public boolean SecurityCache = true;
@Config.Comment({"Sets the texture index used for the crafting item slot"})
@Config.Name("CraftingSlotTextureIndex")
@Config.RangeInt(min = 0, max = 6)
public int craftingSlotTextureIndex = 1;
@Config.Comment({"Make the grid always think it's full of energy"})
@Config.Name("debugEnergy")
public boolean debugEnergy = false;
@Config.Comment({
"Use the new Patten Terminal Gui",
"Closing will cause all patterns created while enabled to become invalid."
})
@Config.Name("newPattenGui")
public boolean newPattenGui = true;
@Config.Comment({"Enable miss craft feature"})
@Config.Name("enableMissCraft")
public boolean enableMissCraft = true;
@Config.Comment({
"Allow multiple pattern to synthesize the same product",
"May have potential performance implications; consider disabling if not needed."
})
@Config.Name("enableBranchCraft")
public boolean enableBranchCraft = true;
@Config.Comment({"Drag item from JEI into the search box to automatically enter the name"})
@Config.Name("dragJeiItemToSearchBox")
public boolean dragJeiItemToSearchBox = true;
}
public static class IC2 {
@Config.Comment({"The increased energy consumption caused by each Overclocker Upgrade"})
@Config.Name("overclockerEnergy")
@Config.RequiresMcRestart
public double overclockerEnergy = 1.6;
@Config.Comment({"The reduced processing time effected by each Overclocker Upgrade"})
@Config.Name("overclockerTime")
@Config.RequiresMcRestart
public double overclockerTime = 0.7;
@Config.Comment({"The additional energy storage provided by each Energy Storage Upgrade"})
@Config.Name("energyStorageEnergy")
@Config.RequiresMcRestart
public int energyStorageEnergy = 10000;
}
public static class LazyAE {
@Config.Comment({"Fixes related to the lazy ae feature may occasionally introduce errors; disabling it can prevent such issues."})
@Config.Name("EnableRepair")
@Config.RequiresMcRestart
public boolean EnableRepair = true;
}
public static class TE5 {
@Config.Comment({"Prevent the Thermal Expansion Cyclic Assembler from operating when the output slot contains items to avoid potential bugs"})
@Config.Name("SequentialFabricatorMixin")
@Config.RequiresMcRestart
public boolean SequentialFabricatorMixin = true;
@Config.Comment({"Whether to enable energy consumption boost, just like the original upgrade state"})
@Config.Name("IncreasedEnergyConsumption")
@Config.RequiresMcRestart
public boolean IncreasedEnergyConsumption = false;
@Config.Comment({"The maximum chance of modifying an item to be reused is 100"})
@Config.Name("SecondaryProbability")
@Config.RequiresMcRestart
public boolean ReuseItemChance = true;
@Config.Comment({"Set the efficiency of the Fuel Catalyzer, which defaults to 15"})
@Config.Name("FuelCatalyzer")
@Config.RequiresMcRestart
public int FuelCatalyzer = 15;
@Config.Comment({"Whether to enable energy consumption boost, just like the original upgrade state"})
@Config.Name("FuelCatalyzerQuantityChanges")
@Config.RequiresMcRestart
public boolean FuelCatalyzerQuantityChanges = true;
}
public static class FTBU {
@Config.Comment({"Change the name of the nbtedit command of FTB"})
@Config.Name("ModifyCmdEditNBT")
@Config.RequiresMcRestart
public boolean ModifyCmdEditNBT = false;
}
public static class TF5 {
@Config.Comment({"When the offhand has a red map and the player is crouching, cancel the clear setting"})
@Config.Name("RedDiagramOfTheDeputy")
@Config.RequiresMcRestart
public boolean RedDiagramOfTheDeputy = true;
}
public static class Botania {
@Config.Comment({"Fix some bugs. If there is a problem as a result, it should be closed"})
@Config.Name("BugFix")
@Config.RequiresMcRestart
public boolean BugFix = true;
@Config.Comment({"Allow flor geradora to directly link to the mana pool"})
@Config.Name("FlowerLinkPool")
@Config.RequiresMcRestart
public boolean FlowerLinkPool = false;
@Config.Comment({"If false, Spark Support will not take effect"})
@Config.Name("SparkSupport")
@Config.RequiresMcRestart
public boolean SparkSupport = false;
@Config.Comment({"Allow the use of sparks on Runic Altar"})
@Config.Name("RuneAltarSparkSupport")
@Config.RequiresMcRestart
public boolean RuneAltarSparkSupport = false;
@Config.Comment({"Allow the use of sparks on Botanical Brewery"})
@Config.Name("BrewerySparkSupport")
@Config.RequiresMcRestart
public boolean BrewerySparkSupport = false;
}
public static class COFHCORE {
@Config.Comment({"Modify the number of upgrades that can be placed in slots"})
@Config.Name("SocketLimitModified")
@Config.RequiresMcRestart
@Config.RangeInt(min = 1, max = 64)
public int SocketLimitModified = 1;
}
}