Class NPCEvent.EndBattle
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.npc.NPCEvent
com.pixelmonmod.pixelmon.api.events.npc.NPCEvent.EndBattle
- Enclosing class:
- NPCEvent
Event fired when a player versus NPC battle ends.
Created by Waterdude
- Since:
- March 20, 2021
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCEvent
NPCEvent.EndBattle, NPCEvent.Interact, NPCEvent.StartBattle
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 TypeFieldDescriptionfinal boolean
Whether or not the battle ended in an abnormal (as in crash/error/forced) manner.final BattleController
TheBattleController
of the battle.final BattleEndCause
The cause of the battle ending, as perBattleEndCause
. -
Constructor Summary
ConstructorDescriptionEndBattle
(BattleController bc, BattleEndCause cause, boolean abnormal, Map<BattleParticipant, BattleResults> results) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
bc
TheBattleController
of the battle. -
cause
The cause of the battle ending, as perBattleEndCause
. -
abnormal
public final boolean abnormalWhether or not the battle ended in an abnormal (as in crash/error/forced) manner.
-
-
Constructor Details
-
EndBattle
public EndBattle(BattleController bc, BattleEndCause cause, boolean abnormal, Map<BattleParticipant, BattleResults> results)
-
-
Method Details
-
getPlayerParticipant
-
getNPCParticipant
-
getPlayerResults
-
getNPCResults
-