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.
-
ClassDescriptionA single condition that must be satisfied before a player can leash (tame) a mob as a pet.Central registry for
LeashFlagimplementations.Declares the config-facing name of aLeashFlagimplementation.WildAngerCheck<T extends Mob>Per-species predicate that decides whether a wild Bukkit mob is currently "angry" — consumed by capture-time leash flags (seeAngryFlag).Central registry of everyWildAngerCheckdeclared as a static field on a pet class.