Class NPCEvent.EndBattle
java.lang.Object
net.neoforged.bus.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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCEvent
NPCEvent.EndBattle, NPCEvent.StartBattle
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final boolean
protected final BattleController
protected final BattleEndCause
protected final Map
<BattleParticipant, BattleResults> -
Constructor Summary
ConstructorsConstructorDescriptionEndBattle
(BattleController bc, BattleEndCause cause, boolean abnormal, Map<BattleParticipant, BattleResults> results) -
Method Summary
Modifier and TypeMethodDescriptionboolean
-
Field Details
-
bc
-
cause
-
abnormal
protected final boolean abnormal -
results
-
-
Constructor Details
-
EndBattle
public EndBattle(BattleController bc, BattleEndCause cause, boolean abnormal, Map<BattleParticipant, BattleResults> results)
-
-
Method Details
-
getPlayerResults
-
getNPCResults
-
getBattleController
-
getEndCause
-
isAbnormal
public boolean isAbnormal() -
getResults
-