Interface PetZombifiable

All Superinterfaces:
Pet, Scheduler, StoredPet

public interface PetZombifiable extends Pet
Marker for nether-native pet types that vanilla converts to a zombified form when they spend too long in the Overworld (Hoglin → Zoglin, Piglin → ZombifiedPiglin, PiglinBrute → ZombifiedPiglin). The allowZombification() default consults the per-pet preference loaded from MyPet.Pets.<Type>.AllowZombification in pet-config.yml; the default is false so pets stay their original type.

The YAML row is auto-registered for every type that implements this marker — adding a new convertible pet only requires implementing this interface.

  • Method Details

    • allowZombification

      default boolean allowZombification()
      Whether this pet may convert to its zombified form in the Overworld.
      Returns:
      true to allow the conversion