diff options
author | olim <bobq4582@gmail.com> | 2024-06-17 17:42:13 +0100 |
---|---|---|
committer | olim <bobq4582@gmail.com> | 2024-07-15 12:36:19 +0100 |
commit | 7b2efe7c86908ad87df36f296d057b70e7be1427 (patch) | |
tree | 9c46318a4dde4d7760a706b0c0bb148b6bf1cbb8 /src/main/java/de/hysky/skyblocker/skyblock/dwarven/MiningLocationLabel.java | |
parent | cfb861de647e551a19096483a5d60fd10d676a63 (diff) | |
download | Skyblocker-7b2efe7c86908ad87df36f296d057b70e7be1427.tar.gz Skyblocker-7b2efe7c86908ad87df36f296d057b70e7be1427.tar.bz2 Skyblocker-7b2efe7c86908ad87df36f296d057b70e7be1427.zip |
add scanning for location chat
scan for messages to improve locations and auto add King. also fix bugs just introduced
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/dwarven/MiningLocationLabel.java')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/dwarven/MiningLocationLabel.java | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/MiningLocationLabel.java b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/MiningLocationLabel.java index 30f33aa2..0fc0c64f 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/MiningLocationLabel.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/MiningLocationLabel.java @@ -27,6 +27,7 @@ public record MiningLocationLabel(Category category, Vec3d centerPos) implements /** * Renders the name and distance to the label scaled so can be seen at a distance + * * @param context render context */ @Override @@ -162,24 +163,26 @@ public record MiningLocationLabel(Category category, Vec3d centerPos) implements * enum for the different waypoints used int the crystals hud each with a {@link CrystalHollowsLocationsCategory#name} and associated {@link CrystalHollowsLocationsCategory#color} */ enum CrystalHollowsLocationsCategory implements Category { - JUNGLE_TEMPLE("Jungle Temple", new Color(DyeColor.PURPLE.getSignColor())), - MINES_OF_DIVAN("Mines of Divan", Color.GREEN), - GOBLIN_QUEENS_DEN("Goblin Queen's Den", new Color(DyeColor.ORANGE.getSignColor())), - LOST_PRECURSOR_CITY("Lost Precursor City", Color.CYAN), - KHAZAD_DUM("Khazad-dûm", Color.YELLOW), - FAIRY_GROTTO("Fairy Grotto", Color.PINK), - DRAGONS_LAIR("Dragon's Lair", Color.BLACK), - CORLEONE("Corleone", Color.WHITE), - KING_YOLKAR("King Yolkar", Color.RED), - ODAWA("Odawa", Color.MAGENTA), - KEY_GUARDIAN("Key Guardian", Color.LIGHT_GRAY); + JUNGLE_TEMPLE("Jungle Temple", new Color(DyeColor.PURPLE.getSignColor()), "[NPC] Kalhuiki Door Guardian:"), + MINES_OF_DIVAN("Mines of Divan", Color.GREEN, " Jade Crystal"), + GOBLIN_QUEENS_DEN("Goblin Queen's Den", new Color(DyeColor.ORANGE.getSignColor()), " Amber Crystal"), + LOST_PRECURSOR_CITY("Lost Precursor City", Color.CYAN, " Sapphire Crystal"), + KHAZAD_DUM("Khazad-dûm", Color.YELLOW, " Topaz Crystal"), + FAIRY_GROTTO("Fairy Grotto", Color.PINK, null), + DRAGONS_LAIR("Dragon's Lair", Color.BLACK, null), + CORLEONE("Corleone", Color.WHITE, null), + KING_YOLKAR("King Yolkar", Color.RED, "[NPC] King Yolkar:"), + ODAWA("Odawa", Color.MAGENTA, "[NPC] Odawa:"), + KEY_GUARDIAN("Key Guardian", Color.LIGHT_GRAY, null); public final Color color; private final String name; + private final String linkedMessage; - CrystalHollowsLocationsCategory(String name, Color color) { + CrystalHollowsLocationsCategory(String name, Color color, String linkedMessage) { this.name = name; this.color = color; + this.linkedMessage = linkedMessage; } @Override @@ -191,6 +194,10 @@ public record MiningLocationLabel(Category category, Vec3d centerPos) implements public int getColor() { return this.color.getRGB(); } + + public String getLinkedMessage() { + return this.linkedMessage; + } } } |