Class WalkingEggHatcher

java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.hatch.WalkingEggHatcher
All Implemented Interfaces:
EggHatcher

public class WalkingEggHatcher extends Object implements EggHatcher
  • Constructor Details

    • WalkingEggHatcher

      public WalkingEggHatcher()
  • Method Details

    • tick

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

      public int doWalkHatching(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party)
      Does the calculations for how much the egg should gain in egg steps based on how far they have walked. Returns the calculated amount, not counting the bonus.
      Parameters:
      player - - The player whose eggs are being processed.
      party - - The party of the player.
      Returns:
      The amount of steps, not counting the bonus, that were added to any eggs.