Class PokemonSendOutEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PokemonSendOutEvent
- Direct Known Subclasses:
PokemonSendOutEvent.Post
,PokemonSendOutEvent.Pre
public abstract class PokemonSendOutEvent
extends net.minecraftforge.eventbus.api.Event
Fires around the Pokemon send out logic from the player's key press
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Event fired after the pokemon has been sent out by the playerstatic class
Event fired before the pokemon is sent out by the player Cancelling this will prevent the pokemon entity from appearing in the worldNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ModifierConstructorDescriptionprotected
PokemonSendOutEvent
(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.server.level.ServerPlayer
Gets the player sending out the pokemonGets the pokemon being sent outMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
PokemonSendOutEvent
-
-
Method Details
-
getPlayer
public net.minecraft.server.level.ServerPlayer getPlayer()Gets the player sending out the pokemon- Returns:
- The player
-
getPokemon
Gets the pokemon being sent out- Returns:
- Sent out pokemon
-