Uses of Class
net.minecraft.item.ItemStack
Packages that use ItemStack
Package
Description
The base package for all Minecraft classes.
Provides the cauldron behavior system,
which determines what happens when a player interacts with a cauldron.
The basic AI system for Minecraft living entities.
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of ItemStack in net.minecraft
Methods in net.minecraft that return types with arguments of type ItemStackMethod parameters in net.minecraft with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidvoidclass_8567.method_51864(Identifier identifier, Consumer<ItemStack> consumer) -
Uses of ItemStack in net.minecraft.advancement
Fields in net.minecraft.advancement declared as ItemStackMethods in net.minecraft.advancement that return ItemStackModifier and TypeMethodDescriptionAdvancementDisplay.getIcon()private static ItemStackAdvancementDisplay.iconFromJson(JsonObject json) Methods in net.minecraft.advancement with parameters of type ItemStackModifier and TypeMethodDescriptionAdvancement.Builder.display(ItemStack icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden) Constructors in net.minecraft.advancement with parameters of type ItemStackModifierConstructorDescriptionAdvancementDisplay(ItemStack icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden) -
Uses of ItemStack in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanFishingRodHookedCriterion.Conditions.matches(ItemStack rod, LootContext hookedEntityContext, Collection<ItemStack> fishingLoots) booleanInventoryChangedCriterion.Conditions.matches(PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied) booleanbooleanbooleanbooleanVillagerTradeCriterion.Conditions.matches(LootContext merchantContext, ItemStack stack) booleanBeeNestDestroyedCriterion.Conditions.test(BlockState state, ItemStack stack, int count) booleanPlayerInteractedWithEntityCriterion.Conditions.test(ItemStack stack, LootContext context) booleanThrownItemPickedUpByEntityCriterion.Conditions.test(ServerPlayerEntity player, ItemStack stack, LootContext entityContext) booleanvoidBeeNestDestroyedCriterion.trigger(ServerPlayerEntity player, BlockState state, ItemStack stack, int beeCount) voidConsumeItemCriterion.trigger(ServerPlayerEntity player, ItemStack stack) voidEnchantedItemCriterion.trigger(ServerPlayerEntity player, ItemStack stack, int levels) voidFilledBucketCriterion.trigger(ServerPlayerEntity player, ItemStack stack) voidFishingRodHookedCriterion.trigger(ServerPlayerEntity player, ItemStack rod, FishingBobberEntity bobber, Collection<ItemStack> fishingLoots) voidInventoryChangedCriterion.trigger(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack) private voidInventoryChangedCriterion.trigger(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied) voidItemCriterion.trigger(ServerPlayerEntity player, BlockPos pos, ItemStack stack) voidItemDurabilityChangedCriterion.trigger(ServerPlayerEntity player, ItemStack stack, int durability) voidPlayerInteractedWithEntityCriterion.trigger(ServerPlayerEntity player, ItemStack stack, Entity entity) voidShotCrossbowCriterion.trigger(ServerPlayerEntity player, ItemStack stack) voidThrownItemPickedUpByEntityCriterion.trigger(ServerPlayerEntity player, ItemStack stack, @Nullable Entity entity) voidUsedTotemCriterion.trigger(ServerPlayerEntity player, ItemStack stack) voidUsingItemCriterion.trigger(ServerPlayerEntity player, ItemStack stack) voidVillagerTradeCriterion.trigger(ServerPlayerEntity player, MerchantEntity merchant, ItemStack stack) Method parameters in net.minecraft.advancement.criterion with type arguments of type ItemStackModifier and TypeMethodDescriptionbooleanFishingRodHookedCriterion.Conditions.matches(ItemStack rod, LootContext hookedEntityContext, Collection<ItemStack> fishingLoots) (package private) booleanRecipeCraftedCriterion.Conditions.matches(Identifier recipeId, List<ItemStack> ingredients) voidFishingRodHookedCriterion.trigger(ServerPlayerEntity player, ItemStack rod, FishingBobberEntity bobber, Collection<ItemStack> fishingLoots) voidRecipeCraftedCriterion.trigger(ServerPlayerEntity player, Identifier recipeId, List<ItemStack> ingredients) -
Uses of ItemStack in net.minecraft.block
Fields in net.minecraft.block declared as ItemStackMethods in net.minecraft.block that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackLightBlock.addNbtForLevel(ItemStack stack, int level) static ItemStackShulkerBoxBlock.getItemStack(@Nullable DyeColor color) AbstractBannerBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.AbstractPlantBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.AttachedStemBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.BambooSaplingBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.BigDripleafStemBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.Block.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.CandleCakeBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.CaveVinesBodyBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.CaveVinesHeadBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.CropBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.EndGatewayBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.EndPortalBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.FlowerPotBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.FrostedIceBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.LightBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.NetherPortalBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.NetherWartBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.PistonExtensionBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.PistonHeadBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.ShulkerBoxBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.StemBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.SweetBerryBushBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.TallSeagrassBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.BubbleColumnBlock.tryDrainFluid(WorldAccess world, BlockPos pos, BlockState state) FluidBlock.tryDrainFluid(WorldAccess world, BlockPos pos, BlockState state) FluidDrainable.tryDrainFluid(WorldAccess world, BlockPos pos, BlockState state) PowderSnowBlock.tryDrainFluid(WorldAccess world, BlockPos pos, BlockState state) default ItemStackWaterloggable.tryDrainFluid(WorldAccess world, BlockPos pos, BlockState state) Methods in net.minecraft.block that return types with arguments of type ItemStackModifier and TypeMethodDescriptionAbstractBlock.AbstractBlockState.getDroppedStacks(class_8567.class_8568 builder) AbstractBlock.getDroppedStacks(BlockState state, class_8567.class_8568 builder) Deprecated.BeehiveBlock.getDroppedStacks(BlockState state, class_8567.class_8568 builder) Returns the block's dropped item stacks.Block.getDroppedStacks(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity) Block.getDroppedStacks(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack stack) DecoratedPotBlock.getDroppedStacks(BlockState state, class_8567.class_8568 builder) Returns the block's dropped item stacks.FluidBlock.getDroppedStacks(BlockState state, class_8567.class_8568 builder) Returns the block's dropped item stacks.PistonExtensionBlock.getDroppedStacks(BlockState state, class_8567.class_8568 builder) Returns the block's dropped item stacks.ShulkerBoxBlock.getDroppedStacks(BlockState state, class_8567.class_8568 builder) Returns the block's dropped item stacks.WallPlayerSkullBlock.getDroppedStacks(BlockState state, class_8567.class_8568 builder) Returns the block's dropped item stacks.Methods in net.minecraft.block with parameters of type ItemStackModifier and TypeMethodDescriptionstatic ItemStackLightBlock.addNbtForLevel(ItemStack stack, int level) (package private) static BlockStateComposterBlock.addToComposter(@Nullable Entity user, BlockState state, WorldAccess world, BlockPos pos, ItemStack stack) voidBeehiveBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.voidBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.voidIceBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.voidTallPlantBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.voidTurtleEggBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack tool) Called server-side when the block is broken by the player using correct tool.voidBlock.appendTooltip(ItemStack stack, @Nullable BlockView world, List<Text> tooltip, TooltipContext options) Appends tooltips to a stack of this block's corresponding block item.voidDecoratedPotBlock.appendTooltip(ItemStack stack, BlockView world, List<Text> tooltip, TooltipContext options) Appends tooltips to a stack of this block's corresponding block item.voidShulkerBoxBlock.appendTooltip(ItemStack stack, @Nullable BlockView world, List<Text> tooltip, TooltipContext options) Appends tooltips to a stack of this block's corresponding block item.voidSpawnerBlock.appendTooltip(ItemStack stack, @Nullable BlockView world, List<Text> tooltip, TooltipContext options) Appends tooltips to a stack of this block's corresponding block item.static booleanWitherSkullBlock.canDispense(World world, BlockPos pos, ItemStack stack) booleanComposterBlock.ComposterInventory.canExtract(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanComposterBlock.DummyInventory.canExtract(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanComposterBlock.FullComposterInventory.canExtract(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.static BlockStateComposterBlock.compost(Entity user, BlockState state, ServerWorld world, ItemStack stack, BlockPos pos) protected voidBlock.dropExperienceWhenMined(ServerWorld world, BlockPos pos, ItemStack tool, IntProvider experience) Drops experience orbs.private static voidBlock.dropStack(World world, Supplier<ItemEntity> itemEntitySupplier, ItemStack stack) static voidstatic voidstatic voidBlock.dropStacks(BlockState state, World world, BlockPos pos, @Nullable BlockEntity blockEntity, Entity entity, ItemStack tool) protected DispenserBehaviorDispenserBlock.getBehaviorForItem(ItemStack stack) protected DispenserBehaviorDropperBlock.getBehaviorForItem(ItemStack stack) Block.getDroppedStacks(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack stack) SpawnerBlock.getEntityNameForTooltip(ItemStack stack) private static booleanRespawnAnchorBlock.isChargeItem(ItemStack stack) voidAbstractBannerBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidAbstractFurnaceBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidAbstractRedstoneGateBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidBarrelBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidBeaconBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidBedBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidBrewingStandBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidChestBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidCommandBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidConduitBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidDispenserBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidDoorBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidEnchantingTableBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidHopperBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidJukeboxBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidPistonBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidPitcherCropBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidPlayerSkullBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidShulkerBoxBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidSmallDripleafBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidStructureBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidTallPlantBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidTripwireHookBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidWallPlayerSkullBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidWallWitherSkullBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidWitherSkullBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidAbstractBlock.AbstractBlockState.onStacksDropped(ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) voidAbstractBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) voidExperienceDroppingBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.voidInfestedBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.voidRedstoneOreBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.voidSculkCatalystBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.voidSculkSensorBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.voidSculkShriekerBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.voidSpawnerBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.private static voidLecternBlock.putBook(@Nullable Entity user, World world, BlockPos pos, BlockState state, ItemStack stack) static booleanLecternBlock.putBookIfAbsent(@Nullable Entity user, World world, BlockPos pos, BlockState state, ItemStack stack) private booleanHangingSignBlock.shouldTryAttaching(PlayerEntity player, BlockHitResult hitResult, SignBlockEntity sign, ItemStack stack) private booleanWallHangingSignBlock.shouldTryAttaching(BlockState state, PlayerEntity player, BlockHitResult hitResult, SignBlockEntity sign, ItemStack stack) private static voidChiseledBookshelfBlock.tryAddBook(World world, BlockPos pos, PlayerEntity player, ChiseledBookshelfBlockEntity blockEntity, ItemStack stack, int slot) Constructors in net.minecraft.block with parameters of type ItemStackModifierConstructorDescriptionprotectedEntityShapeContext(boolean descending, double minY, ItemStack heldItem, Predicate<FluidState> walkOnFluidPredicate, @Nullable Entity entity) FullComposterInventory(BlockState state, WorldAccess world, BlockPos pos, ItemStack outputItem) -
Uses of ItemStack in net.minecraft.block.cauldron
Methods in net.minecraft.block.cauldron with parameters of type ItemStackModifier and TypeMethodDescriptionstatic ActionResultCauldronBehavior.emptyCauldron(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, ItemStack output, Predicate<BlockState> fullPredicate, SoundEvent soundEvent) Empties a cauldron if it's full.static ActionResultCauldronBehavior.fillCauldron(World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, BlockState state, SoundEvent soundEvent) Fills a cauldron from a bucket stack.CauldronBehavior.interact(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) Called when a player interacts with a cauldron. -
Uses of ItemStack in net.minecraft.block.dispenser
Methods in net.minecraft.block.dispenser that return ItemStackModifier and TypeMethodDescriptionDispenserBehavior.dispense(BlockPointer pointer, ItemStack stack) final ItemStackItemDispenserBehavior.dispense(BlockPointer pointer, ItemStack stack) protected ItemStackBlockPlacementDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) BoatDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) protected ItemStackItemDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) ProjectileDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) protected ItemStackShearsDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) Methods in net.minecraft.block.dispenser with parameters of type ItemStackModifier and TypeMethodDescriptionprotected abstract ProjectileEntityProjectileDispenserBehavior.createProjectile(World world, Position position, ItemStack stack) Creates the entity that will be spawned in front of the dispenser.DispenserBehavior.dispense(BlockPointer pointer, ItemStack stack) final ItemStackItemDispenserBehavior.dispense(BlockPointer pointer, ItemStack stack) protected ItemStackBlockPlacementDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) BoatDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) protected ItemStackItemDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) ProjectileDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) protected ItemStackShearsDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) static voidItemDispenserBehavior.spawnItem(World world, ItemStack stack, int speed, Direction side, Position pos) -
Uses of ItemStack in net.minecraft.block.entity
Fields in net.minecraft.block.entity declared as ItemStackModifier and TypeFieldDescription(package private) ItemStackLecternBlockEntity.bookprivate ItemStackBrushableBlockEntity.itemFields in net.minecraft.block.entity with type parameters of type ItemStackModifier and TypeFieldDescriptionprotected DefaultedList<ItemStack>AbstractFurnaceBlockEntity.inventoryprivate DefaultedList<ItemStack>BarrelBlockEntity.inventoryprivate DefaultedList<ItemStack>BrewingStandBlockEntity.inventoryprivate DefaultedList<ItemStack>ChestBlockEntity.inventoryprivate final DefaultedList<ItemStack>ChiseledBookshelfBlockEntity.inventoryprivate DefaultedList<ItemStack>DispenserBlockEntity.inventoryprivate DefaultedList<ItemStack>HopperBlockEntity.inventoryprivate final DefaultedList<ItemStack>JukeboxBlockEntity.inventoryprivate DefaultedList<ItemStack>ShulkerBoxBlockEntity.inventoryprivate final DefaultedList<ItemStack>CampfireBlockEntity.itemsBeingCookedMethods in net.minecraft.block.entity that return ItemStackModifier and TypeMethodDescriptionLecternBlockEntity.getBook()BrushableBlockEntity.getItem()BannerBlockEntity.getPickStack()AbstractFurnaceBlockEntity.getStack(int slot) Fetches the stack currently stored at the given slot.BrewingStandBlockEntity.getStack(int slot) Fetches the stack currently stored at the given slot.ChiseledBookshelfBlockEntity.getStack(int slot) Fetches the stack currently stored at the given slot.JukeboxBlockEntity.getStack(int slot) Fetches the stack currently stored at the given slot.LootableContainerBlockEntity.getStack(int slot) Fetches the stack currently stored at the given slot.AbstractFurnaceBlockEntity.removeStack(int slot) Removes the stack currently stored at the indicated slot.AbstractFurnaceBlockEntity.removeStack(int slot, int amount) Removes a specific number of items from the given slot.BrewingStandBlockEntity.removeStack(int slot) Removes the stack currently stored at the indicated slot.BrewingStandBlockEntity.removeStack(int slot, int amount) Removes a specific number of items from the given slot.ChiseledBookshelfBlockEntity.removeStack(int slot) Removes the stack currently stored at the indicated slot.ChiseledBookshelfBlockEntity.removeStack(int slot, int amount) Removes a specific number of items from the given slot.HopperBlockEntity.removeStack(int slot, int amount) Removes a specific number of items from the given slot.JukeboxBlockEntity.removeStack(int slot, int amount) Removes a specific number of items from the given slot.LootableContainerBlockEntity.removeStack(int slot) Removes the stack currently stored at the indicated slot.LootableContainerBlockEntity.removeStack(int slot, int amount) Removes a specific number of items from the given slot.private ItemStackLecternBlockEntity.resolveBook(ItemStack book, @Nullable PlayerEntity player) private static ItemStackHopperBlockEntity.transfer(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction side) static ItemStackHopperBlockEntity.transfer(@Nullable Inventory from, Inventory to, ItemStack stack, @Nullable Direction side) Methods in net.minecraft.block.entity that return types with arguments of type ItemStackModifier and TypeMethodDescriptionprotected DefaultedList<ItemStack>BarrelBlockEntity.getInvStackList()protected DefaultedList<ItemStack>ChestBlockEntity.getInvStackList()protected DefaultedList<ItemStack>DispenserBlockEntity.getInvStackList()protected DefaultedList<ItemStack>HopperBlockEntity.getInvStackList()protected abstract DefaultedList<ItemStack>LootableContainerBlockEntity.getInvStackList()protected DefaultedList<ItemStack>ShulkerBoxBlockEntity.getInvStackList()CampfireBlockEntity.getItemsBeingCooked()Methods in net.minecraft.block.entity with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanintDispenserBlockEntity.addToFirstFreeSlot(ItemStack stack) booleanAbstractFurnaceBlockEntity.canExtract(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanBrewingStandBlockEntity.canExtract(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.private static booleanHopperBlockEntity.canExtract(Inventory hopperInventory, Inventory fromInventory, ItemStack stack, int slot, Direction facing) booleanShulkerBoxBlockEntity.canExtract(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.private static booleanHopperBlockEntity.canInsert(Inventory inventory, ItemStack stack, int slot, @Nullable Direction side) booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.private static booleanHopperBlockEntity.canMergeItems(ItemStack first, ItemStack second) booleanChiseledBookshelfBlockEntity.canTransferTo(Inventory hopperInventory, int slot, ItemStack stack) booleanJukeboxBlockEntity.canTransferTo(Inventory hopperInventory, int slot, ItemStack stack) static booleanAbstractFurnaceBlockEntity.canUseAsFuel(ItemStack stack) protected intAbstractFurnaceBlockEntity.getFuelTime(ItemStack fuel) protected intBlastFurnaceBlockEntity.getFuelTime(ItemStack fuel) protected intSmokerBlockEntity.getFuelTime(ItemStack fuel) static intBannerBlockEntity.getPatternCount(ItemStack stack) BannerBlockEntity.getPatternListNbt(ItemStack stack) CampfireBlockEntity.getRecipeFor(ItemStack stack) booleanReturns whether the given stack is a valid for the indicated slot position.booleanReturns whether the given stack is a valid for the indicated slot position.booleanReturns whether the given stack is a valid for the indicated slot position.booleanReturns whether the given stack is a valid for the indicated slot position.static voidBannerBlockEntity.loadFromItemStack(ItemStack stack) voidvoidvoidDecoratedPotBlockEntity.readNbtFromStack(ItemStack stack) private ItemStackLecternBlockEntity.resolveBook(ItemStack book, @Nullable PlayerEntity player) voidvoidLecternBlockEntity.setBook(ItemStack book, @Nullable PlayerEntity player) voidvoidvoidvoidvoidvoidvoidvoidBlockEntity.setStackNbt(ItemStack stack) Setsstack'snet.minecraft.item.BlockItem#BLOCK_ENTITY_TAG_KEYNBT value to the block entity's NBT data.private static ItemStackHopperBlockEntity.transfer(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction side) static ItemStackHopperBlockEntity.transfer(@Nullable Inventory from, Inventory to, ItemStack stack, @Nullable Direction side) Method parameters in net.minecraft.block.entity with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate static booleanAbstractFurnaceBlockEntity.canAcceptRecipeOutput(DynamicRegistryManager registryManager, @Nullable Recipe<?> recipe, DefaultedList<ItemStack> slots, int count) private static booleanBrewingStandBlockEntity.canCraft(DefaultedList<ItemStack> slots) private static voidBrewingStandBlockEntity.craft(World world, BlockPos pos, DefaultedList<ItemStack> slots) private static booleanAbstractFurnaceBlockEntity.craftRecipe(DynamicRegistryManager registryManager, @Nullable Recipe<?> recipe, DefaultedList<ItemStack> slots, int count) protected voidBarrelBlockEntity.setInvStackList(DefaultedList<ItemStack> list) protected voidChestBlockEntity.setInvStackList(DefaultedList<ItemStack> list) protected voidDispenserBlockEntity.setInvStackList(DefaultedList<ItemStack> list) protected voidHopperBlockEntity.setInvStackList(DefaultedList<ItemStack> list) protected abstract voidLootableContainerBlockEntity.setInvStackList(DefaultedList<ItemStack> list) protected voidShulkerBoxBlockEntity.setInvStackList(DefaultedList<ItemStack> list) voidAbstractFurnaceBlockEntity.unlockLastRecipe(PlayerEntity player, List<ItemStack> ingredients) -
Uses of ItemStack in net.minecraft.client
Methods in net.minecraft.client with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidMinecraftClient.addBlockEntityNbt(ItemStack stack, BlockEntity blockEntity) -
Uses of ItemStack in net.minecraft.client.color.item
Methods in net.minecraft.client.color.item with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.client.gui
Methods in net.minecraft.client.gui with parameters of type ItemStackModifier and TypeMethodDescriptionvoidDrawContext.drawItem(LivingEntity entity, ItemStack stack, int x, int y, int seed) private voidDrawContext.drawItem(LivingEntity entity, World world, ItemStack stack, int x, int y, int seed) private voidDrawContext.drawItem(LivingEntity entity, World world, ItemStack stack, int x, int y, int seed, int z) voidvoidvoidvoidDrawContext.drawItemInSlot(TextRenderer textRenderer, ItemStack stack, int x, int y) voidDrawContext.drawItemInSlot(TextRenderer textRenderer, ItemStack stack, int x, int y, String countOverride) voidDrawContext.drawItemTooltip(TextRenderer textRenderer, ItemStack stack, int x, int y) voidDrawContext.drawItemWithoutEntity(ItemStack stack, int x, int y) -
Uses of ItemStack in net.minecraft.client.gui.hud
Fields in net.minecraft.client.gui.hud declared as ItemStackMethods in net.minecraft.client.gui.hud with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidInGameHud.renderHotbarItem(DrawContext context, int x, int y, float float2, PlayerEntity player, ItemStack stack, int seed) -
Uses of ItemStack in net.minecraft.client.gui.screen
Fields in net.minecraft.client.gui.screen declared as ItemStackModifier and TypeFieldDescription(package private) final ItemStackGameModeSelectionScreen.GameModeSelection.iconMethods in net.minecraft.client.gui.screen that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackCustomizeFlatLevelScreen.SuperflatLayersListWidget.SuperflatLayerEntry.createItemStackFor(BlockState state) Methods in net.minecraft.client.gui.screen with parameters of type ItemStackModifier and TypeMethodDescriptionScreen.getTooltipFromItem(MinecraftClient client, ItemStack stack) private voidCustomizeFlatLevelScreen.SuperflatLayersListWidget.SuperflatLayerEntry.renderIcon(DrawContext context, int x, int y, ItemStack iconItem) Constructors in net.minecraft.client.gui.screen with parameters of type ItemStackModifierConstructorDescriptionprivateGameModeSelection(Text text, String command, ItemStack icon) -
Uses of ItemStack in net.minecraft.client.gui.screen.advancement
Fields in net.minecraft.client.gui.screen.advancement declared as ItemStackMethods in net.minecraft.client.gui.screen.advancement with parameters of type ItemStackModifier and TypeMethodDescriptionvoidAdvancementTabType.drawIcon(DrawContext context, int x, int y, int index, ItemStack stack) -
Uses of ItemStack in net.minecraft.client.gui.screen.ingame
Fields in net.minecraft.client.gui.screen.ingame declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackLoomScreen.bannerprivate ItemStackLoomScreen.dyeprivate final ItemStackBookEditScreen.itemStackprivate ItemStackLoomScreen.patternprivate ItemStackHandledScreen.quickMovingStackprivate ItemStackEnchantmentScreen.stackprivate ItemStackHandledScreen.touchDragStackprivate ItemStackHandledScreen.touchDropReturningStackFields in net.minecraft.client.gui.screen.ingame with type parameters of type ItemStackModifier and TypeFieldDescriptionfinal DefaultedList<ItemStack>CreativeInventoryScreen.CreativeScreenHandler.itemListMethods in net.minecraft.client.gui.screen.ingame that return ItemStackModifier and TypeMethodDescriptionCreativeInventoryScreen.CreativeScreenHandler.getCursorStack()CreativeInventoryScreen.CreativeSlot.getStack()CreativeInventoryScreen.CreativeScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.CreativeInventoryScreen.CreativeSlot.takeStack(int amount) Methods in net.minecraft.client.gui.screen.ingame with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanbooleanCreativeInventoryScreen.CreativeScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) Returns whetherstackcan be inserted toslot.static BookScreen.Contentsprivate voidHandledScreen.drawItem(DrawContext context, ItemStack stack, int x, int y, String amountText) private voidSmithingScreen.equipArmorStand(ItemStack stack) intCreativeInventoryScreen.CreativeSlot.getMaxItemCount(ItemStack stack) CreativeInventoryScreen.getTooltipFromItem(ItemStack stack) HandledScreen.getTooltipFromItem(ItemStack stack) voidAnvilScreen.onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack) voidCreativeInventoryListener.onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack) voidForgingScreen.onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack) voidSmithingScreen.onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack) voidCreativeInventoryScreen.CreativeSlot.onTakeItem(PlayerEntity player, ItemStack stack) private voidMerchantScreen.renderFirstBuyItem(DrawContext context, ItemStack adjustedFirstBuyItem, ItemStack originalFirstBuyItem, int x, int y) voidCreativeInventoryScreen.CreativeScreenHandler.setCursorStack(ItemStack stack) voidSets the slot's stack tostackand marks the slot as dirty.voidCreativeInventoryScreen.CreativeSlot.setStackNoCallbacks(ItemStack stack) Method parameters in net.minecraft.client.gui.screen.ingame with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate voidCreativeInventoryScreen.refreshSelectedTab(Collection<ItemStack> displayStacks) Constructors in net.minecraft.client.gui.screen.ingame with parameters of type ItemStackModifierConstructorDescriptionBookEditScreen(PlayerEntity player, ItemStack itemStack, Hand hand) WritableBookContents(ItemStack stack) WrittenBookContents(ItemStack stack) -
Uses of ItemStack in net.minecraft.client.gui.screen.recipebook
Fields in net.minecraft.client.gui.screen.recipebook declared as ItemStackModifier and TypeFieldDescriptionfinal ItemStack[]RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot.stacksMethods in net.minecraft.client.gui.screen.recipebook that return ItemStackConstructors in net.minecraft.client.gui.screen.recipebook with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.client.gui.tooltip
Fields in net.minecraft.client.gui.tooltip with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>BundleTooltipComponent.inventory -
Uses of ItemStack in net.minecraft.client.item
Fields in net.minecraft.client.item with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>BundleTooltipData.inventoryMethods in net.minecraft.client.item that return types with arguments of type ItemStackMethods in net.minecraft.client.item with parameters of type ItemStackModifier and TypeMethodDescriptiondefault floatClampedModelPredicateProvider.call(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) Deprecated.floatModelPredicateProvider.call(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) Deprecated.private floatCompassAnglePredicateProvider.getAngle(ItemStack stack, ClientWorld world, int seed, Entity entity) CompassAnglePredicateProvider.CompassTarget.getPos(ClientWorld world, ItemStack stack, Entity entity) floatClampedModelPredicateProvider.unclampedCall(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) floatCompassAnglePredicateProvider.unclampedCall(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) Constructor parameters in net.minecraft.client.item with type arguments of type ItemStackModifierConstructorDescriptionBundleTooltipData(DefaultedList<ItemStack> inventory, int bundleOccupancy) -
Uses of ItemStack in net.minecraft.client.network
Fields in net.minecraft.client.network declared as ItemStackMethods in net.minecraft.client.network that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackClientPlayNetworkHandler.getActiveTotemOfUndying(PlayerEntity player) Methods in net.minecraft.client.network with parameters of type ItemStackModifier and TypeMethodDescriptionvoidClientPlayerInteractionManager.clickCreativeStack(ItemStack stack, int slotId) voidClientPlayerInteractionManager.dropCreativeStack(ItemStack stack) voidClientPlayerEntity.onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType) Called when a player performs apickup slot actionin a screen handler.voidCalled when the player uses (defaults to right click) a writable or written book item. -
Uses of ItemStack in net.minecraft.client.option
Fields in net.minecraft.client.option with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>HotbarStorageEntry.delegateMethods in net.minecraft.client.option that return types with arguments of type ItemStack -
Uses of ItemStack in net.minecraft.client.particle
Constructors in net.minecraft.client.particle with parameters of type ItemStackModifierConstructorDescription(package private)CrackParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, ItemStack stack) protectedCrackParticle(ClientWorld world, double x, double y, double z, ItemStack stack) -
Uses of ItemStack in net.minecraft.client.recipebook
Fields in net.minecraft.client.recipebook with type parameters of type ItemStackMethods in net.minecraft.client.recipebook that return types with arguments of type ItemStackConstructors in net.minecraft.client.recipebook with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.client.render
Fields in net.minecraft.client.render declared as ItemStackMethods in net.minecraft.client.render with parameters of type ItemStackModifier and TypeMethodDescriptionstatic RenderLayerRenderLayers.getItemLayer(ItemStack stack, boolean direct) voidGameRenderer.showFloatingItem(ItemStack floatingItem) -
Uses of ItemStack in net.minecraft.client.render.entity
Methods in net.minecraft.client.render.entity with parameters of type ItemStackModifier and TypeMethodDescriptionprivate ModelIdentifierItemFrameEntityRenderer.getModelId(T entity, ItemStack stack) private intItemEntityRenderer.getRenderedAmount(ItemStack stack) -
Uses of ItemStack in net.minecraft.client.render.entity.feature
Methods in net.minecraft.client.render.entity.feature with parameters of type ItemStackModifier and TypeMethodDescriptionprotected voidHeldItemFeatureRenderer.renderItem(LivingEntity entity, ItemStack stack, ModelTransformationMode transformationMode, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) protected voidPlayerHeldItemFeatureRenderer.renderItem(LivingEntity entity, ItemStack stack, ModelTransformationMode transformationMode, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) private voidPlayerHeldItemFeatureRenderer.renderSpyglass(LivingEntity entity, ItemStack stack, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) -
Uses of ItemStack in net.minecraft.client.render.entity.model
Methods in net.minecraft.client.render.entity.model with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidVexEntityModel.setChargingArmAngles(ItemStack mainHandStack, ItemStack offHandStack, float float2) -
Uses of ItemStack in net.minecraft.client.render.item
Fields in net.minecraft.client.render.item declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackHeldItemRenderer.mainHandprivate ItemStackHeldItemRenderer.offHandMethods in net.minecraft.client.render.item with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidHeldItemRenderer.applyBrushTransformation(MatrixStack matrices, float tickDelta, Arm arm, ItemStack stack, float equipProgress) private voidHeldItemRenderer.applyEatOrDrinkTransformation(MatrixStack matrices, float tickDelta, Arm arm, ItemStack stack) ItemRenderer.getModel(ItemStack stack, @Nullable World world, @Nullable LivingEntity entity, int seed) private static booleanHeldItemRenderer.isChargedCrossbow(ItemStack stack) voidBuiltinModelItemRenderer.render(ItemStack stack, ModelTransformationMode mode, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay) private voidItemRenderer.renderBakedItemModel(BakedModel model, ItemStack stack, int light, int overlay, MatrixStack matrices, VertexConsumer vertices) private voidItemRenderer.renderBakedItemQuads(MatrixStack matrices, VertexConsumer vertices, List<BakedQuad> quads, ItemStack stack, int light, int overlay) private voidHeldItemRenderer.renderFirstPersonItem(AbstractClientPlayerEntity player, float tickDelta, float pitch, Hand hand, float swingProgress, ItemStack item, float equipProgress, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) private voidHeldItemRenderer.renderFirstPersonMap(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int swingProgress, ItemStack stack) voidHeldItemRenderer.renderItem(LivingEntity entity, ItemStack stack, ModelTransformationMode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) voidItemRenderer.renderItem(@Nullable LivingEntity entity, ItemStack item, ModelTransformationMode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable World world, int light, int overlay, int seed) voidItemRenderer.renderItem(ItemStack stack, ModelTransformationMode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, BakedModel model) voidItemRenderer.renderItem(ItemStack stack, ModelTransformationMode transformationType, int light, int overlay, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable World world, int seed) private voidHeldItemRenderer.renderMapInOneHand(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, float equipProgress, Arm arm, float swingProgress, ItemStack stack) private static booleanItemRenderer.usesDynamicDisplay(ItemStack stack) -
Uses of ItemStack in net.minecraft.client.render.model.json
Methods in net.minecraft.client.render.model.json with parameters of type ItemStackModifier and TypeMethodDescriptionModelOverrideList.apply(BakedModel model, ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) -
Uses of ItemStack in net.minecraft.client.search
Fields in net.minecraft.client.search with type parameters of type ItemStackModifier and TypeFieldDescriptionstatic final SearchManager.Key<ItemStack>SearchManager.ITEM_TAGstatic final SearchManager.Key<ItemStack>SearchManager.ITEM_TOOLTIP -
Uses of ItemStack in net.minecraft.client.tutorial
Methods in net.minecraft.client.tutorial with parameters of type ItemStackModifier and TypeMethodDescriptionvoidBundleTutorial.onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType) A callback for starting the bundle tutorial.voidTutorialManager.onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType) Called when a player performs apickup slot actionin a screen handler.voidCraftPlanksTutorialStepHandler.onSlotUpdate(ItemStack stack) voidFindTreeTutorialStepHandler.onSlotUpdate(ItemStack stack) voidPunchTreeTutorialStepHandler.onSlotUpdate(ItemStack stack) voidTutorialManager.onSlotUpdate(ItemStack stack) default voidTutorialStepHandler.onSlotUpdate(ItemStack stack) -
Uses of ItemStack in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return ItemStackModifier and TypeMethodDescriptionItemStackArgument.createStack(int amount, boolean checkOverstack) Methods in net.minecraft.command.argument that return types with arguments of type ItemStackModifier and TypeMethodDescriptionItemPredicateArgumentType.getItemStackPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) Methods in net.minecraft.command.argument with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.enchantment
Methods in net.minecraft.enchantment that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackEnchants thetargetitem stack and returns it.Methods in net.minecraft.enchantment that return types with arguments of type ItemStackModifier and TypeMethodDescriptionstatic Map.Entry<EquipmentSlot,ItemStack> EnchantmentHelper.chooseEquipmentWith(Enchantment enchantment, LivingEntity entity) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.static Map.Entry<EquipmentSlot,ItemStack> EnchantmentHelper.chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.Enchantment.getEquipment(LivingEntity entity) Methods in net.minecraft.enchantment with parameters of type ItemStackModifier and TypeMethodDescriptionstatic intEnchantmentHelper.calculateRequiredExperienceLevel(Random random, int slotIndex, int bookshelfCount, ItemStack stack) Returns the required experience level for an enchanting option in the enchanting table's screen, or the enchantment screen.static ItemStackEnchants thetargetitem stack and returns it.private static voidEnchantmentHelper.forEachEnchantment(EnchantmentHelper.Consumer consumer, ItemStack stack) static List<EnchantmentLevelEntry>EnchantmentHelper.generateEnchantments(Random random, ItemStack stack, int level, boolean treasureAllowed) Generate the enchantments for enchanting thestack.static Map<Enchantment,Integer> Gets the enchantments on an item stack.static floatEnchantmentHelper.getAttackDamage(ItemStack stack, EntityGroup group) static intEnchantmentHelper.getLevel(Enchantment enchantment, ItemStack stack) Gets the level of an enchantment on an item stack.static intEnchantmentHelper.getLoyalty(ItemStack stack) static intEnchantmentHelper.getLuckOfTheSea(ItemStack stack) static intstatic List<EnchantmentLevelEntry>EnchantmentHelper.getPossibleEntries(int power, ItemStack stack, boolean treasureAllowed) Gets all the possible entries for enchanting thestackat the givenpower.static intEnchantmentHelper.getRiptide(ItemStack stack) static booleanEnchantmentHelper.hasBindingCurse(ItemStack stack) static booleanEnchantmentHelper.hasChanneling(ItemStack stack) static booleanEnchantmentHelper.hasSilkTouch(ItemStack stack) static booleanEnchantmentHelper.hasVanishingCurse(ItemStack stack) booleanBindingCurseEnchantment.isAcceptableItem(ItemStack stack) booleanDamageEnchantment.isAcceptableItem(ItemStack stack) booleanEfficiencyEnchantment.isAcceptableItem(ItemStack stack) booleanEnchantment.isAcceptableItem(ItemStack stack) booleanThornsEnchantment.isAcceptableItem(ItemStack stack) booleanUnbreakingEnchantment.isAcceptableItem(ItemStack stack) static voidEnchantmentHelper.set(Map<Enchantment, Integer> enchantments, ItemStack stack) Sets the enchantments on an item stack.static booleanUnbreakingEnchantment.shouldPreventDamage(ItemStack item, int level, Random random) Method parameters in net.minecraft.enchantment with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic Map.Entry<EquipmentSlot,ItemStack> EnchantmentHelper.chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.private static voidEnchantmentHelper.forEachEnchantment(EnchantmentHelper.Consumer consumer, Iterable<ItemStack> stacks) static intEnchantmentHelper.getProtectionAmount(Iterable<ItemStack> equipment, DamageSource source) -
Uses of ItemStack in net.minecraft.entity
Fields in net.minecraft.entity declared as ItemStackFields in net.minecraft.entity with type parameters of type ItemStackModifier and TypeFieldDescriptionEntity.EMPTY_STACK_LISTprivate static final TrackedData<ItemStack>EyeOfEnderEntity.ITEMprivate static final TrackedData<ItemStack>ItemEntity.STACKprivate final DefaultedList<ItemStack>LivingEntity.syncedArmorStacksprivate final DefaultedList<ItemStack>LivingEntity.syncedHandStacksMethods in net.minecraft.entity that return ItemStackModifier and TypeMethodDescriptionLivingEntity.getActiveItem()Bucketable.getBucketItem()abstract ItemStackLivingEntity.getEquippedStack(EquipmentSlot slot) LivingEntity.getMainHandStack()LivingEntity.getOffHandStack()Entity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.LivingEntity.getProjectileType(ItemStack stack) EyeOfEnderEntity.getStack()FlyingItemEntity.getStack()ItemEntity.getStack()Returns the item stack contained in this item entity.LivingEntity.getStackInHand(Hand hand) private ItemStackLivingEntity.getSyncedArmorStack(EquipmentSlot slot) private ItemStackLivingEntity.getSyncedHandStack(EquipmentSlot slot) private ItemStackEyeOfEnderEntity.getTrackedItem()static ItemStackMethods in net.minecraft.entity that return types with arguments of type ItemStackModifier and TypeMethodDescriptionEntity.getArmorItems()Returns an iterable of item stacks equipped as armor.LivingEntity.getArmorItems()Returns an iterable of item stacks equipped as armor.private @Nullable Map<EquipmentSlot,ItemStack> LivingEntity.getEquipmentChanges()Returns the difference between the last sent equipment set and the current one.Entity.getHandItems()Returns an iterable of item stacks held in the hands.Entity.getItemsEquipped()Returns an iterable of item stacks held in the hands or equipped as armor.Methods in net.minecraft.entity with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidLivingEntity.applyFoodEffects(ItemStack stack, World world, LivingEntity targetEntity) booleanLivingEntity.areItemsDifferent(ItemStack stack, ItemStack stack2) booleanstatic booleanEntityType.copier(Consumer<T> chained, ServerWorld world, ItemStack stack, @Nullable PlayerEntity player) EntityType.copier(ServerWorld world, ItemStack stack, @Nullable PlayerEntity player) static voidBucketable.copyDataToStack(MobEntity entity, ItemStack stack) Deprecated.voidBucketable.copyDataToStack(ItemStack stack) EntityType.customNameCopier(Consumer<T> chained, ItemStack stack) Dropsstackat the entity's position.Dropsstackat the entity's position with the given Y offset.voidEntity.equipStack(EquipmentSlot slot, ItemStack stack) Equipsstackatslot.This is also used to set an entity's mainhand or offhand stack.abstract voidLivingEntity.equipStack(EquipmentSlot slot, ItemStack stack) Equipsstackatslot.This is also used to set an entity's mainhand or offhand stack.protected SoundEventLivingEntity.getDrinkSound(ItemStack stack) LivingEntity.getEatSound(ItemStack stack) static EquipmentSlotLivingEntity.getPreferredEquipmentSlot(ItemStack stack) LivingEntity.getProjectileType(ItemStack stack) private static voidItemEntity.merge(ItemEntity targetEntity, ItemStack targetStack, ItemEntity sourceEntity, ItemStack sourceStack) private static voidItemEntity.merge(ItemEntity targetEntity, ItemStack stack1, ItemStack stack2) static ItemStackEntityType.nbtCopier(Consumer<T> chained, ServerWorld world, ItemStack stack, @Nullable PlayerEntity player) voidLivingEntity.onEquipStack(EquipmentSlot slot, ItemStack oldStack, ItemStack newStack) private voidLivingEntity.playEquipmentBreakEffects(ItemStack stack) protected voidLivingEntity.processEquippedStack(ItemStack stack) voidvoidSets the item stack contained in this item entity tostack.voidLivingEntity.setStackInHand(Hand hand, ItemStack stack) private voidLivingEntity.setSyncedArmorStack(EquipmentSlot slot, ItemStack armor) private voidLivingEntity.setSyncedHandStack(EquipmentSlot slot, ItemStack stack) voidCrossbowUser.shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray) protected voidLivingEntity.spawnConsumptionEffects(ItemStack stack, int particleCount) EntityType.spawnFromItemStack(ServerWorld world, @Nullable ItemStack stack, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) private voidLivingEntity.spawnItemParticles(ItemStack stack, int count) protected voidLivingEntity.tickItemStackUsage(ItemStack stack) Method parameters in net.minecraft.entity with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate voidLivingEntity.checkHandStackSwap(Map<EquipmentSlot, ItemStack> equipmentChanges) Notifies nearby players if the stacks in the hands have been swapped.booleanChecks if this entity is holding a certain item.private voidLivingEntity.sendEquipmentChanges(Map<EquipmentSlot, ItemStack> equipmentChanges) Sends equipment changes to nearby players.Constructors in net.minecraft.entity with parameters of type ItemStackModifierConstructorDescriptionItemEntity(World world, double x, double y, double z, ItemStack stack) ItemEntity(World world, double x, double y, double z, ItemStack stack, double velocityX, double velocityY, double velocityZ) -
Uses of ItemStack in net.minecraft.entity.ai.brain.sensor
Methods in net.minecraft.entity.ai.brain.sensor with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.entity.ai.brain.task
Fields in net.minecraft.entity.ai.brain.task declared as ItemStackFields in net.minecraft.entity.ai.brain.task with type parameters of type ItemStackMethods in net.minecraft.entity.ai.brain.task that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackCelebrateRaidWinTask.createFirework(DyeColor color, int flight) Methods in net.minecraft.entity.ai.brain.task that return types with arguments of type ItemStackMethods in net.minecraft.entity.ai.brain.task with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidLookTargetUtil.give(LivingEntity entity, ItemStack stack, Vec3d targetLocation) static voidLookTargetUtil.give(LivingEntity entity, ItemStack stack, Vec3d targetLocation, Vec3d velocityFactor, float yOffset) private static voidHoldTradeOffersTask.holdOffer(VillagerEntity villager, ItemStack stack) static voidGiveInventoryToLookTargetTask.playThrowSound(LivingEntity entity, ItemStack stack, Vec3d target) private voidGiveInventoryToLookTargetTask.triggerCriterion(LookTarget target, ItemStack stack, ServerPlayerEntity player) -
Uses of ItemStack in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal declared as ItemStackMethods in net.minecraft.entity.ai.goal that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackSkeletonHorseTrapTriggerGoal.removeEnchantments(ItemStack stack) Methods in net.minecraft.entity.ai.goal with parameters of type ItemStackModifier and TypeMethodDescriptionprivate ItemStackSkeletonHorseTrapTriggerGoal.removeEnchantments(ItemStack stack) Constructors in net.minecraft.entity.ai.goal with parameters of type ItemStackModifierConstructorDescriptionHoldInHandsGoal(T actor, ItemStack item, @Nullable SoundEvent sound, Predicate<? super T> condition) -
Uses of ItemStack in net.minecraft.entity.boss.dragon
Methods in net.minecraft.entity.boss.dragon that return ItemStackModifier and TypeMethodDescriptionEnderDragonPart.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none. -
Uses of ItemStack in net.minecraft.entity.data
Fields in net.minecraft.entity.data with type parameters of type ItemStackModifier and TypeFieldDescriptionstatic final TrackedDataHandler<ItemStack>TrackedDataHandlerRegistry.ITEM_STACK -
Uses of ItemStack in net.minecraft.entity.decoration
Fields in net.minecraft.entity.decoration declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackDisplayEntity.ItemDisplayEntity.Data.itemStackThe field for theitemStackrecord component.Fields in net.minecraft.entity.decoration with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>ArmorStandEntity.armorItemsprivate final DefaultedList<ItemStack>ArmorStandEntity.heldItemsprivate static final TrackedData<ItemStack>DisplayEntity.ItemDisplayEntity.ITEMprivate static final TrackedData<ItemStack>ItemFrameEntity.ITEM_STACKMethods in net.minecraft.entity.decoration that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackGlowItemFrameEntity.getAsItemStack()protected ItemStackItemFrameEntity.getAsItemStack()ArmorStandEntity.getEquippedStack(EquipmentSlot slot) ItemFrameEntity.getHeldItemStack()(package private) ItemStackDisplayEntity.ItemDisplayEntity.getItemStack()ArmorStandEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.EndCrystalEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.ItemFrameEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.LeashKnotEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.DisplayEntity.ItemDisplayEntity.Data.itemStack()Returns the value of theitemStackrecord component.Methods in net.minecraft.entity.decoration that return types with arguments of type ItemStackModifier and TypeMethodDescriptionArmorStandEntity.getArmorItems()Returns an iterable of item stacks equipped as armor.ArmorStandEntity.getHandItems()Returns an iterable of item stacks held in the hands.Methods in net.minecraft.entity.decoration with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanDropsstackat the entity's position with the given Y offset.private booleanArmorStandEntity.equip(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand) voidArmorStandEntity.equipStack(EquipmentSlot slot, ItemStack stack) Equipsstackatslot.This is also used to set an entity's mainhand or offhand stack.private voidItemFrameEntity.removeFromFrame(ItemStack itemStack) private voidItemFrameEntity.setAsStackHolder(ItemStack stack) voidItemFrameEntity.setHeldItemStack(ItemStack stack) voidItemFrameEntity.setHeldItemStack(ItemStack value, boolean update) (package private) voidDisplayEntity.ItemDisplayEntity.setItemStack(ItemStack stack) Constructors in net.minecraft.entity.decoration with parameters of type ItemStackModifierConstructorDescriptionData(ItemStack itemStack, ModelTransformationMode modelTransformationMode) -
Uses of ItemStack in net.minecraft.entity.decoration.painting
Methods in net.minecraft.entity.decoration.painting that return ItemStackModifier and TypeMethodDescriptionPaintingEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none. -
Uses of ItemStack in net.minecraft.entity.mob
Fields in net.minecraft.entity.mob with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>MobEntity.armorItemsprivate final DefaultedList<ItemStack>MobEntity.handItemsMethods in net.minecraft.entity.mob that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackMobEntity.getEquippedStack(EquipmentSlot slot) private static ItemStackPiglinBrain.getItemFromStack(ItemEntity stack) MobEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.HostileEntity.getProjectileType(ItemStack stack) protected ItemStackDrownedEntity.getSkull()Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStackHuskEntity.getSkull()Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStackZombieEntity.getSkull()Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStackZombieVillagerEntity.getSkull()Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStackZombifiedPiglinEntity.getSkull()Returns the item stack this entity will drop when killed by a charged creeper.private ItemStackPiglinEntity.makeInitialWeapon()Methods in net.minecraft.entity.mob that return types with arguments of type ItemStackModifier and TypeMethodDescriptionMobEntity.getArmorItems()Returns an iterable of item stacks equipped as armor.PiglinBrain.getBarteredItem(PiglinEntity piglin) MobEntity.getHandItems()Returns an iterable of item stacks held in the hands.Methods in net.minecraft.entity.mob with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static booleanPiglinBrain.acceptsForBarter(ItemStack stack) protected ItemStackprivate static voidPiglinBrain.barterItem(PiglinEntity piglin, ItemStack stack) booleanprotected booleanPiglinEntity.canEquipStack(ItemStack stack) Returns whether this piglin can equip into or replace current equipment slot.booleanprotected static booleanPiglinBrain.canGather(PiglinEntity piglin, ItemStack stack) booleanbooleanbooleanbooleanprotected booleanPiglinEntity.canInsertIntoInventory(ItemStack stack) booleanMobEntity.canPickupItem(ItemStack stack) booleanZombieEntity.canPickupItem(ItemStack stack) protected PersistentProjectileEntityAbstractSkeletonEntity.createArrowProjectile(ItemStack arrow, float damageModifier) protected PersistentProjectileEntityStrayEntity.createArrowProjectile(ItemStack arrow, float damageModifier) protected PersistentProjectileEntityWitherSkeletonEntity.createArrowProjectile(ItemStack arrow, float damageModifier) private voidMobEntity.disablePlayerShield(PlayerEntity player, ItemStack mobStack, ItemStack playerStack) private voidPiglinEntity.equipAtChance(EquipmentSlot slot, ItemStack stack, Random random) protected voidMobEntity.equipLootStack(EquipmentSlot slot, ItemStack stack) voidAbstractSkeletonEntity.equipStack(EquipmentSlot slot, ItemStack stack) Equipsstackatslot.This is also used to set an entity's mainhand or offhand stack.voidMobEntity.equipStack(EquipmentSlot slot, ItemStack stack) Equipsstackatslot.This is also used to set an entity's mainhand or offhand stack.protected voidPiglinEntity.equipToMainHand(ItemStack stack) protected voidPiglinEntity.equipToOffHand(ItemStack stack) HostileEntity.getProjectileType(ItemStack stack) booleanHoglinEntity.isBreedingItem(ItemStack stack) private static booleanprotected static booleanPiglinBrain.isGoldenItem(ItemStack stack) private booleanPillagerEntity.isRaidCaptain(ItemStack stack) protected static booleanPiglinBrain.isWillingToTrade(PiglinEntity piglin, ItemStack nearbyItems) booleanMobEntity.prefersNewDamageableItem(ItemStack newStack, ItemStack oldStack) protected booleanDrownedEntity.prefersNewEquipment(ItemStack newStack, ItemStack oldStack) protected booleanMobEntity.prefersNewEquipment(ItemStack newStack, ItemStack oldStack) protected booleanPiglinEntity.prefersNewEquipment(ItemStack newStack, ItemStack oldStack) voidPiglinEntity.shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray) voidPillagerEntity.shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray) private static voidPiglinBrain.swapItemWithOffHand(PiglinEntity piglin, ItemStack stack) Method parameters in net.minecraft.entity.mob with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate static voidPiglinBrain.doBarter(PiglinEntity piglin, List<ItemStack> items) private static voidPiglinBrain.drop(PiglinEntity piglin, List<ItemStack> items, Vec3d pos) private static voidPiglinBrain.dropBarteredItem(PiglinEntity piglin, List<ItemStack> items) private static voidPiglinBrain.dropBarteredItem(PiglinEntity piglin, PlayerEntity player, List<ItemStack> items) -
Uses of ItemStack in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive that return ItemStackModifier and TypeMethodDescriptionHorseEntity.getArmorType()AxolotlEntity.getBucketItem()CodEntity.getBucketItem()PufferfishEntity.getBucketItem()SalmonEntity.getBucketItem()TadpoleEntity.getBucketItem()TropicalFishEntity.getBucketItem()GoatEntity.getGoatHornStack()Methods in net.minecraft.entity.passive with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidAbstractDonkeyEntity.addChest(PlayerEntity player, ItemStack chest) private booleanAllayEntity.areDifferentPotions(ItemStack stack, ItemStack stack2) booleanAllayEntity.areItemsDifferent(ItemStack stack, ItemStack stack2) private booleanAllayEntity.areItemsEqual(ItemStack stack, ItemStack stack2) private booleanprivate booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanFoxEntity.canPickupItem(ItemStack stack) voidAxolotlEntity.copyDataToStack(ItemStack stack) voidFishEntity.copyDataToStack(ItemStack stack) voidTadpoleEntity.copyDataToStack(ItemStack stack) voidTropicalFishEntity.copyDataToStack(ItemStack stack) private voidTadpoleEntity.decrementItem(PlayerEntity player, ItemStack stack) private voidAllayEntity.decrementStackUnlessInCreative(PlayerEntity player, ItemStack stack) private voidprotected voidAnimalEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) protected voidAxolotlEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) protected voidCatEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) protected voidFoxEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) private voidTadpoleEntity.eatSlimeBall(PlayerEntity player, ItemStack stack) private voidHorseEntity.equipArmor(ItemStack stack) voidAbstractHorseEntity.equipHorseArmor(PlayerEntity player, ItemStack stack) LlamaEntity.getColorFromCarpet(ItemStack color) protected SoundEventWanderingTraderEntity.getDrinkSound(ItemStack stack) FoxEntity.getEatSound(ItemStack stack) GoatEntity.getEatSound(ItemStack stack) SnifferEntity.getEatSound(ItemStack stack) private Optional<Pair<StatusEffect,Integer>> MooshroomEntity.getStewEffectFrom(ItemStack flower) AbstractHorseEntity.interactHorse(PlayerEntity player, ItemStack stack) booleanAbstractHorseEntity.isBreedingItem(ItemStack stack) booleanAnimalEntity.isBreedingItem(ItemStack stack) booleanAxolotlEntity.isBreedingItem(ItemStack stack) booleanBeeEntity.isBreedingItem(ItemStack stack) booleanCamelEntity.isBreedingItem(ItemStack stack) booleanCatEntity.isBreedingItem(ItemStack stack) booleanChickenEntity.isBreedingItem(ItemStack stack) booleanFoxEntity.isBreedingItem(ItemStack stack) booleanFrogEntity.isBreedingItem(ItemStack stack) booleanLlamaEntity.isBreedingItem(ItemStack stack) booleanOcelotEntity.isBreedingItem(ItemStack stack) booleanPandaEntity.isBreedingItem(ItemStack stack) booleanParrotEntity.isBreedingItem(ItemStack stack) booleanPigEntity.isBreedingItem(ItemStack stack) booleanPolarBearEntity.isBreedingItem(ItemStack stack) booleanRabbitEntity.isBreedingItem(ItemStack stack) booleanSnifferEntity.isBreedingItem(ItemStack stack) booleanStriderEntity.isBreedingItem(ItemStack stack) booleanTurtleEntity.isBreedingItem(ItemStack stack) booleanWolfEntity.isBreedingItem(ItemStack stack) booleanAbstractHorseEntity.isHorseArmor(ItemStack item) Whether the given item stack is valid for this horse's armor slot.booleanHorseEntity.isHorseArmor(ItemStack item) Whether the given item stack is valid for this horse's armor slot.booleanLlamaEntity.isHorseArmor(ItemStack item) Whether the given item stack is valid for this horse's armor slot.private booleanTadpoleEntity.isSlimeBall(ItemStack stack) private static booleanRabbitEntity.isTempting(ItemStack stack) private booleanAllayEntity.matchesDuplicationIngredient(ItemStack stack) voidMerchantEntity.onSellingItem(ItemStack stack) protected booleanAbstractHorseEntity.receiveFood(PlayerEntity player, ItemStack item) protected booleanCamelEntity.receiveFood(PlayerEntity player, ItemStack item) protected booleanLlamaEntity.receiveFood(PlayerEntity player, ItemStack item) private voidHorseEntity.setArmorTypeFromStack(ItemStack stack) private voidprivate voidDolphinEntity.PlayWithItemsGoal.spitOutItem(ItemStack stack) Method parameters in net.minecraft.entity.passive with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate StackReferenceAbstractHorseEntity.createInventoryStackReference(int slot, Predicate<ItemStack> predicate) -
Uses of ItemStack in net.minecraft.entity.player
Fields in net.minecraft.entity.player declared as ItemStackFields in net.minecraft.entity.player with type parameters of type ItemStackModifier and TypeFieldDescriptionfinal DefaultedList<ItemStack>PlayerInventory.armorprivate final List<DefaultedList<ItemStack>>PlayerInventory.combinedInventoryfinal DefaultedList<ItemStack>PlayerInventory.mainfinal DefaultedList<ItemStack>PlayerInventory.offHandMethods in net.minecraft.entity.player that return ItemStackModifier and TypeMethodDescriptionPlayerInventory.dropSelectedItem(boolean entireStack) PlayerInventory.getArmorStack(int slot) PlayerEntity.getEquippedStack(EquipmentSlot slot) PlayerInventory.getMainHandStack()PlayerEntity.getProjectileType(ItemStack stack) PlayerInventory.getStack(int slot) Fetches the stack currently stored at the given slot.PlayerInventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.PlayerInventory.removeStack(int slot, int amount) Removes a specific number of items from the given slot.Methods in net.minecraft.entity.player that return types with arguments of type ItemStackModifier and TypeMethodDescriptionPlayerEntity.getArmorItems()Returns an iterable of item stacks equipped as armor.PlayerEntity.getHandItems()Returns an iterable of item stacks held in the hands.Methods in net.minecraft.entity.player with parameters of type ItemStackModifier and TypeMethodDescriptionvoidPlayerInventory.addPickBlock(ItemStack stack) private intprivate intvoidPlayerEntity.applyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels) booleanbooleanPlayerEntity.canPlaceOn(BlockPos pos, Direction facing, ItemStack stack) private booleanPlayerInventory.canStackAddMore(ItemStack existingStack, ItemStack stack) booleanvoidvoidPlayerEntity.equipStack(EquipmentSlot slot, ItemStack stack) Equipsstackatslot.This is also used to set an entity's mainhand or offhand stack.intPlayerInventory.getOccupiedSlotWithRoomForStack(ItemStack stack) PlayerEntity.getProjectileType(ItemStack stack) intPlayerInventory.getSlotWithStack(ItemStack stack) booleanPlayerEntity.giveItemStack(ItemStack stack) intGiven the item stack to search for, returns the equivalent slot index with a matching stack that is all of: not damaged, not enchanted, and not renamed.booleanPlayerInventory.insertStack(int slot, ItemStack stack) booleanPlayerInventory.insertStack(ItemStack stack) voidvoidPlayerInventory.offerOrDrop(ItemStack stack) voidPlayerEntity.onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType) Called when a player performs apickup slot actionin a screen handler.voidvoidvoidCalled when the player uses (defaults to right click) a writable or written book item.Method parameters in net.minecraft.entity.player with type arguments of type ItemStack -
Uses of ItemStack in net.minecraft.entity.projectile
Fields in net.minecraft.entity.projectile declared as ItemStackFields in net.minecraft.entity.projectile with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final TrackedData<ItemStack>AbstractFireballEntity.ITEMprivate static final TrackedData<ItemStack>FireworkRocketEntity.ITEMMethods in net.minecraft.entity.projectile that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackArrowEntity.asItemStack()protected abstract ItemStackPersistentProjectileEntity.asItemStack()protected ItemStackSpectralArrowEntity.asItemStack()protected ItemStackTridentEntity.asItemStack()protected ItemStackAbstractFireballEntity.getItem()AbstractFireballEntity.getStack()FireworkRocketEntity.getStack()Methods in net.minecraft.entity.projectile with parameters of type ItemStackModifier and TypeMethodDescriptionstatic PersistentProjectileEntityProjectileUtil.createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier) static intArrowEntity.getCustomPotionColor(ItemStack stack) voidArrowEntity.initFromStack(ItemStack stack) voidintConstructors in net.minecraft.entity.projectile with parameters of type ItemStackModifierConstructorDescriptionFireworkRocketEntity(World world, double x, double y, double z, ItemStack stack) FireworkRocketEntity(World world, @Nullable Entity entity, double x, double y, double z, ItemStack stack) FireworkRocketEntity(World world, ItemStack stack, double x, double y, double z, boolean shotAtAngle) FireworkRocketEntity(World world, ItemStack stack, Entity entity, double x, double y, double z, boolean shotAtAngle) FireworkRocketEntity(World world, ItemStack stack, LivingEntity shooter) TridentEntity(World world, LivingEntity owner, ItemStack stack) -
Uses of ItemStack in net.minecraft.entity.projectile.thrown
Fields in net.minecraft.entity.projectile.thrown with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final TrackedData<ItemStack>ThrownItemEntity.ITEMMethods in net.minecraft.entity.projectile.thrown that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackThrownItemEntity.getItem()ThrownItemEntity.getStack()Methods in net.minecraft.entity.projectile.thrown with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidPotionEntity.applyLingeringPotion(ItemStack stack, Potion potion) void -
Uses of ItemStack in net.minecraft.entity.vehicle
Fields in net.minecraft.entity.vehicle with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate DefaultedList<ItemStack>ChestBoatEntity.inventoryprivate DefaultedList<ItemStack>StorageMinecartEntity.inventoryMethods in net.minecraft.entity.vehicle that return ItemStackModifier and TypeMethodDescriptiondefault ItemStackVehicleInventory.getInventoryStack(int slot) AbstractMinecartEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.BoatEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.ChestBoatEntity.getStack(int slot) Fetches the stack currently stored at the given slot.StorageMinecartEntity.getStack(int slot) Fetches the stack currently stored at the given slot.default ItemStackVehicleInventory.removeInventoryStack(int slot) default ItemStackVehicleInventory.removeInventoryStack(int slot, int amount) ChestBoatEntity.removeStack(int slot) Removes the stack currently stored at the indicated slot.ChestBoatEntity.removeStack(int slot, int amount) Removes a specific number of items from the given slot.StorageMinecartEntity.removeStack(int slot) Removes the stack currently stored at the indicated slot.StorageMinecartEntity.removeStack(int slot, int amount) Removes a specific number of items from the given slot.Methods in net.minecraft.entity.vehicle that return types with arguments of type ItemStackModifier and TypeMethodDescriptionChestBoatEntity.getInventory()StorageMinecartEntity.getInventory()VehicleInventory.getInventory()Methods in net.minecraft.entity.vehicle with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.inventory
Fields in net.minecraft.inventory with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>CraftingInventory.stacksprivate final DefaultedList<ItemStack>CraftingResultInventory.stacksprivate final DefaultedList<ItemStack>SimpleInventory.stacksMethods in net.minecraft.inventory that return ItemStackModifier and TypeMethodDescriptionStackReference.get()Gets the current item stack.CraftingInventory.getStack(int slot) Fetches the stack currently stored at the given slot.CraftingResultInventory.getStack(int slot) Fetches the stack currently stored at the given slot.DoubleInventory.getStack(int slot) Fetches the stack currently stored at the given slot.Inventory.getStack(int slot) Fetches the stack currently stored at the given slot.SimpleInventory.getStack(int slot) Fetches the stack currently stored at the given slot.default ItemStackSingleStackInventory.getStack()SimpleInventory.removeItem(Item item, int count) Searches this inventory for the specified item and removes the given amount from this inventory.CraftingInventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.CraftingInventory.removeStack(int slot, int amount) Removes a specific number of items from the given slot.CraftingResultInventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.CraftingResultInventory.removeStack(int slot, int amount) Removes a specific number of items from the given slot.DoubleInventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.DoubleInventory.removeStack(int slot, int amount) Removes a specific number of items from the given slot.static ItemStackInventories.removeStack(List<ItemStack> stacks, int slot) Inventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.Inventory.removeStack(int slot, int amount) Removes a specific number of items from the given slot.SimpleInventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.SimpleInventory.removeStack(int slot, int amount) Removes a specific number of items from the given slot.default ItemStackSingleStackInventory.removeStack()default ItemStackSingleStackInventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.static ItemStackInventories.splitStack(List<ItemStack> stacks, int slot, int amount) Methods in net.minecraft.inventory that return types with arguments of type ItemStackModifier and TypeMethodDescriptionSimpleInventory.clearToList()Clears this inventory and return all the non-empty stacks in a list.CraftingInventory.getInputStacks()Methods in net.minecraft.inventory with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidSimpleInventory.addToExistingSlot(ItemStack stack) private voidSimpleInventory.addToNewSlot(ItemStack stack) booleanSidedInventory.canExtract(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanbooleanReturns true if this lock can be opened with the key item stack.default booleanInventory.canTransferTo(Inventory hopperInventory, int slot, ItemStack stack) booleanReturns whether the given stack is a valid for the indicated slot position.default booleanReturns whether the given stack is a valid for the indicated slot position.static intInventories.remove(ItemStack stack, Predicate<ItemStack> shouldRemove, int maxCount, boolean dryRun) Removes a number, not exceedingmaxCount, of items from an item stack based on a predicate and returns that number.booleanSets thestack.voidvoidvoidvoidvoiddefault voidprivate voidMethod parameters in net.minecraft.inventory with type arguments of type ItemStackModifier and TypeMethodDescriptiondefault booleanInventory.containsAny(Predicate<ItemStack> predicate) 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 and guarded by a condition for setting stacks into the inventory.static voidInventories.readNbt(NbtCompound nbt, DefaultedList<ItemStack> stacks) static intInventories.remove(Inventory inventory, Predicate<ItemStack> shouldRemove, int maxCount, boolean dryRun) Removes a number, not exceedingmaxCount, of items from an inventory based on a predicate and returns that number.static intInventories.remove(ItemStack stack, Predicate<ItemStack> shouldRemove, int maxCount, boolean dryRun) Removes a number, not exceedingmaxCount, of items from an item stack based on a predicate and returns that number.static ItemStackInventories.removeStack(List<ItemStack> stacks, int slot) static ItemStackInventories.splitStack(List<ItemStack> stacks, int slot, int amount) static NbtCompoundInventories.writeNbt(NbtCompound nbt, DefaultedList<ItemStack> stacks) static NbtCompoundInventories.writeNbt(NbtCompound nbt, DefaultedList<ItemStack> stacks, boolean setIfEmpty) Constructors in net.minecraft.inventory with parameters of type ItemStackConstructor parameters in net.minecraft.inventory with type arguments of type ItemStackModifierConstructorDescriptionCraftingInventory(ScreenHandler screenHandler, int int2, int int3, DefaultedList<ItemStack> defaultedList) -
Uses of ItemStack in net.minecraft.item
Fields in net.minecraft.item declared as ItemStackModifier and TypeFieldDescriptionstatic final ItemStackItemStack.EMPTYThe empty item stack that holds no item.ItemGroup.iconprivate final ItemStackItemUsageContext.stackFields in net.minecraft.item with type parameters of type ItemStackModifier and TypeFieldDescriptionRangedWeaponItem.BOW_PROJECTILESstatic final com.mojang.serialization.Codec<ItemStack>ItemStack.CODECRangedWeaponItem.CROSSBOW_HELD_PROJECTILESprivate Collection<ItemStack>ItemGroup.displayStacksprivate static final Hash.Strategy<? super ItemStack>ItemStackSet.HASH_STRATEGYItemGroup.Builder.iconSupplierItemGroup.iconSupplierfinal Collection<ItemStack>ItemGroup.EntriesImpl.parentTabStacksItemGroup.searchProviderReloaderItemGroup.EntriesImpl.searchTabStacksItemGroup.searchTabStacksMethods in net.minecraft.item that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackDyeableItem.blendAndSetColor(ItemStack stack, List<DyeItem> colors) ItemStack.copy()Returns a copy of this item stack, including the item count, NBT, and bobbing animation time.ItemStack.copyAndEmpty()ItemStack.copyWithCount(int count) static ItemStackFilledMapItem.createMap(World world, int x, int z, byte scale, boolean showIcons, boolean unlimitedTracking) static ItemStackItemUsage.exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack) Returns the stack to put in the player's hand after exchanging stacks.static ItemStackItemUsage.exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride) Returns the stack to put in the player's hand after exchanging stacks.protected ItemStackGlassBottleItem.fill(ItemStack stack, PlayerEntity player, ItemStack outputStack) ChorusFruitItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.HoneyBottleItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.Item.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.ItemStack.finishUsing(World world, LivingEntity user) MilkBucketItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.PotionItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.SpyglassItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.StewItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.SuspiciousStewItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.static ItemStackEnchantedBookItem.forEnchantment(EnchantmentLevelEntry info) static ItemStackItemStack.fromNbt(NbtCompound nbt) Returns the item stack deserialized from the NBT, orEMPTYif it fails to deserialize.FireworkRocketItem.getDefaultStack()Returns the default stack for this item.Item.getDefaultStack()Returns the default stack for this item.PotionItem.getDefaultStack()Returns the default stack for this item.TippedArrowItem.getDefaultStack()Returns the default stack for this item.static ItemStackBucketItem.getEmptiedStack(ItemStack stack, PlayerEntity player) static ItemStackRangedWeaponItem.getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate) ItemGroup.getIcon()ItemUsageContext.getStack()static ItemStackGoatHornItem.getStackForInstrument(Item item, RegistryEntry<Instrument> instrument) ItemStack.setCustomName(@Nullable Text name) Sets the custom name of this item stack toname.ItemStack.split(int amount) Returns the copy of the stack "split" from the current stack with item count being at mostamount.Methods in net.minecraft.item that return types with arguments of type ItemStackModifier and TypeMethodDescriptionstatic TypedActionResult<ItemStack>ItemUsage.consumeHeldItem(World world, PlayerEntity player, Hand hand) Consumes the item thatplayerholds.ItemStackSet.create()default TypedActionResult<ItemStack>Equipment.equipAndSwap(Item item, World world, PlayerEntity user, Hand hand) BundleItem.getBundledStacks(ItemStack stack) ItemGroup.getDisplayStacks()CrossbowItem.getHeldProjectiles()RangedWeaponItem.getHeldProjectiles()BowItem.getProjectiles()CrossbowItem.getProjectiles()CrossbowItem.getProjectiles(ItemStack crossbow) RangedWeaponItem.getProjectiles()ItemGroup.getSearchTabStacks()BundleItem.removeFirstStack(ItemStack stack) ArmorItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BoatItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BowItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BucketItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.BundleItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.CrossbowItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EggItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ElytraItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EmptyMapItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EnderEyeItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.EnderPearlItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ExperienceBottleItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.FireworkRocketItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.FishingRodItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.GlassBottleItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.GoatHornItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.HoneyBottleItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.Item.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ItemStack.use(World world, PlayerEntity user, Hand hand) KnowledgeBookItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.LingeringPotionItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.MilkBucketItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.OnAStickItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.PlaceableOnWaterItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.PotionItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ShieldItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SnowballItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SpawnEggItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SplashPotionItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.SpyglassItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.ThrowablePotionItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.TridentItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.WritableBookItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.WrittenBookItem.use(World world, PlayerEntity user, Hand hand) Called when the player uses (or starts using) the item.Methods in net.minecraft.item with parameters of type ItemStackModifier and TypeMethodDescriptiondefault voidvoidItemGroup.Entries.add(ItemStack stack, ItemGroup.StackVisibility visibility) voidItemGroup.EntriesImpl.add(ItemStack stack, ItemGroup.StackVisibility visibility) static voidSuspiciousStewItem.addEffectToStew(ItemStack stew, StatusEffect effect, int duration) static voidEnchantedBookItem.addEnchantment(ItemStack stack, EnchantmentLevelEntry entry) private static intBundleItem.addToBundle(ItemStack bundle, ItemStack stack) static voidBannerItem.appendBannerTooltip(ItemStack stack, List<Text> tooltip) voidAirBlockItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidBannerItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidBannerPatternItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidBlockItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidBundleItem.appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidCrossbowItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidDecorationItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidDiscFragmentItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidEnchantedBookItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidEntityBucketItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidFilledMapItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidFireworkRocketItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidFireworkStarItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidGoatHornItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidLingeringPotionItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidMusicDiscItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidPotionItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidShieldItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidSmithingTemplateItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidSuspiciousStewItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidTippedArrowItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.voidWrittenBookItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) Called by the client to append tooltips to an item.static booleanReturns whether the given item stacks are equal, including the item count and NBT.static booleanItemStack.areItemsEqual(ItemStack left, ItemStack right) static ItemStackDyeableItem.blendAndSetColor(ItemStack stack, List<DyeItem> colors) static booleanItemStack.canCombine(ItemStack stack, ItemStack otherStack) Returns whether the given item stacks' items and NBT are equal.private static Optional<NbtCompound>BundleItem.canMergeStack(ItemStack stack, NbtList items) protected booleanDecorationItem.canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos) protected booleanItemFrameItem.canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos) booleanReturns whetherstackcan be repaired usingingredient.booleanReturns whetherstackcan be repaired usingingredient.booleanReturns whetherstackcan be repaired usingingredient.booleanReturns whetherstackcan be repaired usingingredient.booleanReturns whetherstackcan be repaired usingingredient.booleanBlockPredicatesChecker.check(ItemStack stack, Registry<Block> blockRegistry, CachedBlockPosition pos) Returns true if any of the predicates in thestack's NBT matched against the block atpos, false otherwise.private static voidCrossbowItem.clearProjectiles(ItemStack crossbow) booleanstatic voidArrowItem.createArrow(World world, ItemStack stack, LivingEntity shooter) private static PersistentProjectileEntityCrossbowItem.createArrow(World world, LivingEntity entity, ItemStack crossbow, ItemStack arrow) SpectralArrowItem.createArrow(World world, ItemStack stack, LivingEntity shooter) private static voidFilledMapItem.createMapState(ItemStack stack, World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension) FilledMapItem.createSyncPacket(ItemStack stack, World world, PlayerEntity player) Creates a packet that syncs additional item data to the client.NetworkSyncedItem.createSyncPacket(ItemStack stack, World world, PlayerEntity player) Creates a packet that syncs additional item data to the client.static booleanArmorItem.dispenseArmor(BlockPointer pointer, ItemStack armor) private static booleanBundleItem.dropAllBundledItems(ItemStack stack, PlayerEntity player) static ItemStackItemUsage.exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack) Returns the stack to put in the player's hand after exchanging stacks.static ItemStackItemUsage.exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride) Returns the stack to put in the player's hand after exchanging stacks.protected ItemStackGlassBottleItem.fill(ItemStack stack, PlayerEntity player, ItemStack outputStack) static voidFilledMapItem.fillExplorationMap(ServerWorld world, ItemStack map) ChorusFruitItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.HoneyBottleItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.Item.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.MilkBucketItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.PotionItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.SpyglassItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.StewItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.SuspiciousStewItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.private static voidSuspiciousStewItem.forEachEffect(ItemStack stew, Consumer<StatusEffectInstance> effectConsumer) static floatBundleItem.getAmountFilled(ItemStack stack) static @Nullable NbtCompoundBlockItem.getBlockEntityNbt(ItemStack stack) BundleItem.getBundledStacks(ItemStack stack) private static intBundleItem.getBundleOccupancy(ItemStack stack) default intstatic DyeColorstatic ItemStackBucketItem.getEmptiedStack(ItemStack stack, PlayerEntity player) static NbtListEnchantedBookItem.getEnchantmentNbt(ItemStack stack) static intWrittenBookItem.getGeneration(ItemStack stack) (package private) static intItemStackSet.getHashCode(@Nullable ItemStack stack) private Optional<? extends RegistryEntry<Instrument>>GoatHornItem.getInstrument(ItemStack stack) intBundleItem.getItemBarColor(ItemStack stack) Returns the RGB color of the item bar, usually used for durability display.intItem.getItemBarColor(ItemStack stack) Returns the RGB color of the item bar, usually used for durability display.intBundleItem.getItemBarStep(ItemStack stack) Returns the step, or the length of the colored area of the item bar, forstack.intItem.getItemBarStep(ItemStack stack) Returns the step, or the length of the colored area of the item bar, forstack.private static intBundleItem.getItemOccupancy(ItemStack stack) static intFilledMapItem.getMapColor(ItemStack stack) FilledMapItem.getMapState(ItemStack map, World world) intBowItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intBrushItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intCrossbowItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intGoatHornItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intHoneyBottleItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intMilkBucketItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intPotionItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intShieldItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intSpyglassItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intTridentItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.floatItem.getMiningSpeedMultiplier(ItemStack stack, BlockState state) Returns the multiplier applied to the mining speed ofstackwhen miningstate.floatMiningToolItem.getMiningSpeedMultiplier(ItemStack stack, BlockState state) Returns the multiplier applied to the mining speed ofstackwhen miningstate.floatShearsItem.getMiningSpeedMultiplier(ItemStack stack, BlockState state) Returns the multiplier applied to the mining speed ofstackwhen miningstate.floatSwordItem.getMiningSpeedMultiplier(ItemStack stack, BlockState state) Returns the multiplier applied to the mining speed ofstackwhen miningstate.static intWrittenBookItem.getPageCount(ItemStack stack) CrossbowItem.getProjectiles(ItemStack crossbow) private static floatCrossbowItem.getPullProgress(int useTicks, ItemStack stack) static intCrossbowItem.getPullTime(ItemStack stack) Returns this item's rarity, which changes the color of its name.private static floatBundleItem.getTooltipData(ItemStack stack) Item.getTooltipData(ItemStack stack) CompassItem.getTranslationKey(ItemStack stack) Gets the translation key of this item using the provided item stack for context.Item.getTranslationKey(ItemStack stack) Gets the translation key of this item using the provided item stack for context.PotionItem.getTranslationKey(ItemStack stack) Gets the translation key of this item using the provided item stack for context.ShieldItem.getTranslationKey(ItemStack stack) Gets the translation key of this item using the provided item stack for context.TippedArrowItem.getTranslationKey(ItemStack stack) Gets the translation key of this item using the provided item stack for context.BowItem.getUseAction(ItemStack stack) Returns the use action the item should perform.BrushItem.getUseAction(ItemStack stack) Returns the use action the item should perform.CrossbowItem.getUseAction(ItemStack stack) Returns the use action the item should perform.GoatHornItem.getUseAction(ItemStack stack) Returns the use action the item should perform.HoneyBottleItem.getUseAction(ItemStack stack) Returns the use action the item should perform.Item.getUseAction(ItemStack stack) Returns the use action the item should perform.MilkBucketItem.getUseAction(ItemStack stack) Returns the use action the item should perform.PotionItem.getUseAction(ItemStack stack) Returns the use action the item should perform.ShieldItem.getUseAction(ItemStack stack) Returns the use action the item should perform.SpyglassItem.getUseAction(ItemStack stack) Returns the use action the item should perform.TridentItem.getUseAction(ItemStack stack) Returns the use action the item should perform.default booleanbooleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.static booleanCompassItem.hasLodestone(ItemStack stack) static booleanCrossbowItem.hasProjectile(ItemStack crossbow, Item projectile) voidCompassItem.inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected) Called on both the client and the server every tick if the item is in the player's inventory.voidFilledMapItem.inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected) Called on both the client and the server every tick if the item is in the player's inventory.voidItem.inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected) Called on both the client and the server every tick if the item is in the player's inventory.static booleanbooleanBookItem.isEnchantable(ItemStack stack) Returns whether the givenItemStackis enchantable.booleanEnchantedBookItem.isEnchantable(ItemStack stack) Returns whether the givenItemStackis enchantable.booleanItem.isEnchantable(ItemStack stack) Returns whether the givenItemStackis enchantable.booleanBundleItem.isItemBarVisible(ItemStack stack) Returns whether to show the item bar forstack.booleanItem.isItemBarVisible(ItemStack stack) Returns whether to show the item bar forstack.static booleanbooleanCrossbowItem.isUsedOnRelease(ItemStack stack) booleanItem.isUsedOnRelease(ItemStack stack) private static booleanCrossbowItem.loadProjectile(LivingEntity shooter, ItemStack crossbow, ItemStack projectile, boolean simulated, boolean creative) private static booleanCrossbowItem.loadProjectiles(LivingEntity shooter, ItemStack crossbow) booleanBundleItem.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) voidFilledMapItem.onCraft(ItemStack stack, World world, PlayerEntity player) Called when a player acquires the item by crafting, smelting, smithing, etc.voidItem.onCraft(ItemStack stack, World world, PlayerEntity player) Called when a player acquires the item by crafting, smelting, smithing, etc.voidvoidEntityBucketItem.onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos) default voidFluidModificationItem.onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos) booleanBundleItem.onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player) Called when the item at the cursor is clicked atslot.booleanItem.onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player) Called when the item at the cursor is clicked atslot.voidBowItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.voidCrossbowItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.voidItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.voidSpyglassItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.voidTridentItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) Called on both the client and the server when an entity stops using an item before reaching the maximum use time.private BlockStateBlockItem.placeFromNbt(BlockPos pos, World world, ItemStack stack, BlockState state) booleanItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) Called on the server when the item is used to hit an entity.booleanMiningToolItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) Called on the server when the item is used to hit an entity.booleanSwordItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) Called on the server when the item is used to hit an entity.booleanTridentItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) Called on the server when the item is used to hit an entity.booleanItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.booleanMiningToolItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.booleanShearsItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.booleanSwordItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.booleanTridentItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) Called on the server when the item is used to break a block.protected booleanBlockItem.postPlacement(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state) protected booleanSignItem.postPlacement(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state) private static voidCrossbowItem.postShoot(World world, LivingEntity entity, ItemStack stack) private static voidCrossbowItem.putProjectile(ItemStack crossbow, ItemStack projectile) default voidDyeableItem.removeColor(ItemStack stack) BundleItem.removeFirstStack(ItemStack stack) static booleanWrittenBookItem.resolve(ItemStack book, @Nullable ServerCommandSource commandSource, @Nullable PlayerEntity player) private static voidstatic voidBlockItem.setBlockEntityNbt(ItemStack stack, BlockEntityType<?> blockEntityType, NbtCompound tag) static voidCrossbowItem.setCharged(ItemStack stack, boolean charged) default voidstatic voidprivate static voidGoatHornItem.setInstrument(ItemStack stack, RegistryEntry<Instrument> instrument) private static voidstatic voidGoatHornItem.setRandomInstrumentFromTag(ItemStack stack, TagKey<Instrument> instrumentTag, Random random) private static voidCrossbowItem.shoot(World world, LivingEntity shooter, Hand hand, ItemStack crossbow, ItemStack projectile, float soundPitch, boolean creative, float speed, float divergence, float simulated) static voidCrossbowItem.shootAll(World world, LivingEntity entity, Hand hand, ItemStack stack, float speed, float divergence) SpawnEggItem.spawnBaby(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack) private voidEntityBucketItem.spawnEntity(ServerWorld world, ItemStack stack, BlockPos pos) voidBrushItem.usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks) Called on both the server and the client every tick while an entity uses the item.voidCrossbowItem.usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks) Called on both the server and the client every tick while an entity uses the item.voidItem.usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks) Called on both the server and the client every tick while an entity uses the item.private booleanDebugStickItem.use(PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos, boolean update, ItemStack stack) DyeItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.Item.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.NameTagItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.SaddleItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) Called on both the client and the server when a player uses the item on an entity.static booleanBoneMealItem.useOnFertilizable(ItemStack stack, World world, BlockPos pos) static booleanBoneMealItem.useOnGround(ItemStack stack, World world, BlockPos blockPos, @Nullable Direction facing) static booleanBlockItem.writeNbtToBlockEntity(World world, @Nullable PlayerEntity player, BlockPos pos, ItemStack stack) Method parameters in net.minecraft.item with type arguments of type ItemStackModifier and TypeMethodDescriptiondefault voidItemGroup.Entries.addAll(Collection<ItemStack> stacks) default voidItemGroup.Entries.addAll(Collection<ItemStack> stacks, ItemGroup.StackVisibility visibility) static ItemStackRangedWeaponItem.getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate) voidItemGroup.setSearchProviderReloader(Consumer<List<ItemStack>> searchProviderReloader) static voidItemUsage.spawnItemContents(ItemEntity itemEntity, Stream<ItemStack> contents) Spawns item entity's contents at the item entity's position.Constructors in net.minecraft.item with parameters of type ItemStackModifierConstructorDescriptionAutomaticItemPlacementContext(World world, BlockPos pos, Direction facing, ItemStack stack, Direction side) ItemPlacementContext(PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hitResult) protectedItemPlacementContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit) protectedItemUsageContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit) Constructor parameters in net.minecraft.item with type arguments of type ItemStackModifierConstructorDescription(package private)ItemGroup(ItemGroup.Row row, int column, ItemGroup.Type type, Text displayName, Supplier<ItemStack> iconSupplier, ItemGroup.EntryCollector entryCollector) -
Uses of ItemStack in net.minecraft.item.map
Methods in net.minecraft.item.map with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidMapState.addDecorationsNbt(ItemStack stack, BlockPos pos, String id, MapIcon.Type type) voidMapState.update(PlayerEntity player, ItemStack stack) -
Uses of ItemStack in net.minecraft.item.trim
Methods in net.minecraft.item.trim with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidArmorTrim.appendTooltip(ItemStack stack, DynamicRegistryManager registryManager, List<Text> tooltip) static booleanArmorTrim.apply(DynamicRegistryManager registryManager, ItemStack stack, ArmorTrim trim) ArmorTrimMaterials.get(DynamicRegistryManager registryManager, ItemStack stack) ArmorTrimPatterns.get(DynamicRegistryManager registryManager, ItemStack stack) ArmorTrim.getTrim(DynamicRegistryManager registryManager, ItemStack stack) -
Uses of ItemStack in net.minecraft.loot
Fields in net.minecraft.loot with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final BiFunction<ItemStack,LootContext, ItemStack> LootManager.AndFunction.applierprivate final BiFunction<ItemStack,LootContext, ItemStack> LootManager.AndFunction.applierprivate final BiFunction<ItemStack,LootContext, ItemStack> LootTable.combinedFunctionprivate final BiFunction<ItemStack,LootContext, ItemStack> LootTable.combinedFunctionprivate final BiFunction<ItemStack,LootContext, ItemStack> LootPool.javaFunctionsprivate final BiFunction<ItemStack,LootContext, ItemStack> LootPool.javaFunctionsMethods in net.minecraft.loot that return ItemStackModifier and TypeMethodDescriptionLootManager.AndFunction.apply(ItemStack itemStack, LootContext lootContext) Methods in net.minecraft.loot that return types with arguments of type ItemStackModifier and TypeMethodDescriptionprivate ObjectArrayList<ItemStack>LootTable.generateLoot(LootContext context) LootTable.method_51878(class_8567 class_8567) LootTable.method_51879(class_8567 class_8567, long long2) LootTable.processStacks(ServerWorld serverWorld, Consumer<ItemStack> consumer) Methods in net.minecraft.loot with parameters of type ItemStackModifier and TypeMethodDescriptionLootManager.AndFunction.apply(ItemStack itemStack, LootContext lootContext) Method parameters in net.minecraft.loot with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidLootPool.addGeneratedLoot(Consumer<ItemStack> lootConsumer, LootContext context) voidLootChoice.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) voidLootTable.generateLoot(LootContext context, Consumer<ItemStack> lootConsumer) voidLootTable.generateUnprocessedLoot(LootContext context, Consumer<ItemStack> lootConsumer) voidLootTable.method_51880(class_8567 class_8567, long long2, Consumer<ItemStack> consumer) voidLootTable.method_51881(class_8567 class_8567, Consumer<ItemStack> consumer) voidLootTable.method_51882(class_8567 class_8567, Consumer<ItemStack> consumer) LootTable.processStacks(ServerWorld serverWorld, Consumer<ItemStack> consumer) private voidLootTable.shuffle(ObjectArrayList<ItemStack> drops, int freeSlots, Random random) private voidLootPool.supplyOnce(Consumer<ItemStack> lootConsumer, LootContext context) -
Uses of ItemStack in net.minecraft.loot.context
Fields in net.minecraft.loot.context with type parameters of type ItemStackModifier and TypeFieldDescriptionstatic final LootContextParameter<ItemStack>LootContextParameters.TOOLMethod parameters in net.minecraft.loot.context with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidLootContext.drop(Identifier id, Consumer<ItemStack> lootConsumer) -
Uses of ItemStack in net.minecraft.loot.entry
Fields in net.minecraft.loot.entry with type parameters of type ItemStackModifier and TypeFieldDescription(package private) final BiFunction<ItemStack,LootContext, ItemStack> LeafEntry.compiledFunctions(package private) final BiFunction<ItemStack,LootContext, ItemStack> LeafEntry.compiledFunctionsMethod parameters in net.minecraft.loot.entry with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidDynamicEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) voidEmptyEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) voidItemEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) protected abstract voidLeafEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) voidLootTableEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) voidTagEntry.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) -
Uses of ItemStack in net.minecraft.loot.function
Fields in net.minecraft.loot.function with type parameters of type ItemStackModifier and TypeFieldDescriptionstatic final BiFunction<ItemStack,LootContext, ItemStack> LootFunctionTypes.NOOPstatic final BiFunction<ItemStack,LootContext, ItemStack> LootFunctionTypes.NOOPMethods in net.minecraft.loot.function that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackEnchantRandomlyLootFunction.addEnchantmentToStack(ItemStack stack, Enchantment enchantment, Random random) final ItemStackConditionalLootFunction.apply(ItemStack itemStack, LootContext lootContext) ApplyBonusLootFunction.process(ItemStack stack, LootContext context) protected abstract ItemStackConditionalLootFunction.process(ItemStack stack, LootContext context) CopyNameLootFunction.process(ItemStack stack, LootContext context) CopyNbtLootFunction.process(ItemStack stack, LootContext context) protected ItemStackCopyStateFunction.process(ItemStack stack, LootContext context) EnchantRandomlyLootFunction.process(ItemStack stack, LootContext context) EnchantWithLevelsLootFunction.process(ItemStack stack, LootContext context) ExplorationMapLootFunction.process(ItemStack stack, LootContext context) ExplosionDecayLootFunction.process(ItemStack stack, LootContext context) FillPlayerHeadLootFunction.process(ItemStack stack, LootContext context) FurnaceSmeltLootFunction.process(ItemStack stack, LootContext context) LimitCountLootFunction.process(ItemStack stack, LootContext context) LootingEnchantLootFunction.process(ItemStack stack, LootContext context) protected ItemStackReferenceLootFunction.process(ItemStack stack, LootContext context) SetAttributesLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetBannerPatternFunction.process(ItemStack stack, LootContext context) SetContentsLootFunction.process(ItemStack stack, LootContext context) SetCountLootFunction.process(ItemStack stack, LootContext context) SetDamageLootFunction.process(ItemStack stack, LootContext context) SetEnchantmentsLootFunction.process(ItemStack stack, LootContext context) SetInstrumentLootFunction.process(ItemStack stack, LootContext context) SetLootTableLootFunction.process(ItemStack stack, LootContext context) SetLoreLootFunction.process(ItemStack stack, LootContext context) SetNameLootFunction.process(ItemStack stack, LootContext context) SetNbtLootFunction.process(ItemStack stack, LootContext context) SetPotionLootFunction.process(ItemStack stack, LootContext context) SetStewEffectLootFunction.process(ItemStack stack, LootContext context) Methods in net.minecraft.loot.function that return types with arguments of type ItemStackModifier and TypeMethodDescriptionLootFunction.apply(BiFunction<ItemStack, LootContext, ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context) static BiFunction<ItemStack,LootContext, ItemStack> LootFunctionTypes.join(BiFunction<ItemStack, LootContext, ItemStack>[] lootFunctions) static BiFunction<ItemStack,LootContext, ItemStack> LootFunctionTypes.join(BiFunction<ItemStack, LootContext, ItemStack>[] lootFunctions) Methods in net.minecraft.loot.function with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static ItemStackEnchantRandomlyLootFunction.addEnchantmentToStack(ItemStack stack, Enchantment enchantment, Random random) final ItemStackConditionalLootFunction.apply(ItemStack itemStack, LootContext lootContext) SetLoreLootFunction.getLoreForMerge(ItemStack stack, boolean otherLoreExists) ApplyBonusLootFunction.process(ItemStack stack, LootContext context) protected abstract ItemStackConditionalLootFunction.process(ItemStack stack, LootContext context) CopyNameLootFunction.process(ItemStack stack, LootContext context) CopyNbtLootFunction.process(ItemStack stack, LootContext context) protected ItemStackCopyStateFunction.process(ItemStack stack, LootContext context) EnchantRandomlyLootFunction.process(ItemStack stack, LootContext context) EnchantWithLevelsLootFunction.process(ItemStack stack, LootContext context) ExplorationMapLootFunction.process(ItemStack stack, LootContext context) ExplosionDecayLootFunction.process(ItemStack stack, LootContext context) FillPlayerHeadLootFunction.process(ItemStack stack, LootContext context) FurnaceSmeltLootFunction.process(ItemStack stack, LootContext context) LimitCountLootFunction.process(ItemStack stack, LootContext context) LootingEnchantLootFunction.process(ItemStack stack, LootContext context) protected ItemStackReferenceLootFunction.process(ItemStack stack, LootContext context) SetAttributesLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetBannerPatternFunction.process(ItemStack stack, LootContext context) SetContentsLootFunction.process(ItemStack stack, LootContext context) SetCountLootFunction.process(ItemStack stack, LootContext context) SetDamageLootFunction.process(ItemStack stack, LootContext context) SetEnchantmentsLootFunction.process(ItemStack stack, LootContext context) SetInstrumentLootFunction.process(ItemStack stack, LootContext context) SetLootTableLootFunction.process(ItemStack stack, LootContext context) SetLoreLootFunction.process(ItemStack stack, LootContext context) SetNameLootFunction.process(ItemStack stack, LootContext context) SetNbtLootFunction.process(ItemStack stack, LootContext context) SetPotionLootFunction.process(ItemStack stack, LootContext context) SetStewEffectLootFunction.process(ItemStack stack, LootContext context) Method parameters in net.minecraft.loot.function with type arguments of type ItemStackModifier and TypeMethodDescriptionLootFunction.apply(BiFunction<ItemStack, LootContext, ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context) LootFunction.apply(BiFunction<ItemStack, LootContext, ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context) LootFunction.apply(BiFunction<ItemStack, LootContext, ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context) -
Uses of ItemStack in net.minecraft.network
Methods in net.minecraft.network that return ItemStackModifier and TypeMethodDescriptionPacketByteBuf.readItemStack()Reads an item stack from this buf.Methods in net.minecraft.network with parameters of type ItemStackModifier and TypeMethodDescriptionPacketByteBuf.writeItemStack(ItemStack stack) Writes an item stack to this buf. -
Uses of ItemStack in net.minecraft.network.packet.c2s.play
Fields in net.minecraft.network.packet.c2s.play declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackClickSlotC2SPacket.stackprivate final ItemStackCreativeInventoryActionC2SPacket.stackFields in net.minecraft.network.packet.c2s.play with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final Int2ObjectMap<ItemStack>ClickSlotC2SPacket.modifiedStacksMethods in net.minecraft.network.packet.c2s.play that return ItemStackModifier and TypeMethodDescriptionCreativeInventoryActionC2SPacket.getItemStack()ClickSlotC2SPacket.getStack()Methods in net.minecraft.network.packet.c2s.play that return types with arguments of type ItemStackConstructors in net.minecraft.network.packet.c2s.play with parameters of type ItemStackModifierConstructorDescriptionClickSlotC2SPacket(int syncId, int revision, int slot, int button, SlotActionType actionType, ItemStack stack, Int2ObjectMap<ItemStack> modifiedStacks) CreativeInventoryActionC2SPacket(int slot, ItemStack stack) Constructor parameters in net.minecraft.network.packet.c2s.play with type arguments of type ItemStackModifierConstructorDescriptionClickSlotC2SPacket(int syncId, int revision, int slot, int button, SlotActionType actionType, ItemStack stack, Int2ObjectMap<ItemStack> modifiedStacks) -
Uses of ItemStack in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackInventoryS2CPacket.cursorStackprivate final ItemStackScreenHandlerSlotUpdateS2CPacket.stackFields in net.minecraft.network.packet.s2c.play with type parameters of type ItemStackModifier and TypeFieldDescriptionInventoryS2CPacket.contentsprivate final List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> EntityEquipmentUpdateS2CPacket.equipmentListMethods in net.minecraft.network.packet.s2c.play that return ItemStackModifier and TypeMethodDescriptionInventoryS2CPacket.getCursorStack()ScreenHandlerSlotUpdateS2CPacket.getItemStack()Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type ItemStackModifier and TypeMethodDescriptionInventoryS2CPacket.getContents()List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> EntityEquipmentUpdateS2CPacket.getEquipmentList()Constructors in net.minecraft.network.packet.s2c.play with parameters of type ItemStackModifierConstructorDescriptionInventoryS2CPacket(int syncId, int revision, DefaultedList<ItemStack> contents, ItemStack cursorStack) ScreenHandlerSlotUpdateS2CPacket(int syncId, int revision, int slot, ItemStack stack) Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type ItemStackModifierConstructorDescriptionEntityEquipmentUpdateS2CPacket(int id, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> equipmentList) InventoryS2CPacket(int syncId, int revision, DefaultedList<ItemStack> contents, ItemStack cursorStack) -
Uses of ItemStack in net.minecraft.particle
Fields in net.minecraft.particle declared as ItemStackMethods in net.minecraft.particle that return ItemStackConstructors in net.minecraft.particle with parameters of type ItemStackModifierConstructorDescriptionItemStackParticleEffect(ParticleType<ItemStackParticleEffect> type, ItemStack stack) -
Uses of ItemStack in net.minecraft.potion
Methods in net.minecraft.potion that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackPotionUtil.setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects) static ItemStackMethods in net.minecraft.potion with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidPotionUtil.buildTooltip(ItemStack stack, List<Text> list, float durationMultiplier) static intstatic List<StatusEffectInstance>PotionUtil.getCustomPotionEffects(ItemStack stack) static Potionstatic List<StatusEffectInstance>PotionUtil.getPotionEffects(ItemStack stack) static ItemStackPotionUtil.setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects) static ItemStack -
Uses of ItemStack in net.minecraft.predicate
Methods in net.minecraft.predicate with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity declared as ItemStackConstructors in net.minecraft.predicate.entity with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.predicate.item
Methods in net.minecraft.predicate.item with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.recipe
Fields in net.minecraft.recipe declared as ItemStackModifier and TypeFieldDescriptionIngredient.matchingStacksprotected final ItemStackAbstractCookingRecipe.outputprotected final ItemStackCuttingRecipe.output(package private) final ItemStackShapedRecipe.output(package private) final ItemStackShapelessRecipe.output(package private) final ItemStackSmithingTransformRecipe.resultprivate final ItemStackIngredient.StackEntry.stackFields in net.minecraft.recipe with type parameters of type ItemStackMethods in net.minecraft.recipe that return ItemStackModifier and TypeMethodDescriptionAbstractCookingRecipe.craft(Inventory inventory, DynamicRegistryManager registryManager) Crafts this recipe.ArmorDyeRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) BannerDuplicateRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) BookCloningRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) static ItemStackCraftingDecoratedPotRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) CuttingRecipe.craft(Inventory inventory, DynamicRegistryManager registryManager) Crafts this recipe.FireworkRocketRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) FireworkStarFadeRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) FireworkStarRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) MapCloningRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) MapExtendingRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) Recipe.craft(C inventory, DynamicRegistryManager registryManager) Crafts this recipe.RepairItemRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) ShapedRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) ShapelessRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) ShieldDecorationRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) ShulkerBoxColoringRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) SmithingTransformRecipe.craft(Inventory inventory, DynamicRegistryManager registryManager) Crafts this recipe.SmithingTrimRecipe.craft(Inventory inventory, DynamicRegistryManager registryManager) Crafts this recipe.SuspiciousStewRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) TippedArrowRecipe.craft(class_8566 class_8566, DynamicRegistryManager dynamicRegistryManager) BlastingRecipe.createIcon()Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.CampfireCookingRecipe.createIcon()Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.default ItemStackRecipe.createIcon()Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.SmeltingRecipe.createIcon()Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.default ItemStackSmithingRecipe.createIcon()Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.SmokingRecipe.createIcon()Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.StonecuttingRecipe.createIcon()Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.private static ItemStackMapExtendingRecipe.findFilledMap(class_8566 inventory) Ingredient.getMatchingStacks()AbstractCookingRecipe.getOutput(DynamicRegistryManager registryManager) Returns a preview of the recipe's output.CuttingRecipe.getOutput(DynamicRegistryManager registryManager) Returns a preview of the recipe's output.FireworkRocketRecipe.getOutput(DynamicRegistryManager registryManager) Returns a preview of the recipe's output.FireworkStarRecipe.getOutput(DynamicRegistryManager registryManager) Returns a preview of the recipe's output.Recipe.getOutput(DynamicRegistryManager registryManager) Returns a preview of the recipe's output.ShapedRecipe.getOutput(DynamicRegistryManager registryManager) Returns a preview of the recipe's output.ShapelessRecipe.getOutput(DynamicRegistryManager registryManager) Returns a preview of the recipe's output.SmithingTransformRecipe.getOutput(DynamicRegistryManager registryManager) Returns a preview of the recipe's output.SmithingTrimRecipe.getOutput(DynamicRegistryManager registryManager) Returns a preview of the recipe's output.SpecialCraftingRecipe.getOutput(DynamicRegistryManager registryManager) Returns a preview of the recipe's output.static ItemStackCraftingDecoratedPotRecipe.getPotStackWith(DecoratedPotBlockEntity.Sherds sherds) static ItemStackRecipeMatcher.getStackFromId(int itemId) static ItemStackShapedRecipe.outputFromJson(JsonObject json) Methods in net.minecraft.recipe that return types with arguments of type ItemStackModifier and TypeMethodDescriptionBannerDuplicateRecipe.getRemainder(class_8566 class_8566) BookCloningRecipe.getRemainder(class_8566 class_8566) default DefaultedList<ItemStack>Recipe.getRemainder(C inventory) Returns the remaining stacks to be left in theinventoryafter the recipe is used.<C extends Inventory,T extends Recipe<C>>
DefaultedList<ItemStack>RecipeManager.getRemainingStacks(RecipeType<T> type, C inventory, World world) Returns the remainder of a recipe of the giventypethat match the giveninventoryandworld, or a shallow copy of theinventory.Ingredient.Entry.getStacks()Ingredient.StackEntry.getStacks()Ingredient.TagEntry.getStacks()Methods in net.minecraft.recipe with parameters of type ItemStackModifier and TypeMethodDescriptionvoidAdds a full item stack to the pool of available resources.voidAdds an item stack to the pool of available resources.voidRecipeMatcher.addUnenchantedInput(ItemStack stack) Adds a full item stack to the pool of available resources.static ItemStackCookingRecipeSerializer.RecipeFactory.create(Identifier id, String group, CookingRecipeCategory category, Ingredient input, ItemStack output, float experience, int cookTime) CuttingRecipe.Serializer.RecipeFactory.create(Identifier id, String group, Ingredient input, ItemStack output) protected voidInputSlotFiller.fillInputSlot(Slot slot, ItemStack stack) static intprotected static booleanBrewingRecipeRegistry.hasItemRecipe(ItemStack input, ItemStack ingredient) protected static booleanBrewingRecipeRegistry.hasPotionRecipe(ItemStack input, ItemStack ingredient) static booleanprotected static booleanBrewingRecipeRegistry.isItemRecipeIngredient(ItemStack stack) protected static booleanBrewingRecipeRegistry.isPotionRecipeIngredient(ItemStack stack) static booleanBrewingRecipeRegistry.isValidIngredient(ItemStack stack) static IngredientbooleanbooleanSmithingRecipe.testAddition(ItemStack stack) booleanSmithingTransformRecipe.testAddition(ItemStack stack) booleanSmithingTrimRecipe.testAddition(ItemStack stack) booleanbooleanbooleanbooleanSmithingRecipe.testTemplate(ItemStack stack) booleanSmithingTransformRecipe.testTemplate(ItemStack stack) booleanSmithingTrimRecipe.testTemplate(ItemStack stack) Method parameters in net.minecraft.recipe with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic Ingredientdefault voidRecipeUnlocker.unlockLastRecipe(PlayerEntity player, List<ItemStack> ingredients) Constructors in net.minecraft.recipe with parameters of type ItemStackModifierConstructorDescriptionAbstractCookingRecipe(RecipeType<?> type, Identifier id, String group, CookingRecipeCategory category, Ingredient input, ItemStack output, float experience, int cookTime) BlastingRecipe(Identifier id, String group, CookingRecipeCategory category, Ingredient input, ItemStack output, float experience, int cookTime) CampfireCookingRecipe(Identifier id, String group, CookingRecipeCategory category, Ingredient input, ItemStack output, float experience, int cookTime) CuttingRecipe(RecipeType<?> type, RecipeSerializer<?> serializer, Identifier id, String group, Ingredient input, ItemStack output) ShapedRecipe(Identifier id, String group, CraftingRecipeCategory category, int width, int height, DefaultedList<Ingredient> input, ItemStack output) ShapedRecipe(Identifier id, String group, CraftingRecipeCategory category, int width, int height, DefaultedList<Ingredient> input, ItemStack output, boolean showNotification) ShapelessRecipe(Identifier id, String group, CraftingRecipeCategory category, ItemStack output, DefaultedList<Ingredient> input) SmeltingRecipe(Identifier id, String group, CookingRecipeCategory category, Ingredient input, ItemStack output, float experience, int cookTime) SmithingTransformRecipe(Identifier id, Ingredient template, Ingredient base, Ingredient addition, ItemStack result) SmokingRecipe(Identifier id, String group, CookingRecipeCategory category, Ingredient input, ItemStack output, float experience, int cookTime) (package private)StackEntry(ItemStack stack) StonecuttingRecipe(Identifier id, String group, Ingredient input, ItemStack output) -
Uses of ItemStack in net.minecraft.screen
Fields in net.minecraft.screen declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackScreenHandler.cursorStackprivate ItemStackStonecutterScreenHandler.inputStackprivate ItemStackScreenHandler.previousCursorStackFields in net.minecraft.screen with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>ScreenHandler.previousTrackedStacksprivate final DefaultedList<ItemStack>ScreenHandler.trackedStacksA list of item stacks that is used for tracking changes inScreenHandler.sendContentUpdates().Methods in net.minecraft.screen that return ItemStackModifier and TypeMethodDescriptionLecternScreenHandler.getBookItem()ScreenHandler.getCursorStack()private ItemStackAbstractFurnaceScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.BeaconScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.BrewingStandScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.CartographyTableScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.CraftingScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.EnchantmentScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.ForgingScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.Generic3x3ContainerScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.GenericContainerScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.GrindstoneScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.HopperScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.HorseScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.LecternScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.LoomScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.MerchantScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.PlayerScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.abstract ItemStackScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.ShulkerBoxScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.StonecutterScreenHandler.quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.private ItemStackGrindstoneScreenHandler.transferEnchantments(ItemStack target, ItemStack source) Methods in net.minecraft.screen that return types with arguments of type ItemStackModifier and TypeMethodDescriptionSmithingScreenHandler.getInputStacks()ScreenHandler.getStacks()Returns a list of all stacks of the screen handler's slot.Methods in net.minecraft.screen with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidstatic intScreenHandler.calculateStackSize(Set<Slot> slots, int mode, ItemStack stack) booleanbooleanbooleanbooleanbooleanCartographyTableScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) Returns whetherstackcan be inserted toslot.booleanCraftingScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) Returns whetherstackcan be inserted toslot.booleanMerchantScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) Returns whetherstackcan be inserted toslot.booleanPlayerScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) Returns whetherstackcan be inserted toslot.booleanScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) Returns whetherstackcan be inserted toslot.booleanSmithingScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) Returns whetherstackcan be inserted toslot.booleanStonecutterScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) Returns whetherstackcan be inserted toslot.static booleanScreenHandler.canInsertItemIntoSlot(@Nullable Slot slot, ItemStack stack, boolean allowOverflow) private voidScreenHandler.checkSlotUpdates(int slot, ItemStack stack, Supplier<ItemStack> copySupplier) private List<EnchantmentLevelEntry>EnchantmentScreenHandler.generateEnchantments(ItemStack stack, int slot, int level) private List<RegistryEntry<BannerPattern>>LoomScreenHandler.getPatternsFor(ItemStack stack) SmithingScreenHandler.getQuickMoveSlot(SmithingRecipe recipe, ItemStack stack) intForgingScreenHandler.getSlotFor(ItemStack stack) intSmithingScreenHandler.getSlotFor(ItemStack stack) private ItemStackprivate booleanScreenHandler.handleSlotClick(PlayerEntity player, ClickType clickType, Slot slot, ItemStack stack, ItemStack cursorStack) protected booleanScreenHandler.insertItem(ItemStack stack, int startIndex, int endIndex, boolean fromLast) Tries to consumestackby inserting to slots fromstartIndextoendIndex - 1(both inclusive) until the entire stack is used.protected booleanprotected booleanAbstractFurnaceScreenHandler.isSmeltable(ItemStack itemStack) protected booleanForgingScreenHandler.isValidIngredient(ItemStack stack) booleanSmithingScreenHandler.isValidIngredient(ItemStack stack) static booleanstatic boolean(package private) static voidPlayerScreenHandler.onEquipStack(PlayerEntity player, EquipmentSlot slot, ItemStack newStack, ItemStack currentStack) voidScreenHandlerListener.onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack) voidBrewingStandScreenHandler.PotionSlot.onTakeItem(PlayerEntity player, ItemStack stack) protected voidAnvilScreenHandler.onTakeOutput(PlayerEntity player, ItemStack stack) protected abstract voidForgingScreenHandler.onTakeOutput(PlayerEntity player, ItemStack stack) protected voidSmithingScreenHandler.onTakeOutput(PlayerEntity player, ItemStack stack) voidScreenHandler.setCursorStack(ItemStack stack) voidScreenHandler.setPreviousCursorStack(ItemStack stack) voidScreenHandler.setPreviousTrackedSlot(int slot, ItemStack stack) voidScreenHandler.setPreviousTrackedSlotMutable(int slot, ItemStack stack) voidScreenHandler.setStackInSlot(int slot, int revision, ItemStack stack) private ItemStackGrindstoneScreenHandler.transferEnchantments(ItemStack target, ItemStack source) voidScreenHandlerSyncHandler.updateCursorStack(ScreenHandler handler, ItemStack stack) private voidStonecutterScreenHandler.updateInput(Inventory input, ItemStack stack) private voidCartographyTableScreenHandler.updateResult(ItemStack map, ItemStack item, ItemStack oldResult) voidScreenHandlerSyncHandler.updateSlot(ScreenHandler handler, int slot, ItemStack stack) voidScreenHandler.updateSlotStacks(int revision, List<ItemStack> stacks, ItemStack cursorStack) voidScreenHandlerSyncHandler.updateState(ScreenHandler handler, DefaultedList<ItemStack> stacks, ItemStack cursorStack, int[] properties) private voidScreenHandler.updateTrackedSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier) Method parameters in net.minecraft.screen with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate voidScreenHandler.checkSlotUpdates(int slot, ItemStack stack, Supplier<ItemStack> copySupplier) voidScreenHandler.updateSlotStacks(int revision, List<ItemStack> stacks, ItemStack cursorStack) voidScreenHandlerSyncHandler.updateState(ScreenHandler handler, DefaultedList<ItemStack> stacks, ItemStack cursorStack, int[] properties) private voidScreenHandler.updateTrackedSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier) -
Uses of ItemStack in net.minecraft.screen.slot
Fields in net.minecraft.screen.slot with type parameters of type ItemStackModifier and TypeFieldDescriptionForgingSlotsManager.ForgingSlot.mayPlaceThe field for themayPlacerecord component.Methods in net.minecraft.screen.slot that return ItemStackModifier and TypeMethodDescriptionSlot.getStack()Slot.insertStack(ItemStack stack) Slot.insertStack(ItemStack stack, int count) CraftingResultSlot.takeStack(int amount) FurnaceOutputSlot.takeStack(int amount) Slot.takeStack(int amount) TradeOutputSlot.takeStack(int amount) Slot.takeStackRange(int min, int max, PlayerEntity player) Methods in net.minecraft.screen.slot that return types with arguments of type ItemStackModifier and TypeMethodDescriptionForgingSlotsManager.ForgingSlot.mayPlace()Returns the value of themayPlacerecord component.Slot.tryTakeStackRange(int min, int max, PlayerEntity player) Methods in net.minecraft.screen.slot with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanintFurnaceFuelSlot.getMaxItemCount(ItemStack stack) intSlot.getMaxItemCount(ItemStack stack) Slot.insertStack(ItemStack stack) Slot.insertStack(ItemStack stack, int count) static booleanprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidvoidSlot.onQuickTransfer(ItemStack newItem, ItemStack original) voidCraftingResultSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidFurnaceOutputSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidTradeOutputSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidSets the slot's stack tostackand marks the slot as dirty.voidSlot.setStackNoCallbacks(ItemStack stack) Method parameters in net.minecraft.screen.slot with type arguments of type ItemStackModifier and TypeMethodDescriptionConstructor parameters in net.minecraft.screen.slot with type arguments of type ItemStackModifierConstructorDescriptionForgingSlot(int int2, int int3, int int4, Predicate<ItemStack> predicate) -
Uses of ItemStack in net.minecraft.server.command
Methods in net.minecraft.server.command that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackLootCommand.getHeldItem(ServerCommandSource source, EquipmentSlot slot) private static ItemStackItemCommand.getStackInSlot(Entity entity, int slotId) private static ItemStackItemCommand.getStackInSlotFromInventoryAt(ServerCommandSource source, BlockPos pos, int slotId) private static ItemStackItemCommand.getStackWithModifier(ServerCommandSource source, LootFunction modifier, ItemStack stack) Methods in net.minecraft.server.command with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static intItemCommand.executeBlockReplace(ServerCommandSource source, BlockPos pos, int slot, ItemStack stack) private static intItemCommand.executeEntityReplace(ServerCommandSource source, Collection<? extends Entity> targets, int slot, ItemStack stack) private static intLootCommand.executeFish(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, BlockPos pos, ItemStack stack, LootCommand.Target constructor) private static intLootCommand.executeMine(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BlockPos pos, ItemStack stack, LootCommand.Target constructor) private static ItemStackItemCommand.getStackWithModifier(ServerCommandSource source, LootFunction modifier, ItemStack stack) private static booleanprivate static booleanLootCommand.itemsMatch(ItemStack first, ItemStack second) Method parameters in net.minecraft.server.command with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidintLootCommand.Target.accept(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, List<ItemStack> items, LootCommand.FeedbackMessage messageSender) private static intClearCommand.execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Predicate<ItemStack> item, int maxCount) private static intLootCommand.executeBlock(ServerCommandSource source, BlockPos targetPos, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static intLootCommand.executeGive(Collection<ServerPlayerEntity> players, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static intLootCommand.executeInsert(ServerCommandSource source, BlockPos targetPos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static intLootCommand.executeReplace(Collection<? extends Entity> targets, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static intLootCommand.executeSpawn(ServerCommandSource source, Vec3d pos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static voidLootCommand.replace(Entity entity, List<ItemStack> stacks, int slot, int stackCount, List<ItemStack> addedStacks) private static voidLootCommand.sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks) private static voidLootCommand.sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks, Identifier lootTable) -
Uses of ItemStack in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type ItemStackModifier and TypeMethodDescriptionvoidServerPlayerEntity.applyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels) private static booleanServerPlayNetworkHandler.canPlace(ServerPlayerEntity player, ItemStack stack) Checks if a player can place a block or fluid from a bucket.DemoServerPlayerInteractionManager.interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) ServerPlayerInteractionManager.interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) DemoServerPlayerInteractionManager.interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) ServerPlayerInteractionManager.interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) private voidServerPlayNetworkHandler.setTextToBook(List<FilteredMessage> messages, UnaryOperator<String> postProcessor, ItemStack book) protected voidServerPlayerEntity.tickItemStackUsage(ItemStack stack) voidCalled when the player uses (defaults to right click) a writable or written book item.Method parameters in net.minecraft.server.network with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidServerPlayerEntity.unlockCraftedRecipe(Recipe<?> recipe, List<ItemStack> ingredients) -
Uses of ItemStack in net.minecraft.test
Methods in net.minecraft.test that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackStructureTestListener.createBookWithText(String text, boolean required, String output) Methods in net.minecraft.test with parameters of type ItemStackModifier and TypeMethodDescriptionvoidTestContext.useStackOnBlock(PlayerEntity player, ItemStack stack, BlockPos pos, Direction direction) -
Uses of ItemStack in net.minecraft.text
Fields in net.minecraft.text declared as ItemStackMethods in net.minecraft.text that return ItemStackConstructors in net.minecraft.text with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.util
Methods in net.minecraft.util with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidSpawns an item entity ofstackaround the given position.Method parameters in net.minecraft.util with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic voidItemScatterer.spawn(World world, BlockPos pos, DefaultedList<ItemStack> stacks) Spawns item entities fromstacksaroundpos. -
Uses of ItemStack in net.minecraft.village
Fields in net.minecraft.village declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackTradeOffer.firstBuyItemprivate final ItemStackTradeOffers.ProcessItemFactory.secondBuyprivate final ItemStackTradeOffer.secondBuyItemprivate final ItemStackTradeOffers.ProcessItemFactory.sellprivate final ItemStackTradeOffers.SellItemFactory.sellprivate final ItemStackTradeOffers.SellPotionHoldingItemFactory.sellprivate final ItemStackTradeOffer.sellItemprivate final ItemStackTradeOffers.SellEnchantedToolFactory.toolFields in net.minecraft.village with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>MerchantInventory.inventoryMethods in net.minecraft.village that return ItemStackModifier and TypeMethodDescriptionTradeOffer.copySellItem()Returns a copy of the sell item of this trade offer.TradeOffer.getAdjustedFirstBuyItem()Returns a copy of the first buy item of this trade offer, with its price adjusted depending on the demand bonus, the special price and the price multiplier.TradeOffer.getOriginalFirstBuyItem()Returns the first buy item of this trade offer.TradeOffer.getSecondBuyItem()Returns the second buy item of this trade offer.TradeOffer.getSellItem()Returns the sell item of this trade offer.MerchantInventory.getStack(int slot) Fetches the stack currently stored at the given slot.MerchantInventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.MerchantInventory.removeStack(int slot, int amount) Removes a specific number of items from the given slot.Methods in net.minecraft.village with parameters of type ItemStackModifier and TypeMethodDescriptionprivate booleanTradeOffer.acceptsBuy(ItemStack given, ItemStack sample) booleanTradeOffer.depleteBuyItems(ItemStack firstBuyStack, ItemStack secondBuyStack) TradeOfferList.getValidOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, int index) booleanTradeOffer.matchesBuyItems(ItemStack first, ItemStack second) voidMerchant.onSellingItem(ItemStack stack) voidSimpleMerchant.onSellingItem(ItemStack stack) voidConstructors in net.minecraft.village with parameters of type ItemStackModifierConstructorDescriptionSellItemFactory(ItemStack itemStack, int price, int count, int maxUses, int experience) SellItemFactory(ItemStack stack, int price, int count, int maxUses, int experience, float multiplier) TradeOffer(ItemStack buyItem, ItemStack sellItem, int maxUses, int merchantExperience, float priceMultiplier) TradeOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int maxUses, int merchantExperience, float priceMultiplier) TradeOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int uses, int maxUses, int merchantExperience, float priceMultiplier) TradeOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int uses, int maxUses, int merchantExperience, float priceMultiplier, int demandBonus) -
Uses of ItemStack in net.minecraft.village.raid
Methods in net.minecraft.village.raid that return ItemStack -
Uses of ItemStack in net.minecraft.world.explosion
Methods in net.minecraft.world.explosion with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static voidExplosion.tryMergeStack(ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> stacks, ItemStack stack, BlockPos pos) Method parameters in net.minecraft.world.explosion with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate static voidExplosion.tryMergeStack(ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> stacks, ItemStack stack, BlockPos pos)
AbstractBlock.AbstractBlockState.getDroppedStacks(net.minecraft.class_8567.class_8568)instead.