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
(Attribute p_22147_) double
getModifierValue
(Attribute p_22174_, UUID p_22175_) double
boolean
hasAttribute
(Attribute p_22172_) 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
-
hasAttribute
-
hasModifier
-
getValue
-
getBaseValue
-
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
-