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 TypeFieldDescriptionint
The number of ticks that this use will take to cool down.final MoveSkill
The move skill being used.final PixelmonEntity
The 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, wait
Methods 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
-