Class MobEffectInstance

java.lang.Object
net.minecraft.world.effect.MobEffectInstance
All Implemented Interfaces:
Comparable<MobEffectInstance>, IForgeMobEffectInstance

public class MobEffectInstance extends Object implements Comparable<MobEffectInstance>, IForgeMobEffectInstance
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • INFINITE_DURATION

      public static final int INFINITE_DURATION
      See Also:
    • effect

      private final MobEffect effect
    • duration

      private int duration
    • amplifier

      private int amplifier
    • ambient

      private boolean ambient
    • visible

      private boolean visible
    • showIcon

      private boolean showIcon
    • hiddenEffect

      @Nullable private MobEffectInstance hiddenEffect
    • factorData

      private final Optional<MobEffectInstance.FactorData> factorData
    • curativeItems

      private List<ItemStack> curativeItems
  • Constructor Details

    • MobEffectInstance

      public MobEffectInstance(MobEffect p_19513_)
    • MobEffectInstance

      public MobEffectInstance(MobEffect p_19515_, int p_19516_)
    • MobEffectInstance

      public MobEffectInstance(MobEffect p_19518_, int p_19519_, int p_19520_)
    • MobEffectInstance

      public MobEffectInstance(MobEffect p_19522_, int p_19523_, int p_19524_, boolean p_19525_, boolean p_19526_)
    • MobEffectInstance

      public MobEffectInstance(MobEffect p_19528_, int p_19529_, int p_19530_, boolean p_19531_, boolean p_19532_, boolean p_19533_)
    • MobEffectInstance

      public MobEffectInstance(MobEffect p_216887_, int p_216888_, int p_216889_, boolean p_216890_, boolean p_216891_, boolean p_216892_, @Nullable MobEffectInstance p_216893_, Optional<MobEffectInstance.FactorData> p_216894_)
    • MobEffectInstance

      public MobEffectInstance(MobEffectInstance p_19543_)
  • Method Details