public class PassiveEffectProxy
extends java.lang.Object
PassiveEffectTicker
implementation
To change from the default WalkingPassiveEffectTicker
implementation then use the setInstance(PassiveEffectTicker)
method during initializationConstructor and Description |
---|
PassiveEffectProxy() |
Modifier and Type | Method and Description |
---|---|
static void |
setInstance(PassiveEffectTicker instance)
Sets the
PassiveEffectTicker implementation used for logic |
static void |
tick(net.minecraft.entity.player.ServerPlayerEntity player,
PlayerPartyStorage party)
Ticks the player's storage using the
PassiveEffectTicker implementation's tick logic |
public static void setInstance(PassiveEffectTicker instance)
PassiveEffectTicker
implementation used for logicinstance
- The new instancepublic static void tick(net.minecraft.entity.player.ServerPlayerEntity player, PlayerPartyStorage party)
PassiveEffectTicker
implementation's tick logicplayer
- The player being tickedparty
- The storage of the player