11package com .i5wear .hudmanager ;
22
3- import net .neoforged .fml .ModContainer ;
4- import net .neoforged .fml .common .Mod ;
5- import net .neoforged .fml .config .ModConfig ;
6- import net .neoforged .neoforge .client .gui .ConfigurationScreen ;
7- import net .neoforged .neoforge .client .gui .IConfigScreenFactory ;
83import net .neoforged .neoforge .common .ModConfigSpec ;
94
10- @ Mod (value = "hudmanager" )
115public class HudManager {
126
13- private static final ModConfigSpec .Builder BUILDER = new ModConfigSpec .Builder ();
7+ public static final ModConfigSpec .Builder BUILDER = new ModConfigSpec .Builder ();
148
159 public static ModConfigSpec .BooleanValue ActionBarShow = BUILDER .define ("ActionBar.show" , true );
1610 public static ModConfigSpec .IntValue ActionBarScale = BUILDER .defineInRange ("ActionBar.scale" , 100 , 0 , 200 );
@@ -62,13 +56,8 @@ public class HudManager {
6256 public static ModConfigSpec .IntValue StatusEffectOffsetX = BUILDER .defineInRange ("StatusEffect.offsetx" , 0 , -100 , 100 );
6357 public static ModConfigSpec .IntValue StatusEffectOffsetY = BUILDER .defineInRange ("StatusEffect.offsety" , 0 , -100 , 100 );
6458
65- private static final ModConfigSpec SPEC = BUILDER .build ();
59+ public static final ModConfigSpec SPEC = BUILDER .build ();
6660
6761 public static class Global { public static int SCALE = 100 ; }
6862
69- public HudManager (ModContainer instance ) {
70- instance .registerConfig (ModConfig .Type .CLIENT , HudManager .SPEC );
71- instance .registerExtensionPoint (IConfigScreenFactory .class , ConfigurationScreen ::new );
72- }
73-
7463}
0 commit comments