2727import com .falsepattern .lib .config .Config ;
2828import com .falsepattern .lib .config .ConfigurationManager ;
2929
30+ @ Config .Comment ("Toggles for all FalseTweaks modules" )
3031@ Config (modid = Tags .MOD_ID ,
3132 category = "00_modules" )
33+ @ Config .LangKey
3234@ Config .RequiresMcRestart
3335public class ModuleConfig {
3436 @ Config .Comment ({
3537 "Optimizes the way forge scans the classpath during launch." ,
3638 "Not compatible with some badly-written mods." ,
3739 "FPS impact: None, but makes startup a bit faster"
3840 })
41+ @ Config .LangKey
42+ @ Config .Name (value = "startupOptimizations" , migrations = "STARTUP_OPTIMIZATIONS_V2" )
3943 @ Config .DefaultBoolean (false )
40- public static boolean STARTUP_OPTIMIZATIONS_V2 ;
44+ public static boolean STARTUP_OPTIMIZATIONS ;
4145
4246 @ Config .Comment ({
4347 "Enable/Disable texture optimizations. This includes:" ,
4448 "- Multithreaded animated textures" ,
4549 "- Faster texture atlas packing during startup" ,
4650 "FPS impact: Reduced stuttering in heavily modded packs"
4751 })
52+ @ Config .LangKey
53+ @ Config .Name (value = "textureOptimizations" , migrations = "" )
4854 @ Config .DefaultBoolean (true )
4955 public static boolean TEXTURE_OPTIMIZATIONS ;
5056
@@ -53,6 +59,8 @@ public class ModuleConfig {
5359 "an experimental feature." ,
5460 "Also includes the 3D rails."
5561 })
62+ @ Config .LangKey ("config.falsetweaks.voxelizer" )
63+ @ Config .Name (value = "voxelizer" , migrations = "" )
5664 @ Config .DefaultBoolean (true )
5765 public static boolean VOXELIZER ;
5866
@@ -63,6 +71,8 @@ public class ModuleConfig {
6371 "property to false in the triangulator category." ,
6472 "FPS impact: Tiny performance decrease, but smooth lighting will look way better."
6573 })
74+ @ Config .LangKey ("config.falsetweaks.triangulator" )
75+ @ Config .Name (value = "triangulator" , migrations = "" )
6676 @ Config .DefaultBoolean (true )
6777 public static boolean TRIANGULATOR ;
6878
@@ -71,6 +81,8 @@ public class ModuleConfig {
7181 "Force-enables TRIANGULATOR." ,
7282 "FPS impact: A little bit less stuttering when moving around with a lot of stained glass-like blocks around"
7383 })
84+ @ Config .LangKey
85+ @ Config .Name (value = "bspSorting" , migrations = "" )
7486 @ Config .DefaultBoolean (true )
7587 public static boolean BSP_SORTING ;
7688
@@ -81,10 +93,14 @@ public class ModuleConfig {
8193 "(same things that chunks use) to minimize the amount of work done by the cpu for every single item." ,
8294 "FPS impact: Decent improvement with lots of items on ground"
8395 })
96+ @ Config .LangKey ("config.falsetweaks.item_render_lists" )
97+ @ Config .Name (value = "itemRenderLists" , migrations = "" )
8498 @ Config .DefaultBoolean (true )
8599 public static boolean ITEM_RENDER_LISTS ;
86100
87101 @ Config .Comment ("Disables the Realms button on the main menu." )
102+ @ Config .LangKey
103+ @ Config .Name (value = "noRealmsOnMenu" , migrations = "" )
88104 @ Config .DefaultBoolean (true )
89105 public static boolean NO_REALMS_ON_MENU ;
90106
@@ -93,6 +109,8 @@ public class ModuleConfig {
93109 "you can toggle said optimization here." ,
94110 "FPS impact: Tiny improvement near beacons"
95111 })
112+ @ Config .LangKey
113+ @ Config .Name (value = "beaconOptimization" , migrations = "" )
96114 @ Config .DefaultBoolean (true )
97115 public static boolean BEACON_OPTIMIZATION ;
98116
@@ -101,6 +119,8 @@ public class ModuleConfig {
101119 "actually BEHIND the transparent part. Sorting the tile entities before rendering fixes this bug." ,
102120 "FPS impact: Slight decrease"
103121 })
122+ @ Config .LangKey
123+ @ Config .Name (value = "tileEntityTransparencyFix" , migrations = "" )
104124 @ Config .DefaultBoolean (false )
105125 public static boolean TE_TRANSPARENCY_FIX ;
106126
@@ -110,17 +130,20 @@ public class ModuleConfig {
110130 "at the cost of far away geometry sometimes rendering on top of opaque geometry. (>100~ blocks)" ,
111131 "FPS impact: Unknown"
112132 })
133+ @ Config .LangKey ("config.falsetweaks.translucent_block_layers_fix" )
134+ @ Config .Name (value = "translucentBlockLayersFix" , migrations = "" )
113135 @ Config .DefaultBoolean (false )
114136 public static boolean BLOCK_LAYER_TRANSPARENCY_FIX ;
115137
116- @ Config .Comment ("Particle water transparency fix" )
138+ @ Config .Comment ("Fixes layering issues with particles always rendering behind water." )
139+ @ Config .LangKey
140+ @ Config .Name (value = "particleTransparencyFix" , migrations = "" )
117141 @ Config .DefaultBoolean (true )
118142 public static boolean PARTICLE_TRANSPARENCY_FIX ;
119143
120- @ Config .Comment ({
121- "3D particles (experimental)" ,
122- "FPS impact: Unknown"
123- })
144+ @ Config .Comment ("3D block breaking particles" )
145+ @ Config .LangKey
146+ @ Config .Name (value = "cubicParticles" , migrations = "" )
124147 @ Config .DefaultBoolean (false )
125148 public static boolean CUBIC_PARTICLES ;
126149
@@ -130,6 +153,8 @@ public class ModuleConfig {
130153 "2. Replaces the mipmap generation with a multithreaded system, which scales with the number of cores in your system." ,
131154 "FPS impact: none, but resource pack reload times (and startup time) are cut down by a lot"
132155 })
156+ @ Config .LangKey
157+ @ Config .Name (value = "mipmapFix" , migrations = "" )
133158 @ Config .DefaultBoolean (true )
134159 public static boolean MIPMAP_FIX ;
135160
@@ -138,6 +163,8 @@ public class ModuleConfig {
138163 "Also check the profiler config category!" ,
139164 "FPS impact: Slightly faster profiler"
140165 })
166+ @ Config .LangKey ("config.falsetweaks.profiler" )
167+ @ Config .Name (value = "advancedProfiler" , migrations = "" )
141168 @ Config .DefaultBoolean (true )
142169 public static boolean ADVANCED_PROFILER ;
143170
@@ -148,6 +175,8 @@ public class ModuleConfig {
148175 "COMPATIBLE WITH OPTIFINE AND SHADERS" ,
149176 "FPS impact: Significant FPS and world rendering speed gains. Even higher with Neodymium installed."
150177 })
178+ @ Config .LangKey ("config.falsetweaks.threading" )
179+ @ Config .Name (value = "threadedChunkUpdates" , migrations = "" )
151180 @ Config .DefaultBoolean (false )
152181 @ Config .RequiresMcRestart
153182 public static boolean THREADED_CHUNK_UPDATES ;
@@ -158,6 +187,8 @@ public class ModuleConfig {
158187 "Implicitly enabled when OptiFine is installed for compatibility." ,
159188 "See the dynamiclights config entry for more configs." ,
160189 })
190+ @ Config .LangKey ("config.falsetweaks.dynamic_lights" )
191+ @ Config .Name (value = "dynamicLights" , migrations = "" )
161192 @ Config .DefaultBoolean (true )
162193 @ Config .RequiresMcRestart
163194 public static boolean DYNAMIC_LIGHTS ;
@@ -166,16 +197,22 @@ public class ModuleConfig {
166197 "Replaces the renderer chunk cache with a more efficient version." ,
167198 "FPS impact: Faster chunk rendering"
168199 })
200+ @ Config .LangKey
201+ @ Config .Name (value = "fasterChunkCache" , migrations = "" )
169202 @ Config .DefaultBoolean (true )
170203 @ Config .RequiresMcRestart
171204 public static boolean FASTER_CHUNK_CACHE ;
172205
173206 @ Config .Comment ("Wraps block renderer code and tile entity renderer code in extra opengl state guards." )
207+ @ Config .LangKey
208+ @ Config .Name (value = "renderingSafety" , migrations = "" )
174209 @ Config .DefaultBoolean (true )
175210 @ Config .RequiresMcRestart
176211 public static boolean RENDERING_SAFETY ;
177212
178213 @ Config .Comment ("Gets rid of that obnoxious burst of minecart sounds when joining a world." )
214+ @ Config .LangKey
215+ @ Config .Name (value = "minecartEarBlastFix" , migrations = "" )
179216 @ Config .DefaultBoolean (true )
180217 public static boolean MINECART_EAR_BLAST_FIX ;
181218
@@ -184,6 +221,8 @@ public class ModuleConfig {
184221 "Also fixes the weird white lines that some OptiFine shaderpacks get with huge render distances." ,
185222 "FPS impact: Negligible gain"
186223 })
224+ @ Config .LangKey
225+ @ Config .Name (value = "skyMeshOptimization" , migrations = "" )
187226 @ Config .DefaultBoolean (true )
188227 @ Config .RequiresMcRestart
189228 public static boolean SKY_MESH_OPTIMIZATION ;
@@ -192,11 +231,15 @@ public class ModuleConfig {
192231 "Fixes an occasional crash that happens when trying to render a GUI block overlay (more common with optifine shaders enabled.)" ,
193232 "FPS impact: Zero"
194233 })
234+ @ Config .LangKey
235+ @ Config .Name (value = "overlayCrashFix" , migrations = "" )
195236 @ Config .DefaultBoolean (true )
196237 @ Config .RequiresMcRestart
197238 public static boolean OVERLAY_CRASH_FIX ;
198239
199240 @ Config .Comment ("Suppresses logspam coming from optifine's shader system. Makes shaderpack reloads faster." )
241+ @ Config .LangKey ("config.falsetweaks.optifine_log_spam_fixes" )
242+ @ Config .Name (value = "optifineLogSpamFixes" , migrations = "" )
200243 @ Config .DefaultBoolean (true )
201244 @ Config .RequiresMcRestart
202245 public static boolean OPTIFINE_LOGSPAM_FIX ;
0 commit comments