public class PokemonReceivedEvent
extends net.minecraftforge.eventbus.api.Event
Modifier and Type | Class and Description |
---|---|
static class |
PokemonReceivedEvent.Constants
All constants relating to the receive event
|
Constructor and Description |
---|
PokemonReceivedEvent(net.minecraft.entity.player.ServerPlayerEntity player,
Pokemon pokemon,
java.lang.String cause)
Constructor for the receive event
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCause()
Gets the cause of the event
|
net.minecraft.entity.player.ServerPlayerEntity |
getPlayer()
Gets the player being given the pokemon
|
Pokemon |
getPokemon()
Gets the pokemon being given
|
boolean |
isInternal()
Checks if the cause was something inside the Pixelmon mod - if false it means it was a plugin or someone made a mistake :))
|
public PokemonReceivedEvent(net.minecraft.entity.player.ServerPlayerEntity player, Pokemon pokemon, java.lang.String cause)
player
- The player receiving the pokemonpokemon
- The pokemon being givencause
- The cause of the givepublic net.minecraft.entity.player.ServerPlayerEntity getPlayer()
public java.lang.String getCause()
public Pokemon getPokemon()
public boolean isInternal()