public class TempBattlePokemonLevel extends PokemonLevel
| Modifier and Type | Field and Description |
|---|---|
protected int |
exp |
protected int |
level |
expToNextLevel, lastLevelType, pixelmon| Constructor and Description |
|---|
TempBattlePokemonLevel(DelegateLink p,
int level)
Initializes a pokemonLevel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
awardEXP(int experience,
ExperienceGainType type) |
boolean |
canLevelUp()
Checks if the Pokémon can pokemonLevel up.
|
int |
getExp()
Gets the amount of experience the Pokémon has.
|
int |
getPokemonLevel()
Gets the Pokémon's pokemonLevel.
|
protected void |
onLevelUp(PixelmonStatsData stats)
Updates the Pokémon's stats upon leveling up.
|
void |
recalculateXP()
Resets the Pokémon experience to the beginning of the pokemonLevel.
|
void |
setExp(int experience)
Sets the Pokémon's experience.
|
void |
setLevel(int i)
Sets the Pokémon's pokemonLevel and updates its health proportionally.
|
void |
updateExpToNextLevel()
Updates the amount of experience between the current and next levels.
|
awardEXP, awardEXP, getExpForLevel, getExpForNextLevelClient, getExpFraction, getExpFraction, getLastLevelType, readFromNBT, updateStats, writeToNBTpublic TempBattlePokemonLevel(DelegateLink p, int level)
p - The Pokémon who has this pokemonLevel.public int getPokemonLevel()
PokemonLevelgetPokemonLevel in class PokemonLevelpublic void setLevel(int i)
PokemonLevelsetLevel in class PokemonLeveli - The new pokemonLevel.public void updateExpToNextLevel()
PokemonLevelupdateExpToNextLevel in class PokemonLevelpublic int getExp()
PokemonLevelgetExp in class PokemonLevelpublic void setExp(int experience)
PokemonLevelsetExp in class PokemonLevelexperience - The Pokémon's experience.public boolean canLevelUp()
PokemonLevelcanLevelUp in class PokemonLevelprotected void onLevelUp(PixelmonStatsData stats)
PokemonLevelonLevelUp in class PokemonLevelstats - The stats to update.public void awardEXP(int experience,
ExperienceGainType type)
awardEXP in class PokemonLevelpublic void recalculateXP()
PokemonLevelrecalculateXP in class PokemonLevel