Uses of Class
alexiil.mc.lib.attributes.AttributeList
Package | Description |
---|---|
alexiil.mc.lib.attributes | |
alexiil.mc.lib.attributes.fluid |
The base package for
fluid management. |
alexiil.mc.lib.attributes.item |
-
Uses of AttributeList in alexiil.mc.lib.attributes
Methods in alexiil.mc.lib.attributes that return AttributeList Modifier and Type Method Description AttributeList<T>
Attribute. getAll(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
AttributeList<T>
Attribute. getAll(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, SearchOption<? super T> searchParam)
AttributeList<T>
Attribute. getAllFromNeighbour(net.minecraft.block.entity.BlockEntity be, net.minecraft.util.math.Direction dir)
Shorter method call for the common case of: BlockEntity be = ...; Direction dir = ...; Attribute<T> attr = ...; AttributeList<T> list = attr.getAll
(be.getWorld(), be.getPos().offset(dir),SearchOptions.inDirection
(dir));Methods in alexiil.mc.lib.attributes with parameters of type AttributeList Modifier and Type Method Description void
BlockEntityAttributeAdder. 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.void
BlockEntityAttributeAdder.BeAdderBase. addAll(BE blockEntity, AttributeList<AT> to)
void
BlockEntityAttributeAdder.BlockEntityAttributeAdderFN. 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.void
CustomAttributeAdder. addAll(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, AttributeList<T> to)
Adds every attribute instance to the given list that the block itself cannot be expected to add support for.void
AttributeProvider. addAllAttributes(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, AttributeList<?> to)
Adds every instance of the given attribute in this block to the resulting list.void
AttributeProviderBlockEntity. addAllAttributes(AttributeList<?> to)
Adds every instance of the given attribute in this block entity to the resulting list.T
AttributeList. combine(AttributeList<T> after, CombinableAttribute<T> combinable)
T
ItemAttributeList. combine(AttributeList<T> after, CombinableAttribute<T> combinable)
-
Uses of AttributeList in alexiil.mc.lib.attributes.fluid
Methods in alexiil.mc.lib.attributes.fluid with parameters of type AttributeList Modifier and Type Method Description default void
FixedFluidInvView. offerSelfAsAttribute(AttributeList<?> list, CacheInfo cacheInfo, net.minecraft.util.shape.VoxelShape shape)
Deprecated.Because this functionality has been fully replaced byConvertible
and it's usage inAttributeList
. -
Uses of AttributeList in alexiil.mc.lib.attributes.item
Methods in alexiil.mc.lib.attributes.item with parameters of type AttributeList Modifier and Type Method Description default void
FixedItemInvView. offerSelfAsAttribute(AttributeList<?> list, CacheInfo cacheInfo, net.minecraft.util.shape.VoxelShape shape)
Deprecated.Because this functionality has been fully replaced byConvertible
and it's usage inAttributeList
, so you can always just offer this object directly to the attribute list.