Package de.Keyle.MyPet.api.entity.leashing


package de.Keyle.MyPet.api.entity.leashing
Conditions checked before a player may capture a wild mob as a pet.

Each LeashFlag is one condition, named for the config through LeashFlagName and registered with LeashFlagManager. Server owners combine flags in config.yml to decide what counts as a capturable mob.

WildAngerCheck answers the recurring "is this wild mob currently angry?" question per species, so capture-time flags do not each need their own species switch. Checks are declared on the pet class and collected by WildAngerCheckRegistry.

  • Class
    Description
    A single condition that must be satisfied before a player can leash (tame) a mob as a pet.
    Central registry for LeashFlag implementations.
    Declares the config-facing name of a LeashFlag implementation.
    WildAngerCheck<T extends Mob>
    Per-species predicate that decides whether a wild Bukkit mob is currently "angry" — consumed by capture-time leash flags (see AngryFlag).
    Central registry of every WildAngerCheck declared as a static field on a pet class.