Class WalkingPassiveHealingTicker
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.healing.WalkingPassiveHealingTicker
- All Implemented Interfaces:
PassiveHealingTicker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
doWalkHealing
(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party) Does the calculations for how much the party should heal based on how far they have walked.void
tick
(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party)
-
Constructor Details
-
WalkingPassiveHealingTicker
public WalkingPassiveHealingTicker()
-
-
Method Details
-
tick
- Specified by:
tick
in interfacePassiveHealingTicker
-
doWalkHealing
Does the calculations for how much the party should heal based on how far they have walked. Returns the calculated amount.- Parameters:
player
- - The player whose party is being processed.party
- - The party of the player.- Returns:
- The amount of steps determined.
-