Class AttributeMap
java.lang.Object
net.minecraft.world.entity.ai.attributes.AttributeMap
-
Field Summary
Modifier and TypeFieldDescriptionprivate Map<Attribute,AttributeInstance>
private Set<AttributeInstance>
private static org.apache.logging.log4j.Logger
private 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.apache.logging.log4j.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
-