Class ForceEndBattleEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.ForceEndBattleEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
public class ForceEndBattleEvent
extends BattleEvent
implements net.neoforged.bus.api.ICancellableEvent
Fired whenever a battle is about to be forcefully ended. Can be via a Fluffy Tail.
Cancel to prevent the battle from ending.
-
Field Summary
FieldsFields inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
battleController
-
Constructor Summary
Constructors -
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
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
-