Skip to content

Commit

Permalink
phantom
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeTheTech committed Sep 27, 2023
1 parent 976f1cb commit 75a9d2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public enum OptionSelector {
HUSK(new String[] {Option.NAME.name(), Option.BABY.name()}),
ILLUSIONER(new String[] {Option.NAME.name()}),
MAGMA_CUBE(new String[] {Option.NAME.name(), Option.SIZE.name()}),
SLIME(new String[] {Option.NAME.name(), Option.SIZE.name()})
SLIME(new String[] {Option.NAME.name(), Option.SIZE.name()}),
PHANTOM(new String[] {Option.NAME.name()}),
;

@Getter private final String[] options;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/lee/code/pets/utils/PetDataUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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, ENDERMAN, EVOKER, GHAST, ILLUSIONER -> {
case ALLAY, BAT, IRON_GOLEM, WANDERING_TRADER, COD, DOLPHIN, ELDER_GUARDIAN, GLOW_SQUID, GUARDIAN, PUFFERFISH, SALMON, SQUID, TADPOLE, BLAZE, CAVE_SPIDER, ENDERMAN, EVOKER, GHAST, ILLUSIONER, PHANTOM -> {
return data[1];
}
case COW, CHICKEN, HOGLIN, OCELOT, PIG, POLAR_BEAR, SNIFFER, ZOGLIN, TURTLE, DROWNED, HUSK -> {
Expand Down Expand Up @@ -163,7 +163,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, ENDERMAN, EVOKER, GHAST, ILLUSIONER -> {
case ALLAY, BAT, IRON_GOLEM, WANDERING_TRADER, COD, DOLPHIN, ELDER_GUARDIAN, GLOW_SQUID, GUARDIAN, PUFFERFISH, SALMON, SQUID, TADPOLE, BLAZE, CAVE_SPIDER, ENDERMAN, EVOKER, GHAST, ILLUSIONER, PHANTOM -> {
return startingData;
}
case COW, CHICKEN, HOGLIN, OCELOT, PIG, POLAR_BEAR, SNIFFER, ZOGLIN, TURTLE, DROWNED, HUSK -> {
Expand Down Expand Up @@ -294,7 +294,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, ENDERMAN, EVOKER, GHAST, ILLUSIONER -> {
case ALLAY, BAT, IRON_GOLEM, WANDERING_TRADER, COD, DOLPHIN, ELDER_GUARDIAN, GLOW_SQUID, GUARDIAN, PUFFERFISH, SALMON, SQUID, TADPOLE, BLAZE, CAVE_SPIDER, ENDERMAN, EVOKER, GHAST, ILLUSIONER, PHANTOM -> {
return data[0] + sep + newData;
}
case COW, CHICKEN, HOGLIN, OCELOT, PIG, POLAR_BEAR, SNIFFER, ZOGLIN, TURTLE, DROWNED, HUSK -> {
Expand Down

0 comments on commit 75a9d2e

Please sign in to comment.