Package emu.grasscutter.game.ability
Class AbilityManager
java.lang.Object
emu.grasscutter.game.player.BasePlayerManager
emu.grasscutter.game.ability.AbilityManager
-
Field Summary
Fields inherited from class emu.grasscutter.game.player.BasePlayerManager
player -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidonSkillEnd(Player player) Invoked when a player ends a skill.voidonSkillStart(Player player, int skillId, int casterId) Invoked when a player starts a skill.Methods inherited from class emu.grasscutter.game.player.BasePlayerManager
getPlayer, save
-
Constructor Details
-
AbilityManager
-
-
Method Details
-
onAbilityInvoke
public void onAbilityInvoke(AbilityInvokeEntryOuterClass.AbilityInvokeEntry invoke) throws Exception - Throws:
Exception
-
onSkillStart
Invoked when a player starts a skill.- Parameters:
player- The player who started the skill.skillId- The skill ID.casterId- The caster ID.
-
onSkillEnd
Invoked when a player ends a skill.- Parameters:
player- The player who started the skill.
-
isAbilityInvulnerable
public boolean isAbilityInvulnerable()
-