Uses of Interface
alexiil.mc.lib.attributes.CustomAttributeAdder
| Package | Description | 
|---|---|
| alexiil.mc.lib.attributes | 
- 
Uses of CustomAttributeAdder in alexiil.mc.lib.attributes
Methods in alexiil.mc.lib.attributes with parameters of type CustomAttributeAdder Modifier and Type Method Description voidAttribute. addBlockPredicateAdder(AttributeSourceType sourceType, boolean specific, java.util.function.Predicate<net.minecraft.block.Block> filter, CustomAttributeAdder<T> adder)Predicate-based block attribute adder.Attribute<T>Attribute. appendBlockAdder(CustomAttributeAdder<T> blockAdder)Appends a singleCustomAttributeAdderto the list of custom block adders.CombinableAttribute<T>CombinableAttribute. appendBlockAdder(CustomAttributeAdder<T> blockAdder)DefaultedAttribute<T>DefaultedAttribute. appendBlockAdder(CustomAttributeAdder<T> blockAdder)voidAttribute. appendCustomAdder(CustomAttributeAdder<T> customAdder)Deprecated.Provided for backwards compatibility - instead you should useAttribute.appendBlockAdder(CustomAttributeAdder).static <T> Attribute<T>Attributes. create(java.lang.Class<T> clazz, CustomAttributeAdder<T> customAdder)static <T> CombinableAttribute<T>Attributes. createCombinable(java.lang.Class<T> clazz, T defaultValue, AttributeCombiner<T> combiner, CustomAttributeAdder<T> customAdder)static <T> DefaultedAttribute<T>Attributes. createDefaulted(java.lang.Class<T> clazz, T defaultValue, CustomAttributeAdder<T> customAdder)voidAttribute. putBlockClassAdder(AttributeSourceType sourceType, java.lang.Class<?> clazz, boolean matchSubclasses, CustomAttributeAdder<T> adder)Class-based block attribute adder.voidAttribute. setBlockAdder(AttributeSourceType sourceType, net.minecraft.block.Block block, CustomAttributeAdder<T> adder)Sets theCustomAttributeAdderfor the given block, which is only used if the block in question doesn't implementAttributeProvider.Constructors in alexiil.mc.lib.attributes with parameters of type CustomAttributeAdder Constructor Description Attribute(java.lang.Class<T> clazz, CustomAttributeAdder<T> customAdder)Deprecated.Kept for backwards compatibility, instead you should callAttribute(Class)followed byAttribute.appendBlockAdder(CustomAttributeAdder).DefaultedAttribute(java.lang.Class<T> clazz, T defaultValue, CustomAttributeAdder<T> customAdder)Deprecated.Kept for backwards compatibility, instead you should callDefaultedAttribute(Class, Object)followed byDefaultedAttribute.appendBlockAdder(CustomAttributeAdder).