Class TurnEndEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.TurnEndEvent

public class TurnEndEvent extends BattleEvent
Event fired at the end of a turn in battles. This can include if the battle is ending.
  • 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
    protected final int
     

    Fields inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent

    battleController
  • Constructor Summary

    Constructors
    Constructor
    Description
    TurnEndEvent(BattleController battleController, int turnNumber)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the number of the turn that just ended

    Methods inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent

    getBattleController

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

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

    Methods inherited from class java.lang.Object

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

    • turnNumber

      protected final int turnNumber
  • Constructor Details

    • TurnEndEvent

      public TurnEndEvent(BattleController battleController, int turnNumber)
  • Method Details

    • getTurnNumber

      public int getTurnNumber()
      Gets the number of the turn that just ended
      Returns:
      The turn that just ended