Package net.minecraft.entity.effect
Class StatusEffect
java.lang.Object
net.minecraft.entity.effect.StatusEffect
- Direct Known Subclasses:
AbsorptionStatusEffect
,DamageModifierStatusEffect
,HealthBoostStatusEffect
,InstantStatusEffect
public class StatusEffect extends Object
- Mappings:
Namespace Name official aqn
intermediary net/minecraft/class_1291
named net/minecraft/entity/effect/StatusEffect
-
Field Summary
Fields Modifier and Type Field Description private Map<EntityAttribute,EntityAttributeModifier>
attributeModifiers
private int
color
private String
translationKey
private StatusEffectType
type
-
Constructor Summary
Constructors Modifier Constructor Description protected
StatusEffect(StatusEffectType type, int color)
-
Method Summary
Modifier and Type Method Description StatusEffect
addAttributeModifier(EntityAttribute attribute, String uuid, double amount, EntityAttributeModifier.Operation operation)
double
adjustModifierAmount(int amplifier, EntityAttributeModifier modifier)
void
applyInstantEffect(Entity source, Entity attacker, LivingEntity target, int amplifier, double proximity)
void
applyUpdateEffect(LivingEntity entity, int amplifier)
static StatusEffect
byRawId(int rawId)
boolean
canApplyUpdateEffect(int duration, int amplifier)
Map<EntityAttribute,EntityAttributeModifier>
getAttributeModifiers()
int
getColor()
Text
getName()
static int
getRawId(StatusEffect type)
String
getTranslationKey()
StatusEffectType
getType()
boolean
isBeneficial()
boolean
isInstant()
protected String
loadTranslationKey()
void
onApplied(LivingEntity entity, AttributeContainer attributes, int amplifier)
void
onRemoved(LivingEntity entity, AttributeContainer attributes, int amplifier)
-
Field Details
-
attributeModifiers
- Mappings:
Namespace Name Mixin selector official a
Laqn;a:Ljava/util/Map;
intermediary field_5885
Lnet/minecraft/class_1291;field_5885:Ljava/util/Map;
named attributeModifiers
Lnet/minecraft/entity/effect/StatusEffect;attributeModifiers:Ljava/util/Map;
-
type
- Mappings:
Namespace Name Mixin selector official b
Laqn;b:Laqo;
intermediary field_18270
Lnet/minecraft/class_1291;field_18270:Lnet/minecraft/class_4081;
named type
Lnet/minecraft/entity/effect/StatusEffect;type:Lnet/minecraft/entity/effect/StatusEffectType;
-
color
private final int color- Mappings:
Namespace Name Mixin selector official c
Laqn;c:I
intermediary field_5886
Lnet/minecraft/class_1291;field_5886:I
named color
Lnet/minecraft/entity/effect/StatusEffect;color:I
-
translationKey
- Mappings:
Namespace Name Mixin selector official d
Laqn;d:Ljava/lang/String;
intermediary field_5883
Lnet/minecraft/class_1291;field_5883:Ljava/lang/String;
named translationKey
Lnet/minecraft/entity/effect/StatusEffect;translationKey:Ljava/lang/String;
-
-
Constructor Details
-
StatusEffect
- Mappings:
Namespace Name Mixin selector official <init>
Laqn;<init>(Laqo;I)V
intermediary <init>
Lnet/minecraft/class_1291;<init>(Lnet/minecraft/class_4081;I)V
named <init>
Lnet/minecraft/entity/effect/StatusEffect;<init>(Lnet/minecraft/entity/effect/StatusEffectType;I)V
-
-
Method Details
-
byRawId
- Mappings:
Namespace Name Mixin selector official a
Laqn;a(I)Laqn;
intermediary method_5569
Lnet/minecraft/class_1291;method_5569(I)Lnet/minecraft/class_1291;
named byRawId
Lnet/minecraft/entity/effect/StatusEffect;byRawId(I)Lnet/minecraft/entity/effect/StatusEffect;
-
getRawId
- Mappings:
Namespace Name Mixin selector official a
Laqn;a(Laqn;)I
intermediary method_5554
Lnet/minecraft/class_1291;method_5554(Lnet/minecraft/class_1291;)I
named getRawId
Lnet/minecraft/entity/effect/StatusEffect;getRawId(Lnet/minecraft/entity/effect/StatusEffect;)I
-
applyUpdateEffect
- Mappings:
Namespace Name Mixin selector official a
Laqn;a(Lari;I)V
intermediary method_5572
Lnet/minecraft/class_1291;method_5572(Lnet/minecraft/class_1309;I)V
named applyUpdateEffect
Lnet/minecraft/entity/effect/StatusEffect;applyUpdateEffect(Lnet/minecraft/entity/LivingEntity;I)V
-
applyInstantEffect
public void applyInstantEffect(@Nullable Entity source, @Nullable Entity attacker, LivingEntity target, int amplifier, double proximity)- Mappings:
Namespace Name Mixin selector official a
Laqn;a(Laqv;Laqv;Lari;ID)V
intermediary method_5564
Lnet/minecraft/class_1291;method_5564(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;Lnet/minecraft/class_1309;ID)V
named applyInstantEffect
Lnet/minecraft/entity/effect/StatusEffect;applyInstantEffect(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/LivingEntity;ID)V
-
canApplyUpdateEffect
public boolean canApplyUpdateEffect(int duration, int amplifier)- Mappings:
Namespace Name Mixin selector official a
Laqn;a(II)Z
intermediary method_5552
Lnet/minecraft/class_1291;method_5552(II)Z
named canApplyUpdateEffect
Lnet/minecraft/entity/effect/StatusEffect;canApplyUpdateEffect(II)Z
-
isInstant
public boolean isInstant()- Mappings:
Namespace Name Mixin selector official a
Laqn;a()Z
intermediary method_5561
Lnet/minecraft/class_1291;method_5561()Z
named isInstant
Lnet/minecraft/entity/effect/StatusEffect;isInstant()Z
-
loadTranslationKey
- Mappings:
Namespace Name Mixin selector official b
Laqn;b()Ljava/lang/String;
intermediary method_5559
Lnet/minecraft/class_1291;method_5559()Ljava/lang/String;
named loadTranslationKey
Lnet/minecraft/entity/effect/StatusEffect;loadTranslationKey()Ljava/lang/String;
-
getTranslationKey
- Mappings:
Namespace Name Mixin selector official c
Laqn;c()Ljava/lang/String;
intermediary method_5567
Lnet/minecraft/class_1291;method_5567()Ljava/lang/String;
named getTranslationKey
Lnet/minecraft/entity/effect/StatusEffect;getTranslationKey()Ljava/lang/String;
-
getName
- Mappings:
Namespace Name Mixin selector official d
Laqn;d()Loi;
intermediary method_5560
Lnet/minecraft/class_1291;method_5560()Lnet/minecraft/class_2561;
named getName
Lnet/minecraft/entity/effect/StatusEffect;getName()Lnet/minecraft/text/Text;
-
getType
- Mappings:
Namespace Name Mixin selector official e
Laqn;e()Laqo;
intermediary method_18792
Lnet/minecraft/class_1291;method_18792()Lnet/minecraft/class_4081;
named getType
Lnet/minecraft/entity/effect/StatusEffect;getType()Lnet/minecraft/entity/effect/StatusEffectType;
-
getColor
public int getColor()- Mappings:
Namespace Name Mixin selector official f
Laqn;f()I
intermediary method_5556
Lnet/minecraft/class_1291;method_5556()I
named getColor
Lnet/minecraft/entity/effect/StatusEffect;getColor()I
-
addAttributeModifier
public StatusEffect addAttributeModifier(EntityAttribute attribute, String uuid, double amount, EntityAttributeModifier.Operation operation)- Mappings:
Namespace Name Mixin selector official a
Laqn;a(Lasd;Ljava/lang/String;DLasg$a;)Laqn;
intermediary method_5566
Lnet/minecraft/class_1291;method_5566(Lnet/minecraft/class_1320;Ljava/lang/String;DLnet/minecraft/class_1322$class_1323;)Lnet/minecraft/class_1291;
named addAttributeModifier
Lnet/minecraft/entity/effect/StatusEffect;addAttributeModifier(Lnet/minecraft/entity/attribute/EntityAttribute;Ljava/lang/String;DLnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;)Lnet/minecraft/entity/effect/StatusEffect;
-
getAttributeModifiers
- Mappings:
Namespace Name Mixin selector official g
Laqn;g()Ljava/util/Map;
intermediary method_5565
Lnet/minecraft/class_1291;method_5565()Ljava/util/Map;
named getAttributeModifiers
Lnet/minecraft/entity/effect/StatusEffect;getAttributeModifiers()Ljava/util/Map;
-
onRemoved
- Mappings:
Namespace Name Mixin selector official a
Laqn;a(Lari;Lasf;I)V
intermediary method_5562
Lnet/minecraft/class_1291;method_5562(Lnet/minecraft/class_1309;Lnet/minecraft/class_5131;I)V
named onRemoved
Lnet/minecraft/entity/effect/StatusEffect;onRemoved(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/attribute/AttributeContainer;I)V
-
onApplied
- Mappings:
Namespace Name Mixin selector official b
Laqn;b(Lari;Lasf;I)V
intermediary method_5555
Lnet/minecraft/class_1291;method_5555(Lnet/minecraft/class_1309;Lnet/minecraft/class_5131;I)V
named onApplied
Lnet/minecraft/entity/effect/StatusEffect;onApplied(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/attribute/AttributeContainer;I)V
-
adjustModifierAmount
- Mappings:
Namespace Name Mixin selector official a
Laqn;a(ILasg;)D
intermediary method_5563
Lnet/minecraft/class_1291;method_5563(ILnet/minecraft/class_1322;)D
named adjustModifierAmount
Lnet/minecraft/entity/effect/StatusEffect;adjustModifierAmount(ILnet/minecraft/entity/attribute/EntityAttributeModifier;)D
-
isBeneficial
- Mappings:
Namespace Name Mixin selector official h
Laqn;h()Z
intermediary method_5573
Lnet/minecraft/class_1291;method_5573()Z
named isBeneficial
Lnet/minecraft/entity/effect/StatusEffect;isBeneficial()Z
-