public interface AttributeSource
AttributeModifier
s. For example some potions
like the speed potion also affect the entity's SPEED attribute.
Note: You can achieve the same effects (attribute wise) if you apply
the AttributeModifier
s from an AttributeSource (like a potion effect
type) to an entity without adding the potion directly. If you apply an
attribute modifier from an AttributeSource it will not be added another time,
if you apply the entire AttributeSource to that entity, but it will be
removed if you remove the AttributeSource from the entity.
Modifier and Type | Method and Description |
---|---|
Collection<AttributeModifier> |
getAttributeModifiers()
Gets all
AttributeModifier s on this AttributeSource. |
Collection<AttributeModifier> getAttributeModifiers()
AttributeModifier
s on this AttributeSource.