Class WalkingEggHatcher
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.hatch.WalkingEggHatcher
- All Implemented Interfaces:
EggHatcher
-
Field Summary
Fields inherited from interface com.pixelmonmod.pixelmon.api.pokemon.hatch.EggHatcher
ABILITIES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoWalkHatching(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.voidtick(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pixelmonmod.pixelmon.api.pokemon.hatch.EggHatcher
getHatchBonus
-
Constructor Details
-
WalkingEggHatcher
public WalkingEggHatcher()
-
-
Method Details
-
tick
- Specified by:
tickin interfaceEggHatcher
-
doWalkHatching
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.
-