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
-
Method Summary
Modifier and TypeMethodDescriptionint
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.void
tick
(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, wait
Methods inherited from interface com.pixelmonmod.pixelmon.api.pokemon.hatch.EggHatcher
getHatchBonus
-
Constructor Details
-
WalkingEggHatcher
public WalkingEggHatcher()
-
-
Method Details
-
tick
- Specified by:
tick
in 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.
-