Interface Metaskill

All Superinterfaces:
Mechanic

public interface Metaskill extends Mechanic
Represents a meta-skill consisting of multiple sequenced mechanics.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    execute(@NotNull SkillContext context, @NotNull Collection<Target> targets)
    Executes this mechanic on the provided collection of targets.
    default @Nullable BindConfig
    Gets the binding configuration defining which entities possess this skill.
    Gets the collection of mechanic wrappers that define the steps of this skill.
    @NotNull String
    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

      @NotNull @NotNull String getName()
      Gets the name of the skill.
      Returns:
      the skill name
    • getMechanics

      @NotNull @NotNull Collection<MechanicWrapper> getMechanics()
      Gets the collection of mechanic wrappers that define the steps of this skill.
      Returns:
      collection of mechanic wrappers
    • getTriggers

      @NotNull default @NotNull Collection<String> getTriggers()
      Gets the collection of registered trigger event IDs that can execute this skill.
      Returns:
      collection of trigger strings
    • getBindConfig

      @Nullable default @Nullable BindConfig 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: Mechanic
      Executes this mechanic on the provided collection of targets.
      Specified by:
      execute in interface Mechanic
      Parameters:
      context - the context of the skill execution
      targets - the targets to execute this action on