Package com.pixelmonmod.pixelmon.items
Class HealFixed
java.lang.Object
com.pixelmonmod.pixelmon.items.HealFixed
- All Implemented Interfaces:
IHealHP
Heals a Pokémon by a fixed hp amount.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getHealAmount
(PokemonLink pokemon) Gets the amount of hp that the Pokémon will be healed by.
-
Constructor Details
-
HealFixed
public HealFixed(int healAmount) Initializes the heal method.- Parameters:
healAmount
- The amount to heal.
-
-
Method Details
-
getHealAmount
Description copied from interface:IHealHP
Gets the amount of hp that the Pokémon will be healed by.- Specified by:
getHealAmount
in interfaceIHealHP
- Parameters:
pokemon
- The Pokémon to heal.- Returns:
- The amount of hp that the Pokémon will be healed by.
-