Class HealFixed

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

public class HealFixed extends Object implements IHealHP
Heals a Pokémon by a fixed hp amount.
  • Constructor Details

    • HealFixed

      public HealFixed(int healAmount)
      Initializes the heal method.
      Parameters:
      healAmount - The amount to 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.