Interface IEntityAttribute
public interface IEntityAttribute
EntityAttribute's implement this through a mixin, and can be cast to this interface to get additional data added by Data Attributes.
-
Method Summary
Modifier and TypeMethodDescriptionchildren()getProperty(String property) booleanhasProperty(String property) doublemaxValue()doubleminValue()parents()
-
Method Details
-
minValue
double minValue()- Returns:
- The attribute's minimum value;
-
maxValue
double maxValue()- Returns:
- The attribute's maximum value;
-
stackingBehaviour
StackingBehaviour stackingBehaviour()- Returns:
- The attribute's stacking behaviour.
-
parents
Map<IEntityAttribute,IAttributeFunction> parents()- Returns:
- An immutable map of the function-parents attached to this attribute.
- Since:
- 1.4.0
-
children
Map<IEntityAttribute,IAttributeFunction> children()- Returns:
- An immutable map of the function-children attached to this attribute.
- Since:
- 1.4.0
-
properties
Collection<String> properties()- Returns:
- An immutable collection of the properties' keys attached to this attribute.
-
hasProperty
- Parameters:
property- A property key.- Returns:
- true if this attribute has the input property key; false if not, or if the input is null.
-
getProperty
- Parameters:
property- A property key.- Returns:
- This attribute's property value assigned to the input property's key. If it does not exist or is null, returns 0.0F.
-