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 Summary
Modifier 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
 - 
create
public static <T> Attribute<T> create(java.lang.Class<T> clazz, CustomAttributeAdder<T> customAdder) - 
createDefaulted
public static <T> DefaultedAttribute<T> createDefaulted(java.lang.Class<T> clazz, @Nonnull T defaultValue) - 
createDefaulted
public static <T> DefaultedAttribute<T> createDefaulted(java.lang.Class<T> clazz, @Nonnull T defaultValue, CustomAttributeAdder<T> customAdder) - 
createCombinable
public static <T> CombinableAttribute<T> createCombinable(java.lang.Class<T> clazz, @Nonnull T defaultValue, AttributeCombiner<T> combiner) - 
createCombinable
public static <T> CombinableAttribute<T> createCombinable(java.lang.Class<T> clazz, @Nonnull T defaultValue, AttributeCombiner<T> combiner, CustomAttributeAdder<T> customAdder) 
 -