Uses of Interface
alexiil.mc.lib.attributes.BlockEntityAttributeAdder
-
Uses of BlockEntityAttributeAdder in alexiil.mc.lib.attributes
Modifier and TypeClassDescriptionstatic class
Base class forBlockEntityAttributeAdder.BlockEntityAttributeAdderFN
conversions.Modifier and TypeMethodDescriptionstatic <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.Modifier and TypeMethodDescriptionfinal <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
.