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 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

      Returns:
      An immutable map of the function-parents attached to this attribute.
      Since:
      1.4.0
    • 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

      boolean hasProperty(String property)
      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

      String getProperty(String property)
      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.