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 java.lang.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
Constructors Constructor Description BeAdderBase(java.lang.Class<BE> clazz, BlockEntityAttributeAdder.BlockEntityAttributeAdderFN<AT,BE> fn)
-
Method Summary
Modifier and Type Method Description void
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.java.lang.Class<BE>
getBlockEntityClass()
java.lang.String
toString()
-
Constructor Details
-
BeAdderBase
public BeAdderBase(java.lang.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
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-