Class BaseAttributeMap
- java.lang.Object
-
- net.minecraft.entity.ai.attributes.BaseAttributeMap
-
- Direct Known Subclasses:
ServersideAttributeMap
public abstract class BaseAttributeMap extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<IAttribute,IAttributeInstance>
attributes
protected java.util.Map<java.lang.String,IAttributeInstance>
attributesByName
protected Multimap<IAttribute,IAttribute>
field_180377_c
-
Constructor Summary
Constructors Constructor Description BaseAttributeMap()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
applyAttributeModifiers(Multimap<java.lang.String,AttributeModifier> parMultimap)
protected abstract IAttributeInstance
func_180376_c(IAttribute var1)
void
func_180794_a(IAttributeInstance parIAttributeInstance)
java.util.Collection<IAttributeInstance>
getAllAttributes()
IAttributeInstance
getAttributeInstance(IAttribute attribute)
IAttributeInstance
getAttributeInstanceByName(java.lang.String attributeName)
IAttributeInstance
registerAttribute(IAttribute attribute)
+ Registers an attribute with this AttributeMap, returns a modifiable AttributeInstance associated with this mapvoid
removeAttributeModifiers(Multimap<java.lang.String,AttributeModifier> parMultimap)
-
-
-
Field Detail
-
attributes
protected final java.util.Map<IAttribute,IAttributeInstance> attributes
-
attributesByName
protected final java.util.Map<java.lang.String,IAttributeInstance> attributesByName
-
field_180377_c
protected final Multimap<IAttribute,IAttribute> field_180377_c
-
-
Method Detail
-
getAttributeInstance
public IAttributeInstance getAttributeInstance(IAttribute attribute)
-
getAttributeInstanceByName
public IAttributeInstance getAttributeInstanceByName(java.lang.String attributeName)
-
registerAttribute
public IAttributeInstance registerAttribute(IAttribute attribute)
+ Registers an attribute with this AttributeMap, returns a modifiable AttributeInstance associated with this map
-
func_180376_c
protected abstract IAttributeInstance func_180376_c(IAttribute var1)
-
getAllAttributes
public java.util.Collection<IAttributeInstance> getAllAttributes()
-
func_180794_a
public void func_180794_a(IAttributeInstance parIAttributeInstance)
-
removeAttributeModifiers
public void removeAttributeModifiers(Multimap<java.lang.String,AttributeModifier> parMultimap)
-
applyAttributeModifiers
public void applyAttributeModifiers(Multimap<java.lang.String,AttributeModifier> parMultimap)
-
-