Klasse AbilityService
java.lang.Object
de.delinkedde.mobarenareborn.ability.AbilityService
Resolves and executes a player's active class ability.
An input is handled only when the player is in an arena, has chosen a class, and the input
key matches that class's ability-key. A per-player, per-ability cooldown is enforced.
Abilities are implemented with the public Bukkit API (potion effects, velocity, projectiles,
direct damage) and the ThreatService for taunts.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAbilityService(@NotNull SessionManager sessions, @NotNull ClassRegistry classRegistry, @NotNull ThreatService threat, @NotNull ProgressionService progression, @NotNull MobScaler scaler) -
Methodenübersicht
-
Konstruktordetails
-
AbilityService
public AbilityService(@NotNull @NotNull SessionManager sessions, @NotNull @NotNull ClassRegistry classRegistry, @NotNull @NotNull ThreatService threat, @NotNull @NotNull ProgressionService progression, @NotNull @NotNull MobScaler scaler) - Parameter:
sessions- the session managerclassRegistry- the class registrythreat- the threat service, used by tauntprogression- the progression service, used to resolve ability unlock levelsscaler- the mob scaler, providing the arena-mob marker key
-
-
Methodendetails
-
trigger
Attempts to trigger the caster's ability for the given input key.- Parameter:
caster- the playerkeyToken- the input key token (for exampleF)- Gibt zurück:
trueif the input matched the caster's ability key (so the underlying input should be consumed), even if the ability was on cooldown
-