Package alexiil.mc.lib.attributes
Class Attributes
java.lang.Object
alexiil.mc.lib.attributes.Attributes
public final class Attributes
extends java.lang.Object
Static factories for 
Attribute instances.- 
Method SummaryModifier and Type Method Description static <T> Attribute<T>create(java.lang.Class<T> clazz)static <T> Attribute<T>create(java.lang.Class<T> clazz, CustomAttributeAdder<T> customAdder)static <T> CombinableAttribute<T>createCombinable(java.lang.Class<T> clazz, T defaultValue, AttributeCombiner<T> combiner)static <T> CombinableAttribute<T>createCombinable(java.lang.Class<T> clazz, T defaultValue, AttributeCombiner<T> combiner, CustomAttributeAdder<T> customAdder)static <T> DefaultedAttribute<T>createDefaulted(java.lang.Class<T> clazz, T defaultValue)static <T> DefaultedAttribute<T>createDefaulted(java.lang.Class<T> clazz, T defaultValue, CustomAttributeAdder<T> customAdder)
- 
Method Details- 
create
- 
createpublic static <T> Attribute<T> create(java.lang.Class<T> clazz, CustomAttributeAdder<T> customAdder)
- 
createDefaultedpublic static <T> DefaultedAttribute<T> createDefaulted(java.lang.Class<T> clazz, @Nonnull T defaultValue)
- 
createDefaultedpublic static <T> DefaultedAttribute<T> createDefaulted(java.lang.Class<T> clazz, @Nonnull T defaultValue, CustomAttributeAdder<T> customAdder)
- 
createCombinablepublic static <T> CombinableAttribute<T> createCombinable(java.lang.Class<T> clazz, @Nonnull T defaultValue, AttributeCombiner<T> combiner)
- 
createCombinablepublic static <T> CombinableAttribute<T> createCombinable(java.lang.Class<T> clazz, @Nonnull T defaultValue, AttributeCombiner<T> combiner, CustomAttributeAdder<T> customAdder)
 
-