Class SpawnPixelmonEntityForBattleEvent.Pre
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.SpawnPixelmonEntityForBattleEvent
com.pixelmonmod.pixelmon.api.events.SpawnPixelmonEntityForBattleEvent.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
SpawnPixelmonEntityForBattleEvent
public static class SpawnPixelmonEntityForBattleEvent.Pre
extends SpawnPixelmonEntityForBattleEvent
implements net.neoforged.bus.api.ICancellableEvent
Event fired before the Pokémon entity is spawned for battle.
Cancelling this will prevent the Pokémon entity from appearing in the world.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.SpawnPixelmonEntityForBattleEvent
SpawnPixelmonEntityForBattleEvent.Post, SpawnPixelmonEntityForBattleEvent.Pre
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
battleController
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.SpawnPixelmonEntityForBattleEvent
getPokemon
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
-
Constructor Details
-
Pre
Basic constructor- Parameters:
pokemon
- The Pokémon
-