diff options
| author | Abdiel Kavash <19243993+AbdielKavash@users.noreply.github.com> | 2024-10-17 05:03:06 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-17 11:03:06 +0000 |
| commit | 37c33c050e5c6039f410c6b7360fb146b9aae7a2 (patch) | |
| tree | b62bcdf735423e3e0dc8f7834e7bf8da08f0b272 /src/main/java/gregtech/common/config | |
| parent | b3639bcb0949526ebad496bc9eeedbc2008ffcfb (diff) | |
| download | GT5-Unofficial-37c33c050e5c6039f410c6b7360fb146b9aae7a2.tar.gz GT5-Unofficial-37c33c050e5c6039f410c6b7360fb146b9aae7a2.tar.bz2 GT5-Unofficial-37c33c050e5c6039f410c6b7360fb146b9aae7a2.zip | |
Reworked cleanroom structure check. (#3312)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gregtech/common/config')
| -rw-r--r-- | src/main/java/gregtech/common/config/MachineStats.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/config/MachineStats.java b/src/main/java/gregtech/common/config/MachineStats.java index 2e7dfc7abf..ce679052b8 100644 --- a/src/main/java/gregtech/common/config/MachineStats.java +++ b/src/main/java/gregtech/common/config/MachineStats.java @@ -30,6 +30,9 @@ public class MachineStats { @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 { @@ -166,4 +169,30 @@ public class MachineStats { @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; + } } |
