Class StatusEffect

java.lang.Object
net.minecraft.entity.effect.StatusEffect
Direct Known Subclasses:
AbsorptionStatusEffect, BadOmenStatusEffect, HungerStatusEffect, InstantStatusEffect, PoisonStatusEffect, RegenerationStatusEffect, WitherStatusEffect

public class StatusEffect extends Object
Mappings:
Namespace Name
official blg
intermediary net/minecraft/class_1291
named net/minecraft/entity/effect/StatusEffect
  • Field Details

    • attributeModifiers

      private final Map<EntityAttribute,AttributeModifierCreator> attributeModifiers
      Mappings:
      Namespace Name Mixin selector
      official a Lblg;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;
    • category

      private final StatusEffectCategory category
      Mappings:
      Namespace Name Mixin selector
      official b Lblg;b:Lblh;
      intermediary field_18270 Lnet/minecraft/class_1291;field_18270:Lnet/minecraft/class_4081;
      named category Lnet/minecraft/entity/effect/StatusEffect;category:Lnet/minecraft/entity/effect/StatusEffectCategory;
    • color

      private final int color
      Mappings:
      Namespace Name Mixin selector
      official c Lblg;c:I
      intermediary field_5886 Lnet/minecraft/class_1291;field_5886:I
      named color Lnet/minecraft/entity/effect/StatusEffect;color:I
    • translationKey

      @Nullable private @Nullable String translationKey
      Mappings:
      Namespace Name Mixin selector
      official d Lblg;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;
    • factorCalculationDataSupplier

      private Supplier<StatusEffectInstance.FactorCalculationData> factorCalculationDataSupplier
      Mappings:
      Namespace Name Mixin selector
      official e Lblg;e:Ljava/util/function/Supplier;
      intermediary field_38083 Lnet/minecraft/class_1291;field_38083:Ljava/util/function/Supplier;
      named factorCalculationDataSupplier Lnet/minecraft/entity/effect/StatusEffect;factorCalculationDataSupplier:Ljava/util/function/Supplier;
    • registryEntry

      private final RegistryEntry.Reference<StatusEffect> registryEntry
      Mappings:
      Namespace Name Mixin selector
      official f Lblg;f:Lih$c;
      intermediary field_45729 Lnet/minecraft/class_1291;field_45729:Lnet/minecraft/class_6880$class_6883;
      named registryEntry Lnet/minecraft/entity/effect/StatusEffect;registryEntry:Lnet/minecraft/registry/entry/RegistryEntry$Reference;
  • Constructor Details

    • StatusEffect

      protected StatusEffect(StatusEffectCategory category, int color)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lblg;<init>(Lblh;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/StatusEffectCategory;I)V
  • Method Details

    • getFactorCalculationDataSupplier

      public Optional<StatusEffectInstance.FactorCalculationData> getFactorCalculationDataSupplier()
      Mappings:
      Namespace Name Mixin selector
      official b Lblg;b()Ljava/util/Optional;
      intermediary method_42127 Lnet/minecraft/class_1291;method_42127()Ljava/util/Optional;
      named getFactorCalculationDataSupplier Lnet/minecraft/entity/effect/StatusEffect;getFactorCalculationDataSupplier()Ljava/util/Optional;
    • applyUpdateEffect

      public void applyUpdateEffect(LivingEntity entity, int amplifier)
      Mappings:
      Namespace Name Mixin selector
      official a Lblg;a(Lbml;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 @Nullable Entity source, @Nullable @Nullable Entity attacker, LivingEntity target, int amplifier, double proximity)
      Mappings:
      Namespace Name Mixin selector
      official a Lblg;a(Lblv;Lblv;Lbml;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 Lblg;a(II)Z
      intermediary method_5552 Lnet/minecraft/class_1291;method_5552(II)Z
      named canApplyUpdateEffect Lnet/minecraft/entity/effect/StatusEffect;canApplyUpdateEffect(II)Z
    • onApplied

      public void onApplied(LivingEntity entity, int amplifier)
      Mappings:
      Namespace Name Mixin selector
      official b Lblg;b(Lbml;I)V
      intermediary method_52520 Lnet/minecraft/class_1291;method_52520(Lnet/minecraft/class_1309;I)V
      named onApplied Lnet/minecraft/entity/effect/StatusEffect;onApplied(Lnet/minecraft/entity/LivingEntity;I)V
    • isInstant

      public boolean isInstant()
      Mappings:
      Namespace Name Mixin selector
      official a Lblg;a()Z
      intermediary method_5561 Lnet/minecraft/class_1291;method_5561()Z
      named isInstant Lnet/minecraft/entity/effect/StatusEffect;isInstant()Z
    • loadTranslationKey

      protected String loadTranslationKey()
      Mappings:
      Namespace Name Mixin selector
      official c Lblg;c()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

      public String getTranslationKey()
      Mappings:
      Namespace Name Mixin selector
      official d Lblg;d()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

      public Text getName()
      Mappings:
      Namespace Name Mixin selector
      official e Lblg;e()Lvf;
      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;
    • getCategory

      public StatusEffectCategory getCategory()
      Mappings:
      Namespace Name Mixin selector
      official f Lblg;f()Lblh;
      intermediary method_18792 Lnet/minecraft/class_1291;method_18792()Lnet/minecraft/class_4081;
      named getCategory Lnet/minecraft/entity/effect/StatusEffect;getCategory()Lnet/minecraft/entity/effect/StatusEffectCategory;
    • getColor

      public int getColor()
      Mappings:
      Namespace Name Mixin selector
      official g Lblg;g()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 Lblg;a(Lbnm;Ljava/lang/String;DLbnp$a;)Lblg;
      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;
    • setFactorCalculationDataSupplier

      public StatusEffect setFactorCalculationDataSupplier(Supplier<StatusEffectInstance.FactorCalculationData> factorCalculationDataSupplier)
      Mappings:
      Namespace Name Mixin selector
      official a Lblg;a(Ljava/util/function/Supplier;)Lblg;
      intermediary method_42126 Lnet/minecraft/class_1291;method_42126(Ljava/util/function/Supplier;)Lnet/minecraft/class_1291;
      named setFactorCalculationDataSupplier Lnet/minecraft/entity/effect/StatusEffect;setFactorCalculationDataSupplier(Ljava/util/function/Supplier;)Lnet/minecraft/entity/effect/StatusEffect;
    • getAttributeModifiers

      public Map<EntityAttribute,AttributeModifierCreator> getAttributeModifiers()
      Mappings:
      Namespace Name Mixin selector
      official h Lblg;h()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

      public void onRemoved(AttributeContainer attributeContainer)
      Mappings:
      Namespace Name Mixin selector
      official a Lblg;a(Lbno;)V
      intermediary method_5562 Lnet/minecraft/class_1291;method_5562(Lnet/minecraft/class_5131;)V
      named onRemoved Lnet/minecraft/entity/effect/StatusEffect;onRemoved(Lnet/minecraft/entity/attribute/AttributeContainer;)V
    • onApplied

      public void onApplied(AttributeContainer attributeContainer, int amplifier)
      Mappings:
      Namespace Name Mixin selector
      official a Lblg;a(Lbno;I)V
      intermediary method_5555 Lnet/minecraft/class_1291;method_5555(Lnet/minecraft/class_5131;I)V
      named onApplied Lnet/minecraft/entity/effect/StatusEffect;onApplied(Lnet/minecraft/entity/attribute/AttributeContainer;I)V
    • isBeneficial

      public boolean isBeneficial()
      Mappings:
      Namespace Name Mixin selector
      official i Lblg;i()Z
      intermediary method_5573 Lnet/minecraft/class_1291;method_5573()Z
      named isBeneficial Lnet/minecraft/entity/effect/StatusEffect;isBeneficial()Z
    • getRegistryEntry

      @Deprecated public RegistryEntry.Reference<StatusEffect> getRegistryEntry()
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official j Lblg;j()Lih$c;
      intermediary method_53123 Lnet/minecraft/class_1291;method_53123()Lnet/minecraft/class_6880$class_6883;
      named getRegistryEntry Lnet/minecraft/entity/effect/StatusEffect;getRegistryEntry()Lnet/minecraft/registry/entry/RegistryEntry$Reference;