Class TurnEndEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.TurnEndEvent
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 inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
battleController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the number of the turn that just endedMethods 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
-
Field Details
-
turnNumber
protected final int turnNumber
-
-
Constructor Details
-
TurnEndEvent
-
-
Method Details
-
getTurnNumber
public int getTurnNumber()Gets the number of the turn that just ended- Returns:
- The turn that just ended
-