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.LivingEntity.getStackReference(int mappedIndex) Obtains a stack reference to be modified.private static StackReferenceLivingEntity.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 StackReferenceDisplayEntity.ItemDisplayEntity.stackReferenceMethods 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 TypeMethodDescriptionprivate StackReferenceAbstractHorseEntity.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
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.vehicle
Methods in net.minecraft.entity.vehicle that return StackReferenceModifier and TypeMethodDescriptiondefault StackReferenceVehicleInventory.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
Fields in net.minecraft.inventory declared as StackReferenceModifier and TypeFieldDescriptionstatic final StackReferenceStackReference.EMPTYAn immutable empty stack reference.Methods in net.minecraft.inventory that return StackReferenceModifier and TypeMethodDescriptionstatic StackReferenceStackReference.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 StackReferenceStackReference.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 StackReferenceCreates a stack reference backed by an index within an inventory.static StackReferenceCreates 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 TypeMethodDescriptionbooleanBundleItem.onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) Called when the item atslotgets clicked by the cursor holdingotherStack.booleanItem.onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) Called when the item atslotgets clicked by the cursor holdingotherStack.booleanItemStack.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 StackReferenceScreenHandler.getCursorStackReference()Returns a reference to the cursor's stack.