From 89f38714edc7b0ab06dadf7119c4d4d762191a2f Mon Sep 17 00:00:00 2001 From: olim Date: Wed, 31 Jan 2024 14:35:54 +0000 Subject: map location size configurable and removed unused code removed code that was unused in the new functions. and added a config option for the locations on the crystals map as well as showing certain locations smaller to better fit their size --- .../skyblock/dwarven/CrystalsWaypoint.java | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsWaypoint.java') diff --git a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsWaypoint.java b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsWaypoint.java index 5445a68c..09eeb419 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsWaypoint.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsWaypoint.java @@ -31,13 +31,6 @@ import java.util.function.ToDoubleFunction; public class CrystalsWaypoint extends Waypoint { private static final Logger LOGGER = LoggerFactory.getLogger(CrystalsWaypoint.class); - public static final Codec CODEC = RecordCodecBuilder.create(instance -> instance.group( - Category.CODEC.fieldOf("category").forGetter(crystalsWaypoint -> crystalsWaypoint.category), - TextCodecs.CODEC.fieldOf("name").forGetter(crystalsWaypoint -> crystalsWaypoint.name), - BlockPos.CODEC.fieldOf("pos").forGetter(crystalsWaypoint -> crystalsWaypoint.pos) - ).apply(instance, CrystalsWaypoint::new)); - - private static final Supplier CONFIG = () -> SkyblockerConfigManager.get().locations.dwarvenMines.crystalsWaypoints; static final Supplier TYPE_SUPPLIER = () -> CONFIG.get().waypointType; @@ -137,18 +130,5 @@ public class CrystalsWaypoint extends Waypoint { return name; } - static class CategoryArgumentType extends EnumArgumentType { - CategoryArgumentType() { - super(Category.CODEC, Category::values); - } - - static CategoryArgumentType category() { - return new CategoryArgumentType(); - } - - static Category getCategory(CommandContext context, String name) { - return context.getArgument(name, Category.class); - } - } } } -- cgit