public abstract class PokemonSendOutEvent
extends net.minecraftforge.eventbus.api.Event
Modifier and Type | Class and Description |
---|---|
static class |
PokemonSendOutEvent.Post
Event fired after the pokemon has been sent out by the player
|
static class |
PokemonSendOutEvent.Pre
Event fired before the pokemon is sent out by the player
Cancelling this will prevent the pokemon entity from appearing in the world
|
Modifier | Constructor and Description |
---|---|
protected |
PokemonSendOutEvent(net.minecraft.entity.player.ServerPlayerEntity player,
Pokemon pokemon) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.entity.player.ServerPlayerEntity |
getPlayer()
Gets the player sending out the pokemon
|
Pokemon |
getPokemon()
Gets the pokemon being sent out
|
protected PokemonSendOutEvent(net.minecraft.entity.player.ServerPlayerEntity player, Pokemon pokemon)
public net.minecraft.entity.player.ServerPlayerEntity getPlayer()
public Pokemon getPokemon()