public class PokemonRetrievedEvent
extends net.minecraftforge.eventbus.api.Event
Modifier and Type | Class and Description |
---|---|
static class |
PokemonRetrievedEvent.Constants
All constants relating to the retrieve event
|
static class |
PokemonRetrievedEvent.Post
Event fired after the Pokémon entity has been removed from the world.
|
static class |
PokemonRetrievedEvent.Pre
Event fired before the Pokémon entity has been removed from the world.
|
Constructor and Description |
---|
PokemonRetrievedEvent(net.minecraft.entity.LivingEntity owner,
Pokemon pokemon,
java.lang.String cause)
Constructor for the retrieve event
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCause()
Gets the cause of the event.
|
net.minecraft.entity.LivingEntity |
getOwner()
Gets the player/entity retrieving the Pokémon.
|
Pokemon |
getPokemon()
Gets the Pokémon being retrieved.
|
public PokemonRetrievedEvent(@Nullable net.minecraft.entity.LivingEntity owner, Pokemon pokemon, java.lang.String cause)
owner
- The player or entity retrieving the Pokémonpokemon
- The Pokémon that is returning to its PokeBall.cause
- The cause of the retrieval.@Nullable public net.minecraft.entity.LivingEntity getOwner()
public java.lang.String getCause()
public Pokemon getPokemon()