Class PassiveEffectProxy

java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.effects.PassiveEffectProxy

public class PassiveEffectProxy extends Object
Static proxy class for the PassiveEffectTicker implementation To change from the default WalkingPassiveEffectTicker implementation then use the setInstance(PassiveEffectTicker) method during initialization
  • Constructor Details

    • PassiveEffectProxy

      public PassiveEffectProxy()
  • Method Details

    • setInstance

      public static void setInstance(PassiveEffectTicker instance)
      Sets the PassiveEffectTicker implementation used for logic
      Parameters:
      instance - The new instance
    • tick

      public static void tick(net.minecraft.server.level.ServerPlayer player, PlayerPartyStorage party)
      Ticks the player's storage using the PassiveEffectTicker implementation's tick logic
      Parameters:
      player - The player being ticked
      party - The storage of the player