diff --git a/src/main/java/lee/code/pets/menus/menu/menudata/options/OptionSelector.java b/src/main/java/lee/code/pets/menus/menu/menudata/options/OptionSelector.java index 28c0871..23048ac 100644 --- a/src/main/java/lee/code/pets/menus/menu/menudata/options/OptionSelector.java +++ b/src/main/java/lee/code/pets/menus/menu/menudata/options/OptionSelector.java @@ -53,7 +53,10 @@ public enum OptionSelector { BLAZE(new String[] {Option.NAME.name()}), CAVE_SPIDER(new String[] {Option.NAME.name()}), CREEPER(new String[] {Option.NAME.name(), Option.POWERED.name()}), - DROWNED(new String[] {Option.NAME.name(), Option.BABY.name()}) + DROWNED(new String[] {Option.NAME.name(), Option.BABY.name()}), + ENDERMAN(new String[] {Option.NAME.name()}), + EVOKER(new String[] {Option.NAME.name()}), + GHAST(new String[] {Option.NAME.name()}) ; @Getter private final String[] options; diff --git a/src/main/java/lee/code/pets/utils/PetDataUtil.java b/src/main/java/lee/code/pets/utils/PetDataUtil.java index ec2062a..d42674e 100644 --- a/src/main/java/lee/code/pets/utils/PetDataUtil.java +++ b/src/main/java/lee/code/pets/utils/PetDataUtil.java @@ -13,7 +13,7 @@ public class PetDataUtil { public static String getPetData(EntityType entityType, String[] data, Option option) { switch (entityType) { - case ALLAY, BAT, IRON_GOLEM, WANDERING_TRADER, COD, DOLPHIN, ELDER_GUARDIAN, GLOW_SQUID, GUARDIAN, PUFFERFISH, SALMON, SQUID, TADPOLE, BLAZE, CAVE_SPIDER -> { + case ALLAY, BAT, IRON_GOLEM, WANDERING_TRADER, COD, DOLPHIN, ELDER_GUARDIAN, GLOW_SQUID, GUARDIAN, PUFFERFISH, SALMON, SQUID, TADPOLE, BLAZE, CAVE_SPIDER, ENDERMAN, EVOKER, GHAST -> { return data[1]; } case COW, CHICKEN, HOGLIN, OCELOT, PIG, POLAR_BEAR, SNIFFER, ZOGLIN, TURTLE, DROWNED -> { @@ -157,7 +157,7 @@ public static String serializePetData(Entity entity) { final String sep = ","; final String startingData = entityType.name() + sep + petName; switch (entityType) { - case ALLAY, BAT, IRON_GOLEM, WANDERING_TRADER, COD, DOLPHIN, ELDER_GUARDIAN, GLOW_SQUID, GUARDIAN, PUFFERFISH, SALMON, SQUID, TADPOLE, BLAZE, CAVE_SPIDER -> { + case ALLAY, BAT, IRON_GOLEM, WANDERING_TRADER, COD, DOLPHIN, ELDER_GUARDIAN, GLOW_SQUID, GUARDIAN, PUFFERFISH, SALMON, SQUID, TADPOLE, BLAZE, CAVE_SPIDER, ENDERMAN, EVOKER, GHAST -> { return startingData; } case COW, CHICKEN, HOGLIN, OCELOT, PIG, POLAR_BEAR, SNIFFER, ZOGLIN, TURTLE, DROWNED -> { @@ -280,7 +280,7 @@ public static String serializePetData(Entity entity) { public static String addNewPetData(EntityType entityType, String[] data, String newData, Option option) { final String sep = ","; switch (entityType) { - case ALLAY, BAT, IRON_GOLEM, WANDERING_TRADER, COD, DOLPHIN, ELDER_GUARDIAN, GLOW_SQUID, GUARDIAN, PUFFERFISH, SALMON, SQUID, TADPOLE, BLAZE, CAVE_SPIDER -> { + case ALLAY, BAT, IRON_GOLEM, WANDERING_TRADER, COD, DOLPHIN, ELDER_GUARDIAN, GLOW_SQUID, GUARDIAN, PUFFERFISH, SALMON, SQUID, TADPOLE, BLAZE, CAVE_SPIDER, ENDERMAN, EVOKER, GHAST -> { return data[0] + sep + newData; } case COW, CHICKEN, HOGLIN, OCELOT, PIG, POLAR_BEAR, SNIFFER, ZOGLIN, TURTLE, DROWNED -> {