Uses of Interface
net.minecraft.inventory.StackReference
Packages that use StackReference
Package
Description
-
Uses of StackReference in net.minecraft.entity
Methods in net.minecraft.entity that return StackReferenceModifier and TypeMethodDescriptionEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified.ItemEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified.LivingEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified.private static StackReference
LivingEntity.getStackReference
(LivingEntity entity, EquipmentSlot slot) -
Uses of StackReference in net.minecraft.entity.decoration
Fields in net.minecraft.entity.decoration declared as StackReferenceModifier and TypeFieldDescriptionprivate final StackReference
DisplayEntity.ItemDisplayEntity.stackReference
Methods in net.minecraft.entity.decoration that return StackReferenceModifier and TypeMethodDescriptionDisplayEntity.ItemDisplayEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified.ItemFrameEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified. -
Uses of StackReference in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob that return StackReferenceModifier and TypeMethodDescriptionPillagerEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified. -
Uses of StackReference in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive that return StackReferenceModifier and TypeMethodDescriptionAbstractDonkeyEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified.AbstractHorseEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified.MerchantEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified. -
Uses of StackReference in net.minecraft.entity.player
Methods in net.minecraft.entity.player that return StackReferenceModifier and TypeMethodDescriptionPlayerEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified. -
Uses of StackReference in net.minecraft.entity.projectile
Methods in net.minecraft.entity.projectile that return StackReferenceModifier and TypeMethodDescriptionAbstractFireballEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified.PersistentProjectileEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified. -
Uses of StackReference in net.minecraft.entity.vehicle
Methods in net.minecraft.entity.vehicle that return StackReferenceModifier and TypeMethodDescriptiondefault StackReference
VehicleInventory.getInventoryStackReference
(int slot) AbstractChestBoatEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified.StorageMinecartEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified. -
Uses of StackReference in net.minecraft.inventory
Fields in net.minecraft.inventory declared as StackReferenceModifier and TypeFieldDescriptionstatic final StackReference
StackReference.EMPTY
An immutable empty stack reference.Methods in net.minecraft.inventory that return StackReferenceModifier and TypeMethodDescriptionstatic StackReference
static StackReference
StackReference.of
(LivingEntity entity, EquipmentSlot slot) Creates a stack reference backed by an equipment slot of a living entity with no filter, allowing direct manipulation of the equipment slot.static StackReference
StackReference.of
(LivingEntity entity, EquipmentSlot slot, Predicate<ItemStack> filter) Creates a stack reference backed by an equipment slot of a living entity and guarded by a condition for setting stacks into the inventory.static StackReference
Creates a stack reference backed by an index within an inventory.static StackReference
Creates a stack reference backed by an index within an inventory and guarded by a condition for setting stacks into the inventory. -
Uses of StackReference in net.minecraft.item
Methods in net.minecraft.item with parameters of type StackReferenceModifier and TypeMethodDescriptionboolean
BundleItem.onClicked
(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) Called when the item atslot
gets clicked by the cursor holdingotherStack
.boolean
Item.onClicked
(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) Called when the item atslot
gets clicked by the cursor holdingotherStack
.boolean
ItemStack.onClicked
(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) -
Uses of StackReference in net.minecraft.screen
Methods in net.minecraft.screen that return StackReferenceModifier and TypeMethodDescriptionprivate StackReference
ScreenHandler.getCursorStackReference()
Returns a reference to the cursor's stack.