Class ForceEndBattleEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.ForceEndBattleEvent
Fired whenever a battle is about to be forcefully ended. Can be via a Fluffy Tail.
Cancel to prevent the battle from ending.
-
Nested Class Summary
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
Fields inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
battleController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.server.level.ServerPlayer>
Gets a potentially empty list of players that were in the battle.Methods 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
-
cause
-
-
Constructor Details
-
ForceEndBattleEvent
-
-
Method Details
-
getPlayers
Gets a potentially empty list of players that were in the battle.- Returns:
- players from the battle
-