Uses of Interface
net.minecraft.inventory.StackReference
Package
Description
-
Uses of StackReference in net.minecraft.entity
Modifier 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
Modifier and TypeFieldDescriptionprivate final StackReference
DisplayEntity.ItemDisplayEntity.stackReference
Modifier 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
Modifier and TypeMethodDescriptionPillagerEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified. -
Uses of StackReference in net.minecraft.entity.passive
Modifier 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
Modifier and TypeMethodDescriptionPlayerEntity.getStackReference
(int mappedIndex) Obtains a stack reference to be modified. -
Uses of StackReference in net.minecraft.entity.projectile
Modifier 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
Modifier 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
Modifier and TypeFieldDescriptionstatic final StackReference
StackReference.EMPTY
An immutable empty stack reference.Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionprivate StackReference
ScreenHandler.getCursorStackReference()
Returns a reference to the cursor's stack.