@@ -19,71 +19,12 @@ public class CeleritasExtraGameOptions {
1919 private static final String CAT_DETAIL = "detail" ;
2020 private static final String CAT_RENDER = "render" ;
2121 private static final String CAT_EXTRA = "extra" ;
22-
23- /**
24- * Overlay corner positions for FPS/coordinate display
25- */
26- public enum OverlayCorner {
27- TOP_LEFT ("celeritasextra.option.overlay_corner.top_left" ),
28- TOP_RIGHT ("celeritasextra.option.overlay_corner.top_right" ),
29- BOTTOM_LEFT ("celeritasextra.option.overlay_corner.bottom_left" ),
30- BOTTOM_RIGHT ("celeritasextra.option.overlay_corner.bottom_right" );
31-
32- private final String translationKey ;
33-
34- OverlayCorner (String translationKey ) {
35- this .translationKey = translationKey ;
36- }
37-
38- public String getLocalizedName () {
39- return I18n .format (this .translationKey );
40- }
41- }
42-
43- /**
44- * Text contrast options for overlay readability
45- */
46- public enum TextContrast {
47- NONE ("celeritasextra.option.text_contrast.none" ),
48- BACKGROUND ("celeritasextra.option.text_contrast.background" ),
49- SHADOW ("celeritasextra.option.text_contrast.shadow" );
50-
51- private final String translationKey ;
52-
53- TextContrast (String translationKey ) {
54- this .translationKey = translationKey ;
55- }
56-
57- public String getLocalizedName () {
58- return I18n .format (this .translationKey );
59- }
60- }
61-
62- /**
63- * Fog type options for mod compatibility
64- */
65- public enum FogType {
66- DEFAULT ("celeritasextra.option.fog_type.default" ),
67- OFF ("celeritasextra.option.fog_type.off" );
68-
69- private final String translationKey ;
70-
71- FogType (String translationKey ) {
72- this .translationKey = translationKey ;
73- }
74-
75- public String getLocalizedName () {
76- return I18n .format (this .translationKey );
77- }
78- }
79-
80- private Configuration config ;
81-
8222 public final AnimationSettings animationSettings = new AnimationSettings ();
8323 public final ParticleSettings particleSettings = new ParticleSettings ();
8424 public final DetailSettings detailSettings = new DetailSettings ();
8525 public final RenderSettings renderSettings = new RenderSettings ();
8626 public final ExtraSettings extraSettings = new ExtraSettings ();
27+ private Configuration config ;
8728
8829 public static CeleritasExtraGameOptions load (File file ) {
8930 CeleritasExtraGameOptions options = new CeleritasExtraGameOptions ();
@@ -273,6 +214,63 @@ public void writeChanges() {
273214 config .save ();
274215 }
275216
217+ /**
218+ * Overlay corner positions for FPS/coordinate display
219+ */
220+ public enum OverlayCorner {
221+ TOP_LEFT ("celeritasextra.option.overlay_corner.top_left" ),
222+ TOP_RIGHT ("celeritasextra.option.overlay_corner.top_right" ),
223+ BOTTOM_LEFT ("celeritasextra.option.overlay_corner.bottom_left" ),
224+ BOTTOM_RIGHT ("celeritasextra.option.overlay_corner.bottom_right" );
225+
226+ private final String translationKey ;
227+
228+ OverlayCorner (String translationKey ) {
229+ this .translationKey = translationKey ;
230+ }
231+
232+ public String getLocalizedName () {
233+ return I18n .format (this .translationKey );
234+ }
235+ }
236+
237+ /**
238+ * Text contrast options for overlay readability
239+ */
240+ public enum TextContrast {
241+ NONE ("celeritasextra.option.text_contrast.none" ),
242+ BACKGROUND ("celeritasextra.option.text_contrast.background" ),
243+ SHADOW ("celeritasextra.option.text_contrast.shadow" );
244+
245+ private final String translationKey ;
246+
247+ TextContrast (String translationKey ) {
248+ this .translationKey = translationKey ;
249+ }
250+
251+ public String getLocalizedName () {
252+ return I18n .format (this .translationKey );
253+ }
254+ }
255+
256+ /**
257+ * Fog type options for mod compatibility
258+ */
259+ public enum FogType {
260+ DEFAULT ("celeritasextra.option.fog_type.default" ),
261+ OFF ("celeritasextra.option.fog_type.off" );
262+
263+ private final String translationKey ;
264+
265+ FogType (String translationKey ) {
266+ this .translationKey = translationKey ;
267+ }
268+
269+ public String getLocalizedName () {
270+ return I18n .format (this .translationKey );
271+ }
272+ }
273+
276274 // Settings classes
277275 public static class AnimationSettings {
278276 public boolean animation = true ;
@@ -327,23 +325,37 @@ public boolean isParticleEnabled(int particleId) {
327325 if (!particles ) return false ;
328326
329327 switch (particleId ) {
330- case 0 : case 1 : case 2 :
328+ case 0 :
329+ case 1 :
330+ case 2 :
331331 return explosion ;
332332 case 3 :
333333 return fireworks ;
334- case 4 : case 5 : case 6 : case 39 :
334+ case 4 :
335+ case 5 :
336+ case 6 :
337+ case 39 :
335338 return water ;
336- case 7 : case 8 :
339+ case 7 :
340+ case 8 :
337341 return suspended ;
338- case 9 : case 10 :
342+ case 9 :
343+ case 10 :
339344 return crit ;
340- case 11 : case 12 :
345+ case 11 :
346+ case 12 :
341347 return smoke ;
342- case 13 : case 14 : case 15 : case 16 : case 17 :
348+ case 13 :
349+ case 14 :
350+ case 15 :
351+ case 16 :
352+ case 17 :
343353 return spell ;
344- case 18 : case 19 :
354+ case 18 :
355+ case 19 :
345356 return drip ;
346- case 20 : case 21 :
357+ case 20 :
358+ case 21 :
347359 return villager ;
348360 case 22 :
349361 return townAura ;
@@ -353,13 +365,15 @@ public boolean isParticleEnabled(int particleId) {
353365 return portal ;
354366 case 25 :
355367 return enchantmentTable ;
356- case 26 : case 27 :
368+ case 26 :
369+ case 27 :
357370 return flame ;
358371 case 29 :
359372 return cloud ;
360373 case 30 :
361374 return redstone ;
362- case 31 : case 32 :
375+ case 31 :
376+ case 32 :
363377 return snowball ;
364378 case 33 :
365379 return slime ;
0 commit comments