Class MedicinePotion

java.lang.Object
com.pixelmonmod.pixelmon.items.medicine.MedicinePotion
All Implemented Interfaces:
IMedicine

public class MedicinePotion extends Object implements IMedicine
Causes medicine to heal a Pokémon's hp.
  • Constructor Details

    • MedicinePotion

      public MedicinePotion(IHealHP healHP)
      Initializes the medicine definition.
      Parameters:
      healHP - The calculation for how much hp will be healed.
  • Method Details

    • useMedicine

      public boolean useMedicine(PokemonLink target, double multiplier)
      Description copied from interface: IMedicine
      Heals the Pokémon with the item.
      Specified by:
      useMedicine in interface IMedicine
      Parameters:
      target - The Pokémon the item is being used on.
      multiplier - Multiplier value for the heal amount.
      Returns:
      Whether to remove an instance of the item from the player's inventory.