Package de.Keyle.MyPet.api.entity
Interface PetZombifiable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.Keyle.MyPet.api.entity.Pet
Pet.PetState, Pet.SpawnFlags -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanWhether this pet may convert to its zombified form in the Overworld.Methods inherited from interface de.Keyle.MyPet.api.entity.Pet
autoAssignSkilltree, callToOwner, canMove, consumePendingSnapshot, createEntity, createEntity, decreaseSaturation, forgetTarget, getBukkitEntity, getCachedStatus, getDamage, getExperience, getLocation, getMaxHealth, getPetNavigation, getPetTarget, getRangedDamage, getSkills, getStatus, getTargetPriority, hasPetRider, hasTarget, hidePotionParticles, isHostAwaitingAdoption, isPassive, isSitting, makeSound, onInteract, onMeleeHitLanded, removeEntity, removePet, removePet, sendAway, setBukkitEntity, setExp, setHealth, setHostAwaitingAdoption, setLastUsed, setLocation, setMaxDistanceStep, setMinDistanceStep, setOwner, setPetName, setPetType, setRespawnTime, setSaturation, setSitting, setSkilltree, setSkilltree, setStatus, setTarget, setTarget, setUUID, setVolume, setWantsToRespawn, setWorldGroup, showPotionParticles, tickRespawnTimer, updateNameTag, updateVisualsMethods inherited from interface de.Keyle.MyPet.api.entity.StoredPet
getDisplayName, getExp, getHealth, getLastUsed, getLevel, getMaxDistanceStep, getMinDistanceStep, getOwner, getPetName, getPetType, getRespawnTime, getSaturation, getSkilltree, getUUID, getVolume, getWorldGroup, skillState, wantsToRespawn
-
Method Details
-
allowZombification
default boolean allowZombification()Whether this pet may convert to its zombified form in the Overworld.- Returns:
trueto allow the conversion
-