Class AttributeModifierManager
java.lang.Object
net.minecraft.entity.ai.attributes.AttributeModifierManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<Attribute,
ModifiableAttributeInstance> private final Set<ModifiableAttributeInstance>
private static final org.apache.logging.log4j.Logger
private final AttributeModifierMap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTransientAttributeModifiers
(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_233793_1_) void
assignValues
(AttributeModifierManager p_233784_1_) double
getBaseValue
(Attribute p_233797_1_) getInstance
(Attribute p_233779_1_) double
getModifierValue
(Attribute p_233791_1_, UUID p_233791_2_) double
boolean
hasAttribute
(Attribute p_233790_1_) boolean
hasModifier
(Attribute p_233782_1_, UUID p_233782_2_) void
private void
onAttributeModified
(ModifiableAttributeInstance p_233783_1_) void
removeAttributeModifiers
(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_233785_1_) save()
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
attributes
-
dirtyAttributes
-
supplier
-
-
Constructor Details
-
AttributeModifierManager
-
-
Method Details
-
onAttributeModified
-
getDirtyAttributes
-
getSyncableAttributes
-
getInstance
-
hasAttribute
-
hasModifier
-
getValue
-
getBaseValue
-
getModifierValue
-
removeAttributeModifiers
public void removeAttributeModifiers(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_233785_1_) -
addTransientAttributeModifiers
public void addTransientAttributeModifiers(com.google.common.collect.Multimap<Attribute, AttributeModifier> p_233793_1_) -
assignValues
-
save
-
load
-