Class WalkingPassiveHealingTicker

java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.healing.WalkingPassiveHealingTicker
All Implemented Interfaces:
PassiveHealingTicker

public class WalkingPassiveHealingTicker extends Object implements PassiveHealingTicker
  • Constructor Details

    • WalkingPassiveHealingTicker

      public WalkingPassiveHealingTicker()
  • Method Details

    • tick

      public void tick(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party)
      Specified by:
      tick in interface PassiveHealingTicker
    • doWalkHealing

      public int 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. 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.