diff options
| author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-12-28 00:49:28 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-28 16:49:28 +1100 |
| commit | ea3ec354ba3bb5b4ac64b8032816b8e4c407f099 (patch) | |
| tree | 2a1b35a90a5b2e430ed8b09cfb0c6c8e28166039 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalOverlay.java | |
| parent | 0aa264dd9df3205cf9641f052b6622fd36b811d5 (diff) | |
| download | notenoughupdates-ea3ec354ba3bb5b4ac64b8032816b8e4c407f099.tar.gz notenoughupdates-ea3ec354ba3bb5b4ac64b8032816b8e4c407f099.tar.bz2 notenoughupdates-ea3ec354ba3bb5b4ac64b8032816b8e4c407f099.zip | |
more code clean up (#38)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalOverlay.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalOverlay.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalOverlay.java index 9a1b82d4..a9c148a0 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalOverlay.java @@ -30,7 +30,6 @@ import java.util.List; import java.util.Set; public class CrystalOverlay { - private enum CrystalType { FARMING_MINION(8, 0xDAA520), MINING_MINION(40, 0x6e5a49), @@ -111,14 +110,12 @@ public class CrystalOverlay { private static double posLastUpdateY; private static double posLastUpdateZ; - private static final HashMap<String, CrystalType> skullId = new HashMap<>(); - - static { - skullId.put("d9c3168a-8654-3dd8-b297-4d3b7e55b95a", CrystalType.FARMING_MINION); - skullId.put("949d100c-aa74-3b09-a642-af5529f808aa", CrystalType.MINING_MINION); - skullId.put("bd79a474-cf07-3f8c-b5a4-98657c33520a", CrystalType.FORAGING_MINION); - skullId.put("2e474ee3-5361-3218-84db-880eb1cface1", CrystalType.FISHING); - } + private static final HashMap<String, CrystalType> skullId = new HashMap<String, CrystalType>() {{ + put("d9c3168a-8654-3dd8-b297-4d3b7e55b95a", CrystalType.FARMING_MINION); + put("949d100c-aa74-3b09-a642-af5529f808aa", CrystalType.MINING_MINION); + put("bd79a474-cf07-3f8c-b5a4-98657c33520a", CrystalType.FORAGING_MINION); + put("2e474ee3-5361-3218-84db-880eb1cface1", CrystalType.FISHING); + }}; public static long displayMillis = 0; @@ -366,5 +363,4 @@ public class CrystalOverlay { worldrenderer.pos(p_181561_0_.minX, p_181561_0_.maxY, p_181561_0_.maxZ) .color(c.getRed() / 255f * 0.9f, c.getGreen() / 255f * 0.9f, c.getBlue() / 255f * 0.9f, c.getAlpha() / 255f * alpha).endVertex(); } - } |
