Class BattleStartedEvent.Pre
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.BattleStartedEvent
com.pixelmonmod.pixelmon.api.events.battles.BattleStartedEvent.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
BattleStartedEvent
public static class BattleStartedEvent.Pre
extends BattleStartedEvent
implements net.neoforged.bus.api.ICancellableEvent
Fired before the battle is registered and begins.
This is the event where all pre-battle checks should be performed as cancelling this event will prevent the battle from starting. However, it is note-worthy that this event is fired after the checks for evolutions and other battles are performed.
This is the event where all pre-battle checks should be performed as cancelling this event will prevent the battle from starting. However, it is note-worthy that this event is fired after the checks for evolutions and other battles are performed.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleStartedEvent
BattleStartedEvent.Post, BattleStartedEvent.Pre -
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleStartedEvent
teamOne, teamTwoFields inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
battleController -
Constructor Summary
ConstructorsConstructorDescriptionPre(BattleController bc, BattleParticipant[] team1, BattleParticipant[] team2) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleStartedEvent
getTeamOne, getTeamTwoMethods inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
getBattleControllerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Pre
-