From 4908d5967c3dfeff5616c65144e701859b9e30a2 Mon Sep 17 00:00:00 2001 From: boubou19 Date: Tue, 27 Aug 2024 20:50:30 +0200 Subject: Config/gregtech.cfg (#2939) * first pass on config migration * second pass on config migration * removing bad configs * rename config classes and register them * move debug options to its own debug category * migrate pollution * finish migrating general config * removing useless config * finish GregTech.cfg port to GTNHLib * don't accidentally force panic mode in dev env * typo * defaults are now handled by the confg handler * remove dead config * force config save after defaults are being written * stop messing with the GregTech.cfg externally * removing comments * new underground fluid builder and porting default underground fluids to code * move config handlers of gregtech.cfg in their own package * process MachineStats.cfg * yeeted MaterialProperties.cfg * remove unused compat in GTNH * process OverpoweredStuff.cfg * process Other.cfg * ungregify some config variables * remove unused variables * fix Ids.cfg not being populated * delete duplicate printing of MTE IDs in GT5U clients * bump hodgepodge version to get mod phase timers * process Client.cfg * fix bad category naming * registering all the config handlers in gui * bump GTNHLib version * actually only registering client configs * use proper double arrays now * move GT ore mixes to patternbuilders * dead code * fix multifiles config not being handled properly * import class from NHCore * removing reflection * use enums for registration * yeet config for Asteroid dimensions * remove unused since 2015 enum entry * todo * rework oremix enums * imported dimension data in enums * convert old dirty predicate into proper one * hook gagreg onto the OreMixes enum * finally nuke worldgen.ore.mix config category! * hook gagreg small ores onto the SmallOres enum * imported dim values in enum * fix dirty work around in vm predicate * yeet unused classes * hook GT stones to GTStones enum * yeet all the remaining booleans in the worldgen category * port endasteroids category * port general category * deprecated * yeet unused bw compat * finish worldgen config migration * hardcode config into code * remove not generated config entry * remove Unification.cfg * fix build * migrate oreveins away from config * migrate small ores away from config * delete config parser * forgotten * fix EoH recipe crash in dev * fix GT NEI Ore Plugin config and csv paths * shade opencsv * rewrite csv generator * spotless apply --- .../common/config/opstuff/ConfigGeneral.java | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/main/java/gregtech/common/config/opstuff/ConfigGeneral.java (limited to 'src/main/java/gregtech/common/config/opstuff') diff --git a/src/main/java/gregtech/common/config/opstuff/ConfigGeneral.java b/src/main/java/gregtech/common/config/opstuff/ConfigGeneral.java new file mode 100644 index 0000000000..63cd2bc231 --- /dev/null +++ b/src/main/java/gregtech/common/config/opstuff/ConfigGeneral.java @@ -0,0 +1,48 @@ +package gregtech.common.config.opstuff; + +import com.gtnewhorizon.gtnhlib.config.Config; + +import gregtech.api.enums.Mods; + +@Config( + modid = Mods.Names.GREG_TECH, + category = "general", + configSubDirectory = "GregTech", + filename = "OverpoweredStuff") +public class ConfigGeneral { + + @Config.Comment("How much RF you get with 100 EU in input.") + @Config.DefaultInt(360) + @Config.RequiresMcRestart + public static int howMuchRFWith100EUInInput; + + @Config.Comment("How much EU you get with 100 RF in input.") + @Config.DefaultInt(100) + @Config.RequiresMcRestart + public static int howMuchEUWith100RFInInput; + + @Config.Comment("if true, enables RF -> EU conversion.") + @Config.DefaultBoolean(false) + @Config.RequiresMcRestart + public static boolean inputRF; + + @Config.Comment("if true, enables EU -> RF conversion.") + @Config.DefaultBoolean(true) + @Config.RequiresMcRestart + public static boolean outputRF; + + @Config.Comment("If true, machines will explode if RFs injected to a GT machine are above 600 * the max energy they can store.") + @Config.DefaultBoolean(false) + @Config.RequiresMcRestart + public static boolean RFExplosions; + + @Config.Comment("if true, ignores TinkerConstruct in ore registration.") + @Config.DefaultBoolean(true) + @Config.RequiresMcRestart + public static boolean ignoreTinkerConstruct; + + @Config.Comment("Controls the exposant used in the computation of the UUM required to replicate an element (uum = mass^replicatorExponent)") + @Config.DefaultFloat(1.2f) + @Config.RequiresMcRestart + public static float replicatorExponent; +} -- cgit