Class MedicineRevive
java.lang.Object
com.pixelmonmod.pixelmon.items.medicine.MedicineRevive
- All Implemented Interfaces:
IMedicine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HeldItemInteractionResulthealPokemon(Pokemon pxm) Heals the Pokémon according to the item type.useMedicine(Pokemon 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, waitMethods inherited from interface com.pixelmonmod.pixelmon.items.IMedicine
useMedicine
-
Constructor Details
-
MedicineRevive
Initializes the medicine definition.- Parameters:
healHP- The calculation for how much hp will be healed.
-
-
Method Details
-
useMedicine
Description copied from interface:IMedicineHeals the Pokémon with the item.- Specified by:
useMedicinein 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.
-
healPokemon
Heals the Pokémon according to the item type.- Parameters:
pxm- The Pokémon being healed.- Returns:
- Whether the Pokémon was healed successfully.
-