public class WalkingEggHatcher extends java.lang.Object implements EggHatcher
ABILITIES
Constructor and Description |
---|
WalkingEggHatcher() |
Modifier and Type | Method and Description |
---|---|
int |
doWalkHatching(net.minecraft.entity.player.ServerPlayerEntity 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.entity.player.ServerPlayerEntity player,
PlayerPartyStorage party) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHatchBonus
public void tick(net.minecraft.entity.player.ServerPlayerEntity player, PlayerPartyStorage party)
tick
in interface EggHatcher
public int doWalkHatching(net.minecraft.entity.player.ServerPlayerEntity player, PlayerPartyStorage party)
player
- - The player whose eggs are being processed.party
- - The party of the player.