Class BattleEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
Direct Known Subclasses:
ApplyBonusStatsEvent, AttackEvent, BagItemEvent, BattleEndEvent, BattleStartedEvent, BattleStatStageModifyBattleEvent, BattleTickEvent, ExperienceGainEvent, ForceEndBattleEvent, SetBattleAIEvent, SpectateEvent, TurnEndEvent, UseBattleItemEvent

public class BattleEvent extends net.minecraftforge.eventbus.api.Event
The parent class for all battle related events
  • 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 BattleController
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    BattleEvent(BattleController battleController)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the battle controller for the battle this event took place in

    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

  • Constructor Details

  • Method Details

    • getBattleController

      public BattleController getBattleController()
      Gets the battle controller for the battle this event took place in
      Returns:
      The battle controller