Uses of Interface
alexiil.mc.lib.attributes.misc.Reference
Package | Description |
---|---|
alexiil.mc.lib.attributes | |
alexiil.mc.lib.attributes.fluid |
The base package for
fluid management. |
alexiil.mc.lib.attributes.fluid.item | |
alexiil.mc.lib.attributes.item | |
alexiil.mc.lib.attributes.item.compat.mod.emi.iteminv | |
alexiil.mc.lib.attributes.misc |
-
Uses of Reference in alexiil.mc.lib.attributes
Methods in alexiil.mc.lib.attributes with parameters of type Reference Modifier and Type Method Description void
ItemAttributeAdder. addAll(Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excess, ItemAttributeList<T> to)
Adds every attribute instance to the given list that the item itself cannot be expected to add support for.void
AttributeProviderItem. addAllAttributes(Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excess, ItemAttributeList<?> to)
Adds every attribute instance to the given list that the item itself cannot be expected to add support for.T
CombinableAttribute. get(Reference<net.minecraft.item.ItemStack> stackRef)
Obtains a combined instance of this attribute in the givenItemStack
Reference
, or theDefaultedAttribute.defaultValue
if none were found.T
CombinableAttribute. get(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)
Obtains a combined instance of this attribute in the givenItemStack
Reference
, or theDefaultedAttribute.defaultValue
if none were found.T
CombinableAttribute. get(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess, java.util.function.Predicate<T> filter)
Obtains a combined instance of this attribute in the givenItemStack
Reference
, or theDefaultedAttribute.defaultValue
if none were found.T
CombinableAttribute. get(Reference<net.minecraft.item.ItemStack> stackRef, java.util.function.Predicate<T> filter)
Obtains a combined instance of this attribute in the givenItemStack
Reference
, or theDefaultedAttribute.defaultValue
if none were found.ItemAttributeList<T>
Attribute. getAll(Reference<net.minecraft.item.ItemStack> stackRef)
Obtains all instances of this attribute in the givenItemStack
Reference
.ItemAttributeList<T>
Attribute. getAll(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)
Obtains all instances of this attribute in the givenItemStack
Reference
.ItemAttributeList<T>
Attribute. getAll(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess, java.util.function.Predicate<T> filter)
Obtains all instances of this attribute in the givenItemStack
Reference
.ItemAttributeList<T>
Attribute. getAll(Reference<net.minecraft.item.ItemStack> stackRef, java.util.function.Predicate<T> filter)
Obtains all instances of this attribute in the givenItemStack
Reference
.T
DefaultedAttribute. getFirst(Reference<net.minecraft.item.ItemStack> stackRef)
Obtains the first instance of this attribute in the givenItemStack
Reference
, or theDefaultedAttribute.defaultValue
if none were found.T
DefaultedAttribute. getFirst(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)
Obtains the first instance of this attribute in the givenItemStack
Reference
, or theDefaultedAttribute.defaultValue
if none were found.T
DefaultedAttribute. getFirst(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess, java.util.function.Predicate<T> filter)
Obtains the first instance of this attribute in the givenItemStack
Reference
, or theDefaultedAttribute.defaultValue
if none were found.T
DefaultedAttribute. getFirst(Reference<net.minecraft.item.ItemStack> stackRef, java.util.function.Predicate<T> filter)
Obtains the first instance of this attribute in the givenItemStack
Reference
, or theDefaultedAttribute.defaultValue
if none were found.T
Attribute. getFirstOrNull(Reference<net.minecraft.item.ItemStack> stackRef)
Obtains the first instance of this attribute in the givenItemStack
Reference
, or null if none were found.T
Attribute. getFirstOrNull(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)
Obtains the first instance of this attribute in the givenItemStack
Reference
, or null if none were found.T
Attribute. getFirstOrNull(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess, java.util.function.Predicate<T> filter)
Obtains the first instance of this attribute in the givenItemStack
Reference
, or null if none were found.T
Attribute. getFirstOrNull(Reference<net.minecraft.item.ItemStack> stackRef, java.util.function.Predicate<T> filter)
Obtains the first instance of this attribute in the givenItemStack
Reference
, or null if none were found. -
Uses of Reference in alexiil.mc.lib.attributes.fluid
Classes in alexiil.mc.lib.attributes.fluid that implement Reference Modifier and Type Class Description class
SingleFluidTank
A delegating accessor of a single slot in aFixedFluidInv
.Methods in alexiil.mc.lib.attributes.fluid with parameters of type Reference Modifier and Type Method Description static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
This is the "interactItemWithTank" variant that uses a singleFixedFluidInv
for the insertable/extractable tanks, and doesn't limit the fluid moved, or the amount moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidAmount maximum)
This is the "interactItemWithTank" variant that uses a singleFixedFluidInv
for the insertable/extractable tanks, and doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter)
This is the "interactItemWithTank" variant that uses a singleFixedFluidInv
for the insertable/extractable tanks, and doesn't limit the amount of fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter, FluidAmount maximum)
This is the "interactItemWithTank" variant that uses a singleFixedFluidInv
for the insertable/extractable tanks.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
This is the "interactItemWithTank" variant that doesn't limit what fluid is moved, or the amount of fluid that is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidAmount maximum)
This is the "interactItemWithTank" variant that doesn't filter what is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter)
This is the "interactItemWithTank" variant that doesn't limit the amount of fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter, FluidAmount maximum)
Attempts to either fill the insertable from the provided stack reference, or drain the extractable to the provided stack.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
This is the "interactItemWithTank" variant that uses a singleFluidTransferable
for the insertable/extractable tanks, and doesn't limit what fluid is moved, or how much is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidAmount maximum)
This is the "interactItemWithTank" variant that uses a singleFluidTransferable
for the insertable/extractable tanks, and doesn't filter what is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter)
This is the "interactItemWithTank" variant that uses a singleFluidTransferable
for the insertable/extractable tanks, and doesn't limit the amount moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactItemWithTank(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks, FluidFilter filter, FluidAmount maximum)
This is the "interactItemWithTank" variant that uses a singleFluidTransferable
for the insertable/extractable tanks.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack)
This is the "interactWithTank" variant that takes a singleFixedFluidInv
, and doesn't limit what fluid is moved, or the amount of fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidAmount maximum)
This is the "interactWithTank" variant that takes a singleFixedFluidInv
, and doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter)
This is the "interactWithTank" variant that takes a singleFixedFluidInv
, and doesn't limit the amount of fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FixedFluidInv inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter, FluidAmount maximum)
This is the "interactWithTank" variant that takes a singleFixedFluidInv
.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack)
This is the "interactWithTank" variant that doesn't limit what fluid is moved, or the amount of fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidAmount maximum)
This is the "interactWithTank" variant that doesn't limit the fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter)
This is the "interactWithTank" variant that doesn't limit the amount of fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter, FluidAmount maximum)
Attempts to either fill the insertable from the provided stack reference, or drain the extractable to the provided stack.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack)
This is the "interactWithTank" variant that takes a singleFluidTransferable
, and doesn't limit what fluid is moved, or the amount of fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidAmount maximum)
This is the "interactWithTank" variant that takes a singleFluidTransferable
, and doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter)
This is the "interactWithTank" variant that takes a singleFluidTransferable
, and doesn't limit the amount of fluid moved.static FluidVolumeUtil.FluidTankInteraction
FluidInvUtil. interactWithTank(FluidTransferable inv, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> stack, FluidFilter filter, FluidAmount maximum)
This is the "interactWithTank" variant that takes a singleFluidTransferable
.static FluidVolumeUtil.FluidTankInteraction
FluidVolumeUtil. interactWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
Deprecated.UseFluidInvUtil.interactItemWithTank(FixedFluidInv, Reference, LimitedConsumer)
instead: all interactWithTank methods have been moved toFluidInvUtil
.static FluidVolumeUtil.FluidTankInteraction
FluidVolumeUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
Deprecated.UseFluidInvUtil.interactItemWithTank(FluidInsertable, FluidExtractable, Reference, LimitedConsumer)
instead: all interactWithTank methods have been moved toFluidInvUtil
.static boolean
FluidVolumeUtil. interactWithTank(FluidInsertable invInsert, FluidExtractable invExtract, net.minecraft.entity.player.PlayerEntity player, Reference<net.minecraft.item.ItemStack> mainStackRef)
Deprecated.The boolean return has been deprecated, and the main method has been moved toFluidInvUtil.interactWithTank(FluidInsertable, FluidExtractable, PlayerEntity, Reference)
static FluidVolumeUtil.FluidTankInteraction
FluidVolumeUtil. interactWithTank(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
Deprecated.UseFluidInvUtil.interactItemWithTank(FluidTransferable, Reference, LimitedConsumer)
instead: all interactWithTank methods have been moved toFluidInvUtil
. -
Uses of Reference in alexiil.mc.lib.attributes.fluid.item
Constructors in alexiil.mc.lib.attributes.fluid.item with parameters of type Reference Constructor Description ItemBasedSingleFluidInv(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
-
Uses of Reference in alexiil.mc.lib.attributes.item
Classes in alexiil.mc.lib.attributes.item that implement Reference Modifier and Type Class Description class
SingleCopyingItemSlot
class
SingleItemSlot
A delegating accessor of a single slot in aFixedItemInv
.Methods in alexiil.mc.lib.attributes.item that return Reference Modifier and Type Method Description static Reference<net.minecraft.item.ItemStack>
ItemInvUtil. referenceGuiCursor(net.minecraft.server.network.ServerPlayerEntity player)
Deprecated.static Reference<net.minecraft.item.ItemStack>
ItemInvUtil. referenceHand(net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand)
Deprecated.UsePlayerInvUtil.referenceHand(PlayerEntity,Hand)
instead -
Uses of Reference in alexiil.mc.lib.attributes.item.compat.mod.emi.iteminv
Constructors in alexiil.mc.lib.attributes.item.compat.mod.emi.iteminv with parameters of type Reference Constructor Description FixedInvEmiItemInv(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
-
Uses of Reference in alexiil.mc.lib.attributes.misc
Subinterfaces of Reference in alexiil.mc.lib.attributes.misc Modifier and Type Interface Description interface
StackReference
SpecialistReference
interface forItemStack
s.Classes in alexiil.mc.lib.attributes.misc that implement Reference Modifier and Type Class Description class
CallableRef<T>
AReference
that delegates to aSupplier
forCallableRef.get()
,Consumer
forCallableRef.set(Object)
, and aPredicate
forCallableRef.isValid(Object)
.class
DestroyableRef<T>
AReference
that can be modified untilDestroyableRef.destroy()
is called, after which all calls toDestroyableRef.set(Object)
andDestroyableRef.isValid(Object)
will return false.class
Ref<T>
class
SimulatableRef<T>
A variant ofCallableRef
that usesSupplier
forSimulatableRef.get()
, andLimitedConsumer
forSimulatableRef.set(Object)
andSimulatableRef.isValid(Object)
.class
UnmodifiableRef<T>
AReference
that may be obtained throughUnmodifiableRef.get()
, but never allows the value to be changed inUnmodifiableRef.set(Object)
.Fields in alexiil.mc.lib.attributes.misc declared as Reference Modifier and Type Field Description protected Reference<net.minecraft.item.ItemStack>
AbstractItemBasedAttribute. stackRef
Methods in alexiil.mc.lib.attributes.misc that return Reference Modifier and Type Method Description static Reference<net.minecraft.item.ItemStack>
PlayerInvUtil. referenceGuiCursor(net.minecraft.server.network.ServerPlayerEntity player)
Creates aReference
to the given player'scursor stack
, that updates the client whenever it is changed.static Reference<net.minecraft.item.ItemStack>
PlayerInvUtil. referenceHand(net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand)
Creates aReference
to the what the player is currently holding in the givenHand
.static Reference<net.minecraft.item.ItemStack>
PlayerInvUtil. referenceSlot(net.minecraft.screen.slot.Slot slot)
Creates aReference
to the givenSlot
.Methods in alexiil.mc.lib.attributes.misc with parameters of type Reference Modifier and Type Method Description static <T> DestroyableRef<T>
Reference. destroying(Reference<T> ref)
Constructors in alexiil.mc.lib.attributes.misc with parameters of type Reference Constructor Description AbstractItemBasedAttribute(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)
DestroyableRef(Reference<T> ref)