public static class BreedEvent.BreedingLevelChanged extends BreedEvent
BreedEvent
subclass representing when a breeding level has changed (e.g. blue heart to yellow) in either directionBreedEvent.AddPokemon, BreedEvent.BreedingLevelChanged, BreedEvent.BreedingTicks, BreedEvent.CollectEgg, BreedEvent.EnvironmentStrength, BreedEvent.MakeEgg
Modifier and Type | Field and Description |
---|---|
int |
oldLevel
The old level it used to be at (no hearts is zero, red is 5)
|
EntityBreeding |
pokemon
The Pokémon whose breeding level has changed
|
owner, ranch
Constructor and Description |
---|
BreedingLevelChanged(java.util.UUID owner,
TileEntityRanchBlock ranch,
EntityBreeding pokemon,
int oldLevel,
int newLevel) |
Modifier and Type | Method and Description |
---|---|
short |
getNewLevel()
Gets the level it will be changed to
|
void |
setNewLevel(int newLevel)
Sets the new level for the Pokémon to advance to
|
public final EntityBreeding pokemon
public final int oldLevel
public BreedingLevelChanged(java.util.UUID owner, TileEntityRanchBlock ranch, EntityBreeding pokemon, int oldLevel, int newLevel)
public short getNewLevel()
public void setNewLevel(int newLevel)
newLevel
- - The new level, which will be forced to within bounds (no hearts is zero, red is 5)