Class UseMoveSkillEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.moveskills.UseMoveSkillEvent
public class UseMoveSkillEvent
extends net.minecraftforge.eventbus.api.Event
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
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier 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
ConstructorDescriptionUseMoveSkillEvent
(PixelmonEntity pixelmon, MoveSkill moveSkill, Object data) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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 Tuple<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
-