net.minecraft.entity.attribute

public class DefaultAttributeContainer

net.minecraft.world.entity.ai.attributes.AttributeSupplier
net.minecraft.class_5132
net.minecraft.entity.attribute.DefaultAttributeContainer

Field summary

Modifier and TypeField
private final Map<RegistryEntry<EntityAttribute>, EntityAttributeInstance>
instances
field_23713
instances

Constructor summary

ModifierConstructor
private (Map<RegistryEntry<EntityAttribute>, EntityAttributeInstance> instances)

Method summary

Modifier and TypeMethod
private EntityAttributeInstance
getAttributeInstance(Holder<Attribute> attribute)
method_26865(class_6880<class_1320> arg0)
require(RegistryEntry<EntityAttribute> attribute)
public double
getValue(Holder<Attribute> attribute)
method_26862(class_6880<class_1320> arg0)
getValue(RegistryEntry<EntityAttribute> attribute)
public double
getBaseValue(Holder<Attribute> attribute)
method_26864(class_6880<class_1320> arg0)
getBaseValue(RegistryEntry<EntityAttribute> attribute)
public double
getModifierValue(Holder<Attribute> attribute, Identifier id)
method_27308(class_6880<class_1320> arg0, class_2960 arg1)
getModifierValue(RegistryEntry<EntityAttribute> attribute, Identifier id)
public EntityAttributeInstance
createInstance(Consumer<AttributeInstance> onDirty, Holder<Attribute> attribute)
method_26863(Consumer<class_1324> arg0, class_6880<class_1320> arg1)
createOverride(Consumer<EntityAttributeInstance> updateCallback, RegistryEntry<EntityAttribute> attribute)
public static DefaultAttributeContainer$Builder
builder()
method_26861()
builder()
public boolean
hasAttribute(Holder<Attribute> attribute)
method_27310(class_6880<class_1320> arg0)
has(RegistryEntry<EntityAttribute> attribute)
public boolean
hasModifier(Holder<Attribute> attribute, Identifier modifier)
method_27309(class_6880<class_1320> arg0, class_2960 arg1)
hasModifier(RegistryEntry<EntityAttribute> attribute, Identifier id)