Interface Trigger


public interface Trigger
Represents a trigger context associated with a skill cast.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    Gets the unique ID of the trigger event type (e.g.
    default @NotNull Optional<Target>
    Gets the target entity or location that triggered this skill, if applicable.
  • Method Details

    • getId

      @NotNull @NotNull String getId()
      Gets the unique ID of the trigger event type (e.g. "onAttack").
      Returns:
      the trigger ID
    • getTriggerTarget

      @NotNull default @NotNull Optional<Target> getTriggerTarget()
      Gets the target entity or location that triggered this skill, if applicable.
      Returns:
      an Optional containing the trigger target, or empty if none