Skip to content

Commit

Permalink
blaze
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeTheTech committed Sep 27, 2023
1 parent 692c529 commit eb564cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public enum OptionSelector {
TADPOLE(new String[] {Option.NAME.name()}),
TROPICAL_FISH(new String[] {Option.NAME.name(), Option.VARIANT.name(), Option.BODY_COLOR.name(), Option.PATTERN_COLOR.name()}),
TURTLE(new String[] {Option.NAME.name(), Option.BABY.name()}),
BLAZE(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 -> {
case ALLAY, BAT, IRON_GOLEM, WANDERING_TRADER, COD, DOLPHIN, ELDER_GUARDIAN, GLOW_SQUID, GUARDIAN, PUFFERFISH, SALMON, SQUID, TADPOLE, BLAZE -> {
return data[1];
}
case COW, CHICKEN, HOGLIN, OCELOT, PIG, POLAR_BEAR, SNIFFER, ZOGLIN, TURTLE -> {
Expand Down Expand Up @@ -151,7 +151,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 -> {
case ALLAY, BAT, IRON_GOLEM, WANDERING_TRADER, COD, DOLPHIN, ELDER_GUARDIAN, GLOW_SQUID, GUARDIAN, PUFFERFISH, SALMON, SQUID, TADPOLE, BLAZE -> {
return startingData;
}
case COW, CHICKEN, HOGLIN, OCELOT, PIG, POLAR_BEAR, SNIFFER, ZOGLIN, TURTLE -> {
Expand Down Expand Up @@ -270,7 +270,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 -> {
case ALLAY, BAT, IRON_GOLEM, WANDERING_TRADER, COD, DOLPHIN, ELDER_GUARDIAN, GLOW_SQUID, GUARDIAN, PUFFERFISH, SALMON, SQUID, TADPOLE, BLAZE -> {
return data[0] + sep + newData;
}
case COW, CHICKEN, HOGLIN, OCELOT, PIG, POLAR_BEAR, SNIFFER, ZOGLIN, TURTLE -> {
Expand Down

0 comments on commit eb564cd

Please sign in to comment.