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.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 TypeMethodDescriptionItemFrameEntity.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 TypeMethodDescriptionprivate StackReference
AbstractHorseEntity.createInventoryStackReference
(int slot, Predicate<ItemStack> predicate) AbstractDonkeyEntity.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.vehicle
Modifier and TypeMethodDescriptiondefault StackReference
VehicleInventory.getInventoryStackReference
(int slot) ChestBoatEntity.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
StackReference.of
(LivingEntity entity, EquipmentSlot slot) Creates a stack reference backed by an equipment slot of an 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 an 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) boolean
Item.onClicked
(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) boolean
ItemStack.onClicked
(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) -
Uses of StackReference in net.minecraft.screen