diff options
author | olim <bobq4582@gmail.com> | 2024-05-06 12:03:24 +0100 |
---|---|---|
committer | olim <bobq4582@gmail.com> | 2024-05-09 22:58:29 +0100 |
commit | 0cd6b2b3cbd9d86672030ab01772006b3f80d8fb (patch) | |
tree | b3d64dea35f98911b11d152216898cf6840b38b4 /src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java | |
parent | b47ebd85b5ecb2c9b2adbbcd80f750ca15fd433e (diff) | |
download | Skyblocker-0cd6b2b3cbd9d86672030ab01772006b3f80d8fb.tar.gz Skyblocker-0cd6b2b3cbd9d86672030ab01772006b3f80d8fb.tar.bz2 Skyblocker-0cd6b2b3cbd9d86672030ab01772006b3f80d8fb.zip |
fix formatting and add better colours
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java index f3e8e935..24b91780 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CommissionLabels.java @@ -16,12 +16,10 @@ public class CommissionLabels { private static final Map<String, MiningLocationLabels.dwarvenCategory> DWARVEN_LOCATIONS = Arrays.stream(MiningLocationLabels.dwarvenCategory.values()).collect(Collectors.toMap(MiningLocationLabels.dwarvenCategory::toString, Function.identity())); private static final Map<String, MiningLocationLabels.glaciteCategory> GLACITE_LOCATIONS = Arrays.stream(MiningLocationLabels.glaciteCategory.values()).collect(Collectors.toMap(MiningLocationLabels.glaciteCategory::toString, Function.identity())); - protected static List<MiningLocationLabels> activeWaypoints = new ArrayList<>(); public static void init() { WorldRenderEvents.AFTER_TRANSLUCENT.register(CommissionLabels::render); - ClientPlayConnectionEvents.JOIN.register((_handler, _sender, _client) -> reset()); } protected static void update(List<String> newCommissions) { @@ -35,7 +33,7 @@ public class CommissionLabels { if (commission.contains(glaciteLocation.getKey())) { MiningLocationLabels.glaciteCategory category = glaciteLocation.getValue(); for (BlockPos gemstoneLocation : category.getLocations()) { - activeWaypoints.add(new MiningLocationLabels(category, Text.of(category.getName()), gemstoneLocation)); + activeWaypoints.add(new MiningLocationLabels(category, gemstoneLocation)); } } } @@ -47,7 +45,8 @@ public class CommissionLabels { for (Map.Entry<String, MiningLocationLabels.dwarvenCategory> dwarvenLocation : DWARVEN_LOCATIONS.entrySet()) { if (commission.contains(dwarvenLocation.getKey())) { MiningLocationLabels.dwarvenCategory category = dwarvenLocation.getValue(); - activeWaypoints.add(new MiningLocationLabels(category, Text.of(category.getName()), category.getLocation())); + category.isTitanium = commission.contains("Titanium"); + activeWaypoints.add(new MiningLocationLabels(category, category.getLocation())); } } } @@ -60,10 +59,5 @@ public class CommissionLabels { for (MiningLocationLabels MiningLocationLabels : activeWaypoints) { MiningLocationLabels.render(context); } - - } - - private static void reset() { - } } |