Package net.minecraft.entity.attribute
Class DefaultAttributeContainer
java.lang.Object
net.minecraft.entity.attribute.DefaultAttributeContainer
public class DefaultAttributeContainer extends Object
- Mappings:
Namespace Name official ash
intermediary net/minecraft/class_5132
named net/minecraft/entity/attribute/DefaultAttributeContainer
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultAttributeContainer.Builder
-
Field Summary
Fields Modifier and Type Field Description private Map<EntityAttribute,EntityAttributeInstance>
instances
-
Constructor Summary
Constructors Constructor Description DefaultAttributeContainer(Map<EntityAttribute,EntityAttributeInstance> instances)
-
Method Summary
Modifier and Type Method Description static DefaultAttributeContainer.Builder
builder()
EntityAttributeInstance
createOverride(Consumer<EntityAttributeInstance> updateCallback, EntityAttribute attribute)
double
getBaseValue(EntityAttribute attribute)
double
getModifierValue(EntityAttribute attribute, UUID uuid)
double
getValue(EntityAttribute attribute)
boolean
has(EntityAttribute type)
boolean
hasModifier(EntityAttribute type, UUID uuid)
private EntityAttributeInstance
require(EntityAttribute attribute)
-
Field Details
-
instances
- Mappings:
Namespace Name Mixin selector official a
Lash;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
- Mappings:
Namespace Name Mixin selector official <init>
Lash;<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
- Mappings:
Namespace Name Mixin selector official d
Lash;d(Lasd;)Lase;
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
- Mappings:
Namespace Name Mixin selector official a
Lash;a(Lasd;)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
- Mappings:
Namespace Name Mixin selector official b
Lash;b(Lasd;)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
- Mappings:
Namespace Name Mixin selector official a
Lash;a(Lasd;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 EntityAttributeInstance createOverride(Consumer<EntityAttributeInstance> updateCallback, EntityAttribute attribute)- Mappings:
Namespace Name Mixin selector official a
Lash;a(Ljava/util/function/Consumer;Lasd;)Lase;
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
- Mappings:
Namespace Name Mixin selector official a
Lash;a()Lash$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
- Mappings:
Namespace Name Mixin selector official c
Lash;c(Lasd;)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
- Mappings:
Namespace Name Mixin selector official b
Lash;b(Lasd;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
-