Class MoveSkillCooldownEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.moveskills.MoveSkillCooldownEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
public class MoveSkillCooldownEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.bus.api.ICancellableEvent
Event fired when a move skill cooldown is about to be applied to a
Pokémon.
Canceling this event will remove the cooldown.
Canceling this event will remove the cooldown.
- Since:
- September 22, 2019
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe number of ticks that this use will take to cool down.final MoveSkillThe move skill being used.final PixelmonEntityThe Pokémon entity using the move skill. -
Constructor Summary
ConstructorsConstructorDescriptionMoveSkillCooldownEvent(PixelmonEntity pixelmon, MoveSkill moveSkill, int cooldownTicks) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
pixelmon
The Pokémon entity using the move skill. -
moveSkill
The move skill being used. -
cooldownTicks
public int cooldownTicksThe number of ticks that this use will take to cool down.
-
-
Constructor Details
-
MoveSkillCooldownEvent
-