Class HealFraction

java.lang.Object
com.pixelmonmod.pixelmon.items.HealFraction
All Implemented Interfaces:
IHealHP

public class HealFraction extends Object implements IHealHP
Heals a Pokémon by a fraction of its maximum hp.
  • Constructor Details

    • HealFraction

      public HealFraction(float healFraction)
      Initializes the heal method.
      Parameters:
      healFraction - The fraction of hp the Pokémon will heal.
  • Method Details

    • getHealAmount

      public int getHealAmount(PokemonLink pokemon)
      Description copied from interface: IHealHP
      Gets the amount of hp that the Pokémon will be healed by.
      Specified by:
      getHealAmount in interface IHealHP
      Parameters:
      pokemon - The Pokémon to heal.
      Returns:
      The amount of hp that the Pokémon will be healed by.