public class BattleEndEvent
extends net.minecraftforge.fml.common.eventhandler.Event
This is the recommended event for all end-of-battle listening due to its comprehensive information and its guaranteed execution regardless of what means the battle ends by.
Created by HirokuModifier and Type | Field and Description |
---|---|
boolean |
abnormal
Whether or not the battle ended in an abnormal (as in crash/error/forced) manner.
|
BattleControllerBase |
bc
The
BattleControllerBase of the battle. |
EnumBattleEndCause |
cause
The cause of the battle ending, as per
EnumBattleEndCause . |
com.google.common.collect.ImmutableMap<BattleParticipant,BattleResults> |
results
The battle results for each participant.
|
Constructor and Description |
---|
BattleEndEvent(BattleControllerBase bc,
EnumBattleEndCause cause,
boolean abnormal,
java.util.HashMap<BattleParticipant,BattleResults> results) |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<net.minecraft.entity.player.EntityPlayerMP> |
getPlayers()
Gets a potentially empty list of players that were in the battle.
|
public final BattleControllerBase bc
BattleControllerBase
of the battle.public final EnumBattleEndCause cause
EnumBattleEndCause
.public final boolean abnormal
public final com.google.common.collect.ImmutableMap<BattleParticipant,BattleResults> results
public BattleEndEvent(BattleControllerBase bc, EnumBattleEndCause cause, boolean abnormal, java.util.HashMap<BattleParticipant,BattleResults> results)