99import mekanism .common .config .value .CachedLongValue ;
1010import net .minecraft .SharedConstants ;
1111import net .minecraft .world .entity .ai .attributes .Attributes ;
12- import net .minecraft .world .item .ArmorItem ;
13- import net .minecraft .world .item .ArmorMaterials ;
1412import net .neoforged .fml .config .ModConfig .Type ;
1513import net .neoforged .neoforge .common .ModConfigSpec ;
1614import net .neoforged .neoforge .fluids .FluidType ;
@@ -22,16 +20,15 @@ public class GearConfig extends BaseMekanismConfig {
2220 private static final String ENERGY_TABLET_CATEGORY = "energy_tablet" ;
2321 private static final String GAUGE_DROPPER_CATEGORY = "gauge_dropper" ;
2422 private static final String FLAMETHROWER_CATEGORY = "flamethrower" ;
25- private static final String FREE_RUNNER_CATEGORY = "free_runner" ;
26- private static final String ARMORED_SUBCATEGORY = "armored" ;
27- private static final String JETPACK_CATEGORY = "jetpack" ;
23+ public static final String FREE_RUNNER_CATEGORY = "free_runner" ;
24+ public static final String JETPACK_CATEGORY = "jetpack" ;
2825 private static final String NETWORK_READER_CATEGORY = "network_reader" ;
2926 private static final String PORTABLE_TELEPORTER_CATEGORY = "portable_teleporter" ;
3027 private static final String SCUBA_TANK_CATEGORY = "scuba_tank" ;
3128 private static final String SEISMIC_READER_CATEGORY = "seismic_reader" ;
3229 private static final String CANTEEN_CATEGORY = "canteen" ;
3330 private static final String MEKATOOL_CATEGORY = "mekatool" ;
34- private static final String MEKASUIT_CATEGORY = "mekasuit" ;
31+ public static final String MEKASUIT_CATEGORY = "mekasuit" ;
3532 private static final String MEKASUIT_DAMAGE_CATEGORY = "damage_absorption" ;
3633
3734 private final ModConfigSpec configSpec ;
@@ -69,17 +66,9 @@ public class GearConfig extends BaseMekanismConfig {
6966 public final CachedFloatValue freeRunnerFallDamageRatio ;
7067 public final CachedFloatingLongValue freeRunnerMaxEnergy ;
7168 public final CachedFloatingLongValue freeRunnerChargeRate ;
72- //Armored Free Runner
73- public final CachedIntValue armoredFreeRunnerArmor ;
74- public final CachedFloatValue armoredFreeRunnerToughness ;
75- public final CachedFloatValue armoredFreeRunnerKnockbackResistance ;
7669 //Jetpack
7770 public final CachedLongValue jetpackMaxGas ;
7871 public final CachedLongValue jetpackFillRate ;
79- //Armored Jetpack
80- public final CachedIntValue armoredJetpackArmor ;
81- public final CachedFloatValue armoredJetpackToughness ;
82- public final CachedFloatValue armoredJetpackKnockbackResistance ;
8372 //Portable Teleporter
8473 public final CachedFloatingLongValue portableTeleporterMaxEnergy ;
8574 public final CachedFloatingLongValue portableTeleporterChargeRate ;
@@ -136,12 +125,7 @@ public class GearConfig extends BaseMekanismConfig {
136125 public final CachedIntValue mekaSuitNutritionalTransferRate ;
137126 public final CachedLongValue mekaSuitJetpackMaxStorage ;
138127 public final CachedLongValue mekaSuitJetpackTransferRate ;
139- public final CachedIntValue mekaSuitHelmetArmor ;
140- public final CachedIntValue mekaSuitBodyArmorArmor ;
141- public final CachedIntValue mekaSuitPantsArmor ;
142- public final CachedIntValue mekaSuitBootsArmor ;
143- public final CachedFloatValue mekaSuitToughness ;
144- public final CachedFloatValue mekaSuitKnockbackResistance ;
128+
145129 public final CachedFloatValue mekaSuitFallDamageRatio ;
146130 public final CachedFloatValue mekaSuitMagicDamageRatio ;
147131 public final CachedFloatValue mekaSuitUnspecifiedDamageRatio ;
@@ -218,28 +202,14 @@ public class GearConfig extends BaseMekanismConfig {
218202 "maxEnergy" , FloatingLong .createConst (64_000 ));
219203 freeRunnerChargeRate = CachedFloatingLongValue .define (this , builder , "Amount (joules) of energy the Free Runners can accept per tick." ,
220204 "chargeRate" , FloatingLong .createConst (320 ));
221- builder .comment ("Armored Free Runner Settings" ).push (ARMORED_SUBCATEGORY );
222- armoredFreeRunnerArmor = CachedIntValue .wrap (this , builder .comment ("Armor value of the Armored Free Runners" )
223- .defineInRange ("armor" , 3 , 0 , Integer .MAX_VALUE ));
224- armoredFreeRunnerToughness = CachedFloatValue .wrap (this , builder .comment ("Toughness value of the Armored Free Runners." )
225- .defineInRange ("toughness" , 2.0 , 0 , Float .MAX_VALUE ));
226- armoredFreeRunnerKnockbackResistance = CachedFloatValue .wrap (this , builder .comment ("Knockback resistance value of the Armored Free Runners." )
227- .defineInRange ("knockbackResistance" , 0.0 , 0 , Float .MAX_VALUE ));
228- builder .pop (2 );
205+ builder .pop ();
229206
230207 builder .comment ("Jetpack Settings" ).push (JETPACK_CATEGORY );
231208 jetpackMaxGas = CachedLongValue .wrap (this , builder .comment ("Jetpack Gas Tank capacity in mB." )
232209 .defineInRange ("maxGas" , 24_000 , 1 , Long .MAX_VALUE ));
233210 jetpackFillRate = CachedLongValue .wrap (this , builder .comment ("Amount of hydrogen the Jetpack can accept per tick." )
234211 .defineInRange ("fillRate" , 16 , 1 , Long .MAX_VALUE ));
235- builder .comment ("Armored Jetpack Settings" ).push (ARMORED_SUBCATEGORY );
236- armoredJetpackArmor = CachedIntValue .wrap (this , builder .comment ("Armor value of the Armored Jetpack." )
237- .defineInRange ("armor" , 8 , 0 , Integer .MAX_VALUE ));
238- armoredJetpackToughness = CachedFloatValue .wrap (this , builder .comment ("Toughness value of the Armored Jetpack." )
239- .defineInRange ("toughness" , 2.0 , 0 , Float .MAX_VALUE ));
240- armoredJetpackKnockbackResistance = CachedFloatValue .wrap (this , builder .comment ("Knockback resistance value of the Armored Jetpack." )
241- .defineInRange ("knockbackResistance" , 0.0 , 0 , Float .MAX_VALUE ));
242- builder .pop (2 );
212+ builder .pop ();
243213
244214 builder .comment ("Network Reader Settings" ).push (NETWORK_READER_CATEGORY );
245215 networkReaderMaxEnergy = CachedFloatingLongValue .define (this , builder , "Maximum amount (joules) of energy the Network Reader can contain." ,
@@ -358,18 +328,6 @@ public class GearConfig extends BaseMekanismConfig {
358328 .defineInRange ("jetpackMaxStorage" , 24_000 , 1 , Long .MAX_VALUE ));
359329 mekaSuitJetpackTransferRate = CachedLongValue .wrap (this , builder .comment ("Rate at which Hydrogen can be transferred into the jetpack unit." )
360330 .defineInRange ("jetpackTransferRate" , 256 , 1 , Long .MAX_VALUE ));
361- mekaSuitHelmetArmor = CachedIntValue .wrap (this , builder .comment ("Armor value of MekaSuit Helmets." )
362- .defineInRange ("helmetArmor" , ArmorMaterials .NETHERITE .value ().defense ().get (ArmorItem .Type .HELMET ), 0 , Integer .MAX_VALUE ));
363- mekaSuitBodyArmorArmor = CachedIntValue .wrap (this , builder .comment ("Armor value of MekaSuit BodyArmor." )
364- .defineInRange ("bodyArmorArmor" , ArmorMaterials .NETHERITE .value ().defense ().get (ArmorItem .Type .CHESTPLATE ), 0 , Integer .MAX_VALUE ));
365- mekaSuitPantsArmor = CachedIntValue .wrap (this , builder .comment ("Armor value of MekaSuit Pants." )
366- .defineInRange ("pantsArmor" , ArmorMaterials .NETHERITE .value ().defense ().get (ArmorItem .Type .LEGGINGS ), 0 , Integer .MAX_VALUE ));
367- mekaSuitBootsArmor = CachedIntValue .wrap (this , builder .comment ("Armor value of MekaSuit Boots." )
368- .defineInRange ("bootsArmor" , ArmorMaterials .NETHERITE .value ().defense ().get (ArmorItem .Type .BOOTS ), 0 , Integer .MAX_VALUE ));
369- mekaSuitToughness = CachedFloatValue .wrap (this , builder .comment ("Toughness value of the MekaSuit." )
370- .defineInRange ("toughness" , ArmorMaterials .NETHERITE .value ().toughness (), 0 , Float .MAX_VALUE ));
371- mekaSuitKnockbackResistance = CachedFloatValue .wrap (this , builder .comment ("Knockback resistance value of the MekaSuit." )
372- .defineInRange ("knockbackResistance" , ArmorMaterials .NETHERITE .value ().knockbackResistance (), 0 , Float .MAX_VALUE ));
373331 builder .push (MEKASUIT_DAMAGE_CATEGORY );
374332 mekaSuitFallDamageRatio = CachedFloatValue .wrap (this , builder .comment ("Percent of damage taken from falling that can be absorbed by MekaSuit Boots when they have enough power." )
375333 .defineInRange ("fallDamageReductionRatio" , 1D , 0 , 1 ));
0 commit comments