Class AttributeContainer

java.lang.Object
net.minecraft.entity.attribute.AttributeContainer

public class AttributeContainer extends Object
Mappings:
Namespace Name
official bgx
intermediary net/minecraft/class_5131
named net/minecraft/entity/attribute/AttributeContainer
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lbgx;a:Lorg/slf4j/Logger;
      intermediary field_23708 Lnet/minecraft/class_5131;field_23708:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/entity/attribute/AttributeContainer;LOGGER:Lorg/slf4j/Logger;
    • custom

      Mappings:
      Namespace Name Mixin selector
      official b Lbgx;b:Ljava/util/Map;
      intermediary field_23709 Lnet/minecraft/class_5131;field_23709:Ljava/util/Map;
      named custom Lnet/minecraft/entity/attribute/AttributeContainer;custom:Ljava/util/Map;
    • tracked

      private final Set<EntityAttributeInstance> tracked
      Mappings:
      Namespace Name Mixin selector
      official c Lbgx;c:Ljava/util/Set;
      intermediary field_23710 Lnet/minecraft/class_5131;field_23710:Ljava/util/Set;
      named tracked Lnet/minecraft/entity/attribute/AttributeContainer;tracked:Ljava/util/Set;
    • fallback

      private final DefaultAttributeContainer fallback
      Mappings:
      Namespace Name Mixin selector
      official d Lbgx;d:Lbgz;
      intermediary field_23711 Lnet/minecraft/class_5131;field_23711:Lnet/minecraft/class_5132;
      named fallback Lnet/minecraft/entity/attribute/AttributeContainer;fallback:Lnet/minecraft/entity/attribute/DefaultAttributeContainer;
  • Constructor Details

    • AttributeContainer

      public AttributeContainer(DefaultAttributeContainer defaultAttributes)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbgx;<init>(Lbgz;)V
      intermediary <init> Lnet/minecraft/class_5131;<init>(Lnet/minecraft/class_5132;)V
      named <init> Lnet/minecraft/entity/attribute/AttributeContainer;<init>(Lnet/minecraft/entity/attribute/DefaultAttributeContainer;)V
  • Method Details

    • updateTrackedStatus

      private void updateTrackedStatus(EntityAttributeInstance instance)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgx;a(Lbgw;)V
      intermediary method_26845 Lnet/minecraft/class_5131;method_26845(Lnet/minecraft/class_1324;)V
      named updateTrackedStatus Lnet/minecraft/entity/attribute/AttributeContainer;updateTrackedStatus(Lnet/minecraft/entity/attribute/EntityAttributeInstance;)V
    • getTracked

      public Set<EntityAttributeInstance> getTracked()
      Mappings:
      Namespace Name Mixin selector
      official a Lbgx;a()Ljava/util/Set;
      intermediary method_26841 Lnet/minecraft/class_5131;method_26841()Ljava/util/Set;
      named getTracked Lnet/minecraft/entity/attribute/AttributeContainer;getTracked()Ljava/util/Set;
    • getAttributesToSend

      public Collection<EntityAttributeInstance> getAttributesToSend()
      Mappings:
      Namespace Name Mixin selector
      official b Lbgx;b()Ljava/util/Collection;
      intermediary method_26851 Lnet/minecraft/class_5131;method_26851()Ljava/util/Collection;
      named getAttributesToSend Lnet/minecraft/entity/attribute/AttributeContainer;getAttributesToSend()Ljava/util/Collection;
    • getCustomInstance

      @Nullable public @Nullable EntityAttributeInstance getCustomInstance(EntityAttribute attribute)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgx;a(Lbgv;)Lbgw;
      intermediary method_26842 Lnet/minecraft/class_5131;method_26842(Lnet/minecraft/class_1320;)Lnet/minecraft/class_1324;
      named getCustomInstance Lnet/minecraft/entity/attribute/AttributeContainer;getCustomInstance(Lnet/minecraft/entity/attribute/EntityAttribute;)Lnet/minecraft/entity/attribute/EntityAttributeInstance;
    • getCustomInstance

      Mappings:
      Namespace Name Mixin selector
      official a Lbgx;a(Lhe;)Lbgw;
      intermediary method_45329 Lnet/minecraft/class_5131;method_45329(Lnet/minecraft/class_6880;)Lnet/minecraft/class_1324;
      named getCustomInstance Lnet/minecraft/entity/attribute/AttributeContainer;getCustomInstance(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/entity/attribute/EntityAttributeInstance;
    • hasAttribute

      public boolean hasAttribute(EntityAttribute attribute)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgx;b(Lbgv;)Z
      intermediary method_27306 Lnet/minecraft/class_5131;method_27306(Lnet/minecraft/class_1320;)Z
      named hasAttribute Lnet/minecraft/entity/attribute/AttributeContainer;hasAttribute(Lnet/minecraft/entity/attribute/EntityAttribute;)Z
    • hasAttribute

      public boolean hasAttribute(RegistryEntry<EntityAttribute> attribute)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgx;b(Lhe;)Z
      intermediary method_45331 Lnet/minecraft/class_5131;method_45331(Lnet/minecraft/class_6880;)Z
      named hasAttribute Lnet/minecraft/entity/attribute/AttributeContainer;hasAttribute(Lnet/minecraft/registry/entry/RegistryEntry;)Z
    • hasModifierForAttribute

      public boolean hasModifierForAttribute(EntityAttribute attribute, UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgx;a(Lbgv;Ljava/util/UUID;)Z
      intermediary method_27305 Lnet/minecraft/class_5131;method_27305(Lnet/minecraft/class_1320;Ljava/util/UUID;)Z
      named hasModifierForAttribute Lnet/minecraft/entity/attribute/AttributeContainer;hasModifierForAttribute(Lnet/minecraft/entity/attribute/EntityAttribute;Ljava/util/UUID;)Z
    • hasModifierForAttribute

      public boolean hasModifierForAttribute(RegistryEntry<EntityAttribute> attribute, UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgx;a(Lhe;Ljava/util/UUID;)Z
      intermediary method_45330 Lnet/minecraft/class_5131;method_45330(Lnet/minecraft/class_6880;Ljava/util/UUID;)Z
      named hasModifierForAttribute Lnet/minecraft/entity/attribute/AttributeContainer;hasModifierForAttribute(Lnet/minecraft/registry/entry/RegistryEntry;Ljava/util/UUID;)Z
    • getValue

      public double getValue(EntityAttribute attribute)
      Mappings:
      Namespace Name Mixin selector
      official c Lbgx;c(Lbgv;)D
      intermediary method_26852 Lnet/minecraft/class_5131;method_26852(Lnet/minecraft/class_1320;)D
      named getValue Lnet/minecraft/entity/attribute/AttributeContainer;getValue(Lnet/minecraft/entity/attribute/EntityAttribute;)D
    • getBaseValue

      public double getBaseValue(EntityAttribute attribute)
      Mappings:
      Namespace Name Mixin selector
      official d Lbgx;d(Lbgv;)D
      intermediary method_26856 Lnet/minecraft/class_5131;method_26856(Lnet/minecraft/class_1320;)D
      named getBaseValue Lnet/minecraft/entity/attribute/AttributeContainer;getBaseValue(Lnet/minecraft/entity/attribute/EntityAttribute;)D
    • getModifierValue

      public double getModifierValue(EntityAttribute attribute, UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgx;b(Lbgv;Ljava/util/UUID;)D
      intermediary method_27307 Lnet/minecraft/class_5131;method_27307(Lnet/minecraft/class_1320;Ljava/util/UUID;)D
      named getModifierValue Lnet/minecraft/entity/attribute/AttributeContainer;getModifierValue(Lnet/minecraft/entity/attribute/EntityAttribute;Ljava/util/UUID;)D
    • getModifierValue

      public double getModifierValue(RegistryEntry<EntityAttribute> attribute, UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgx;b(Lhe;Ljava/util/UUID;)D
      intermediary method_45332 Lnet/minecraft/class_5131;method_45332(Lnet/minecraft/class_6880;Ljava/util/UUID;)D
      named getModifierValue Lnet/minecraft/entity/attribute/AttributeContainer;getModifierValue(Lnet/minecraft/registry/entry/RegistryEntry;Ljava/util/UUID;)D
    • removeModifiers

      public void removeModifiers(Multimap<EntityAttribute,EntityAttributeModifier> attributeModifiers)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgx;a(Lcom/google/common/collect/Multimap;)V
      intermediary method_26847 Lnet/minecraft/class_5131;method_26847(Lcom/google/common/collect/Multimap;)V
      named removeModifiers Lnet/minecraft/entity/attribute/AttributeContainer;removeModifiers(Lcom/google/common/collect/Multimap;)V
    • addTemporaryModifiers

      public void addTemporaryModifiers(Multimap<EntityAttribute,EntityAttributeModifier> attributeModifiers)
      Mappings:
      Namespace Name Mixin selector
      official b Lbgx;b(Lcom/google/common/collect/Multimap;)V
      intermediary method_26854 Lnet/minecraft/class_5131;method_26854(Lcom/google/common/collect/Multimap;)V
      named addTemporaryModifiers Lnet/minecraft/entity/attribute/AttributeContainer;addTemporaryModifiers(Lcom/google/common/collect/Multimap;)V
    • setFrom

      public void setFrom(AttributeContainer other)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgx;a(Lbgx;)V
      intermediary method_26846 Lnet/minecraft/class_5131;method_26846(Lnet/minecraft/class_5131;)V
      named setFrom Lnet/minecraft/entity/attribute/AttributeContainer;setFrom(Lnet/minecraft/entity/attribute/AttributeContainer;)V
    • toNbt

      public NbtList toNbt()
      Mappings:
      Namespace Name Mixin selector
      official c Lbgx;c()Lqx;
      intermediary method_26855 Lnet/minecraft/class_5131;method_26855()Lnet/minecraft/class_2499;
      named toNbt Lnet/minecraft/entity/attribute/AttributeContainer;toNbt()Lnet/minecraft/nbt/NbtList;
    • readNbt

      public void readNbt(NbtList nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lbgx;a(Lqx;)V
      intermediary method_26850 Lnet/minecraft/class_5131;method_26850(Lnet/minecraft/class_2499;)V
      named readNbt Lnet/minecraft/entity/attribute/AttributeContainer;readNbt(Lnet/minecraft/nbt/NbtList;)V