Uses of Interface
alexiil.mc.lib.attributes.ItemAttributeAdder
-
Uses of ItemAttributeAdder in alexiil.mc.lib.attributes
Modifier and TypeMethodDescriptionvoid
Attribute.addItemPredicateAdder(AttributeSourceType sourceType, boolean specific, Predicate<net.minecraft.item.Item> filter, ItemAttributeAdder<T> adder)
Predicate
-based item attribute adder.Attribute.appendItemAdder(ItemAttributeAdder<T> itemAdder)
Appends a singleItemAttributeAdder
to the list of custom item adders.CombinableAttribute.appendItemAdder(ItemAttributeAdder<T> itemAdder)
DefaultedAttribute.appendItemAdder(ItemAttributeAdder<T> itemAdder)
void
Attribute.putItemClassAdder(AttributeSourceType sourceType, Class<?> clazz, boolean matchSubclasses, ItemAttributeAdder<T> adder)
Class
-based item attribute adder.void
Attribute.setItemAdder(AttributeSourceType sourceType, net.minecraft.item.Item item, ItemAttributeAdder<T> adder)
Sets theItemAttributeAdder
for the given item, which is only used if the item in question doesn't implementAttributeProviderItem
.