Class AttributeMap
java.lang.Object
net.minecraft.world.entity.ai.attributes.AttributeMap
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map
<Holder<Attribute>, AttributeInstance> private final Set
<AttributeInstance> private final Set
<AttributeInstance> private static final org.slf4j.Logger
private final AttributeSupplier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTransientAttributeModifiers
(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_342579_) void
assignAllValues
(AttributeMap p_22160_) void
assignBaseValues
(AttributeMap p_344183_) double
getBaseValue
(Holder<Attribute> p_329417_) getInstance
(Holder<Attribute> p_250010_) double
getModifierValue
(Holder<Attribute> p_251534_, ResourceLocation p_343636_) double
boolean
hasAttribute
(Holder<Attribute> p_248893_) boolean
hasModifier
(Holder<Attribute> p_250299_, ResourceLocation p_343661_) void
private void
onAttributeModified
(AttributeInstance p_22158_) void
removeAttributeModifiers
(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_342034_) save()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
attributes
-
attributesToSync
-
attributesToUpdate
-
supplier
-
-
Constructor Details
-
AttributeMap
-
-
Method Details
-
onAttributeModified
-
getAttributesToSync
-
getAttributesToUpdate
-
getSyncableAttributes
-
getInstance
-
hasAttribute
-
hasModifier
-
getValue
-
getBaseValue
-
getModifierValue
-
addTransientAttributeModifiers
public void addTransientAttributeModifiers(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_342579_) -
removeAttributeModifiers
public void removeAttributeModifiers(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_342034_) -
assignAllValues
-
assignBaseValues
-
save
-
load
-