Class BattleStartedEvent.Pre

java.lang.Object
net.neoforged.bus.api.Event
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.