Package alexiil.mc.lib.attributes.misc
Interface StackReference
- All Superinterfaces:
Reference<net.minecraft.item.ItemStack>
- All Known Implementing Classes:
SingleCopyingItemSlot,SingleItemSlot
Specialist
Reference interface for ItemStacks. NOTE: You cannot assume that all
References for ItemStacks will implement this, as this is only provided in the rare case that someone
needs to perform an "instance of" check.
(For example PlayerInvUtil.referenceSlot(net.minecraft.screen.slot.Slot) uses this to attempt to convert a
Slot into a StackReference directly, rather than generate a potentially-inaccurate reference from the
slot.
-
Method Summary