Package alexiil.mc.lib.attributes
Class Attributes
java.lang.Object
alexiil.mc.lib.attributes.Attributes
Static factories for
Attribute
instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Attribute<T>
static <T> Attribute<T>
create
(Class<T> clazz, CustomAttributeAdder<T> customAdder) static <T> CombinableAttribute<T>
createCombinable
(Class<T> clazz, T defaultValue, AttributeCombiner<T> combiner) static <T> CombinableAttribute<T>
createCombinable
(Class<T> clazz, T defaultValue, AttributeCombiner<T> combiner, CustomAttributeAdder<T> customAdder) static <T> DefaultedAttribute<T>
createDefaulted
(Class<T> clazz, T defaultValue) static <T> DefaultedAttribute<T>
createDefaulted
(Class<T> clazz, T defaultValue, CustomAttributeAdder<T> customAdder)
-
Method Details
-
create
-
create
-
createDefaulted
-
createDefaulted
public static <T> DefaultedAttribute<T> createDefaulted(Class<T> clazz, @Nonnull T defaultValue, CustomAttributeAdder<T> customAdder) -
createCombinable
public static <T> CombinableAttribute<T> createCombinable(Class<T> clazz, @Nonnull T defaultValue, AttributeCombiner<T> combiner) -
createCombinable
public static <T> CombinableAttribute<T> createCombinable(Class<T> clazz, @Nonnull T defaultValue, AttributeCombiner<T> combiner, CustomAttributeAdder<T> customAdder)
-