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 voidItemAttributeAdder. 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.voidAttributeProviderItem. 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.TCombinableAttribute. get(Reference<net.minecraft.item.ItemStack> stackRef)Obtains a combined instance of this attribute in the givenItemStackReference, or theDefaultedAttribute.defaultValueif none were found.TCombinableAttribute. get(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)Obtains a combined instance of this attribute in the givenItemStackReference, or theDefaultedAttribute.defaultValueif none were found.TCombinableAttribute. 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 givenItemStackReference, or theDefaultedAttribute.defaultValueif none were found.TCombinableAttribute. get(Reference<net.minecraft.item.ItemStack> stackRef, java.util.function.Predicate<T> filter)Obtains a combined instance of this attribute in the givenItemStackReference, or theDefaultedAttribute.defaultValueif none were found.ItemAttributeList<T>Attribute. getAll(Reference<net.minecraft.item.ItemStack> stackRef)Obtains all instances of this attribute in the givenItemStackReference.ItemAttributeList<T>Attribute. getAll(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)Obtains all instances of this attribute in the givenItemStackReference.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 givenItemStackReference.ItemAttributeList<T>Attribute. getAll(Reference<net.minecraft.item.ItemStack> stackRef, java.util.function.Predicate<T> filter)Obtains all instances of this attribute in the givenItemStackReference.TDefaultedAttribute. getFirst(Reference<net.minecraft.item.ItemStack> stackRef)Obtains the first instance of this attribute in the givenItemStackReference, or theDefaultedAttribute.defaultValueif none were found.TDefaultedAttribute. getFirst(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)Obtains the first instance of this attribute in the givenItemStackReference, or theDefaultedAttribute.defaultValueif none were found.TDefaultedAttribute. 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 givenItemStackReference, or theDefaultedAttribute.defaultValueif none were found.TDefaultedAttribute. getFirst(Reference<net.minecraft.item.ItemStack> stackRef, java.util.function.Predicate<T> filter)Obtains the first instance of this attribute in the givenItemStackReference, or theDefaultedAttribute.defaultValueif none were found.TAttribute. getFirstOrNull(Reference<net.minecraft.item.ItemStack> stackRef)Obtains the first instance of this attribute in the givenItemStackReference, or null if none were found.TAttribute. getFirstOrNull(Reference<net.minecraft.item.ItemStack> stackRef, LimitedConsumer<net.minecraft.item.ItemStack> excess)Obtains the first instance of this attribute in the givenItemStackReference, or null if none were found.TAttribute. 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 givenItemStackReference, or null if none were found.TAttribute. getFirstOrNull(Reference<net.minecraft.item.ItemStack> stackRef, java.util.function.Predicate<T> filter)Obtains the first instance of this attribute in the givenItemStackReference, 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 classSingleFluidTankA 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.FluidTankInteractionFluidInvUtil. interactItemWithTank(FixedFluidInv inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)This is the "interactItemWithTank" variant that uses a singleFixedFluidInvfor the insertable/extractable tanks, and doesn't limit the fluid moved, or the amount moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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 singleFixedFluidInvfor the insertable/extractable tanks, and doesn't limit what fluid is moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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 singleFixedFluidInvfor the insertable/extractable tanks, and doesn't limit the amount of fluid moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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 singleFixedFluidInvfor the insertable/extractable tanks.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. interactItemWithTank(FluidTransferable inv, Reference<net.minecraft.item.ItemStack> stack, LimitedConsumer<net.minecraft.item.ItemStack> excessStacks)This is the "interactItemWithTank" variant that uses a singleFluidTransferablefor the insertable/extractable tanks, and doesn't limit what fluid is moved, or how much is moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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 singleFluidTransferablefor the insertable/extractable tanks, and doesn't filter what is moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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 singleFluidTransferablefor the insertable/extractable tanks, and doesn't limit the amount moved.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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 singleFluidTransferablefor the insertable/extractable tanks.static FluidVolumeUtil.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidInvUtil. 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.FluidTankInteractionFluidVolumeUtil. 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.FluidTankInteractionFluidVolumeUtil. 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 booleanFluidVolumeUtil. 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.FluidTankInteractionFluidVolumeUtil. 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 classSingleCopyingItemSlotclassSingleItemSlotA 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 interfaceStackReferenceSpecialistReferenceinterface forItemStacks.Classes in alexiil.mc.lib.attributes.misc that implement Reference Modifier and Type Class Description classCallableRef<T>AReferencethat delegates to aSupplierforCallableRef.get(),ConsumerforCallableRef.set(Object), and aPredicateforCallableRef.isValid(Object).classDestroyableRef<T>AReferencethat can be modified untilDestroyableRef.destroy()is called, after which all calls toDestroyableRef.set(Object)andDestroyableRef.isValid(Object)will return false.classRef<T>classSimulatableRef<T>A variant ofCallableRefthat usesSupplierforSimulatableRef.get(), andLimitedConsumerforSimulatableRef.set(Object)andSimulatableRef.isValid(Object).classUnmodifiableRef<T>AReferencethat 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. stackRefMethods 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 aReferenceto 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 aReferenceto 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 aReferenceto 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)