Interface Requirement
public interface Requirement
A condition that must be satisfied before a pet can use a particular
Skilltree.
Requirements are registered with the SkilltreeManager
and referenced by name in .st.json skilltree files. At runtime, when a player
attempts to select or is assigned a skilltree, each configured requirement is evaluated
via check(Skilltree, Pet, Settings).
Implementations must be annotated with RequirementName so they can be discovered
and looked up by name.
Common implementations include permission checks, economy balance checks, and pet-level thresholds.
-
Method Summary
-
Method Details
-
check
Evaluates whether the given pet meets this requirement for the specified skilltree.- Parameters:
skilltree- the skilltree the pet wants to usepet- the pet being evaluatedsettings- the requirement-specific configuration from the skilltree definition- Returns:
trueif the requirement is satisfied
-