public abstract class EggHatchEvent
extends net.minecraftforge.eventbus.api.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.ServerPlayerEntity player,
PokemonStorage storage,
Pokemon pokemon) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.entity.player.ServerPlayerEntity |
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
|
protected EggHatchEvent(net.minecraft.entity.player.ServerPlayerEntity player, PokemonStorage storage, Pokemon pokemon)
public net.minecraft.entity.player.ServerPlayerEntity getPlayer()
public PokemonStorage getStorage()
public Pokemon getPokemon()