1+ package net .Realism .config ;
2+
3+ import net .Realism .RealismMod ;
4+ import net .minecraftforge .common .ForgeConfigSpec ;
5+ import net .minecraftforge .fml .config .ModConfig ;
6+
7+ public class RealismConfig {
8+ // Common Config
9+ public static class Common {
10+ //public final ForgeConfigSpec.BooleanValue enableFeature;
11+ //public final ForgeConfigSpec.IntValue maxProcessingAmount;
12+ //public final ForgeConfigSpec.DoubleValue difficultyMultiplier;
13+ public final ForgeConfigSpec .BooleanValue EnableCustomTrainAcceleration ;
14+ public final ForgeConfigSpec .DoubleValue CustomTrainAccelerationMultiplyer ;
15+
16+ Common (ForgeConfigSpec .Builder builder ) {
17+ builder .push ("general" );
18+
19+ //enableFeature = builder.comment("Enable the main feature of the mod").define("enableFeature", true);
20+ //maxProcessingAmount = builder.comment("Maximum amount of items that can be processed at once")
21+ // .defineInRange("maxProcessingAmount", 64, 1, 512);
22+ //difficultyMultiplier = builder.comment("Multiplier that affects processing difficulty")
23+ // .defineInRange("difficultyMultiplier", 1.0, 0.1, 5.0);
24+ EnableCustomTrainAcceleration = builder .comment ("Enable custom train acceleration based on the number of carriages" )
25+ .define ("Enable Custom Train Acceleration" , true );
26+ CustomTrainAccelerationMultiplyer = builder .comment ("Multiplier for custom train acceleration(Higher = slower acceleration per Carrige)" )
27+ .defineInRange ("Custom Train Acceleration Multiplyer" , 1.0 , 0.1 , 5.0 );
28+ builder .pop ();
29+ }
30+ }
31+
32+ // Client Config
33+ public static class Client {
34+ //public final ForgeConfigSpec.BooleanValue showParticles;
35+ //public final ForgeConfigSpec.IntValue particleDensity;
36+ //public final ForgeConfigSpec.DoubleValue renderDistance;
37+ public final ForgeConfigSpec .BooleanValue debugMode ;
38+
39+ Client (ForgeConfigSpec .Builder builder ) {
40+ builder .push ("visual" );
41+ //showParticles = builder.comment("Enable particle effects").define("showParticles", true);
42+ //particleDensity = builder.comment("Density of particles (higher = more particles)")
43+ // .defineInRange("particleDensity", 2, 0, 5);
44+ //renderDistance = builder.comment("Maximum distance to render special effects")
45+ // .defineInRange("renderDistance", 32.0, 8.0, 64.0);
46+ debugMode = builder .comment ("Enable debug mode to see the modified acceleration" )
47+ .define ("debugMode" , false );
48+ builder .pop ();
49+ }
50+ }
51+
52+ public static final ForgeConfigSpec COMMON_SPEC ;
53+ public static final Common COMMON ;
54+
55+ public static final ForgeConfigSpec CLIENT_SPEC ;
56+ public static final Client CLIENT ;
57+
58+ static {
59+ ForgeConfigSpec .Builder commonBuilder = new ForgeConfigSpec .Builder ();
60+ COMMON = new Common (commonBuilder );
61+ COMMON_SPEC = commonBuilder .build ();
62+
63+ ForgeConfigSpec .Builder clientBuilder = new ForgeConfigSpec .Builder ();
64+ CLIENT = new Client (clientBuilder );
65+ CLIENT_SPEC = clientBuilder .build ();
66+ }
67+ }
0 commit comments