Class MedicineStatus
java.lang.Object
com.pixelmonmod.pixelmon.items.medicine.MedicineStatus
- All Implemented Interfaces:
IMedicine
Causes medicine to heal a Pokémon's status.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
useMedicine
(PokemonLink target, double multiplier) Heals the Pokémon with the item.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.items.IMedicine
useMedicine
-
Constructor Details
-
MedicineStatus
Initializes the medicine definition.- Parameters:
statuses
- The statuses healed by the medicine.
-
-
Method Details
-
useMedicine
Description copied from interface:IMedicine
Heals the Pokémon with the item.- Specified by:
useMedicine
in interfaceIMedicine
- 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.
-