Class UseMoveSkillEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.moveskills.UseMoveSkillEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
public class UseMoveSkillEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.bus.api.ICancellableEvent
Event fired when any move skill is used.
Cancelling this event will prevent the move skill from executing.
Cancelling this event will prevent the move skill from executing.
- Since:
- September 22, 2019
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe data object associated with the move skill.The handler to fire when this particular move proceeds, provided it isn't cancelled.final MoveSkill
The move skill being used.final PixelmonEntity
The Pokémon entity using the move skill. -
Constructor Summary
ConstructorsConstructorDescriptionUseMoveSkillEvent
(PixelmonEntity pixelmon, MoveSkill moveSkill, Object data) -
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. -
data
The data object associated with the move skill. In the case of no-target, this is null. In the case of entity related targets this will be an entity. Finally, in the case of a block target this will be Tupleinvalid input: '<'BlockPos, EnumFacing>.
You can change this if you want, just know that I'll be very disappointed in you if you stuff it up. -
handler
The handler to fire when this particular move proceeds, provided it isn't cancelled. This is a convenient
-
-
Constructor Details
-
UseMoveSkillEvent
-
-
Method Details
-
onCooldown
-