Interface PetFlyingEntity

All Superinterfaces:
Pet, Scheduler, StoredPet

public interface PetFlyingEntity extends Pet
Marker for pet types whose underlying vanilla mob naturally flies — implies Pet's AI/movement layer should treat this pet as airborne (no gravity, flight pathing, no float goal). Read at runtime by PetType.isFlyingPet() via Class.isAssignableFrom.

The canFly() default reads the per-pet preference from the CAN_FLY static field on the matching PetXxx class, loaded from MyPet.Pets.<Type>.CanFly in pet-config.yml. Adding a new flying pet means implementing this interface and declaring a public static final ConfigKey<Boolean> CAN_FLY = ... field on the pet class.

  • Method Details

    • canFly

      default boolean canFly()
      Whether this pet may currently fly.
      Returns:
      true if flight is enabled for it