diff options
author | Glease <4586901+Glease@users.noreply.github.com> | 2021-06-25 20:54:11 +0800 |
---|---|---|
committer | Glease <4586901+Glease@users.noreply.github.com> | 2021-07-30 14:39:32 +0800 |
commit | e5a6de86d47d12130afe179303d7de5b78c85bff (patch) | |
tree | f26510c8013d56a2146d63447fe9e50e2f7bfc6e /src/main/java/gregtech/api/enums | |
parent | 66e64ee13acd8ce0f4570c9ce73c849e125c67b9 (diff) | |
download | GT5-Unofficial-e5a6de86d47d12130afe179303d7de5b78c85bff.tar.gz GT5-Unofficial-e5a6de86d47d12130afe179303d7de5b78c85bff.tar.bz2 GT5-Unofficial-e5a6de86d47d12130afe179303d7de5b78c85bff.zip |
general bugfix & tweaking pass for multis
1. stupid typo in EBF preventing it from working at all.
2. All multis now require exactly one maintenance hatch to form.
3. All multis now use the unified overclocking mechanism if possible.
4. All multis that emits pollution now require at least one muffler hatch to form.
5. Coil structure element slightly tweaked.
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/api/enums')
-rw-r--r-- | src/main/java/gregtech/api/enums/HeatingCoilLevel.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/gregtech/api/enums/HeatingCoilLevel.java b/src/main/java/gregtech/api/enums/HeatingCoilLevel.java index d4446e31d0..c2e3ff075a 100644 --- a/src/main/java/gregtech/api/enums/HeatingCoilLevel.java +++ b/src/main/java/gregtech/api/enums/HeatingCoilLevel.java @@ -23,6 +23,8 @@ public enum HeatingCoilLevel { MAX, ; + private static final HeatingCoilLevel[] VALUES = values(); + /** * @return the Coils Tier Name */ @@ -61,9 +63,13 @@ public enum HeatingCoilLevel { } public static HeatingCoilLevel getFromTier(byte tier){ - if (tier < 0 || tier > HeatingCoilLevel.values().length -1) + if (tier < 0 || tier > VALUES.length -1) return HeatingCoilLevel.None; - return HeatingCoilLevel.values()[tier+2]; + return VALUES[tier+2]; + } + + public static int size() { + return VALUES.length; } } |