Interface Trigger
public interface Trigger
Represents a trigger context associated with a skill cast.
-
Method Details
-
getId
Gets the unique ID of the trigger event type (e.g. "onAttack").- Returns:
- the trigger ID
-
getTriggerTarget
Gets the target entity or location that triggered this skill, if applicable.- Returns:
- an Optional containing the trigger target, or empty if none
-