Package com.pixelmonmod.pixelmon.items
Class HealFraction
java.lang.Object
com.pixelmonmod.pixelmon.items.HealFraction
- All Implemented Interfaces:
IHealHP
Heals a Pokémon by a fraction of its maximum hp.
-
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
-
HealFraction
public HealFraction(float healFraction) Initializes the heal method.- Parameters:
healFraction
- The fraction of hp the Pokémon will 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.
-