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_345244_) void
assignAllValues
(AttributeMap p_348501_) void
assignBaseValues
(AttributeMap p_22160_) double
getBaseValue
(Holder<Attribute> p_316270_) getInstance
(Holder<Attribute> p_250010_) double
getModifierValue
(Holder<Attribute> p_251534_, ResourceLocation p_350464_) double
boolean
hasAttribute
(Holder<Attribute> p_248893_) boolean
hasModifier
(Holder<Attribute> p_250299_, ResourceLocation p_350963_) void
private void
onAttributeModified
(AttributeInstance p_22158_) void
removeAttributeModifiers
(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_344776_) 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_345244_) -
removeAttributeModifiers
public void removeAttributeModifiers(com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> p_344776_) -
assignAllValues
-
assignBaseValues
-
save
-
load
-