Package de.Keyle.MyPet.api.skill
Interface ActiveSkill
public interface ActiveSkill
Marker interface for skills that can be manually activated by the player (e.g., via
a command or hotkey). A skill implementing
ActiveSkill exposes an
activate() method that triggers the skill's one-shot effect, as opposed to
passive skills that fire automatically on combat events.
Examples of active skills include Beacon (applies a potion effect area) and
Lightning (strikes a target with lightning). The plugin's command layer calls
activate() when the owning player requests the skill.
- See Also:
-
Method Summary
-
Method Details
-
activate
boolean activate()Attempts to activate this skill's effect.- Returns:
trueif the skill fired successfully;falseif it could not activate (e.g., on cooldown, missing targets, or insufficient level)
-