aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsWaypoint.java
diff options
context:
space:
mode:
authorolim <bobq4582@gmail.com>2024-01-31 14:35:54 +0000
committerolim <bobq4582@gmail.com>2024-01-31 14:35:54 +0000
commit89f38714edc7b0ab06dadf7119c4d4d762191a2f (patch)
treed23e7ae3f1570336b7a246cdd0a7a0c402ff6878 /src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsWaypoint.java
parent24f0a72bba4d224ff4270bbe3175e600f1389d27 (diff)
downloadSkyblocker-89f38714edc7b0ab06dadf7119c4d4d762191a2f.tar.gz
Skyblocker-89f38714edc7b0ab06dadf7119c4d4d762191a2f.tar.bz2
Skyblocker-89f38714edc7b0ab06dadf7119c4d4d762191a2f.zip
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
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsWaypoint.java')
-rw-r--r--src/main/java/de/hysky/skyblocker/skyblock/dwarven/CrystalsWaypoint.java20
1 files changed, 0 insertions, 20 deletions
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<CrystalsWaypoint> 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<SkyblockerConfig.CrystalsWaypoints> CONFIG = () -> SkyblockerConfigManager.get().locations.dwarvenMines.crystalsWaypoints;
static final Supplier<Type> TYPE_SUPPLIER = () -> CONFIG.get().waypointType;
@@ -137,18 +130,5 @@ public class CrystalsWaypoint extends Waypoint {
return name;
}
- static class CategoryArgumentType extends EnumArgumentType<Category> {
- CategoryArgumentType() {
- super(Category.CODEC, Category::values);
- }
-
- static CategoryArgumentType category() {
- return new CategoryArgumentType();
- }
-
- static <S> Category getCategory(CommandContext<S> context, String name) {
- return context.getArgument(name, Category.class);
- }
- }
}
}