Interface AttributeHolder

    • Method Detail

      • attribute

        default java.util.Optional<Attribute> attribute​(java.util.function.Supplier<? extends AttributeType> type)
        Gets an Attribute from this entity
        Parameters:
        type - The attribute type.
        Returns:
        An attribute, if present.
      • attribute

        java.util.Optional<Attribute> attribute​(AttributeType type)
        Gets an Attribute from this entity
        Parameters:
        type - The attribute type.
        Returns:
        An attribute, if present.