Class PokemonRetrievedEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PokemonRetrievedEvent
- Direct Known Subclasses:
PokemonRetrievedEvent.Post
,PokemonRetrievedEvent.Pre
public class PokemonRetrievedEvent
extends net.minecraftforge.eventbus.api.Event
This event is fired when a LivingEntity retrieves the entity of their Pokémon
(that they already own, not a newly caught Pokémon) from the world.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
All constants relating to the retrieve eventstatic class
Event fired after the Pokémon entity has been removed from the world.static class
Event fired before the Pokémon entity has been removed from the world.Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ConstructorDescriptionPokemonRetrievedEvent
(net.minecraft.world.entity.LivingEntity owner, Pokemon pokemon, String cause) Constructor for the retrieve event -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
PokemonRetrievedEvent
public PokemonRetrievedEvent(@Nullable net.minecraft.world.entity.LivingEntity owner, Pokemon pokemon, String cause) Constructor for the retrieve event- Parameters:
owner
- The player or entity retrieving the Pokémonpokemon
- The Pokémon that is returning to its PokeBall.cause
- The cause of the retrieval.
-
-
Method Details
-
getOwner
@Nullable public net.minecraft.world.entity.LivingEntity getOwner()Gets the player/entity retrieving the Pokémon.- Returns:
- The owner of the Pokémon
-
getCause
Gets the cause of the event.- Returns:
- The cause
-
getPokemon
Gets the Pokémon being retrieved.- Returns:
- The Pokémon
-