public static class EggHatchEvent.Pre extends EggHatchEvent
EggHatchEvent.Post, EggHatchEvent.Pre
Constructor and Description |
---|
Pre(net.minecraft.entity.player.ServerPlayerEntity player,
PokemonStorage storage,
Pokemon pokemon,
net.minecraft.util.text.ITextComponent message) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.text.ITextComponent |
getMessage()
Gets the hatch message being sent to the player
|
void |
setMessage(net.minecraft.util.text.ITextComponent message)
Sets the hatch message sent to the player
Setting this to null will cancel sending the message
|
getPlayer, getPokemon, getStorage
public Pre(net.minecraft.entity.player.ServerPlayerEntity player, PokemonStorage storage, Pokemon pokemon, net.minecraft.util.text.ITextComponent message)
public net.minecraft.util.text.ITextComponent getMessage()
public void setMessage(net.minecraft.util.text.ITextComponent message)
message
- The new message