Uses of Enum Class
alexiil.mc.lib.attributes.AttributeSourceType
-
Uses of AttributeSourceType in alexiil.mc.lib.attributes
Modifier and TypeMethodDescriptionstatic AttributeSourceType
Returns the enum constant of this class with the specified name.static AttributeSourceType[]
AttributeSourceType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionvoid
Attribute.addBlockEntityPredicateAdder(AttributeSourceType sourceType, boolean specific, Predicate<net.minecraft.block.entity.BlockEntityType<?>> filter, BlockEntityAttributeAdder.BlockEntityAttributeAdderFN<T,net.minecraft.block.entity.BlockEntity> adder)
Predicate
-based block entity attribute adder.void
Attribute.addBlockPredicateAdder(AttributeSourceType sourceType, boolean specific, Predicate<net.minecraft.block.Block> filter, CustomAttributeAdder<T> adder)
Predicate
-based block attribute adder.void
Attribute.addItemPredicateAdder(AttributeSourceType sourceType, boolean specific, Predicate<net.minecraft.item.Item> filter, ItemAttributeAdder<T> adder)
Predicate
-based item attribute adder.void
CompatLeveledMap.addPredicateBased(AttributeSourceType type, boolean specific, Predicate<? super Instance> predicate, V value)
void
Attribute.putBlockClassAdder(AttributeSourceType sourceType, Class<?> clazz, boolean matchSubclasses, CustomAttributeAdder<T> adder)
Class
-based block attribute adder.<BE> void
Attribute.putBlockEntityClassAdder(AttributeSourceType sourceType, Class<BE> clazz, boolean matchSubclasses, BlockEntityAttributeAdder.BlockEntityAttributeAdderFN<T,BE> adder)
Class
-based block entity attribute adder.void
CompatLeveledMap.putClassBased(AttributeSourceType type, Class<?> clazz, boolean matchSubclasses, V value)
void
CompatLeveledMap.putExact(AttributeSourceType type, Instance key, V value)
void
Attribute.putItemClassAdder(AttributeSourceType sourceType, Class<?> clazz, boolean matchSubclasses, ItemAttributeAdder<T> adder)
Class
-based item attribute adder.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
.<BE extends net.minecraft.block.entity.BlockEntity>
voidAttribute.setBlockEntityAdder(AttributeSourceType sourceType, net.minecraft.block.entity.BlockEntityType<BE> type, BlockEntityAttributeAdder<T,BE> adder)
Sets theBlockEntityAttributeAdder
for the given block entity type, which is only used if the block entity in question doesn't implementAttributeProviderBlockEntity
.<BE extends net.minecraft.block.entity.BlockEntity>
voidAttribute.setBlockEntityAdder(AttributeSourceType sourceType, net.minecraft.block.entity.BlockEntityType<BE> type, Class<BE> clazz, BlockEntityAttributeAdder.BlockEntityAttributeAdderFN<T,BE> adder)
Sets theBlockEntityAttributeAdder
for the given block entity type, which is only used if the block entity in question doesn't implementAttributeProviderBlockEntity
.void
Attribute.setBlockEntityAdderFN(AttributeSourceType sourceType, net.minecraft.block.entity.BlockEntityType<?> type, BlockEntityAttributeAdder.BlockEntityAttributeAdderFN<T,net.minecraft.block.entity.BlockEntity> adder)
Sets theBlockEntityAttributeAdder
for the given block entity type, which is only used if the block entity in question doesn't implementAttributeProviderBlockEntity
.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
.