Package net.minecraft.entity.effect
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 aqp
intermediary net/minecraft/class_1293
named net/minecraft/entity/effect/StatusEffectInstance
-
Field Summary
Fields Modifier and Type Field Description private boolean
ambient
private int
amplifier
private int
duration
private StatusEffectInstance
hiddenEffect
The effect hidden when upgrading effects.private static Logger
LOGGER
private boolean
permanent
private boolean
showIcon
private boolean
showParticles
private StatusEffect
type
-
Constructor Summary
Constructors Constructor Description StatusEffectInstance(StatusEffect type)
StatusEffectInstance(StatusEffectInstance that)
StatusEffectInstance(StatusEffect type, int duration)
StatusEffectInstance(StatusEffect type, int duration, int amplifier)
StatusEffectInstance(StatusEffect type, int duration, int amplifier, boolean ambient, boolean visible)
StatusEffectInstance(StatusEffect type, int duration, int amplifier, boolean ambient, boolean showParticles, boolean showIcon)
StatusEffectInstance(StatusEffect type, int duration, int amplifier, boolean ambient, boolean showParticles, boolean showIcon, StatusEffectInstance hiddenEffect)
-
Method Summary
Modifier and Type Method Description void
applyUpdateEffect(LivingEntity entity)
int
compareTo(StatusEffectInstance statusEffectInstance)
(package private) void
copyFrom(StatusEffectInstance that)
boolean
equals(Object o)
private static StatusEffectInstance
fromTag(StatusEffect type, CompoundTag tag)
static StatusEffectInstance
fromTag(CompoundTag tag)
int
getAmplifier()
int
getDuration()
StatusEffect
getEffectType()
String
getTranslationKey()
int
hashCode()
boolean
isAmbient()
boolean
isPermanent()
void
setPermanent(boolean permanent)
boolean
shouldShowIcon()
boolean
shouldShowParticles()
String
toString()
CompoundTag
toTag(CompoundTag tag)
private void
typelessToTag(CompoundTag tag)
boolean
update(LivingEntity entity, Runnable overwriteCallback)
private int
updateDuration()
boolean
upgrade(StatusEffectInstance that)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Laqp;a:Lorg/apache/logging/log4j/Logger;
intermediary field_5897
Lnet/minecraft/class_1293;field_5897:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/entity/effect/StatusEffectInstance;LOGGER:Lorg/apache/logging/log4j/Logger;
-
type
- Mappings:
Namespace Name Mixin selector official b
Laqp;b:Laqn;
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 c
Laqp;c: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 d
Laqp;d: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 e
Laqp;e:Z
intermediary field_5892
Lnet/minecraft/class_1293;field_5892:Z
named ambient
Lnet/minecraft/entity/effect/StatusEffectInstance;ambient:Z
-
permanent
- Mappings:
Namespace Name Mixin selector official f
Laqp;f:Z
intermediary field_5891
Lnet/minecraft/class_1293;field_5891:Z
named permanent
Lnet/minecraft/entity/effect/StatusEffectInstance;permanent:Z
-
showParticles
private boolean showParticles- Mappings:
Namespace Name Mixin selector official g
Laqp;g: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 h
Laqp;h:Z
intermediary field_5889
Lnet/minecraft/class_1293;field_5889:Z
named showIcon
Lnet/minecraft/entity/effect/StatusEffectInstance;showIcon:Z
-
-
Constructor Details
-
StatusEffectInstance
- Mappings:
Namespace Name Mixin selector official <init>
Laqp;<init>(Laqn;)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
- Mappings:
Namespace Name Mixin selector official <init>
Laqp;<init>(Laqn;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
- Mappings:
Namespace Name Mixin selector official <init>
Laqp;<init>(Laqn;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>
Laqp;<init>(Laqn;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>
Laqp;<init>(Laqn;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 StatusEffectInstance hiddenEffect)- Mappings:
Namespace Name Mixin selector official <init>
Laqp;<init>(Laqn;IIZZZLaqp;)V
intermediary <init>
Lnet/minecraft/class_1293;<init>(Lnet/minecraft/class_1291;IIZZZLnet/minecraft/class_1293;)V
named <init>
Lnet/minecraft/entity/effect/StatusEffectInstance;<init>(Lnet/minecraft/entity/effect/StatusEffect;IIZZZLnet/minecraft/entity/effect/StatusEffectInstance;)V
-
StatusEffectInstance
- Mappings:
Namespace Name Mixin selector official <init>
Laqp;<init>(Laqp;)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
-
copyFrom
- Mappings:
Namespace Name Mixin selector official a
Laqp;a(Laqp;)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
- Mappings:
Namespace Name Mixin selector official b
Laqp;b(Laqp;)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
-
getEffectType
- Mappings:
Namespace Name Mixin selector official a
Laqp;a()Laqn;
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 b
Laqp;b()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 c
Laqp;c()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 d
Laqp;d()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 e
Laqp;e()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 f
Laqp;f()Z
intermediary method_5592
Lnet/minecraft/class_1293;method_5592()Z
named shouldShowIcon
Lnet/minecraft/entity/effect/StatusEffectInstance;shouldShowIcon()Z
-
update
- Mappings:
Namespace Name Mixin selector official a
Laqp;a(Lari;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
-
updateDuration
private int updateDuration()- Mappings:
Namespace Name Mixin selector official i
Laqp;i()I
intermediary method_5588
Lnet/minecraft/class_1293;method_5588()I
named updateDuration
Lnet/minecraft/entity/effect/StatusEffectInstance;updateDuration()I
-
applyUpdateEffect
- Mappings:
Namespace Name Mixin selector official a
Laqp;a(Lari;)V
intermediary method_5589
Lnet/minecraft/class_1293;method_5589(Lnet/minecraft/class_1309;)V
named applyUpdateEffect
Lnet/minecraft/entity/effect/StatusEffectInstance;applyUpdateEffect(Lnet/minecraft/entity/LivingEntity;)V
-
getTranslationKey
- Mappings:
Namespace Name Mixin selector official g
Laqp;g()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
-
equals
-
hashCode
public int hashCode() -
toTag
- Mappings:
Namespace Name Mixin selector official a
Laqp;a(Lmq;)Lmq;
intermediary method_5582
Lnet/minecraft/class_1293;method_5582(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named toTag
Lnet/minecraft/entity/effect/StatusEffectInstance;toTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
typelessToTag
- Mappings:
Namespace Name Mixin selector official c
Laqp;c(Lmq;)V
intermediary method_24277
Lnet/minecraft/class_1293;method_24277(Lnet/minecraft/class_2487;)V
named typelessToTag
Lnet/minecraft/entity/effect/StatusEffectInstance;typelessToTag(Lnet/minecraft/nbt/CompoundTag;)V
-
fromTag
- Mappings:
Namespace Name Mixin selector official b
Laqp;b(Lmq;)Laqp;
intermediary method_5583
Lnet/minecraft/class_1293;method_5583(Lnet/minecraft/class_2487;)Lnet/minecraft/class_1293;
named fromTag
Lnet/minecraft/entity/effect/StatusEffectInstance;fromTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/entity/effect/StatusEffectInstance;
-
fromTag
- Mappings:
Namespace Name Mixin selector official a
Laqp;a(Laqn;Lmq;)Laqp;
intermediary method_24275
Lnet/minecraft/class_1293;method_24275(Lnet/minecraft/class_1291;Lnet/minecraft/class_2487;)Lnet/minecraft/class_1293;
named fromTag
Lnet/minecraft/entity/effect/StatusEffectInstance;fromTag(Lnet/minecraft/entity/effect/StatusEffect;Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/entity/effect/StatusEffectInstance;
-
setPermanent
- Mappings:
Namespace Name Mixin selector official a
Laqp;a(Z)V
intermediary method_5580
Lnet/minecraft/class_1293;method_5580(Z)V
named setPermanent
Lnet/minecraft/entity/effect/StatusEffectInstance;setPermanent(Z)V
-
isPermanent
- Mappings:
Namespace Name Mixin selector official h
Laqp;h()Z
intermediary method_5593
Lnet/minecraft/class_1293;method_5593()Z
named isPermanent
Lnet/minecraft/entity/effect/StatusEffectInstance;isPermanent()Z
-
compareTo
- Specified by:
compareTo
in interfaceComparable<StatusEffectInstance>
- Mappings:
Namespace Name Mixin selector official c
Laqp;c(Laqp;)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
-