Uses of Interface
alexiil.mc.lib.attributes.BlockEntityAttributeAdder
Package | Description |
---|---|
alexiil.mc.lib.attributes |
-
Uses of BlockEntityAttributeAdder in alexiil.mc.lib.attributes
Classes in alexiil.mc.lib.attributes that implement BlockEntityAttributeAdder Modifier and Type Class Description static class
BlockEntityAttributeAdder.BeAdderBase<AT,BE>
Base class forBlockEntityAttributeAdder.BlockEntityAttributeAdderFN
conversions.Methods in alexiil.mc.lib.attributes that return BlockEntityAttributeAdder Modifier and Type Method Description 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(java.lang.Class<BE> clazz, BlockEntityAttributeAdder.BlockEntityAttributeAdderFN<AT,BE> fn)
Creates a fullBlockEntityAttributeAdder
from theFunctionalInterface
variant, and aClass
to target.Methods in alexiil.mc.lib.attributes with parameters of type BlockEntityAttributeAdder Modifier and Type Method Description <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
.