Class DefaultAttributeContainer

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

public class DefaultAttributeContainer extends Object
Mappings:
Namespace Name
official bcf
intermediary net/minecraft/class_5132
named net/minecraft/entity/attribute/DefaultAttributeContainer
  • Field Details

    • instances

      private final Map<EntityAttribute,EntityAttributeInstance> instances
      Mappings:
      Namespace Name Mixin selector
      official a Lbcf;a:Ljava/util/Map;
      intermediary field_23713 Lnet/minecraft/class_5132;field_23713:Ljava/util/Map;
      named instances Lnet/minecraft/entity/attribute/DefaultAttributeContainer;instances:Ljava/util/Map;
  • Constructor Details

    • DefaultAttributeContainer

      public DefaultAttributeContainer(Map<EntityAttribute,EntityAttributeInstance> instances)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbcf;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_5132;<init>(Ljava/util/Map;)V
      named <init> Lnet/minecraft/entity/attribute/DefaultAttributeContainer;<init>(Ljava/util/Map;)V
  • Method Details

    • require

      private EntityAttributeInstance require(EntityAttribute attribute)
      Mappings:
      Namespace Name Mixin selector
      official d Lbcf;d(Lbcb;)Lbcc;
      intermediary method_26865 Lnet/minecraft/class_5132;method_26865(Lnet/minecraft/class_1320;)Lnet/minecraft/class_1324;
      named require Lnet/minecraft/entity/attribute/DefaultAttributeContainer;require(Lnet/minecraft/entity/attribute/EntityAttribute;)Lnet/minecraft/entity/attribute/EntityAttributeInstance;
    • getValue

      public double getValue(EntityAttribute attribute)
      Mappings:
      Namespace Name Mixin selector
      official a Lbcf;a(Lbcb;)D
      intermediary method_26862 Lnet/minecraft/class_5132;method_26862(Lnet/minecraft/class_1320;)D
      named getValue Lnet/minecraft/entity/attribute/DefaultAttributeContainer;getValue(Lnet/minecraft/entity/attribute/EntityAttribute;)D
    • getBaseValue

      public double getBaseValue(EntityAttribute attribute)
      Mappings:
      Namespace Name Mixin selector
      official b Lbcf;b(Lbcb;)D
      intermediary method_26864 Lnet/minecraft/class_5132;method_26864(Lnet/minecraft/class_1320;)D
      named getBaseValue Lnet/minecraft/entity/attribute/DefaultAttributeContainer;getBaseValue(Lnet/minecraft/entity/attribute/EntityAttribute;)D
    • getModifierValue

      public double getModifierValue(EntityAttribute attribute, UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      official a Lbcf;a(Lbcb;Ljava/util/UUID;)D
      intermediary method_27308 Lnet/minecraft/class_5132;method_27308(Lnet/minecraft/class_1320;Ljava/util/UUID;)D
      named getModifierValue Lnet/minecraft/entity/attribute/DefaultAttributeContainer;getModifierValue(Lnet/minecraft/entity/attribute/EntityAttribute;Ljava/util/UUID;)D
    • createOverride

      @Nullable public @Nullable EntityAttributeInstance createOverride(Consumer<EntityAttributeInstance> updateCallback, EntityAttribute attribute)
      Mappings:
      Namespace Name Mixin selector
      official a Lbcf;a(Ljava/util/function/Consumer;Lbcb;)Lbcc;
      intermediary method_26863 Lnet/minecraft/class_5132;method_26863(Ljava/util/function/Consumer;Lnet/minecraft/class_1320;)Lnet/minecraft/class_1324;
      named createOverride Lnet/minecraft/entity/attribute/DefaultAttributeContainer;createOverride(Ljava/util/function/Consumer;Lnet/minecraft/entity/attribute/EntityAttribute;)Lnet/minecraft/entity/attribute/EntityAttributeInstance;
    • builder

      public static DefaultAttributeContainer.Builder builder()
      Mappings:
      Namespace Name Mixin selector
      official a Lbcf;a()Lbcf$a;
      intermediary method_26861 Lnet/minecraft/class_5132;method_26861()Lnet/minecraft/class_5132$class_5133;
      named builder Lnet/minecraft/entity/attribute/DefaultAttributeContainer;builder()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
    • has

      public boolean has(EntityAttribute type)
      Mappings:
      Namespace Name Mixin selector
      official c Lbcf;c(Lbcb;)Z
      intermediary method_27310 Lnet/minecraft/class_5132;method_27310(Lnet/minecraft/class_1320;)Z
      named has Lnet/minecraft/entity/attribute/DefaultAttributeContainer;has(Lnet/minecraft/entity/attribute/EntityAttribute;)Z
    • hasModifier

      public boolean hasModifier(EntityAttribute type, UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      official b Lbcf;b(Lbcb;Ljava/util/UUID;)Z
      intermediary method_27309 Lnet/minecraft/class_5132;method_27309(Lnet/minecraft/class_1320;Ljava/util/UUID;)Z
      named hasModifier Lnet/minecraft/entity/attribute/DefaultAttributeContainer;hasModifier(Lnet/minecraft/entity/attribute/EntityAttribute;Ljava/util/UUID;)Z