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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCEvent
NPCEvent.EndBattle, 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 TypeFieldDescriptionprotected final boolean
protected final BattleController
protected final BattleEndCause
protected final Map<BattleParticipant,
BattleResults> -
Constructor Summary
ConstructorDescriptionEndBattle
(BattleController bc, BattleEndCause cause, boolean abnormal, Map<BattleParticipant, BattleResults> results) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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
-