Package net.minecraft.entity.attribute
Class AttributeContainer
java.lang.Object
net.minecraft.entity.attribute.AttributeContainer
public class AttributeContainer extends Object
-
Field Summary
Fields Modifier and Type Field Description private Map<EntityAttribute,EntityAttributeInstance>
custom
private DefaultAttributeContainer
fallback
private static Logger
LOGGER
private Set<EntityAttributeInstance>
tracked
-
Constructor Summary
Constructors Constructor Description AttributeContainer(DefaultAttributeContainer defaultAttributes)
-
Method Summary
Modifier and Type Method Description void
addTemporaryModifiers(Multimap<EntityAttribute,EntityAttributeModifier> attributeModifiers)
void
fromTag(ListTag tag)
Collection<EntityAttributeInstance>
getAttributesToSend()
double
getBaseValue(EntityAttribute attribute)
EntityAttributeInstance
getCustomInstance(EntityAttribute attribute)
double
getModifierValue(EntityAttribute attribute, UUID uuid)
Set<EntityAttributeInstance>
getTracked()
double
getValue(EntityAttribute attribute)
boolean
hasAttribute(EntityAttribute attribute)
boolean
hasModifierForAttribute(EntityAttribute attribute, UUID uuid)
void
removeModifiers(Multimap<EntityAttribute,EntityAttributeModifier> attributeModifiers)
void
setFrom(AttributeContainer other)
ListTag
toTag()
private void
updateTrackedStatus(EntityAttributeInstance instance)
-
Field Details
-
LOGGER
-
custom
-
tracked
-
fallback
-
-
Constructor Details
-
AttributeContainer
-
-
Method Details
-
updateTrackedStatus
-
getTracked
-
getAttributesToSend
-
getCustomInstance
-
hasAttribute
-
hasModifierForAttribute
-
getValue
-
getBaseValue
-
getModifierValue
-
removeModifiers
-
addTemporaryModifiers
public void addTemporaryModifiers(Multimap<EntityAttribute,EntityAttributeModifier> attributeModifiers) -
setFrom
-
toTag
-
fromTag
-