Class DefaultAttributeContainer

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

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

    • instances

      Mappings:
      Namespace Name Mixin selector
      named instances Lnet/minecraft/entity/attribute/DefaultAttributeContainer;instances:Ljava/util/Map;
      intermediary field_23713 Lnet/minecraft/class_5132;field_23713:Ljava/util/Map;
      official a Lbut;a:Ljava/util/Map;
  • Constructor Details

    • DefaultAttributeContainer

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

    • require

      Mappings:
      Namespace Name Mixin selector
      named require Lnet/minecraft/entity/attribute/DefaultAttributeContainer;require(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/entity/attribute/EntityAttributeInstance;
      intermediary method_26865 Lnet/minecraft/class_5132;method_26865(Lnet/minecraft/class_6880;)Lnet/minecraft/class_1324;
      official d Lbut;d(Ljm;)Lbuq;
    • getValue

      public double getValue(RegistryEntry<EntityAttribute> attribute)
      Mappings:
      Namespace Name Mixin selector
      named getValue Lnet/minecraft/entity/attribute/DefaultAttributeContainer;getValue(Lnet/minecraft/registry/entry/RegistryEntry;)D
      intermediary method_26862 Lnet/minecraft/class_5132;method_26862(Lnet/minecraft/class_6880;)D
      official a Lbut;a(Ljm;)D
    • getBaseValue

      public double getBaseValue(RegistryEntry<EntityAttribute> attribute)
      Mappings:
      Namespace Name Mixin selector
      named getBaseValue Lnet/minecraft/entity/attribute/DefaultAttributeContainer;getBaseValue(Lnet/minecraft/registry/entry/RegistryEntry;)D
      intermediary method_26864 Lnet/minecraft/class_5132;method_26864(Lnet/minecraft/class_6880;)D
      official b Lbut;b(Ljm;)D
    • getModifierValue

      public double getModifierValue(RegistryEntry<EntityAttribute> attribute, Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      named getModifierValue Lnet/minecraft/entity/attribute/DefaultAttributeContainer;getModifierValue(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/Identifier;)D
      intermediary method_27308 Lnet/minecraft/class_5132;method_27308(Lnet/minecraft/class_6880;Lnet/minecraft/class_2960;)D
      official a Lbut;a(Ljm;Lakq;)D
    • createOverride

      Mappings:
      Namespace Name Mixin selector
      named createOverride Lnet/minecraft/entity/attribute/DefaultAttributeContainer;createOverride(Ljava/util/function/Consumer;Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/entity/attribute/EntityAttributeInstance;
      intermediary method_26863 Lnet/minecraft/class_5132;method_26863(Ljava/util/function/Consumer;Lnet/minecraft/class_6880;)Lnet/minecraft/class_1324;
      official a Lbut;a(Ljava/util/function/Consumer;Ljm;)Lbuq;
    • builder

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

      public boolean has(RegistryEntry<EntityAttribute> attribute)
      Mappings:
      Namespace Name Mixin selector
      named has Lnet/minecraft/entity/attribute/DefaultAttributeContainer;has(Lnet/minecraft/registry/entry/RegistryEntry;)Z
      intermediary method_27310 Lnet/minecraft/class_5132;method_27310(Lnet/minecraft/class_6880;)Z
      official c Lbut;c(Ljm;)Z
    • hasModifier

      public boolean hasModifier(RegistryEntry<EntityAttribute> attribute, Identifier identifier)
      Mappings:
      Namespace Name Mixin selector
      named hasModifier Lnet/minecraft/entity/attribute/DefaultAttributeContainer;hasModifier(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/Identifier;)Z
      intermediary method_27309 Lnet/minecraft/class_5132;method_27309(Lnet/minecraft/class_6880;Lnet/minecraft/class_2960;)Z
      official b Lbut;b(Ljm;Lakq;)Z