Uses of Interface
alexiil.mc.lib.attributes.CustomAttributeAdder
-
Uses of CustomAttributeAdder in alexiil.mc.lib.attributes
Modifier and TypeMethodDescriptionfinal void
Attribute.addBlockPredicateAdder
(AttributeSourceType sourceType, boolean specific, Predicate<net.minecraft.block.Block> filter, CustomAttributeAdder<T> adder) Predicate
-based block attribute adder.Attribute.appendBlockAdder
(CustomAttributeAdder<T> blockAdder) Appends a singleCustomAttributeAdder
to the list of custom block adders.CombinableAttribute.appendBlockAdder
(CustomAttributeAdder<T> blockAdder) DefaultedAttribute.appendBlockAdder
(CustomAttributeAdder<T> blockAdder) final void
Attribute.appendCustomAdder
(CustomAttributeAdder<T> customAdder) Deprecated, for removal: This API element is subject to removal in a future version.static <T> Attribute<T>
Attributes.create
(Class<T> clazz, CustomAttributeAdder<T> customAdder) static <T> CombinableAttribute<T>
Attributes.createCombinable
(Class<T> clazz, T defaultValue, AttributeCombiner<T> combiner, CustomAttributeAdder<T> customAdder) static <T> DefaultedAttribute<T>
Attributes.createDefaulted
(Class<T> clazz, T defaultValue, CustomAttributeAdder<T> customAdder) final void
Attribute.putBlockClassAdder
(AttributeSourceType sourceType, Class<?> clazz, boolean matchSubclasses, CustomAttributeAdder<T> adder) Class
-based block attribute adder.final void
Attribute.setBlockAdder
(AttributeSourceType sourceType, net.minecraft.block.Block block, CustomAttributeAdder<T> adder) Sets theCustomAttributeAdder
for the given block, which is only used if the block in question doesn't implementAttributeProvider
.ModifierConstructorDescriptionprotected
Attribute
(Class<T> clazz, CustomAttributeAdder<T> customAdder) Deprecated, for removal: This API element is subject to removal in a future version.Kept for backwards compatibility, instead you should callAttribute(Class)
followed byAttribute.appendBlockAdder(CustomAttributeAdder)
.DefaultedAttribute
(Class<T> clazz, T defaultValue, CustomAttributeAdder<T> customAdder) Deprecated, for removal: This API element is subject to removal in a future version.Kept for backwards compatibility, instead you should callDefaultedAttribute(Class, Object)
followed byDefaultedAttribute.appendBlockAdder(CustomAttributeAdder)
.
Attribute.appendBlockAdder(CustomAttributeAdder)
.