Class PixelmonUpdateEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PixelmonUpdateEvent
public class PixelmonUpdateEvent
extends net.minecraftforge.eventbus.api.Event
Event fired specifically when update() is started and finished on EntityPixelmon.
This serves as a shortcut event for LivingUpdateEvent and also a means of checking post updates
-
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 TypeFieldDescriptionfinal net.minecraftforge.event.TickEvent.Phase
TheTickEvent.Phase
that the update is occurring in.final PixelmonEntity
ThePixelmonEntity
instance that's being updated -
Constructor Summary
ConstructorDescriptionPixelmonUpdateEvent
(PixelmonEntity pokemon, net.minecraftforge.event.TickEvent.Phase phase) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
pokemon
ThePixelmonEntity
instance that's being updated -
phase
public final net.minecraftforge.event.TickEvent.Phase phaseTheTickEvent.Phase
that the update is occurring in. WhenPhase.END
, this event cannot be canceled
-
-
Constructor Details
-
PixelmonUpdateEvent
-
-
Method Details
-
isCancelable
public boolean isCancelable()- Overrides:
isCancelable
in classnet.minecraftforge.eventbus.api.Event
-