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
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getHatchBonus
(PlayerPartyStorage party) Gets the hatch bonus for the given partystatic void
setInstance
(EggHatcher instance) Sets theEggHatcher
implementation used for logicstatic void
tick
(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party) Ticks the player's storage using theEggHatcher
implementation's tick logic
-
Constructor Details
-
EggHatcherProxy
public EggHatcherProxy()
-
-
Method Details
-
setInstance
Sets theEggHatcher
implementation used for logic- Parameters:
instance
- The new instance
-
tick
Ticks the player's storage using theEggHatcher
implementation'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
-