Class PassiveEffectProxy
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.effects.PassiveEffectProxy
Static proxy class for the
PassiveEffectTicker
implementation
To change from the default WalkingPassiveEffectTicker
implementation then use the setInstance(PassiveEffectTicker)
method during initialization-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setInstance
(PassiveEffectTicker instance) Sets thePassiveEffectTicker
implementation used for logicstatic void
tick
(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party) Ticks the player's storage using thePassiveEffectTicker
implementation's tick logic
-
Constructor Details
-
PassiveEffectProxy
public PassiveEffectProxy()
-
-
Method Details
-
setInstance
Sets thePassiveEffectTicker
implementation used for logic- Parameters:
instance
- The new instance
-
tick
Ticks the player's storage using thePassiveEffectTicker
implementation's tick logic- Parameters:
player
- The player being tickedparty
- The storage of the player
-