aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/config/MachineStats.java
blob: ce679052b88300d4ebfa5916f455bec1b3398da6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
package gregtech.common.config;

import com.gtnewhorizon.gtnhlib.config.Config;

import gregtech.api.enums.Mods;

@Config(
    modid = Mods.Names.GREG_TECH,
    category = "machine_stats",
    configSubDirectory = "GregTech",
    filename = "MachineStats")
@Config.LangKey("GT5U.gui.config.machine_stats")
public class MachineStats {

    @Config.Comment("Bronze solar boiler section")
    public static BronzeSolarBoiler bronzeSolarBoiler = new BronzeSolarBoiler();

    @Config.Comment("Steel solar boiler section")
    public static SteelSolarBoiler steelSolarBoiler = new SteelSolarBoiler();

    @Config.Comment("Machines section")
    public static Machines machines = new Machines();

    @Config.Comment("Mass fabricator section")
    public static MassFabricator massFabricator = new MassFabricator();

    @Config.Comment("Microwave energy transmitter section")
    public static MicrowaveEnergyTransmitter microwaveEnergyTransmitter = new MicrowaveEnergyTransmitter();

    @Config.Comment("Teleporter section")
    public static Teleporter teleporter = new Teleporter();

    @Config.Comment("Cleanroom section")
    public static Cleanroom cleanroom = new Cleanroom();

    @Config.LangKey("GT5U.gui.config.machine_stats.bronze_solar_boiler")
    public static class BronzeSolarBoiler {

        @Config.Comment({ "Number of run-time ticks before boiler starts calcification.",
            "100% calcification and minimal output will be reached at 2 times this." })
        @Config.DefaultInt(1_080_000)
        @Config.RequiresMcRestart
        public int calcificationTicks;

        @Config.Comment("Number of ticks it takes to lose 1°C.")
        @Config.DefaultInt(45)
        @Config.RequiresMcRestart
        public int cooldownTicks;

        @Config.DefaultInt(120)
        @Config.RequiresMcRestart
        public int maxOutputPerSecond;

        @Config.DefaultInt(40)
        @Config.RequiresMcRestart
        public int minOutputPerSecond;
    }

    @Config.LangKey("GT5U.gui.config.machine_stats.steel_solar_boiler")
    public static class SteelSolarBoiler {

        @Config.Comment({ "Number of run-time ticks before boiler starts calcification.",
            "100% calcification and minimal output will be reached at 2 times this." })
        @Config.DefaultInt(1_080_000)
        @Config.RequiresMcRestart
        public int calcificationTicks;

        @Config.Comment("Number of ticks it takes to lose 1°C.")
        @Config.DefaultInt(75)
        @Config.RequiresMcRestart
        public int cooldownTicks;

        @Config.DefaultInt(360)
        @Config.RequiresMcRestart
        public int maxOutputPerSecond;

        @Config.DefaultInt(120)
        @Config.RequiresMcRestart
        public int minOutputPerSecond;
    }

    @Config.LangKey("GT5U.gui.config.machine_stats.machines")
    public static class Machines {

        @Config.Comment("Controls the damageFactorLow variable in the maintenance damage equation.")
        @Config.DefaultInt(5)
        @Config.RequiresMcRestart
        public int damageFactorLow;

        @Config.Comment("Controls the damageFactorHigh variable in the maintenance damage equation.")
        @Config.DefaultFloat(0.6f)
        @Config.RequiresMcRestart
        public float damageFactorHigh;

        @Config.Comment("if true, disable maintenance checks.")
        @Config.DefaultBoolean(false)
        @Config.RequiresMcRestart
        public boolean disableMaintenanceChecks;

        @Config.Comment("If true, allows for multiple eggs on the magical energy absorber.")
        @Config.DefaultBoolean(true)
        @Config.RequiresMcRestart
        public boolean allowMultipleEggs;

        @Config.Comment("If true, requires at least a free face to open a machine gui.")
        @Config.DefaultBoolean(false)
        @Config.RequiresMcRestart
        public boolean forceFreeFace;
    }

    @Config.LangKey("GT5U.gui.config.machine_stats.mass_fabricator")
    public static class MassFabricator {

        @Config.Comment("if true, requires UUA to run the mass fab.")
        @Config.DefaultBoolean(false)
        @Config.RequiresMcRestart
        public boolean requiresUUA;

        @Config.Comment("Duration multiplier.")
        @Config.DefaultInt(3215)
        @Config.RequiresMcRestart
        public int durationMultiplier;

        @Config.Comment("mb of UUA per UUM.")
        @Config.DefaultInt(1)
        @Config.RequiresMcRestart
        public int UUAPerUUM;

        @Config.Comment("Speed bonus delivered by the UUA.")
        @Config.DefaultInt(40)
        @Config.RequiresMcRestart
        public int UUASpeedBonus;
    }

    @Config.LangKey("GT5U.gui.config.machine_stats.microwave_energy_transmitter")
    public static class MicrowaveEnergyTransmitter {

        @Config.Comment("if true, it has a passive energy loss.")
        @Config.DefaultBoolean(true)
        @Config.RequiresMcRestart
        public boolean passiveEnergyUse;

        @Config.Comment("max loss.")
        @Config.DefaultInt(50)
        @Config.RequiresMcRestart
        public int maxLoss;

        @Config.Comment("max loss distance.")
        @Config.DefaultInt(10_000)
        @Config.RequiresMcRestart
        public int maxLossDistance;
    }

    @Config.LangKey("GT5U.gui.config.machine_stats.teleporter")
    public static class Teleporter {

        @Config.Comment("if true, allows interdim tp")
        @Config.DefaultBoolean(true)
        @Config.RequiresMcRestart
        public boolean interDimensionalTPAllowed;

        @Config.Comment("passive energy loss.")
        @Config.DefaultInt(2048)
        @Config.RequiresMcRestart
        public int passiveEnergyDrain;

        @Config.Comment("power multiplier.")
        @Config.DefaultInt(100)
        @Config.RequiresMcRestart
        public int powerMultiplier;
    }

    @Config.LangKey("GT5U.gui.config.machine_stats.cleanroom")
    public static class Cleanroom {

        @Config.Comment("Minimum number of plascrete blocks in a valid cleanroom.")
        @Config.RangeInt(min = 0)
        @Config.DefaultInt(20)
        @Config.RequiresMcRestart
        public int minCasingCount;

        @Config.Comment("Maximum percentage of plascrete blocks which can be replaced by other valid blocks: glass, doors, hatches, etc.")
        @Config.RangeInt(min = 0, max = 100)
        @Config.DefaultInt(30)
        @Config.RequiresMcRestart
        public int maxReplacementPercentage;

        @Config.Comment("List of other blocks allowed as a part of the cleanroom. Format: <block name> or <block name>:<meta>.")
        @Config.DefaultStringList({ "BW_GlasBlocks", // All Bart glass (including HV tier)
            "tile.openblocks.elevator", "tile.openblocks.elevator_rotating", // OpenBlocks elevators
            "tile.blockTravelAnchor", // EnderIO travel anchors
            "tile.blockCosmeticOpaque:2", // TC Warded glass (usually HV tier)
            "tile.extrautils:etherealglass" // ExtraUtils ineffable glass and variants
        })
        @Config.RequiresMcRestart
        public String[] allowedBlocks;
    }
}