Class TempBattlePokemonLevel

java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.stats.PokemonLevel
com.pixelmonmod.pixelmon.api.pokemon.stats.TempBattlePokemonLevel

public class TempBattlePokemonLevel extends PokemonLevel
Created by Jay113355 on 3/4/2019.
  • Field Details

    • level

      protected int level
    • exp

      protected int exp
  • Constructor Details

    • TempBattlePokemonLevel

      public TempBattlePokemonLevel(DelegateLink p, int level)
      Initializes a pokemonLevel.
      Parameters:
      p - The Pokémon who has this pokemonLevel.
  • Method Details

    • getPokemonLevel

      public int getPokemonLevel()
      Description copied from class: PokemonLevel
      Gets the Pokémon's pokemonLevel.
      Overrides:
      getPokemonLevel in class PokemonLevel
      Returns:
      The Pokémon's pokemonLevel.
    • setLevel

      public void setLevel(int i)
      Description copied from class: PokemonLevel
      Sets the Pokémon's pokemonLevel and updates its health proportionally.
      Overrides:
      setLevel in class PokemonLevel
      Parameters:
      i - The new pokemonLevel.
    • updateExpToNextLevel

      public void updateExpToNextLevel()
      Description copied from class: PokemonLevel
      Updates the amount of experience between the current and next levels.
      Overrides:
      updateExpToNextLevel in class PokemonLevel
    • getExp

      public int getExp()
      Description copied from class: PokemonLevel
      Gets the amount of experience the Pokémon has.
      Overrides:
      getExp in class PokemonLevel
      Returns:
      The amount of experience the Pokémon has
    • setExp

      public void setExp(int experience)
      Description copied from class: PokemonLevel
      Sets the Pokémon's experience.
      Overrides:
      setExp in class PokemonLevel
      Parameters:
      experience - The Pokémon's experience.
    • canLevelUp

      public boolean canLevelUp()
      Description copied from class: PokemonLevel
      Checks if the Pokémon can pokemonLevel up.
      Overrides:
      canLevelUp in class PokemonLevel
      Returns:
      Whether the Pokémon can pokemonLevel up.
    • onLevelUp

      protected void onLevelUp(PixelmonStatsData stats)
      Description copied from class: PokemonLevel
      Updates the Pokémon's stats upon leveling up.
      Overrides:
      onLevelUp in class PokemonLevel
      Parameters:
      stats - The stats to update.
    • awardEXP

      public void awardEXP(int experience, ExperienceGainType type)
      Overrides:
      awardEXP in class PokemonLevel
    • recalculateXP

      public void recalculateXP()
      Description copied from class: PokemonLevel
      Resets the Pokémon experience to the beginning of the pokemonLevel.
      Overrides:
      recalculateXP in class PokemonLevel