Package alexiil.mc.lib.attributes.misc
Interface StackReference
- All Superinterfaces:
Reference<net.minecraft.item.ItemStack>
- All Known Implementing Classes:
SingleCopyingItemSlot
,SingleItemSlot
public interface StackReference extends Reference<net.minecraft.item.ItemStack>
Specialist
Reference
interface for ItemStack
s. NOTE: You cannot assume that all
Reference
s for ItemStack
s 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.