public class EggHatchEvent
extends net.minecraftforge.fml.common.eventhandler.Event
Modifier and Type | Class and Description |
---|---|
static class |
EggHatchEvent.Post
Fired after the hatch is done (and message is sent)
|
static class |
EggHatchEvent.Pre
Fired before the egg is going to hatch
Using this event you can change the message sent to the player
|
Modifier | Constructor and Description |
---|---|
protected |
EggHatchEvent(net.minecraft.entity.player.EntityPlayerMP player,
PokemonStorage storage,
Pokemon pokemon) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.entity.player.EntityPlayerMP |
getPlayer()
Gets the player the egg is hatching for
Note: This can be null
|
Pokemon |
getPokemon()
Gets the pokemon that is hatching / just hatched
|
PokemonStorage |
getStorage()
Gets the storage the egg is hatching in
|
@Deprecated public final Pokemon pokemon
protected EggHatchEvent(net.minecraft.entity.player.EntityPlayerMP player, PokemonStorage storage, Pokemon pokemon)
public net.minecraft.entity.player.EntityPlayerMP getPlayer()
public PokemonStorage getStorage()
public Pokemon getPokemon()