Class AttributeMap
java.lang.Object
net.minecraft.world.entity.ai.attributes.AttributeMap
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<Attribute,
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<Attribute, AttributeModifier> p_22179_) void
assignValues
(AttributeMap p_22160_) double
getBaseValue
(Attribute p_22186_) getInstance
(Holder<Attribute> p_250010_) getInstance
(Attribute p_22147_) double
getModifierValue
(Holder<Attribute> p_251534_, UUID p_250438_) double
getModifierValue
(Attribute p_22174_, UUID p_22175_) double
boolean
hasAttribute
(Holder<Attribute> p_248893_) boolean
hasAttribute
(Attribute p_22172_) boolean
hasModifier
(Holder<Attribute> p_250299_, UUID p_250415_) boolean
hasModifier
(Attribute p_22155_, UUID p_22156_) void
private void
onAttributeModified
(AttributeInstance p_22158_) void
removeAttributeModifiers
(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_22162_) save()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
attributes
-
dirtyAttributes
-
supplier
-
-
Constructor Details
-
AttributeMap
-
-
Method Details
-
onAttributeModified
-
getDirtyAttributes
-
getSyncableAttributes
-
getInstance
-
getInstance
-
hasAttribute
-
hasAttribute
-
hasModifier
-
hasModifier
-
getValue
-
getBaseValue
-
getModifierValue
-
getModifierValue
-
removeAttributeModifiers
public void removeAttributeModifiers(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_22162_) -
addTransientAttributeModifiers
public void addTransientAttributeModifiers(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_22179_) -
assignValues
-
save
-
load
-