public static class BreedEvent.MakeEgg extends BreedEvent
BreedEvent
subclass representing when an egg is created within the ranch block.
Note: Canceling this event will reset the parent Pokémon's breeding stages and not create the egg
BreedEvent.AddPokemon, BreedEvent.BreedingLevelChanged, BreedEvent.BreedingTicks, BreedEvent.CollectEgg, BreedEvent.EnvironmentStrength, BreedEvent.MakeEgg
Modifier and Type | Field and Description |
---|---|
Pokemon |
parent1
The first parent Pokémon
|
Pokemon |
parent2
The second parent Pokémon
|
owner, ranch
Constructor and Description |
---|
MakeEgg(java.util.UUID owner,
TileEntityRanchBlock ranch,
Pokemon egg,
Pokemon parent1,
Pokemon parent2) |
Modifier and Type | Method and Description |
---|---|
Pokemon |
getEgg()
Gets the
EntityPixelmon which will be the egg, allowing modifications |
void |
setEgg(Pokemon egg)
Sets the
EntityPixelmon which will be the new egg. |
public final Pokemon parent1
public final Pokemon parent2
public MakeEgg(java.util.UUID owner, TileEntityRanchBlock ranch, Pokemon egg, Pokemon parent1, Pokemon parent2)
public Pokemon getEgg()
EntityPixelmon
which will be the egg, allowing modificationsEntityPixelmon
being givenpublic void setEgg(Pokemon egg)
EntityPixelmon
which will be the new egg. This should only be used for a new object, not modifying existing.egg
- - The new EntityPixelmon
to use as the egg. Nulls are not accepted