Class EffectInstance

    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • effect

        private final Effect effect
      • duration

        private int duration
      • amplifier

        private int amplifier
      • splash

        private boolean splash
      • ambient

        private boolean ambient
      • noCounter

        private boolean noCounter
      • visible

        private boolean visible
      • showIcon

        private boolean showIcon
      • curativeItems

        private java.util.List<ItemStack> curativeItems
    • Constructor Detail

      • EffectInstance

        public EffectInstance​(Effect p_i46811_1_)
      • EffectInstance

        public EffectInstance​(Effect p_i46812_1_,
                              int p_i46812_2_)
      • EffectInstance

        public EffectInstance​(Effect p_i46813_1_,
                              int p_i46813_2_,
                              int p_i46813_3_)
      • EffectInstance

        public EffectInstance​(Effect p_i46814_1_,
                              int p_i46814_2_,
                              int p_i46814_3_,
                              boolean p_i46814_4_,
                              boolean p_i46814_5_)
      • EffectInstance

        public EffectInstance​(Effect p_i48980_1_,
                              int p_i48980_2_,
                              int p_i48980_3_,
                              boolean p_i48980_4_,
                              boolean p_i48980_5_,
                              boolean p_i48980_6_)
      • EffectInstance

        public EffectInstance​(Effect p_i230050_1_,
                              int p_i230050_2_,
                              int p_i230050_3_,
                              boolean p_i230050_4_,
                              boolean p_i230050_5_,
                              boolean p_i230050_6_,
                              @Nullable
                              EffectInstance p_i230050_7_)
      • EffectInstance

        public EffectInstance​(EffectInstance p_i1577_1_)
    • Method Detail

      • getEffect

        public Effect getEffect()
      • getDuration

        public int getDuration()
      • getAmplifier

        public int getAmplifier()
      • isAmbient

        public boolean isAmbient()
      • isVisible

        public boolean isVisible()
      • showIcon

        public boolean showIcon()
      • tick

        public boolean tick​(LivingEntity p_76455_1_,
                            java.lang.Runnable p_76455_2_)
      • tickDownDuration

        private int tickDownDuration()
      • applyEffect

        public void applyEffect​(LivingEntity p_76457_1_)
      • getDescriptionId

        public java.lang.String getDescriptionId()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object p_equals_1_)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • writeDetailsTo

        private void writeDetailsTo​(CompoundNBT p_230119_1_)
      • setNoCounter

        public void setNoCounter​(boolean p_100012_1_)
      • isNoCounter

        public boolean isNoCounter()
      • compareTo

        public int compareTo​(EffectInstance p_compareTo_1_)
        Specified by:
        compareTo in interface java.lang.Comparable<EffectInstance>
      • getCurativeItems

        public java.util.List<ItemStack> getCurativeItems()
        Description copied from interface: IForgeEffectInstance
        Returns a list of curative items for the potion effect By default, this list is initialized using Potion#getCurativeItems
        Specified by:
        getCurativeItems in interface IForgeEffectInstance
        Returns:
        The list (ItemStack) of curative items for the potion effect
      • setCurativeItems

        public void setCurativeItems​(java.util.List<ItemStack> curativeItems)
        Description copied from interface: IForgeEffectInstance
        Sets the list of curative items for this potion effect, overwriting any already present
        Specified by:
        setCurativeItems in interface IForgeEffectInstance
        Parameters:
        curativeItems - The list of ItemStacks being set to the potion effect