Package alexiil.mc.lib.attributes
Class AbstractAttributeList<T>
java.lang.Object
alexiil.mc.lib.attributes.AbstractAttributeList<T>
- Direct Known Subclasses:
- AttributeList,- ItemAttributeList
The base class for 
AttributeList and ItemAttributeList.- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidprotected voidcombine(CombinableAttribute<T> combinable)get(int index)intgetCount()getFirst(DefaultedAttribute<T> defaulted)
- 
Field Details- 
attribute
- 
list
 
- 
- 
Constructor Details- 
AbstractAttributeList
 
- 
- 
Method Details- 
getCountpublic int getCount()- Returns:
- The number of attribute instances added to this list.
 
- 
get
- 
getFirstOrNull
- 
getFirst
- 
combine- Returns:
- A combined version of this list, or the attribute's default value if this list is empty.
 
- 
assertAddingprotected void assertAdding()
- 
assertUsingprotected void assertUsing()
 
-