Class EggHatcherProxy
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.hatch.EggHatcherProxy
Static proxy class for the
EggHatcher implementation
To change from the default WalkingEggHatcher implementation then use the setInstance(EggHatcher)
method during initialization-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetHatchBonus(PlayerPartyStorage party) Gets the hatch bonus for the given partystatic voidsetInstance(EggHatcher instance) Sets theEggHatcherimplementation used for logicstatic voidtick(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party) Ticks the player's storage using theEggHatcherimplementation's tick logic
-
Constructor Details
-
EggHatcherProxy
public EggHatcherProxy()
-
-
Method Details
-
setInstance
Sets theEggHatcherimplementation used for logic- Parameters:
instance- The new instance
-
tick
Ticks the player's storage using theEggHatcherimplementation's tick logic- Parameters:
player- The player being tickedparty- The storage of the player
-
getHatchBonus
Gets the hatch bonus for the given party- Parameters:
party- The party being checked- Returns:
- The hatch bonus
-