Interface PetNaturalDrop

All Superinterfaces:
Pet, Scheduler, StoredPet

public interface PetNaturalDrop extends Pet
Marker for pet types whose underlying vanilla mob has a periodic AI-tick item drop (chicken eggs, armadillo scutes, sniffer seeds, goat horns, panda baby slimeballs, ...). In v4 pets are real vanilla mobs, so these drops happen for free on every tame pet. Implementers expose two pieces of metadata that PetDropListener uses to decide whether to cancel the drop event:
  1. naturalDropMaterials() — the set of vanilla Materials this pet may periodically drop. Most pets drop a single material; sniffers drop two (torchflower seed and pitcher pod).
  2. isNaturalDropSuppressed() — reads the implementer's own per-pet config flag (e.g. PetChicken.CAN_LAY_EGGS). Returns true when the admin has disabled the drop.

Per-pet flag names stay semantically rich (CanLayEggs, CanShedScute, CanDigSeeds) because each implementer reads its own ConfigKey static field. The listener never names them.

  • Method Details

    • naturalDropMaterials

      Set<Material> naturalDropMaterials()
      The set of materials this pet type may periodically drop (e.g. EGG for chicken, ARMADILLO_SCUTE for armadillo).
      Returns:
      the items this pet drops on its own
    • isNaturalDropSuppressed

      boolean isNaturalDropSuppressed()
      Returns true if the admin has disabled this pet type's natural drop via the per-type config flag.
      Returns:
      true if the drop is currently blocked