public static class BreedEvent.CollectEgg extends BreedEvent
BreedEvent
subclass representing when a player collects an egg from a ranch block.
This event is Cancelable, but you should warn the player yourself.
The BreedEvent.owner
is also the source.
If you cancel this event, you might also want to close the player's screen,
BreedEvent.AddPokemon, BreedEvent.BreedingLevelChanged, BreedEvent.BreedingTicks, BreedEvent.CollectEgg, BreedEvent.EnvironmentStrength, BreedEvent.MakeEgg
owner, ranch
Constructor and Description |
---|
CollectEgg(java.util.UUID owner,
TileEntityRanchBlock ranch,
Pokemon egg) |
Modifier and Type | Method and Description |
---|---|
Pokemon |
getEgg()
Gets the current
EntityPixelmon which will be the egg |
void |
setEgg(Pokemon egg)
Sets a new Pokémon to be received as the egg.
|
public CollectEgg(java.util.UUID owner, TileEntityRanchBlock ranch, Pokemon egg)
public void setEgg(Pokemon egg)
egg
- - The new EntityPixelmon
to use as the egg. It better be in egg form otherwise it'll be awkwardpublic Pokemon getEgg()
EntityPixelmon
which will be the egg