Class BattleStartedEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.BattleStartedEvent
- Direct Known Subclasses:
BattleStartedEvent.Post
,BattleStartedEvent.Pre
This class represents the events fired when a battle begins between two sides.
All battles are started using the
Check
BattleRegistry.startBattle(BattleParticipant, BattleParticipant)
functions which is where this event is most likely called from.
Check
BattleStartedEvent.Pre
and BattleStartedEvent.Post
for more specific implementation details-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after the battle has been registered and begun.static class
Fired before the battle is registered and begins.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 TypeFieldDescriptionprotected final BattleParticipant[]
protected final BattleParticipant[]
Fields inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
battleController
-
Constructor Summary
ModifierConstructorDescriptionprotected
BattleStartedEvent
(BattleController bc, BattleParticipant[] teamOne, BattleParticipant[] teamTwo) -
Method Summary
Modifier and TypeMethodDescriptionGets the first team of battle participantsGets the second team of battle participantsMethods 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
-
teamOne
-
teamTwo
-
-
Constructor Details
-
BattleStartedEvent
protected BattleStartedEvent(BattleController bc, BattleParticipant[] teamOne, BattleParticipant[] teamTwo)
-
-
Method Details
-
getTeamOne
Gets the first team of battle participants- Returns:
- The first team
-
getTeamTwo
Gets the second team of battle participants- Returns:
- The second team
-