Class StatusEffectInstance

java.lang.Object
net.minecraft.entity.effect.StatusEffectInstance
All Implemented Interfaces:
Comparable<StatusEffectInstance>

public class StatusEffectInstance
extends Object
implements Comparable<StatusEffectInstance>
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • type

      private final StatusEffect type
    • duration

      private int duration
    • amplifier

      private int amplifier
    • splash

      private boolean splash
    • ambient

      private boolean ambient
    • permanent

      @Environment(CLIENT) private boolean permanent
    • showParticles

      private boolean showParticles
    • showIcon

      private boolean showIcon
    • hiddenEffect

      @Nullable private StatusEffectInstance hiddenEffect
      The effect hidden when upgrading effects. Duration decreases with this effect.

      This exists so that long-duration low-amplifier effects reappears after short-duration high-amplifier effects run out.

  • Constructor Details

    • StatusEffectInstance

      public StatusEffectInstance​(StatusEffect statusEffect)
    • StatusEffectInstance

      public StatusEffectInstance​(StatusEffect type, int duration)
    • StatusEffectInstance

      public StatusEffectInstance​(StatusEffect type, int duration, int amplifier)
    • StatusEffectInstance

      public StatusEffectInstance​(StatusEffect type, int duration, int amplifier, boolean ambient, boolean visible)
    • StatusEffectInstance

      public StatusEffectInstance​(StatusEffect type, int duration, int amplifier, boolean ambient, boolean showParticles, boolean showIcon)
    • StatusEffectInstance

      public StatusEffectInstance​(StatusEffect type, int duration, int amplifier, boolean ambient, boolean showParticles, boolean showIcon, @Nullable StatusEffectInstance hiddenEffect)
    • StatusEffectInstance

      public StatusEffectInstance​(StatusEffectInstance statusEffectInstance)
  • Method Details