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

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraftforge.event.TickEvent.Phase
    The TickEvent.Phase that the update is occurring in.
    The PixelmonEntity instance that's being updated
  • Constructor Summary

    Constructors
    Constructor
    Description
    PixelmonUpdateEvent(PixelmonEntity pokemon, net.minecraftforge.event.TickEvent.Phase phase)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • pokemon

      public final PixelmonEntity pokemon
      The PixelmonEntity instance that's being updated
    • phase

      public final net.minecraftforge.event.TickEvent.Phase phase
      The TickEvent.Phase that the update is occurring in. When Phase.END, this event cannot be canceled
  • Constructor Details

    • PixelmonUpdateEvent

      public PixelmonUpdateEvent(PixelmonEntity pokemon, net.minecraftforge.event.TickEvent.Phase phase)
  • Method Details

    • isCancelable

      public boolean isCancelable()
      Overrides:
      isCancelable in class net.minecraftforge.eventbus.api.Event