Package alexiil.mc.lib.attributes
Class BlockEntityAttributeAdder.BeAdderBase<AT,BE>
java.lang.Object
alexiil.mc.lib.attributes.BlockEntityAttributeAdder.BeAdderBase<AT,BE>
- All Implemented Interfaces:
BlockEntityAttributeAdder<AT,BE>
- Enclosing interface:
- BlockEntityAttributeAdder<AT,BE>
public static class BlockEntityAttributeAdder.BeAdderBase<AT,BE>
extends Object
implements BlockEntityAttributeAdder<AT,BE>
Base class for
BlockEntityAttributeAdder.BlockEntityAttributeAdderFN
conversions. Most of the time you are recommened to use
BlockEntityAttributeAdder.ofBasic(BlockEntityAttributeAdderFN)
or
BlockEntityAttributeAdder.ofTyped(Class, BlockEntityAttributeAdderFN)
instead of this directly.-
Nested Class Summary
Nested classes/interfaces inherited from interface alexiil.mc.lib.attributes.BlockEntityAttributeAdder
BlockEntityAttributeAdder.BeAdderBase<AT,BE>, BlockEntityAttributeAdder.BlockEntityAttributeAdderFN<AT,BE>
-
Constructor Summary
ConstructorDescriptionBeAdderBase(Class<BE> clazz, BlockEntityAttributeAdder.BlockEntityAttributeAdderFN<AT,BE> fn)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAll(BE blockEntity, AttributeList<AT> to)
Adds every attribute instance to the given list that the block entity itself cannot be expected to add support for.toString()
-
Constructor Details
-
BeAdderBase
public BeAdderBase(Class<BE> clazz, BlockEntityAttributeAdder.BlockEntityAttributeAdderFN<AT,BE> fn)
-
-
Method Details
-
getBlockEntityClass
- Specified by:
getBlockEntityClass
in interfaceBlockEntityAttributeAdder<AT,BE>
- Returns:
- The target
Class
for theBlockEntity
. This doesn't extendBlockEntity
so you can target interfaces that block entities may implement).
-
addAll
Description copied from interface:BlockEntityAttributeAdder
Adds every attribute instance to the given list that the block entity itself cannot be expected to add support for.- Specified by:
addAll
in interfaceBlockEntityAttributeAdder<AT,BE>
-
toString
-