Class TempBattlePokemonLevel
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.stats.PokemonLevel
com.pixelmonmod.pixelmon.api.pokemon.stats.TempBattlePokemonLevel
Created by Jay113355 on 3/4/2019.
-
Field Summary
FieldsFields inherited from class com.pixelmonmod.pixelmon.api.pokemon.stats.PokemonLevel
expToNextLevel, lastLevelType, pixelmon -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidawardEXP(int experience, ExperienceGainType type) booleanChecks if the Pokémon can pokemonLevel up.intgetExp()Gets the amount of experience the Pokémon has.intGets the Pokémon's pokemonLevel.protected voidonLevelUp(PixelmonStatsData stats) Updates the Pokémon's stats upon leveling up.voidResets the Pokémon experience to the beginning of the pokemonLevel.voidsetExp(int experience) Sets the Pokémon's experience.voidsetLevel(int i) Sets the Pokémon's pokemonLevel and updates its health proportionally.voidUpdates the amount of experience between the current and next levels.Methods inherited from class com.pixelmonmod.pixelmon.api.pokemon.stats.PokemonLevel
awardEXP, awardEXP, getExpForLevel, getExpForNextLevelClient, getExpFraction, getExpFraction, getLastLevelType, readFromNBT, updateStats, writeToNBT
-
Field Details
-
level
protected int level -
exp
protected int exp
-
-
Constructor Details
-
TempBattlePokemonLevel
Initializes a pokemonLevel.- Parameters:
p- The Pokémon who has this pokemonLevel.
-
-
Method Details
-
getPokemonLevel
public int getPokemonLevel()Description copied from class:PokemonLevelGets the Pokémon's pokemonLevel.- Overrides:
getPokemonLevelin classPokemonLevel- Returns:
- The Pokémon's pokemonLevel.
-
setLevel
public void setLevel(int i) Description copied from class:PokemonLevelSets the Pokémon's pokemonLevel and updates its health proportionally.- Overrides:
setLevelin classPokemonLevel- Parameters:
i- The new pokemonLevel.
-
updateExpToNextLevel
public void updateExpToNextLevel()Description copied from class:PokemonLevelUpdates the amount of experience between the current and next levels.- Overrides:
updateExpToNextLevelin classPokemonLevel
-
getExp
public int getExp()Description copied from class:PokemonLevelGets the amount of experience the Pokémon has.- Overrides:
getExpin classPokemonLevel- Returns:
- The amount of experience the Pokémon has
-
setExp
public void setExp(int experience) Description copied from class:PokemonLevelSets the Pokémon's experience.- Overrides:
setExpin classPokemonLevel- Parameters:
experience- The Pokémon's experience.
-
canLevelUp
public boolean canLevelUp()Description copied from class:PokemonLevelChecks if the Pokémon can pokemonLevel up.- Overrides:
canLevelUpin classPokemonLevel- Returns:
- Whether the Pokémon can pokemonLevel up.
-
onLevelUp
Description copied from class:PokemonLevelUpdates the Pokémon's stats upon leveling up.- Overrides:
onLevelUpin classPokemonLevel- Parameters:
stats- The stats to update.
-
awardEXP
- Overrides:
awardEXPin classPokemonLevel
-
recalculateXP
public void recalculateXP()Description copied from class:PokemonLevelResets the Pokémon experience to the beginning of the pokemonLevel.- Overrides:
recalculateXPin classPokemonLevel
-