Class AttributeModifierMap.MutableAttribute
- java.lang.Object
-
- net.minecraft.entity.ai.attributes.AttributeModifierMap.MutableAttribute
-
- Enclosing class:
- AttributeModifierMap
public static class AttributeModifierMap.MutableAttribute extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<Attribute,ModifiableAttributeInstance>
builder
private boolean
instanceFrozen
private java.util.List<AttributeModifierMap.MutableAttribute>
others
-
Constructor Summary
Constructors Constructor Description MutableAttribute()
MutableAttribute(AttributeModifierMap attributeMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeModifierMap.MutableAttribute
add(Attribute p_233814_1_)
AttributeModifierMap.MutableAttribute
add(Attribute p_233815_1_, double p_233815_2_)
AttributeModifierMap
build()
void
combine(AttributeModifierMap.MutableAttribute other)
private ModifiableAttributeInstance
create(Attribute p_233817_1_)
boolean
hasAttribute(Attribute attribute)
-
-
-
Field Detail
-
builder
private final java.util.Map<Attribute,ModifiableAttributeInstance> builder
-
instanceFrozen
private boolean instanceFrozen
-
others
private final java.util.List<AttributeModifierMap.MutableAttribute> others
-
-
Constructor Detail
-
MutableAttribute
public MutableAttribute()
-
MutableAttribute
public MutableAttribute(AttributeModifierMap attributeMap)
-
-
Method Detail
-
combine
public void combine(AttributeModifierMap.MutableAttribute other)
-
hasAttribute
public boolean hasAttribute(Attribute attribute)
-
create
private ModifiableAttributeInstance create(Attribute p_233817_1_)
-
add
public AttributeModifierMap.MutableAttribute add(Attribute p_233814_1_)
-
add
public AttributeModifierMap.MutableAttribute add(Attribute p_233815_1_, double p_233815_2_)
-
build
public AttributeModifierMap build()
-
-