Class StatusEffectInstance

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

public class StatusEffectInstance extends Object implements Comparable<StatusEffectInstance>
Mappings:
Namespace Name
official bli
intermediary net/minecraft/class_1293
named net/minecraft/entity/effect/StatusEffectInstance
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lbli;b:Lorg/slf4j/Logger;
      intermediary field_5897 Lnet/minecraft/class_1293;field_5897:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/entity/effect/StatusEffectInstance;LOGGER:Lorg/slf4j/Logger;
    • INFINITE

      public static final int INFINITE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbli;a:I
      intermediary field_42106 Lnet/minecraft/class_1293;field_42106:I
      named INFINITE Lnet/minecraft/entity/effect/StatusEffectInstance;INFINITE:I
    • ID_NBT_KEY

      private static final String ID_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbli;c:Ljava/lang/String;
      intermediary field_45730 Lnet/minecraft/class_1293;field_45730:Ljava/lang/String;
      named ID_NBT_KEY Lnet/minecraft/entity/effect/StatusEffectInstance;ID_NBT_KEY:Ljava/lang/String;
    • AMBIENT_NBT_KEY

      private static final String AMBIENT_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lbli;d:Ljava/lang/String;
      intermediary field_45731 Lnet/minecraft/class_1293;field_45731:Ljava/lang/String;
      named AMBIENT_NBT_KEY Lnet/minecraft/entity/effect/StatusEffectInstance;AMBIENT_NBT_KEY:Ljava/lang/String;
    • HIDDEN_EFFECT_NBT_KEY

      private static final String HIDDEN_EFFECT_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lbli;e:Ljava/lang/String;
      intermediary field_45732 Lnet/minecraft/class_1293;field_45732:Ljava/lang/String;
      named HIDDEN_EFFECT_NBT_KEY Lnet/minecraft/entity/effect/StatusEffectInstance;HIDDEN_EFFECT_NBT_KEY:Ljava/lang/String;
    • AMPLIFIER_NBT_KEY

      private static final String AMPLIFIER_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lbli;f:Ljava/lang/String;
      intermediary field_45733 Lnet/minecraft/class_1293;field_45733:Ljava/lang/String;
      named AMPLIFIER_NBT_KEY Lnet/minecraft/entity/effect/StatusEffectInstance;AMPLIFIER_NBT_KEY:Ljava/lang/String;
    • DURATION_NBT_KEY

      private static final String DURATION_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Lbli;g:Ljava/lang/String;
      intermediary field_45734 Lnet/minecraft/class_1293;field_45734:Ljava/lang/String;
      named DURATION_NBT_KEY Lnet/minecraft/entity/effect/StatusEffectInstance;DURATION_NBT_KEY:Ljava/lang/String;
    • SHOW_PARTICLES_NBT_KEY

      private static final String SHOW_PARTICLES_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Lbli;h:Ljava/lang/String;
      intermediary field_45735 Lnet/minecraft/class_1293;field_45735:Ljava/lang/String;
      named SHOW_PARTICLES_NBT_KEY Lnet/minecraft/entity/effect/StatusEffectInstance;SHOW_PARTICLES_NBT_KEY:Ljava/lang/String;
    • SHOW_ICON_NBT_KEY

      private static final String SHOW_ICON_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Lbli;i:Ljava/lang/String;
      intermediary field_45736 Lnet/minecraft/class_1293;field_45736:Ljava/lang/String;
      named SHOW_ICON_NBT_KEY Lnet/minecraft/entity/effect/StatusEffectInstance;SHOW_ICON_NBT_KEY:Ljava/lang/String;
    • FACTOR_CALCULATION_DATA_NBT_KEY

      private static final String FACTOR_CALCULATION_DATA_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Lbli;j:Ljava/lang/String;
      intermediary field_45737 Lnet/minecraft/class_1293;field_45737:Ljava/lang/String;
      named FACTOR_CALCULATION_DATA_NBT_KEY Lnet/minecraft/entity/effect/StatusEffectInstance;FACTOR_CALCULATION_DATA_NBT_KEY:Ljava/lang/String;
    • type

      private final StatusEffect type
      Mappings:
      Namespace Name Mixin selector
      official k Lbli;k:Lblg;
      intermediary field_5896 Lnet/minecraft/class_1293;field_5896:Lnet/minecraft/class_1291;
      named type Lnet/minecraft/entity/effect/StatusEffectInstance;type:Lnet/minecraft/entity/effect/StatusEffect;
    • duration

      private int duration
      Mappings:
      Namespace Name Mixin selector
      official l Lbli;l:I
      intermediary field_5895 Lnet/minecraft/class_1293;field_5895:I
      named duration Lnet/minecraft/entity/effect/StatusEffectInstance;duration:I
    • amplifier

      private int amplifier
      Mappings:
      Namespace Name Mixin selector
      official m Lbli;m:I
      intermediary field_5893 Lnet/minecraft/class_1293;field_5893:I
      named amplifier Lnet/minecraft/entity/effect/StatusEffectInstance;amplifier:I
    • ambient

      private boolean ambient
      Mappings:
      Namespace Name Mixin selector
      official n Lbli;n:Z
      intermediary field_5892 Lnet/minecraft/class_1293;field_5892:Z
      named ambient Lnet/minecraft/entity/effect/StatusEffectInstance;ambient:Z
    • showParticles

      private boolean showParticles
      Mappings:
      Namespace Name Mixin selector
      official o Lbli;o:Z
      intermediary field_5890 Lnet/minecraft/class_1293;field_5890:Z
      named showParticles Lnet/minecraft/entity/effect/StatusEffectInstance;showParticles:Z
    • showIcon

      private boolean showIcon
      Mappings:
      Namespace Name Mixin selector
      official p Lbli;p:Z
      intermediary field_5889 Lnet/minecraft/class_1293;field_5889:Z
      named showIcon Lnet/minecraft/entity/effect/StatusEffectInstance;showIcon:Z
    • 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.

      Mappings:
      Namespace Name Mixin selector
      official q Lbli;q:Lbli;
      intermediary field_21830 Lnet/minecraft/class_1293;field_21830:Lnet/minecraft/class_1293;
      named hiddenEffect Lnet/minecraft/entity/effect/StatusEffectInstance;hiddenEffect:Lnet/minecraft/entity/effect/StatusEffectInstance;
    • factorCalculationData

      private final Optional<StatusEffectInstance.FactorCalculationData> factorCalculationData
      Mappings:
      Namespace Name Mixin selector
      official r Lbli;r:Ljava/util/Optional;
      intermediary field_38084 Lnet/minecraft/class_1293;field_38084:Ljava/util/Optional;
      named factorCalculationData Lnet/minecraft/entity/effect/StatusEffectInstance;factorCalculationData:Ljava/util/Optional;
  • Constructor Details

    • StatusEffectInstance

      public StatusEffectInstance(StatusEffect type)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbli;<init>(Lblg;)V
      intermediary <init> Lnet/minecraft/class_1293;<init>(Lnet/minecraft/class_1291;)V
      named <init> Lnet/minecraft/entity/effect/StatusEffectInstance;<init>(Lnet/minecraft/entity/effect/StatusEffect;)V
    • StatusEffectInstance

      public StatusEffectInstance(StatusEffect type, int duration)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbli;<init>(Lblg;I)V
      intermediary <init> Lnet/minecraft/class_1293;<init>(Lnet/minecraft/class_1291;I)V
      named <init> Lnet/minecraft/entity/effect/StatusEffectInstance;<init>(Lnet/minecraft/entity/effect/StatusEffect;I)V
    • StatusEffectInstance

      public StatusEffectInstance(StatusEffect type, int duration, int amplifier)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbli;<init>(Lblg;II)V
      intermediary <init> Lnet/minecraft/class_1293;<init>(Lnet/minecraft/class_1291;II)V
      named <init> Lnet/minecraft/entity/effect/StatusEffectInstance;<init>(Lnet/minecraft/entity/effect/StatusEffect;II)V
    • StatusEffectInstance

      public StatusEffectInstance(StatusEffect type, int duration, int amplifier, boolean ambient, boolean visible)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbli;<init>(Lblg;IIZZ)V
      intermediary <init> Lnet/minecraft/class_1293;<init>(Lnet/minecraft/class_1291;IIZZ)V
      named <init> Lnet/minecraft/entity/effect/StatusEffectInstance;<init>(Lnet/minecraft/entity/effect/StatusEffect;IIZZ)V
    • StatusEffectInstance

      public StatusEffectInstance(StatusEffect type, int duration, int amplifier, boolean ambient, boolean showParticles, boolean showIcon)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbli;<init>(Lblg;IIZZZ)V
      intermediary <init> Lnet/minecraft/class_1293;<init>(Lnet/minecraft/class_1291;IIZZZ)V
      named <init> Lnet/minecraft/entity/effect/StatusEffectInstance;<init>(Lnet/minecraft/entity/effect/StatusEffect;IIZZZ)V
    • StatusEffectInstance

      public StatusEffectInstance(StatusEffect type, int duration, int amplifier, boolean ambient, boolean showParticles, boolean showIcon, @Nullable @Nullable StatusEffectInstance hiddenEffect, Optional<StatusEffectInstance.FactorCalculationData> factorCalculationData)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbli;<init>(Lblg;IIZZZLbli;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_1293;<init>(Lnet/minecraft/class_1291;IIZZZLnet/minecraft/class_1293;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/entity/effect/StatusEffectInstance;<init>(Lnet/minecraft/entity/effect/StatusEffect;IIZZZLnet/minecraft/entity/effect/StatusEffectInstance;Ljava/util/Optional;)V
    • StatusEffectInstance

      public StatusEffectInstance(StatusEffectInstance instance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbli;<init>(Lbli;)V
      intermediary <init> Lnet/minecraft/class_1293;<init>(Lnet/minecraft/class_1293;)V
      named <init> Lnet/minecraft/entity/effect/StatusEffectInstance;<init>(Lnet/minecraft/entity/effect/StatusEffectInstance;)V
  • Method Details

    • getFactorCalculationData

      public Optional<StatusEffectInstance.FactorCalculationData> getFactorCalculationData()
      Mappings:
      Namespace Name Mixin selector
      official a Lbli;a()Ljava/util/Optional;
      intermediary method_42129 Lnet/minecraft/class_1293;method_42129()Ljava/util/Optional;
      named getFactorCalculationData Lnet/minecraft/entity/effect/StatusEffectInstance;getFactorCalculationData()Ljava/util/Optional;
    • copyFrom

      void copyFrom(StatusEffectInstance that)
      Mappings:
      Namespace Name Mixin selector
      official a Lbli;a(Lbli;)V
      intermediary method_24276 Lnet/minecraft/class_1293;method_24276(Lnet/minecraft/class_1293;)V
      named copyFrom Lnet/minecraft/entity/effect/StatusEffectInstance;copyFrom(Lnet/minecraft/entity/effect/StatusEffectInstance;)V
    • upgrade

      public boolean upgrade(StatusEffectInstance that)
      Mappings:
      Namespace Name Mixin selector
      official b Lbli;b(Lbli;)Z
      intermediary method_5590 Lnet/minecraft/class_1293;method_5590(Lnet/minecraft/class_1293;)Z
      named upgrade Lnet/minecraft/entity/effect/StatusEffectInstance;upgrade(Lnet/minecraft/entity/effect/StatusEffectInstance;)Z
    • lastsShorterThan

      private boolean lastsShorterThan(StatusEffectInstance effect)
      Mappings:
      Namespace Name Mixin selector
      official d Lbli;d(Lbli;)Z
      intermediary method_48561 Lnet/minecraft/class_1293;method_48561(Lnet/minecraft/class_1293;)Z
      named lastsShorterThan Lnet/minecraft/entity/effect/StatusEffectInstance;lastsShorterThan(Lnet/minecraft/entity/effect/StatusEffectInstance;)Z
    • isInfinite

      public boolean isInfinite()
      Mappings:
      Namespace Name Mixin selector
      official b Lbli;b()Z
      intermediary method_48559 Lnet/minecraft/class_1293;method_48559()Z
      named isInfinite Lnet/minecraft/entity/effect/StatusEffectInstance;isInfinite()Z
    • isDurationBelow

      public boolean isDurationBelow(int duration)
      Mappings:
      Namespace Name Mixin selector
      official a Lbli;a(I)Z
      intermediary method_48557 Lnet/minecraft/class_1293;method_48557(I)Z
      named isDurationBelow Lnet/minecraft/entity/effect/StatusEffectInstance;isDurationBelow(I)Z
    • mapDuration

      public int mapDuration(Int2IntFunction mapper)
      Mappings:
      Namespace Name Mixin selector
      official a Lbli;a(Lit/unimi/dsi/fastutil/ints/Int2IntFunction;)I
      intermediary method_48558 Lnet/minecraft/class_1293;method_48558(Lit/unimi/dsi/fastutil/ints/Int2IntFunction;)I
      named mapDuration Lnet/minecraft/entity/effect/StatusEffectInstance;mapDuration(Lit/unimi/dsi/fastutil/ints/Int2IntFunction;)I
    • getEffectType

      public StatusEffect getEffectType()
      Mappings:
      Namespace Name Mixin selector
      official c Lbli;c()Lblg;
      intermediary method_5579 Lnet/minecraft/class_1293;method_5579()Lnet/minecraft/class_1291;
      named getEffectType Lnet/minecraft/entity/effect/StatusEffectInstance;getEffectType()Lnet/minecraft/entity/effect/StatusEffect;
    • getDuration

      public int getDuration()
      Mappings:
      Namespace Name Mixin selector
      official d Lbli;d()I
      intermediary method_5584 Lnet/minecraft/class_1293;method_5584()I
      named getDuration Lnet/minecraft/entity/effect/StatusEffectInstance;getDuration()I
    • getAmplifier

      public int getAmplifier()
      Mappings:
      Namespace Name Mixin selector
      official e Lbli;e()I
      intermediary method_5578 Lnet/minecraft/class_1293;method_5578()I
      named getAmplifier Lnet/minecraft/entity/effect/StatusEffectInstance;getAmplifier()I
    • isAmbient

      public boolean isAmbient()
      Mappings:
      Namespace Name Mixin selector
      official f Lbli;f()Z
      intermediary method_5591 Lnet/minecraft/class_1293;method_5591()Z
      named isAmbient Lnet/minecraft/entity/effect/StatusEffectInstance;isAmbient()Z
    • shouldShowParticles

      public boolean shouldShowParticles()
      Mappings:
      Namespace Name Mixin selector
      official g Lbli;g()Z
      intermediary method_5581 Lnet/minecraft/class_1293;method_5581()Z
      named shouldShowParticles Lnet/minecraft/entity/effect/StatusEffectInstance;shouldShowParticles()Z
    • shouldShowIcon

      public boolean shouldShowIcon()
      Mappings:
      Namespace Name Mixin selector
      official h Lbli;h()Z
      intermediary method_5592 Lnet/minecraft/class_1293;method_5592()Z
      named shouldShowIcon Lnet/minecraft/entity/effect/StatusEffectInstance;shouldShowIcon()Z
    • update

      public boolean update(LivingEntity entity, Runnable overwriteCallback)
      Mappings:
      Namespace Name Mixin selector
      official a Lbli;a(Lbml;Ljava/lang/Runnable;)Z
      intermediary method_5585 Lnet/minecraft/class_1293;method_5585(Lnet/minecraft/class_1309;Ljava/lang/Runnable;)Z
      named update Lnet/minecraft/entity/effect/StatusEffectInstance;update(Lnet/minecraft/entity/LivingEntity;Ljava/lang/Runnable;)Z
    • isActive

      private boolean isActive()
      Mappings:
      Namespace Name Mixin selector
      official j Lbli;j()Z
      intermediary method_48562 Lnet/minecraft/class_1293;method_48562()Z
      named isActive Lnet/minecraft/entity/effect/StatusEffectInstance;isActive()Z
    • updateDuration

      private int updateDuration()
      Mappings:
      Namespace Name Mixin selector
      official k Lbli;k()I
      intermediary method_5588 Lnet/minecraft/class_1293;method_5588()I
      named updateDuration Lnet/minecraft/entity/effect/StatusEffectInstance;updateDuration()I
    • onApplied

      public void onApplied(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbli;a(Lbml;)V
      intermediary method_52523 Lnet/minecraft/class_1293;method_52523(Lnet/minecraft/class_1309;)V
      named onApplied Lnet/minecraft/entity/effect/StatusEffectInstance;onApplied(Lnet/minecraft/entity/LivingEntity;)V
    • getTranslationKey

      public String getTranslationKey()
      Mappings:
      Namespace Name Mixin selector
      official i Lbli;i()Ljava/lang/String;
      intermediary method_5586 Lnet/minecraft/class_1293;method_5586()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/entity/effect/StatusEffectInstance;getTranslationKey()Ljava/lang/String;
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDurationString

      private String getDurationString()
      Mappings:
      Namespace Name Mixin selector
      official l Lbli;l()Ljava/lang/String;
      intermediary method_48563 Lnet/minecraft/class_1293;method_48563()Ljava/lang/String;
      named getDurationString Lnet/minecraft/entity/effect/StatusEffectInstance;getDurationString()Ljava/lang/String;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lbli;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1293;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/entity/effect/StatusEffectInstance;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • writeNbt

      public NbtCompound writeNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lbli;a(Lsn;)Lsn;
      intermediary method_5582 Lnet/minecraft/class_1293;method_5582(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
      named writeNbt Lnet/minecraft/entity/effect/StatusEffectInstance;writeNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
    • writeTypelessNbt

      private void writeTypelessNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official c Lbli;c(Lsn;)V
      intermediary method_24277 Lnet/minecraft/class_1293;method_24277(Lnet/minecraft/class_2487;)V
      named writeTypelessNbt Lnet/minecraft/entity/effect/StatusEffectInstance;writeTypelessNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • fromNbt

      @Nullable public static @Nullable StatusEffectInstance fromNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official b Lbli;b(Lsn;)Lbli;
      intermediary method_5583 Lnet/minecraft/class_1293;method_5583(Lnet/minecraft/class_2487;)Lnet/minecraft/class_1293;
      named fromNbt Lnet/minecraft/entity/effect/StatusEffectInstance;fromNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/entity/effect/StatusEffectInstance;
    • fromNbt

      private static StatusEffectInstance fromNbt(StatusEffect type, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lbli;a(Lblg;Lsn;)Lbli;
      intermediary method_24275 Lnet/minecraft/class_1293;method_24275(Lnet/minecraft/class_1291;Lnet/minecraft/class_2487;)Lnet/minecraft/class_1293;
      named fromNbt Lnet/minecraft/entity/effect/StatusEffectInstance;fromNbt(Lnet/minecraft/entity/effect/StatusEffect;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/entity/effect/StatusEffectInstance;
    • compareTo

      public int compareTo(StatusEffectInstance statusEffectInstance)
      Specified by:
      compareTo in interface Comparable<StatusEffectInstance>
      Mappings:
      Namespace Name Mixin selector
      official c Lbli;c(Lbli;)I
      intermediary method_5587 Lnet/minecraft/class_1293;method_5587(Lnet/minecraft/class_1293;)I
      named compareTo Lnet/minecraft/entity/effect/StatusEffectInstance;compareTo(Lnet/minecraft/entity/effect/StatusEffectInstance;)I