Uses of Interface
alexiil.mc.lib.attributes.BlockEntityAttributeAdder.BlockEntityAttributeAdderFN
-
Uses of BlockEntityAttributeAdder.BlockEntityAttributeAdderFN in alexiil.mc.lib.attributes
Modifier and TypeMethodDescriptionfinal void
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.static <AT> BlockEntityAttributeAdder<AT,
net.minecraft.block.entity.BlockEntity> BlockEntityAttributeAdder.ofBasic
(BlockEntityAttributeAdder.BlockEntityAttributeAdderFN<AT, net.minecraft.block.entity.BlockEntity> fn) Creates a fullBlockEntityAttributeAdder
from theFunctionalInterface
variant, but only allows targetingBlockEntity
directly.static <AT,
BE> BlockEntityAttributeAdder<AT, BE> BlockEntityAttributeAdder.ofTyped
(Class<BE> clazz, BlockEntityAttributeAdder.BlockEntityAttributeAdderFN<AT, BE> fn) Creates a fullBlockEntityAttributeAdder
from theFunctionalInterface
variant, and aClass
to target.final <BE> void
Attribute.putBlockEntityClassAdder
(AttributeSourceType sourceType, Class<BE> clazz, boolean matchSubclasses, BlockEntityAttributeAdder.BlockEntityAttributeAdderFN<T, BE> adder) Class
-based block entity attribute adder.final <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
.final 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
.ModifierConstructorDescription