Package org.yuemi.mmomechanics.api.skill
Interface Metaskill
- All Superinterfaces:
Mechanic
Represents a meta-skill consisting of multiple sequenced mechanics.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidexecute(@NotNull SkillContext context, @NotNull Collection<Target> targets) Executes this mechanic on the provided collection of targets.default @Nullable BindConfigGets the binding configuration defining which entities possess this skill.@NotNull Collection<MechanicWrapper> Gets the collection of mechanic wrappers that define the steps of this skill.@NotNull StringgetName()Gets the name of the skill.default @NotNull Collection<String> Gets the collection of registered trigger event IDs that can execute this skill.
-
Method Details
-
getName
Gets the name of the skill.- Returns:
- the skill name
-
getMechanics
Gets the collection of mechanic wrappers that define the steps of this skill.- Returns:
- collection of mechanic wrappers
-
getTriggers
Gets the collection of registered trigger event IDs that can execute this skill.- Returns:
- collection of trigger strings
-
getBindConfig
Gets the binding configuration defining which entities possess this skill.- Returns:
- the binding config, or null if not set
-
execute
default void execute(@NotNull @NotNull SkillContext context, @NotNull @NotNull Collection<Target> targets) Description copied from interface:MechanicExecutes this mechanic on the provided collection of targets.
-