Uses of Class
net.minecraft.item.ItemStack
Packages that use ItemStack
Package
Description
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.advancement
Fields in net.minecraft.advancement declared as ItemStackMethods in net.minecraft.advancement that return ItemStackMethods 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, Optional<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 rodStack, LootContext hookedEntity, Collection<ItemStack> fishingLoots) booleanInventoryChangedCriterion.Conditions.matches(PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied) booleanbooleanbooleanbooleanVillagerTradeCriterion.Conditions.matches(LootContext villager, ItemStack stack) booleanBeeNestDestroyedCriterion.Conditions.test(BlockState state, ItemStack stack, int count) booleanPlayerInteractedWithEntityCriterion.Conditions.test(ItemStack stack, LootContext entity) booleanThrownItemPickedUpByEntityCriterion.Conditions.test(ServerPlayerEntity player, ItemStack stack, LootContext entity) booleanvoidAnyBlockUseCriterion.trigger(ServerPlayerEntity player, BlockPos pos, ItemStack stack) voidBeeNestDestroyedCriterion.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 rodStack, LootContext hookedEntity, 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(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.AbstractPlantBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.AttachedStemBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.BambooShootBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.BigDripleafStemBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.Block.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.CandleCakeBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.CaveVinesBodyBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.CaveVinesHeadBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.CropBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.DecoratedPotBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.EndGatewayBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.EndPortalBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.FlowerPotBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.FrostedIceBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.LightBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.NetherPortalBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.NetherWartBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.PistonExtensionBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.PistonHeadBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.ShulkerBoxBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.StemBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.SweetBerryBushBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.TallSeagrassBlock.getPickStack(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.BarrierBlock.tryDrainFluid(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) BubbleColumnBlock.tryDrainFluid(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) FluidBlock.tryDrainFluid(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) FluidDrainable.tryDrainFluid(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) PowderSnowBlock.tryDrainFluid(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) default ItemStackWaterloggable.tryDrainFluid(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) Methods in net.minecraft.block that return types with arguments of type ItemStackModifier and TypeMethodDescriptionAbstractBlock.AbstractBlockState.getDroppedStacks(LootContextParameterSet.Builder builder) AbstractBlock.getDroppedStacks(BlockState state, LootContextParameterSet.Builder builder) Returns the block's dropped item stacks.BeehiveBlock.getDroppedStacks(BlockState state, LootContextParameterSet.Builder 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, LootContextParameterSet.Builder builder) Returns the block's dropped item stacks.FluidBlock.getDroppedStacks(BlockState state, LootContextParameterSet.Builder builder) Returns the block's dropped item stacks.PistonExtensionBlock.getDroppedStacks(BlockState state, LootContextParameterSet.Builder builder) Returns the block's dropped item stacks.ShulkerBoxBlock.getDroppedStacks(BlockState state, LootContextParameterSet.Builder 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, Item.TooltipContext context, List<Text> tooltip, TooltipType options) Appends tooltips to a stack of this block's corresponding block item.voidDecoratedPotBlock.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType options) Appends tooltips to a stack of this block's corresponding block item.voidShulkerBoxBlock.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType options) Appends tooltips to a stack of this block's corresponding block item.voidSpawnerBlock.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType options) Appends tooltips to a stack of this block's corresponding block item.voidTrialSpawnerBlock.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType 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) Returns 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) Returns 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) Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanReturns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanReturns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanReturns 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, @Nullable Entity entity, ItemStack tool) protected DispenserBehaviorDispenserBlock.getBehaviorForItem(World world, ItemStack stack) protected DispenserBehaviorDropperBlock.getBehaviorForItem(World world, ItemStack stack) Block.getDroppedStacks(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack stack) private static booleanRespawnAnchorBlock.isChargeItem(ItemStack stack) voidAbstractRedstoneGateBlock.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.voidCommandBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Called when the player placed the block.voidCrafterBlock.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.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.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.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) protected voidAbstractBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.protected voidExperienceDroppingBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.protected voidInfestedBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.protected voidRedstoneOreBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.protected voidSculkCatalystBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.protected voidSculkSensorBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.protected voidSculkShriekerBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.protected voidSpawnerBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience) Called server-side when the stacks are dropped by mining or explosion.AbstractBlock.AbstractBlockState.onUseWithItem(ItemStack stack, World world, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultAbstractBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultAbstractCauldronBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultAbstractSignBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultBeehiveBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCakeBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCampfireBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCandleBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCandleCakeBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultChiseledBookshelfBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultComposterBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultDecoratedPotBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultFenceBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultFlowerPotBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultHangingSignBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultJukeboxBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultLecternBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultNoteBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultPumpkinBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultRedstoneOreBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultRespawnAnchorBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultSweetBerryBushBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultTntBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) VaultBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultWallHangingSignBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) private static voidLecternBlock.putBook(@Nullable LivingEntity user, World world, BlockPos pos, BlockState state, ItemStack stack) static booleanLecternBlock.putBookIfAbsent(@Nullable LivingEntity 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 voidCrafterBlock.transferOrSpawnStack(ServerWorld world, BlockPos pos, CrafterBlockEntity blockEntity, ItemStack stack, BlockState state, RecipeEntry<CraftingRecipe> recipe) private static voidChiseledBookshelfBlock.tryAddBook(World world, BlockPos pos, PlayerEntity player, ChiseledBookshelfBlockEntity blockEntity, ItemStack stack, int slot) Method parameters in net.minecraft.block with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidAbstractBlock.AbstractBlockState.onExploded(World world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidAbstractBlock.onExploded(BlockState state, World world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidAbstractCandleBlock.onExploded(BlockState state, World world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidBellBlock.onExploded(BlockState state, World world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidButtonBlock.onExploded(BlockState state, World world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidDoorBlock.onExploded(BlockState state, World world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidFenceGateBlock.onExploded(BlockState state, World world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidLeverBlock.onExploded(BlockState state, World world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidTrapdoorBlock.onExploded(BlockState state, World world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) 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 ItemActionResultCauldronBehavior.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 ItemActionResultCauldronBehavior.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 TypeMethodDescriptionprotected ItemStackItemDispenserBehavior.decrementStackWithRemainder(BlockPointer pointer, ItemStack stack, ItemStack remainder) 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) Methods in net.minecraft.block.dispenser with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidItemDispenserBehavior.addStackOrSpawn(BlockPointer pointer, ItemStack stack) protected ItemStackItemDispenserBehavior.decrementStackWithRemainder(BlockPointer pointer, ItemStack stack, ItemStack remainder) 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.itemprivate ItemStackJukeboxBlockEntity.recordStackprivate ItemStackDecoratedPotBlockEntity.stackFields in net.minecraft.block.entity with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate DefaultedList<ItemStack> CrafterBlockEntity.inputStacksprotected 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 DefaultedList<ItemStack> ShulkerBoxBlockEntity.inventoryprivate final DefaultedList<ItemStack> CampfireBlockEntity.itemsBeingCookedMethods in net.minecraft.block.entity that return ItemStackModifier and TypeMethodDescriptionDispenserBlockEntity.addToFirstFreeSlot(ItemStack stack) DecoratedPotBlockEntity.asStack()DecoratedPotBlockEntity.decreaseStack(int count) JukeboxBlockEntity.decreaseStack(int count) private static ItemStackVaultBlockEntity.Server.generateDisplayItem(ServerWorld world, BlockPos pos, RegistryKey<LootTable> lootTable) LecternBlockEntity.getBook()BrushableBlockEntity.getItem()BannerBlockEntity.getPickStack()ChiseledBookshelfBlockEntity.getStack(int slot) Returns the stack currently stored atslot.CrafterBlockEntity.getStack(int slot) Returns the stack currently stored atslot.DecoratedPotBlockEntity.getStack()JukeboxBlockEntity.getStack()LockableContainerBlockEntity.getStack(int slot) Returns the stack currently stored atslot.LootableContainerBlockEntity.getStack(int slot) Returns the stack currently stored atslot.static ItemStackDecoratedPotBlockEntity.getStackWith(Sherds sherds) ChiseledBookshelfBlockEntity.removeStack(int slot) Removes the stack currently stored atslot.ChiseledBookshelfBlockEntity.removeStack(int slot, int amount) Removes a specific number of items fromslot.HopperBlockEntity.removeStack(int slot, int amount) Removes a specific number of items fromslot.LockableContainerBlockEntity.removeStack(int slot) Removes the stack currently stored atslot.LockableContainerBlockEntity.removeStack(int slot, int amount) Removes a specific number of items fromslot.LootableContainerBlockEntity.removeStack(int slot) Removes the stack currently stored atslot.LootableContainerBlockEntity.removeStack(int slot, int amount) Removes a specific number of items fromslot.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 TypeMethodDescriptionVaultBlockEntity.Server.generateLoot(ServerWorld world, VaultConfig config, BlockPos pos, PlayerEntity player) protected DefaultedList<ItemStack> AbstractFurnaceBlockEntity.getHeldStacks()protected DefaultedList<ItemStack> BarrelBlockEntity.getHeldStacks()protected DefaultedList<ItemStack> BrewingStandBlockEntity.getHeldStacks()protected DefaultedList<ItemStack> ChestBlockEntity.getHeldStacks()CrafterBlockEntity.getHeldStacks()protected DefaultedList<ItemStack> DispenserBlockEntity.getHeldStacks()protected DefaultedList<ItemStack> HopperBlockEntity.getHeldStacks()protected abstract DefaultedList<ItemStack> LockableContainerBlockEntity.getHeldStacks()protected DefaultedList<ItemStack> ShulkerBoxBlockEntity.getHeldStacks()CampfireBlockEntity.getItemsBeingCooked()Methods in net.minecraft.block.entity with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanCampfireBlockEntity.addItem(@Nullable LivingEntity user, ItemStack stack, int cookTime) DispenserBlockEntity.addToFirstFreeSlot(ItemStack stack) static voidSpawner.appendSpawnDataToTooltip(ItemStack stack, List<Text> tooltip, String spawnDataKey) private booleanCrafterBlockEntity.betterSlotExists(int count, ItemStack stack, int slot) booleanAbstractFurnaceBlockEntity.canExtract(int slot, ItemStack stack, Direction dir) Returns 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) Returns 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) Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanReturns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanReturns 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) booleanReturns 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) Returns whether a hopper can transferstackfromslotto the hopper.booleanJukeboxBlockEntity.canTransferTo(Inventory hopperInventory, int slot, ItemStack stack) Returns whether a hopper can transferstackfromslotto the hopper.static booleanAbstractFurnaceBlockEntity.canUseAsFuel(ItemStack stack) protected intAbstractFurnaceBlockEntity.getFuelTime(ItemStack fuel) protected intBlastFurnaceBlockEntity.getFuelTime(ItemStack fuel) protected intSmokerBlockEntity.getFuelTime(ItemStack fuel) private static intLecternBlockEntity.getPageCount(ItemStack stack) CampfireBlockEntity.getRecipeFor(ItemStack stack) Spawner.getSpawnedEntityText(ItemStack stack, String spawnDataKey) booleanReturns whetherstackis valid for theslot.booleanReturns whetherstackis valid for theslot.booleanReturns whetherstackis valid for theslot.booleanReturns whetherstackis valid for theslot.booleanReturns whetherstackis valid for theslot.private static booleanVaultBlockEntity.Server.isValidKey(VaultConfig config, ItemStack stack) final voidBlockEntity.readComponents(ItemStack stack) voidvoidprivate ItemStackLecternBlockEntity.resolveBook(ItemStack book, @Nullable PlayerEntity player) voidvoidLecternBlockEntity.setBook(ItemStack book, @Nullable PlayerEntity player) voidvoidSets the stack stored atslottostack.voidSets the stack stored atslottostack.voidSets the stack stored atslottostack.voidvoidSets the stack stored atslottostack.voidvoidSets the stack stored atslottostack.voidSets the stack stored atslottostack.voidBlockEntity.setStackNbt(ItemStack stack, RegistryWrapper.WrapperLookup registries) 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) static voidVaultBlockEntity.Server.tryUnlock(ServerWorld world, BlockPos pos, BlockState state, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, PlayerEntity player, ItemStack stack) Method parameters in net.minecraft.block.entity with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate static booleanAbstractFurnaceBlockEntity.canAcceptRecipeOutput(DynamicRegistryManager registryManager, @Nullable RecipeEntry<?> recipe, DefaultedList<ItemStack> slots, int count) private static booleanBrewingStandBlockEntity.canCraft(BrewingRecipeRegistry brewingRecipeRegistry, DefaultedList<ItemStack> slots) private static voidBrewingStandBlockEntity.craft(World world, BlockPos pos, DefaultedList<ItemStack> slots) private static booleanAbstractFurnaceBlockEntity.craftRecipe(DynamicRegistryManager registryManager, @Nullable RecipeEntry<?> recipe, DefaultedList<ItemStack> slots, int count) protected voidAbstractFurnaceBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected voidBarrelBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected voidBrewingStandBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected voidChestBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected voidCrafterBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected voidDispenserBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected voidHopperBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected abstract voidLockableContainerBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) protected voidShulkerBoxBlockEntity.setHeldStacks(DefaultedList<ItemStack> inventory) private static voidVaultBlockEntity.Server.unlock(ServerWorld world, BlockState state, BlockPos pos, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, List<ItemStack> itemsToEject) voidAbstractFurnaceBlockEntity.unlockLastRecipe(PlayerEntity player, List<ItemStack> ingredients) -
Uses of ItemStack in net.minecraft.block.enums
Methods in net.minecraft.block.enums with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidVaultState.ejectItem(ServerWorld world, BlockPos pos, ItemStack stack, float pitchModifier) -
Uses of ItemStack in net.minecraft.block.jukebox
Methods in net.minecraft.block.jukebox with parameters of type ItemStackModifier and TypeMethodDescriptionstatic Optional<RegistryEntry<JukeboxSong>> JukeboxSong.getSongEntryFromStack(RegistryWrapper.WrapperLookup registryLookup, ItemStack stack) -
Uses of ItemStack in net.minecraft.block.spawner
Fields in net.minecraft.block.spawner with type parameters of type ItemStackMethods in net.minecraft.block.spawner that return types with arguments of type ItemStackModifier and TypeMethodDescriptionTrialSpawnerData.getItemsToDropWhenOminous(ServerWorld world, TrialSpawnerConfig config, BlockPos pos) -
Uses of ItemStack in net.minecraft.block.vault
Fields in net.minecraft.block.vault declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackVaultSharedData.displayItemprivate final ItemStackVaultConfig.keyItemThe field for thekeyItemrecord component.Fields in net.minecraft.block.vault with type parameters of type ItemStackMethods in net.minecraft.block.vault that return ItemStackModifier and TypeMethodDescriptionVaultSharedData.getDisplayItem()(package private) ItemStackVaultServerData.getItemToDisplay()(package private) ItemStackVaultServerData.getItemToEject()VaultConfig.keyItem()Returns the value of thekeyItemrecord component.Methods in net.minecraft.block.vault that return types with arguments of type ItemStackMethods in net.minecraft.block.vault with parameters of type ItemStackMethod parameters in net.minecraft.block.vault with type arguments of type ItemStackModifier and TypeMethodDescription(package private) voidVaultServerData.setItemsToEject(List<ItemStack> itemsToEject) Constructors in net.minecraft.block.vault with parameters of type ItemStackModifierConstructorDescriptionVaultConfig(RegistryKey<LootTable> lootTable, double activationRange, double deactivationRange, ItemStack keyItem, Optional<RegistryKey<LootTable>> overrideLootTableToDisplay) VaultConfig(RegistryKey<LootTable> registryKey, double double2, double double3, ItemStack itemStack, Optional<RegistryKey<LootTable>> optional, EntityDetector entityDetector, EntityDetector.Selector selector) (package private)VaultSharedData(ItemStack displayItem, Set<UUID> connectedPlayers, double connectedParticlesRange) Constructor parameters in net.minecraft.block.vault with type arguments of type ItemStackModifierConstructorDescription(package private)VaultServerData(Set<UUID> rewardedPlayers, long stateUpdatingResumesAt, List<ItemStack> itemsToEject, int totalEjectionsNeeded) -
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, DynamicRegistryManager registryManager) -
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 TypeMethodDescriptionprivate voidDrawContext.drawItem(@Nullable LivingEntity entity, @Nullable World world, ItemStack stack, int x, int y, int seed) private voidDrawContext.drawItem(@Nullable LivingEntity entity, @Nullable World world, ItemStack stack, int x, int y, int seed, int z) voidDrawContext.drawItem(LivingEntity entity, ItemStack stack, int x, int y, int seed) voidvoidvoidvoidDrawContext.drawItemInSlot(TextRenderer textRenderer, ItemStack stack, int x, int y) voidDrawContext.drawItemInSlot(TextRenderer textRenderer, ItemStack stack, int x, int y, @Nullable String countOverride) voidDrawContext.drawItemTooltip(TextRenderer textRenderer, ItemStack stack, int x, int y) voidDrawContext.drawItemWithoutEntity(ItemStack stack, int x, int y) voidDrawContext.drawItemWithoutEntity(ItemStack stack, int x, int y, int seed) -
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, RenderTickCounter tickCounter, 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 with parameters of type ItemStackModifier and TypeMethodDescriptionScreen.getTooltipFromItem(MinecraftClient client, ItemStack stack) 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 @Nullable 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) -
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.screen.world
Methods in net.minecraft.client.gui.screen.world that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackCustomizeFlatLevelScreen.SuperflatLayersListWidget.SuperflatLayerEntry.createItemStackFor(BlockState state) Methods in net.minecraft.client.gui.screen.world with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidCustomizeFlatLevelScreen.SuperflatLayersListWidget.SuperflatLayerEntry.renderIcon(DrawContext context, int x, int y, ItemStack iconItem) -
Uses of ItemStack in net.minecraft.client.item
Methods 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.static @Nullable ModelPredicateProviderModelPredicateProviderRegistry.get(ItemStack stack, Identifier id) 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) -
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
Methods in net.minecraft.client.option that return types with arguments of type ItemStackModifier and TypeMethodDescriptionHotbarStorageEntry.deserialize(RegistryWrapper.WrapperLookup registryLookup) -
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.block.entity
Methods in net.minecraft.client.render.block.entity with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidVaultBlockEntityRenderer.renderDisplayItem(float tickDelta, World world, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, ItemStack stack, ItemRenderer itemRenderer, float prevRotation, float rotation, Random random) -
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) static intstatic voidItemEntityRenderer.renderStack(ItemRenderer itemRenderer, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, ItemStack stack, BakedModel model, boolean depth, Random random) static voidItemEntityRenderer.renderStack(ItemRenderer itemRenderer, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, ItemStack stack, Random random, World world) -
Uses of ItemStack in net.minecraft.client.render.entity.feature
Methods in net.minecraft.client.render.entity.feature with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidWolfArmorFeatureRenderer.renderCracks(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, ItemStack stack) private voidWolfArmorFeatureRenderer.renderDyed(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, ItemStack stack, AnimalArmorItem item) protected 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, PlayerEntity player, float equipProgress) private voidHeldItemRenderer.applyEatOrDrinkTransformation(MatrixStack matrices, float tickDelta, Arm arm, ItemStack stack, PlayerEntity player) 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 TypeFieldDescriptionprivate CompletableFuture<SearchProvider<ItemStack>> SearchManager.itemTagReloadFutureprivate CompletableFuture<SearchProvider<ItemStack>> SearchManager.itemTooltipReloadFutureMethods in net.minecraft.client.search that return types with arguments of type ItemStackModifier and TypeMethodDescriptionSearchManager.getItemTagReloadFuture()SearchManager.getItemTooltipReloadFuture()Method parameters in net.minecraft.client.search with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidSearchManager.addItemTagReloader(List<ItemStack> stacks) voidSearchManager.addItemTooltipReloader(RegistryWrapper.WrapperLookup registryLookup, List<ItemStack> stacks) SearchManager.collectItemTooltips(Stream<ItemStack> stacks, Item.TooltipContext context, TooltipType type) -
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
Fields in net.minecraft.command.argument with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final ArgumentParser<List<Predicate<ItemStack>>> ItemPredicateArgumentType.parserItemPredicateArgumentType.ComponentCheck.presenceCheckerThe field for thepresenceCheckerrecord component.ItemPredicateArgumentType.SubPredicateCheck.typeThe field for thetyperecord component.ItemPredicateArgumentType.ComponentCheck.valueCheckerThe field for thevalueCheckerrecord component.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.Context.componentMatchPredicate(com.mojang.brigadier.ImmutableStringReader immutableStringReader, ItemPredicateArgumentType.ComponentCheck componentCheck, NbtElement nbtElement) ItemPredicateArgumentType.Context.componentPresencePredicate(com.mojang.brigadier.ImmutableStringReader immutableStringReader, ItemPredicateArgumentType.ComponentCheck componentCheck) ItemPredicateArgumentType.ComponentCheck.createPredicate(com.mojang.brigadier.ImmutableStringReader reader, RegistryOps<NbtElement> ops, NbtElement nbt) ItemPredicateArgumentType.SubPredicateCheck.createPredicate(com.mojang.brigadier.ImmutableStringReader reader, RegistryOps<NbtElement> ops, NbtElement nbt) ItemPredicateArgumentType.Context.itemMatchPredicate(com.mojang.brigadier.ImmutableStringReader immutableStringReader, Identifier identifier) ItemPredicateArgumentType.ComponentCheck.presenceChecker()Returns the value of thepresenceCheckerrecord component.ItemPredicateArgumentType.Context.subPredicatePredicate(com.mojang.brigadier.ImmutableStringReader immutableStringReader, ItemPredicateArgumentType.SubPredicateCheck subPredicateCheck, NbtElement nbtElement) ItemPredicateArgumentType.Context.tagMatchPredicate(com.mojang.brigadier.ImmutableStringReader immutableStringReader, Identifier identifier) ItemPredicateArgumentType.SubPredicateCheck.type()Returns the value of thetyperecord component.ItemPredicateArgumentType.ComponentCheck.valueChecker()Returns the value of thevalueCheckerrecord component.Method parameters in net.minecraft.command.argument with type arguments of type ItemStackModifier and TypeMethodDescriptionConstructor parameters in net.minecraft.command.argument with type arguments of type ItemStackModifierConstructorDescription(package private)ComponentCheck(Identifier identifier, Predicate<ItemStack> predicate, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> decoder) (package private)ComponentCheck(Identifier identifier, Predicate<ItemStack> predicate, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> decoder) (package private)SubPredicateCheck(Identifier identifier, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> decoder) -
Uses of ItemStack in net.minecraft.component.type
Fields in net.minecraft.component.type declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackContainerComponent.Slot.itemThe field for theitemrecord component.Fields in net.minecraft.component.type with type parameters of type ItemStackModifier and TypeFieldDescriptionChargedProjectilesComponent.projectilesBundleContentsComponent.Builder.stacksBundleContentsComponent.stacksprivate final DefaultedList<ItemStack> ContainerComponent.stacksFoodComponent.Builder.usingConvertsToFoodComponent.usingConvertsToThe field for theusingConvertsTorecord component.Methods in net.minecraft.component.type that return ItemStackModifier and TypeMethodDescriptionContainerComponent.copyFirstStack()static ItemStackPotionContentsComponent.createStack(Item item, RegistryEntry<Potion> potion) BundleContentsComponent.get(int index) ContainerComponent.Slot.item()Returns the value of theitemrecord component.BundleContentsComponent.Builder.removeFirst()static ItemStackMethods in net.minecraft.component.type that return types with arguments of type ItemStackModifier and TypeMethodDescriptionNbtComponent.createPredicate(ComponentType<NbtComponent> type, NbtCompound nbt) ChargedProjectilesComponent.getProjectiles()BundleContentsComponent.iterate()BundleContentsComponent.iterateCopy()ContainerComponent.iterateNonEmpty()ContainerComponent.iterateNonEmptyCopy()BundleContentsComponent.stream()ContainerComponent.stream()ContainerComponent.streamNonEmpty()FoodComponent.usingConvertsTo()Returns the value of theusingConvertsTorecord component.Methods in net.minecraft.component.type with parameters of type ItemStackModifier and TypeMethodDescriptionintprivate intBundleContentsComponent.Builder.addInternal(ItemStack stack) static intprivate intBundleContentsComponent.Builder.getMaxAllowed(ItemStack stack) (package private) static FractionBundleContentsComponent.getOccupancy(ItemStack stack) static ChargedProjectilesComponentstatic voidNbtComponent.set(ComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter) static voidNbtComponent.set(ComponentType<NbtComponent> type, ItemStack stack, NbtCompound nbt) static ItemStackstatic ItemActionResultJukeboxPlayableComponent.tryPlayStack(World world, BlockPos pos, ItemStack stack, PlayerEntity player) Method parameters in net.minecraft.component.type with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate static FractionBundleContentsComponent.calculateOccupancy(List<ItemStack> stacks) voidContainerComponent.copyTo(DefaultedList<ItemStack> stacks) private static intContainerComponent.findFirstNonEmptyIndex(List<ItemStack> stacks) static ContainerComponentContainerComponent.fromStacks(List<ItemStack> stacks) static ChargedProjectilesComponentConstructors in net.minecraft.component.type with parameters of type ItemStackConstructor parameters in net.minecraft.component.type with type arguments of type ItemStackModifierConstructorDescriptionBundleContentsComponent(List<ItemStack> stacks) (package private)BundleContentsComponent(List<ItemStack> stacks, Fraction occupancy) privateChargedProjectilesComponent(List<ItemStack> projectiles) privateContainerComponent(List<ItemStack> stacks) privateContainerComponent(DefaultedList<ItemStack> stacks) FoodComponent(int hunger, float saturationModifier, boolean meat, float float2, Optional<ItemStack> optional, List<FoodComponent.StatusEffectEntry> list) -
Uses of ItemStack in net.minecraft.enchantment
Fields in net.minecraft.enchantment declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackEnchantmentEffectContext.stackThe field for thestackrecord component.Methods in net.minecraft.enchantment that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackEnchantmentHelper.enchant(Random random, ItemStack stack, int level, Stream<RegistryEntry<Enchantment>> possibleEnchantments) Enchants thetargetitem stack and returns it.static ItemStackEnchantmentHelper.enchant(Random random, ItemStack stack, int level, DynamicRegistryManager dynamicRegistryManager, Optional<? extends RegistryEntryList<Enchantment>> enchantments) EnchantmentEffectContext.stack()Returns the value of thestackrecord component.Methods in net.minecraft.enchantment that return types with arguments of type ItemStackMethods in net.minecraft.enchantment with parameters of type ItemStackModifier and TypeMethodDescriptionstatic ItemEnchantmentsComponentEnchantmentHelper.apply(ItemStack stack, Consumer<ItemEnchantmentsComponent.Builder> applier) static voidEnchantmentHelper.applyAttributeModifiers(ItemStack stack, AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) static voidEnchantmentHelper.applyAttributeModifiers(ItemStack stack, EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) static voidEnchantmentHelper.applyEnchantmentProvider(ItemStack stack, DynamicRegistryManager registryManager, RegistryKey<EnchantmentProvider> providerKey, LocalDifficulty localDifficulty, Random random) static voidEnchantmentHelper.applyLocationBasedEffects(ServerWorld world, ItemStack stack, LivingEntity user, EquipmentSlot slot) static 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 booleanEnchantmentHelper.canHaveEnchantments(ItemStack stack) private static LootContextEnchantment.createEnchantedItemLootContext(ServerWorld world, int level, ItemStack stack) static ItemStackEnchantmentHelper.enchant(Random random, ItemStack stack, int level, Stream<RegistryEntry<Enchantment>> possibleEnchantments) Enchants thetargetitem stack and returns it.static ItemStackEnchantmentHelper.enchant(Random random, ItemStack stack, int level, DynamicRegistryManager dynamicRegistryManager, Optional<? extends RegistryEntryList<Enchantment>> enchantments) private static voidEnchantmentHelper.forEachEnchantment(ItemStack stack, EnchantmentHelper.Consumer consumer) private static voidEnchantmentHelper.forEachEnchantment(ItemStack stack, EquipmentSlot slot, LivingEntity entity, EnchantmentHelper.ContextAwareConsumer contextAwareConsumer) static List<EnchantmentLevelEntry> EnchantmentHelper.generateEnchantments(Random random, ItemStack stack, int level, Stream<RegistryEntry<Enchantment>> possibleEnchantments) Generate the enchantments for enchanting thestack.static intEnchantmentHelper.getAmmoUse(ServerWorld world, ItemStack rangedWeaponStack, ItemStack projectileStack, int baseAmmoUse) static floatEnchantmentHelper.getArmorEffectiveness(ServerWorld world, ItemStack stack, Entity user, DamageSource damageSource, float baseArmorEffectiveness) static intEnchantmentHelper.getBlockExperience(ServerWorld world, ItemStack stack, int baseBlockExperience) static floatEnchantmentHelper.getCrossbowChargeTime(ItemStack stack, LivingEntity user, float baseCrossbowChargeTime) static floatEnchantmentHelper.getDamage(ServerWorld world, ItemStack stack, Entity target, DamageSource damageSource, float baseDamage) static <T> Optional<T> EnchantmentHelper.getEffect(ItemStack stack, ComponentType<List<T>> componentType) EnchantmentHelper.getEffectListAndLevel(ItemStack stack, ComponentType<T> componentType) static ItemEnchantmentsComponentEnchantmentHelper.getEnchantments(ItemStack stack) private static ComponentType<ItemEnchantmentsComponent> EnchantmentHelper.getEnchantmentsComponentType(ItemStack stack) static intEnchantmentHelper.getFishingLuckBonus(ServerWorld world, ItemStack stack, Entity user) static floatEnchantmentHelper.getFishingTimeReduction(ServerWorld world, ItemStack stack, Entity user) static intEnchantmentHelper.getItemDamage(ServerWorld world, ItemStack stack, int baseItemDamage) static intEnchantmentHelper.getLevel(RegistryEntry<Enchantment> enchantment, ItemStack stack) Gets the level of an enchantment on an item stack.static List<EnchantmentLevelEntry> EnchantmentHelper.getPossibleEntries(int level, ItemStack stack, Stream<RegistryEntry<Enchantment>> possibleEnchantments) Gets all the possible entries for enchanting thestackat the givenpower.static intEnchantmentHelper.getProjectileCount(ServerWorld world, ItemStack stack, Entity user, int baseProjectileCount) static intEnchantmentHelper.getProjectilePiercing(ServerWorld world, ItemStack weaponStack, ItemStack projectileStack) static floatEnchantmentHelper.getProjectileSpread(ServerWorld world, ItemStack stack, Entity user, float baseProjectileSpread) static intEnchantmentHelper.getRepairWithXp(ServerWorld world, ItemStack stack, int baseRepairWithXp) static floatEnchantmentHelper.getSmashDamagePerFallenBlock(ServerWorld world, ItemStack stack, Entity target, DamageSource damageSource, float baseSmashDamagePerFallenBlock) static intEnchantmentHelper.getTridentReturnAcceleration(ServerWorld world, ItemStack stack, Entity user) static floatEnchantmentHelper.getTridentSpinAttackStrength(ItemStack stack, LivingEntity user) static booleanEnchantmentHelper.hasAnyEnchantmentsIn(ItemStack stack, TagKey<Enchantment> tag) static booleanEnchantmentHelper.hasAnyEnchantmentsWith(ItemStack stack, ComponentType<?> componentType) static booleanEnchantmentHelper.hasEnchantments(ItemStack stack) booleanEnchantment.isAcceptableItem(ItemStack stack) booleanEnchantment.isPrimaryItem(ItemStack stack) booleanEnchantment.isSupportedItem(ItemStack stack) voidEnchantment.modifyAmmoUse(ServerWorld world, int level, ItemStack projectileStack, MutableFloat ammoUse) voidEnchantment.modifyArmorEffectiveness(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat armorEffectiveness) voidEnchantment.modifyBlockExperience(ServerWorld world, int level, ItemStack stack, MutableFloat blockExperience) voidEnchantment.modifyDamage(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat damage) voidEnchantment.modifyDamageProtection(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat damageProtection) voidEnchantment.modifyFishingLuckBonus(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat fishingLuckBonus) voidEnchantment.modifyFishingTimeReduction(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat fishingTimeReduction) voidEnchantment.modifyItemDamage(ServerWorld world, int level, ItemStack stack, MutableFloat itemDamage) voidEnchantment.modifyKnockback(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat knockback) static floatEnchantmentHelper.modifyKnockback(ServerWorld world, ItemStack stack, Entity target, DamageSource damageSource, float baseKnockback) voidEnchantment.modifyMobExperience(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat mobExperience) voidEnchantment.modifyProjectileCount(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat projectileCount) voidEnchantment.modifyProjectilePiercing(ServerWorld world, int level, ItemStack stack, MutableFloat projectilePiercing) voidEnchantment.modifyProjectileSpread(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat projectileSpread) voidEnchantment.modifyRepairWithXp(ServerWorld world, int level, ItemStack stack, MutableFloat repairWithXp) voidEnchantment.modifySmashDamagePerFallenBlock(ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat smashDamagePerFallenBlock) voidEnchantment.modifyTridentReturnAcceleration(ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat tridentReturnAcceleration) private voidEnchantment.modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, Entity user, DamageSource damageSource, MutableFloat value) private voidEnchantment.modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, Entity user, MutableFloat value) private voidEnchantment.modifyValue(ComponentType<List<EnchantmentEffectEntry<EnchantmentValueEffect>>> type, ServerWorld world, int level, ItemStack stack, MutableFloat value) static voidEnchantmentHelper.onHitBlock(ServerWorld world, ItemStack stack, @Nullable LivingEntity user, Entity enchantedEntity, @Nullable EquipmentSlot slot, Vec3d pos, BlockState state, Consumer<Item> onBreak) static voidEnchantmentHelper.onProjectileSpawned(ServerWorld world, ItemStack weaponStack, PersistentProjectileEntity projectileEntity, Consumer<Item> onBreak) static voidEnchantmentHelper.onTargetDamaged(ServerWorld world, Entity target, DamageSource damageSource, @Nullable ItemStack weapon) static voidEnchantmentHelper.removeLocationBasedEffects(ItemStack stack, LivingEntity user, EquipmentSlot slot) static voidEnchantmentHelper.set(ItemStack stack, ItemEnchantmentsComponent enchantments) Method parameters in net.minecraft.enchantment with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic Optional<EnchantmentEffectContext> EnchantmentHelper.chooseEquipmentWith(ComponentType<?> componentType, LivingEntity entity, Predicate<ItemStack> stackPredicate) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.Constructors in net.minecraft.enchantment with parameters of type ItemStackModifierConstructorDescriptionEnchantmentEffectContext(ItemStack itemStack, @Nullable EquipmentSlot equipmentSlot, @Nullable LivingEntity livingEntity, Consumer<Item> consumer) EnchantmentEffectContext(ItemStack stack, EquipmentSlot slot, LivingEntity owner) -
Uses of ItemStack in net.minecraft.enchantment.provider
Methods in net.minecraft.enchantment.provider with parameters of type ItemStackModifier and TypeMethodDescriptionvoidByCostEnchantmentProvider.provideEnchantments(ItemStack stack, ItemEnchantmentsComponent.Builder componentBuilder, Random random, LocalDifficulty localDifficulty) voidByCostWithDifficultyEnchantmentProvider.provideEnchantments(ItemStack stack, ItemEnchantmentsComponent.Builder componentBuilder, Random random, LocalDifficulty localDifficulty) voidEnchantmentProvider.provideEnchantments(ItemStack stack, ItemEnchantmentsComponent.Builder componentBuilder, Random random, LocalDifficulty localDifficulty) voidSingleEnchantmentProvider.provideEnchantments(ItemStack stack, ItemEnchantmentsComponent.Builder componentBuilder, Random random, LocalDifficulty localDifficulty) -
Uses of ItemStack in net.minecraft.entity
Fields in net.minecraft.entity declared as ItemStackModifier and TypeFieldDescriptionprotected ItemStackLivingEntity.activeItemStackLivingEntity.riptideStackprivate ItemStackLivingEntity.syncedBodyArmorStackFields in net.minecraft.entity with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final TrackedData<ItemStack> EyeOfEnderEntity.ITEMprivate static final TrackedData<ItemStack> OminousItemSpawnerEntity.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.eatFood(World world, ItemStack stack, FoodComponent foodComponent) LivingEntity.getActiveItem()Bucketable.getBucketItem()EquipmentHolder.getEquippedStack(EquipmentSlot slot) abstract ItemStackLivingEntity.getEquippedStack(EquipmentSlot slot) private ItemStackEyeOfEnderEntity.getItem()OminousItemSpawnerEntity.getItem()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) Entity.getWeaponStack()LivingEntity.getWeaponStack()static ItemStackfinal ItemStackLivingEntity.tryEatFood(World world, ItemStack stack) Methods in net.minecraft.entity that return types with arguments of type ItemStackModifier and TypeMethodDescriptionLivingEntity.getAllArmorItems()LivingEntity.getArmorItems()private @Nullable Map<EquipmentSlot, ItemStack> LivingEntity.getEquipmentChanges()Returns the difference between the last sent equipment set and the current one.LivingEntity.getEquippedItems()LivingEntity.getHandItems()Methods in net.minecraft.entity with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanLivingEntity.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) static OminousItemSpawnerEntityEntityType.customNameCopier(Consumer<T> chained, ItemStack stack) Dropsstackat the entity's position.Dropsstackat the entity's position with the given Y offset.LivingEntity.eatFood(World world, ItemStack stack, FoodComponent foodComponent) voidEquipmentHolder.equipStack(EquipmentSlot slot, ItemStack stack) abstract voidLivingEntity.equipStack(EquipmentSlot slot, ItemStack stack) protected SoundEventLivingEntity.getDrinkSound(ItemStack stack) LivingEntity.getEatSound(ItemStack stack) LivingEntity.getPreferredEquipmentSlot(ItemStack stack) LivingEntity.getProjectileType(ItemStack stack) default @Nullable EquipmentSlotEquipmentHolder.getSlotForStack(ItemStack stack, List<EquipmentSlot> slotBlacklist) 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) voidSaddleable.saddle(ItemStack stack, @Nullable SoundCategory soundCategory) voidprivate 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) 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) final ItemStackLivingEntity.tryEatFood(World world, 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
Fields in net.minecraft.entity.ai.brain.sensor with type parameters of type ItemStackMethods in net.minecraft.entity.ai.brain.sensor with parameters of type ItemStackConstructor parameters in net.minecraft.entity.ai.brain.sensor with type arguments 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 ItemStackFields in net.minecraft.entity.ai.goal with type parameters of type ItemStackConstructors in net.minecraft.entity.ai.goal with parameters of type ItemStackModifierConstructorDescriptionHoldInHandsGoal(T actor, ItemStack item, @Nullable SoundEvent sound, Predicate<? super T> condition) Constructor parameters in net.minecraft.entity.ai.goal with type arguments of type ItemStackModifierConstructorDescriptionTemptGoal(PathAwareEntity entity, double speed, Predicate<ItemStack> foodPredicate, boolean canBeScared) -
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.damage
Methods in net.minecraft.entity.damage that return ItemStack -
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()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()ArmorStandEntity.getHandItems()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) private voidItemFrameEntity.removeFromFrame(ItemStack stack) private voidItemFrameEntity.setAsStackHolder(ItemStack stack) voidItemFrameEntity.setHeldItemStack(ItemStack stack) voidItemFrameEntity.setHeldItemStack(ItemStack value, boolean update) 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 declared as ItemStackFields 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.getBodyArmor()MobEntity.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.getAllArmorItems()MobEntity.getArmorItems()PiglinBrain.getBarteredItem(PiglinEntity piglin) MobEntity.getHandItems()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, @Nullable ItemStack shotFrom) protected PersistentProjectileEntityBoggedEntity.createArrowProjectile(ItemStack arrow, float damageModifier, @Nullable ItemStack shotFrom) protected PersistentProjectileEntityStrayEntity.createArrowProjectile(ItemStack arrow, float damageModifier, @Nullable ItemStack shotFrom) protected PersistentProjectileEntityWitherSkeletonEntity.createArrowProjectile(ItemStack arrow, float damageModifier, @Nullable ItemStack shotFrom) private voidPiglinEntity.equipAtChance(EquipmentSlot slot, ItemStack stack, Random random) voidMobEntity.equipBodyArmor(ItemStack stack) protected voidMobEntity.equipLootStack(EquipmentSlot slot, ItemStack stack) voidAbstractSkeletonEntity.equipStack(EquipmentSlot slot, ItemStack stack) voidMobEntity.equipStack(EquipmentSlot slot, ItemStack stack) protected voidPiglinEntity.equipToMainHand(ItemStack stack) protected voidPiglinEntity.equipToOffHand(ItemStack stack) private doubleMobEntity.getAttackDamageWith(ItemStack stack) HostileEntity.getProjectileType(ItemStack stack) private static booleanMobEntity.hasComponentsOtherThanDamage(ItemStack stack) booleanHoglinEntity.isBreedingItem(ItemStack stack) private static booleanprotected static booleanPiglinBrain.isGoldenItem(ItemStack stack) booleanMobEntity.isHorseArmor(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) 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) MobEntity.dropEquipment(Predicate<ItemStack> dropPredicate) -
Uses of ItemStack in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive that return ItemStackModifier and TypeMethodDescriptionAxolotlEntity.getBucketItem()CodEntity.getBucketItem()PufferfishEntity.getBucketItem()SalmonEntity.getBucketItem()TadpoleEntity.getBucketItem()TropicalFishEntity.getBucketItem()GoatEntity.getGoatHornStack()Methods in net.minecraft.entity.passive that return types with arguments of type ItemStackModifier and TypeMethodDescriptionArmadilloBrain.getTemptItemPredicate()AxolotlBrain.getTemptItemPredicate()CamelBrain.getTemptItemPredicate()FrogBrain.getTemptItemPredicate()GoatBrain.getTemptItemPredicate()SnifferBrain.getTemptItemPredicate()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) voidAbstractHorseEntity.equipHorseArmor(PlayerEntity player, ItemStack stack) LlamaEntity.getColorFromCarpet(ItemStack color) Cracks.getCrackLevel(ItemStack stack) protected SoundEventWanderingTraderEntity.getDrinkSound(ItemStack stack) ArmadilloEntity.getEatSound(ItemStack stack) FoxEntity.getEatSound(ItemStack stack) GoatEntity.getEatSound(ItemStack stack) SnifferEntity.getEatSound(ItemStack stack) private Optional<SuspiciousStewEffectsComponent> MooshroomEntity.getStewEffectFrom(ItemStack flower) AbstractHorseEntity.interactHorse(PlayerEntity player, ItemStack stack) booleanAbstractHorseEntity.isBreedingItem(ItemStack stack) abstract booleanAnimalEntity.isBreedingItem(ItemStack stack) booleanArmadilloEntity.isBreedingItem(ItemStack stack) booleanAxolotlEntity.isBreedingItem(ItemStack stack) booleanBeeEntity.isBreedingItem(ItemStack stack) booleanCamelEntity.isBreedingItem(ItemStack stack) booleanCatEntity.isBreedingItem(ItemStack stack) booleanChickenEntity.isBreedingItem(ItemStack stack) booleanCowEntity.isBreedingItem(ItemStack stack) booleanFoxEntity.isBreedingItem(ItemStack stack) booleanFrogEntity.isBreedingItem(ItemStack stack) booleanGoatEntity.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) booleanSheepEntity.isBreedingItem(ItemStack stack) booleanSnifferEntity.isBreedingItem(ItemStack stack) booleanStriderEntity.isBreedingItem(ItemStack stack) booleanTurtleEntity.isBreedingItem(ItemStack stack) booleanWolfEntity.isBreedingItem(ItemStack stack) private booleanTadpoleEntity.isFrogFood(ItemStack stack) booleanHorseEntity.isHorseArmor(ItemStack stack) booleanLlamaEntity.isHorseArmor(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) voidAbstractHorseEntity.saddle(ItemStack stack, @Nullable SoundCategory soundCategory) voidPigEntity.saddle(ItemStack stack, @Nullable SoundCategory soundCategory) voidStriderEntity.saddle(ItemStack stack, @Nullable SoundCategory soundCategory) private voidprivate voidDolphinEntity.PlayWithItemsGoal.spitOutItem(ItemStack stack) Constructor parameters in net.minecraft.entity.passive with type arguments of type ItemStackModifierConstructorDescriptionOcelotTemptGoal(OcelotEntity ocelot, double speed, Predicate<ItemStack> foodPredicate, boolean canBeScared) -
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) PlayerEntity.eatFood(World world, ItemStack stack, FoodComponent foodComponent) PlayerInventory.getArmorStack(int slot) PlayerEntity.getEquippedStack(EquipmentSlot slot) PlayerInventory.getMainHandStack()PlayerEntity.getProjectileType(ItemStack stack) PlayerInventory.getStack(int slot) Returns the stack currently stored atslot.PlayerEntity.getWeaponStack()PlayerInventory.removeStack(int slot) Removes the stack currently stored atslot.PlayerInventory.removeStack(int slot, int amount) Removes a specific number of items fromslot.Methods in net.minecraft.entity.player that return types with arguments of type ItemStackMethods 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) booleanPlayerEntity.eatFood(World world, ItemStack stack, FoodComponent foodComponent) voidPlayerEntity.equipStack(EquipmentSlot slot, ItemStack 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.voidvoidSets the stack stored atslottostack.voidCalled when the player uses (defaults to right click) a writable or written book item.voidPlayerEntity.useRiptide(int riptideTicks, float riptideAttackDamage, ItemStack stack) 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 ItemStackModifier and TypeFieldDescriptionprivate ItemStackPersistentProjectileEntity.stackPersistentProjectileEntity.weaponFields 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 ItemStackPersistentProjectileEntity.asItemStack()protected ItemStackArrowEntity.getDefaultItemStack()protected abstract ItemStackPersistentProjectileEntity.getDefaultItemStack()protected ItemStackSpectralArrowEntity.getDefaultItemStack()protected ItemStackTridentEntity.getDefaultItemStack()private static ItemStackFireworkRocketEntity.getDefaultStack()private ItemStackAbstractFireballEntity.getItem()PersistentProjectileEntity.getItemStack()Returns the read-only item stack representing the projectile.AbstractFireballEntity.getStack()AbstractWindChargeEntity.getStack()FireworkRocketEntity.getStack()PersistentProjectileEntity.getWeaponStack()TridentEntity.getWeaponStack()Methods in net.minecraft.entity.projectile with parameters of type ItemStackModifier and TypeMethodDescriptionstatic PersistentProjectileEntityProjectileUtil.createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier, @Nullable ItemStack bow) private byteTridentEntity.getLoyalty(ItemStack stack) protected voidPersistentProjectileEntity.onBlockHitEnchantmentEffects(ServerWorld world, BlockHitResult blockHitResult, ItemStack weaponStack) protected voidTridentEntity.onBlockHitEnchantmentEffects(ServerWorld world, BlockHitResult blockHitResult, ItemStack weaponStack) voidprotected voidprotected voidintConstructors in net.minecraft.entity.projectile with parameters of type ItemStackModifierConstructorDescriptionArrowEntity(World world, double x, double y, double z, ItemStack stack, @Nullable ItemStack shotFrom) ArrowEntity(World world, LivingEntity owner, ItemStack stack, @Nullable ItemStack shotFrom) FireworkRocketEntity(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) protectedPersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, double x, double y, double z, World world, ItemStack stack, @Nullable ItemStack weapon) protectedPersistentProjectileEntity(EntityType<? extends PersistentProjectileEntity> type, LivingEntity owner, World world, ItemStack stack, @Nullable ItemStack shotFrom) SpectralArrowEntity(World world, double x, double y, double z, ItemStack stack, @Nullable ItemStack shotFrom) SpectralArrowEntity(World world, LivingEntity owner, ItemStack stack, @Nullable ItemStack shotFrom) TridentEntity(World world, double x, double y, double z, ItemStack stack) 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 ItemStackMethods in net.minecraft.entity.projectile.thrown with parameters of type ItemStack -
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) Returns the stack currently stored atslot.StorageMinecartEntity.getStack(int slot) Returns the stack currently stored atslot.default ItemStackVehicleInventory.removeInventoryStack(int slot) default ItemStackVehicleInventory.removeInventoryStack(int slot, int amount) ChestBoatEntity.removeStack(int slot) Removes the stack currently stored atslot.ChestBoatEntity.removeStack(int slot, int amount) Removes a specific number of items fromslot.StorageMinecartEntity.removeStack(int slot) Removes the stack currently stored atslot.StorageMinecartEntity.removeStack(int slot, int amount) Removes a specific number of items fromslot.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 ItemStackModifier and TypeMethodDescriptionstatic AbstractMinecartEntityAbstractMinecartEntity.create(ServerWorld world, double x, double y, double z, AbstractMinecartEntity.Type type, ItemStack stack, @Nullable PlayerEntity player) default voidVehicleInventory.setInventoryStack(int slot, ItemStack stack) voidSets the stack stored atslottostack.voidSets the stack stored atslottostack. -
Uses of ItemStack in net.minecraft.inventory
Fields in net.minecraft.inventory with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack> SimpleInventory.heldStacksprivate final DefaultedList<ItemStack> CraftingInventory.stacksprivate final DefaultedList<ItemStack> CraftingResultInventory.stacksMethods in net.minecraft.inventory that return ItemStackModifier and TypeMethodDescriptionAddsstackto this inventory as much as possible.default ItemStackSingleStackInventory.decreaseStack(int count) default ItemStackSingleStackInventory.emptyStack()StackReference.get()Gets the current item stack.CraftingInventory.getStack(int slot) Returns the stack currently stored atslot.CraftingResultInventory.getStack(int slot) Returns the stack currently stored atslot.DoubleInventory.getStack(int slot) Returns the stack currently stored atslot.Inventory.getStack(int slot) Returns the stack currently stored atslot.SimpleInventory.getStack(int slot) Returns the stack currently stored atslot.SingleStackInventory.getStack()default ItemStackSingleStackInventory.getStack(int slot) Returns the stack currently stored atslot.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 atslot.CraftingInventory.removeStack(int slot, int amount) Removes a specific number of items fromslot.CraftingResultInventory.removeStack(int slot) Removes the stack currently stored atslot.CraftingResultInventory.removeStack(int slot, int amount) Removes a specific number of items fromslot.DoubleInventory.removeStack(int slot) Removes the stack currently stored atslot.DoubleInventory.removeStack(int slot, int amount) Removes a specific number of items fromslot.static ItemStackInventories.removeStack(List<ItemStack> stacks, int slot) Sets the stack atslottoEMPTYand returns the old stack.Inventory.removeStack(int slot) Removes the stack currently stored atslot.Inventory.removeStack(int slot, int amount) Removes a specific number of items fromslot.SimpleInventory.removeStack(int slot) Removes the stack currently stored atslot.SimpleInventory.removeStack(int slot, int amount) Removes a specific number of items fromslot.default ItemStackSingleStackInventory.removeStack(int slot) Removes the stack currently stored atslot.default ItemStackSingleStackInventory.removeStack(int slot, int amount) Removes a specific number of items fromslot.static ItemStackInventories.splitStack(List<ItemStack> stacks, int slot, int amount) Returns the copy of the stack split from the stack atslot.Methods in net.minecraft.inventory that return types with arguments of type ItemStackModifier and TypeMethodDescriptionSimpleInventory.clearToList()Clears this inventory and returns all the non-empty stacks in a list.CraftingInventory.getHeldStacks()Returns the stacks held by the inventory.RecipeInputInventory.getHeldStacks()Returns the stacks held by the inventory.SimpleInventory.getHeldStacks()Methods in net.minecraft.inventory with parameters of type ItemStackModifier and TypeMethodDescriptionAddsstackto this inventory as much as possible.private voidSimpleInventory.addToExistingSlot(ItemStack stack) private voidSimpleInventory.addToNewSlot(ItemStack stack) booleanSidedInventory.canExtract(int slot, ItemStack stack, Direction dir) Returns whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanReturns whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanReturns whetherstackcan be inserted into this inventory.booleanReturns true if this lock can be opened with the key item stack.default booleanInventory.canTransferTo(Inventory hopperInventory, int slot, ItemStack stack) Returns whether a hopper can transferstackfromslotto the hopper.default intInventory.getMaxCount(ItemStack stack) booleanReturns whetherstackis valid for theslot.default booleanReturns whetherstackis valid for theslot.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.voidSets the stack stored atslottostack.voidSets the stack stored atslottostack.voidSets the stack stored atslottostack.voidSets the stack stored atslottostack.voidSets the stack stored atslottostack.default voidSets the stack stored atslottostack.voidprivate voidMethod parameters in net.minecraft.inventory with type arguments of type ItemStackModifier and TypeMethodDescriptiondefault booleanInventory.containsAny(Predicate<ItemStack> predicate) Returns whether this inventory contains any of the stacks matchingpredicate.static StackReferencestatic StackReferencestatic 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, RegistryWrapper.WrapperLookup registries) Readsnbtand sets the elements ofstacksaccordingly.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) Sets the stack atslottoEMPTYand returns the old stack.static ItemStackInventories.splitStack(List<ItemStack> stacks, int slot, int amount) Returns the copy of the stack split from the stack atslot.static NbtCompoundInventories.writeNbt(NbtCompound nbt, DefaultedList<ItemStack> stacks, boolean setIfEmpty, RegistryWrapper.WrapperLookup registries) Writes the inventory tonbt.static NbtCompoundInventories.writeNbt(NbtCompound nbt, DefaultedList<ItemStack> stacks, RegistryWrapper.WrapperLookup registries) Writes the inventory tonbt.Constructors in net.minecraft.inventory with parameters of type ItemStackConstructor parameters in net.minecraft.inventory with type arguments of type ItemStackModifierConstructorDescriptionCraftingInventory(ScreenHandler handler, int width, int height, DefaultedList<ItemStack> stacks) -
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.iconSupplierstatic final PacketCodec<RegistryByteBuf, List<ItemStack>> ItemStack.LIST_PACKET_CODECstatic final com.mojang.serialization.Codec<ItemStack> ItemStack.OPTIONAL_CODECstatic final PacketCodec<RegistryByteBuf, List<ItemStack>> ItemStack.OPTIONAL_LIST_PACKET_CODECstatic final PacketCodec<RegistryByteBuf, ItemStack> ItemStack.OPTIONAL_PACKET_CODECstatic final PacketCodec<RegistryByteBuf, ItemStack> ItemStack.PACKET_CODECfinal Collection<ItemStack> ItemGroup.EntriesImpl.parentTabStacksstatic final com.mojang.serialization.Codec<ItemStack> ItemStack.REGISTRY_ENTRY_CODECItemGroup.EntriesImpl.searchTabStacksItemGroup.searchTabStacksstatic final com.mojang.serialization.Codec<ItemStack> ItemStack.UNCOUNTED_CODECstatic final com.mojang.serialization.Codec<ItemStack> ItemStack.VALIDATED_CODECstatic final com.mojang.serialization.Codec<ItemStack> ItemStack.VALIDATED_UNCOUNTED_CODECMethods in net.minecraft.item that return ItemStackModifier and TypeMethodDescriptionItemStack.copy()Returns a copy of this item stack, including the item count, components, and bobbing animation time.ItemStack.copyAndEmpty()ItemStack.copyComponentsToNewStack(ItemConvertible item, int count) Returns a new item stack with the components copied from this item stack.private ItemStackItemStack.copyComponentsToNewStackIgnoreEmpty(ItemConvertible item, int count) Returns a new item stack with the components copied from this item stack, even if this stack is empty.ItemStack.copyWithCount(int count) Returns a copy of this item stack, including the components, and bobbing animation time.static ItemStackFilledMapItem.createMap(World world, int x, int z, byte scale, boolean showIcons, boolean unlimitedTracking) ItemStack.damage(int amount, ItemConvertible itemAfterBreaking, LivingEntity entity, EquipmentSlot slot) 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.OminousBottleItem.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.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.fromNbtOrEmpty(RegistryWrapper.WrapperLookup registries, NbtCompound nbt) 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()protected static ItemStackRangedWeaponItem.getProjectile(ItemStack stack, ItemStack projectileStack, LivingEntity shooter, boolean multishot) ItemUsageContext.getStack()static ItemStackGoatHornItem.getStackForInstrument(Item item, RegistryEntry<Instrument> instrument) ItemStack.split(int amount) Returns the copy of the stack "split" from the current stack with item count being at mostamount.ItemStack.splitUnlessCreative(int amount, @Nullable LivingEntity entity) ItemStack.withItem(ItemConvertible item) 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()static PacketCodec<RegistryByteBuf, ItemStack> ItemStack.createExtraValidatingPacketCodec(PacketCodec<RegistryByteBuf, ItemStack> basePacketCodec) Returns a packet codec that ensures the validity of the decoded stack by checking if it can be re-encoded.static com.mojang.serialization.MapCodec<ItemStack> ItemStack.createOptionalCodec(String fieldName) default TypedActionResult<ItemStack> Equipment.equipAndSwap(Item item, World world, PlayerEntity user, Hand hand) ItemStack.fromNbt(RegistryWrapper.WrapperLookup registries, NbtElement nbt) ItemGroup.getDisplayStacks()CrossbowItem.getHeldProjectiles()RangedWeaponItem.getHeldProjectiles()BowItem.getProjectiles()CrossbowItem.getProjectiles()RangedWeaponItem.getProjectiles()ItemGroup.getSearchTabStacks()RangedWeaponItem.load(ItemStack stack, ItemStack projectileStack, LivingEntity shooter) 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.OminousBottleItem.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.WindChargeItem.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.private static com.mojang.serialization.DataResult<ItemStack> 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 voidBannerItem.appendBannerTooltip(ItemStack stack, List<Text> tooltip) voidAirBlockItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidBannerItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidBannerPatternItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidBlockItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidBundleItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidCrossbowItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidDecorationItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidDiscFragmentItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidEntityBucketItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidFilledMapItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidFireworkRocketItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidFireworkStarItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidGoatHornItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidLingeringPotionItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidOminousBottleItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidPotionItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidShieldItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidSmithingTemplateItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidSuspiciousStewItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidTippedArrowItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.voidWrittenBookItem.appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType type) Called by the client to append tooltips to an item.static booleanReturns whether the given item stacks are equal, including the item count and components.static booleanItemStack.areItemsAndComponentsEqual(ItemStack stack, ItemStack otherStack) Returns whether the given item stacks' items and components are equal.static booleanItemStack.areItemsEqual(ItemStack left, ItemStack right) Returns whether the given item stacks contain the same item, regardless of item count or components.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.booleanReturns whetherstackcan be repaired usingingredient.booleanprivate static voidBlockItem.copyComponentsToBlockEntity(World world, BlockPos pos, ItemStack stack) static voidArrowItem.createArrow(World world, ItemStack stack, LivingEntity shooter, @Nullable ItemStack shotFrom) SpectralArrowItem.createArrow(World world, ItemStack stack, LivingEntity shooter, @Nullable ItemStack shotFrom) protected ProjectileEntityCrossbowItem.createArrowEntity(World world, LivingEntity shooter, ItemStack weaponStack, ItemStack projectileStack, boolean critical) protected ProjectileEntityRangedWeaponItem.createArrowEntity(World world, LivingEntity shooter, ItemStack weaponStack, ItemStack projectileStack, boolean critical) ArrowItem.createEntity(World world, Position pos, ItemStack stack, Direction direction) private BoatEntityBoatItem.createEntity(World world, HitResult hitResult, ItemStack stack, PlayerEntity player) EggItem.createEntity(World world, Position pos, ItemStack stack, Direction direction) ExperienceBottleItem.createEntity(World world, Position pos, ItemStack stack, Direction direction) FireChargeItem.createEntity(World world, Position pos, ItemStack stack, Direction direction) FireworkRocketItem.createEntity(World world, Position pos, ItemStack stack, Direction direction) ProjectileItem.createEntity(World world, Position pos, ItemStack stack, Direction direction) SnowballItem.createEntity(World world, Position pos, ItemStack stack, Direction direction) SpectralArrowItem.createEntity(World world, Position pos, ItemStack stack, Direction direction) ThrowablePotionItem.createEntity(World world, Position pos, ItemStack stack, Direction direction) TridentItem.createEntity(World world, Position pos, ItemStack stack, Direction direction) WindChargeItem.createEntity(World world, Position pos, ItemStack stack, Direction direction) 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.OminousBottleItem.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.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 floatBundleItem.getAmountFilled(ItemStack stack) static ItemStackBucketItem.getEmptiedStack(ItemStack stack, PlayerEntity player) EntityType<?> SpawnEggItem.getEntityType(ItemStack stack) private Optional<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.(package private) CrossbowItem.LoadingSoundsCrossbowItem.getLoadingSounds(ItemStack stack) FilledMapItem.getMapState(ItemStack map, World world) intBowItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intBrushItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intCrossbowItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intEnderEyeItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intGoatHornItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intHoneyBottleItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intMilkBucketItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intOminousBottleItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intPotionItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intShieldItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intSpyglassItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.intTridentItem.getMaxUseTime(ItemStack stack, LivingEntity user) Returns the maximum use (right-click) time of this item, in ticks.floatItem.getMiningSpeed(ItemStack stack, BlockState state) protected static ItemStackRangedWeaponItem.getProjectile(ItemStack stack, ItemStack projectileStack, LivingEntity shooter, boolean multishot) private static floatCrossbowItem.getPullProgress(int useTicks, ItemStack stack, LivingEntity user) static intCrossbowItem.getPullTime(ItemStack stack, LivingEntity user) BundleItem.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.OminousBottleItem.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.protected intCrossbowItem.getWeaponStackDamage(ItemStack projectile) protected intRangedWeaponItem.getWeaponStackDamage(ItemStack projectile) 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 intvoidCompassItem.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.private static booleanTridentItem.isAboutToBreak(ItemStack stack) static booleanbooleanItem.isCorrectForDrops(ItemStack stack, BlockState state) booleanAnimalArmorItem.isEnchantable(ItemStack stack) Returns whether the givenItemStackis enchantable.booleanBookItem.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.booleanSpawnEggItem.isOfSameEntityType(ItemStack stack, EntityType<?> type) static booleanbooleanCrossbowItem.isUsedOnRelease(ItemStack stack) booleanItem.isUsedOnRelease(ItemStack stack) RangedWeaponItem.load(ItemStack stack, ItemStack projectileStack, LivingEntity shooter) 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) voidCalled when the item is made by crafting, smelting, smithing, etc.voidCalled when the item is made by crafting, smelting, smithing, etc.voidItem.onCraftByPlayer(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) voidItem.postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) voidMaceItem.postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) voidMiningToolItem.postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) voidSwordItem.postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) voidTridentItem.postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) booleanItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) Called on the server when the item is used to hit an entity.booleanMaceItem.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.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.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) voidItem.postProcessComponents(ItemStack stack) Processes the components applied to an item stack of this item.voidPlayerHeadItem.postProcessComponents(ItemStack stack) Processes the components applied to an item stack of this item.static booleanWrittenBookItem.resolve(ItemStack book, ServerCommandSource commandSource, @Nullable PlayerEntity player) private static voidstatic voidBlockItem.setBlockEntityData(ItemStack stack, BlockEntityType<?> type, NbtCompound nbt) static voidGoatHornItem.setRandomInstrumentFromTag(ItemStack stack, TagKey<Instrument> instrumentTag, Random random) voidCrossbowItem.shootAll(World world, LivingEntity shooter, Hand hand, ItemStack stack, float speed, float divergence, @Nullable LivingEntity target) protected voidRangedWeaponItem.shootAll(ServerWorld world, LivingEntity shooter, Hand hand, ItemStack stack, List<ItemStack> projectiles, float speed, float divergence, boolean critical, @Nullable LivingEntity target) 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) private static com.mojang.serialization.DataResult<ItemStack> 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 PacketCodec<RegistryByteBuf, ItemStack> ItemStack.createExtraValidatingPacketCodec(PacketCodec<RegistryByteBuf, ItemStack> basePacketCodec) Returns a packet codec that ensures the validity of the decoded stack by checking if it can be re-encoded.static ItemStackRangedWeaponItem.getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate) static intItemStack.listHashCode(List<ItemStack> stacks) Deprecated.protected voidRangedWeaponItem.shootAll(ServerWorld world, LivingEntity shooter, Hand hand, ItemStack stack, List<ItemStack> projectiles, float speed, float divergence, boolean critical, @Nullable LivingEntity target) static voidItemUsage.spawnItemContents(ItemEntity itemEntity, Iterable<ItemStack> contents) Spawns item entity's contents at the item entity's position.static booleanItemStack.stacksEqual(List<ItemStack> left, List<ItemStack> right) Deprecated.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 that return types with arguments of type ItemStackMethods in net.minecraft.item.map with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidMapState.addDecorationsNbt(ItemStack stack, BlockPos pos, String id, RegistryEntry<MapDecorationType> decorationType) MapState.getEqualPredicate(ItemStack stack) 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 TypeMethodDescriptionArmorTrimMaterials.get(RegistryWrapper.WrapperLookup registriesLookup, ItemStack stack) ArmorTrimPatterns.get(RegistryWrapper.WrapperLookup registriesLookup, 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> 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 types with arguments of type ItemStackModifier and TypeMethodDescriptionprivate ObjectArrayList<ItemStack> LootTable.generateLoot(LootContext context) LootTable.generateLoot(LootContextParameterSet parameters) LootTable.generateLoot(LootContextParameterSet parameters, long seed) LootTable.generateLoot(LootContextParameterSet parameters, Random random) LootTable.processStacks(ServerWorld world, Consumer<ItemStack> consumer) Methods in net.minecraft.loot with parameters of type ItemStackModifier and TypeMethodDescriptiondefault voidContainerComponentModifier.apply(ItemStack stack, UnaryOperator<ItemStack> contentsOperator) default voiddefault voidMethod parameters in net.minecraft.loot with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidLootPool.addGeneratedLoot(Consumer<ItemStack> lootConsumer, LootContext context) default voidContainerComponentModifier.apply(ItemStack stack, UnaryOperator<ItemStack> contentsOperator) default voiddefault voidvoidLootChoice.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) voidLootTable.generateLoot(LootContextParameterSet parameters, long seed, Consumer<ItemStack> lootConsumer) voidLootTable.generateLoot(LootContextParameterSet parameters, Consumer<ItemStack> lootConsumer) voidLootTable.generateLoot(LootContext context, Consumer<ItemStack> lootConsumer) voidLootTable.generateUnprocessedLoot(LootContextParameterSet parameters, Consumer<ItemStack> lootConsumer) voidLootTable.generateUnprocessedLoot(LootContext context, Consumer<ItemStack> lootConsumer) LootTable.processStacks(ServerWorld world, 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 TypeMethodDescriptionvoidvoidLootContextParameterSet.addDynamicDrops(Identifier id, Consumer<ItemStack> lootConsumer) voidLootContext.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 TypeFieldDescriptionprivate final BiFunction<ItemStack, LootContext, ItemStack> AndLootFunction.applierprivate final BiFunction<ItemStack, LootContext, ItemStack> AndLootFunction.applierstatic 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, RegistryEntry<Enchantment> enchantment, Random random) AndLootFunction.apply(ItemStack itemStack, LootContext lootContext) final ItemStackConditionalLootFunction.apply(ItemStack itemStack, LootContext lootContext) ApplyBonusLootFunction.process(ItemStack stack, LootContext context) protected abstract ItemStackConditionalLootFunction.process(ItemStack stack, LootContext context) CopyComponentsLootFunction.process(ItemStack stack, LootContext context) CopyNameLootFunction.process(ItemStack stack, LootContext context) CopyNbtLootFunction.process(ItemStack stack, LootContext context) protected ItemStackCopyStateLootFunction.process(ItemStack stack, LootContext context) EnchantedCountIncreaseLootFunction.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) FilteredLootFunction.process(ItemStack stack, LootContext context) FurnaceSmeltLootFunction.process(ItemStack stack, LootContext context) LimitCountLootFunction.process(ItemStack stack, LootContext context) ModifyContentsLootFunction.process(ItemStack stack, LootContext context) protected ItemStackReferenceLootFunction.process(ItemStack stack, LootContext context) SetAttributesLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetBannerPatternLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetBookCoverLootFunction.process(ItemStack stack, LootContext context) SetComponentsLootFunction.process(ItemStack stack, LootContext context) SetContentsLootFunction.process(ItemStack stack, LootContext context) SetCountLootFunction.process(ItemStack stack, LootContext context) SetCustomDataLootFunction.process(ItemStack stack, LootContext context) SetCustomModelDataLootFunction.process(ItemStack stack, LootContext context) SetDamageLootFunction.process(ItemStack stack, LootContext context) SetEnchantmentsLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetFireworkExplosionLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetFireworksLootFunction.process(ItemStack stack, LootContext context) SetInstrumentLootFunction.process(ItemStack stack, LootContext context) SetItemLootFunction.process(ItemStack stack, LootContext context) SetLootTableLootFunction.process(ItemStack stack, LootContext context) SetLoreLootFunction.process(ItemStack stack, LootContext context) SetNameLootFunction.process(ItemStack stack, LootContext context) SetOminousBottleAmplifierLootFunction.process(ItemStack stack, LootContext context) SetPotionLootFunction.process(ItemStack stack, LootContext context) SetStewEffectLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetWritableBookPagesLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetWrittenBookPagesLootFunction.process(ItemStack stack, LootContext context) protected ItemStackToggleTooltipsLootFunction.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(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> terms) static BiFunction<ItemStack, LootContext, ItemStack> LootFunctionTypes.join(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> terms) Methods in net.minecraft.loot.function with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static ItemStackEnchantRandomlyLootFunction.addEnchantmentToStack(ItemStack stack, RegistryEntry<Enchantment> enchantment, Random random) AndLootFunction.apply(ItemStack itemStack, LootContext lootContext) final ItemStackConditionalLootFunction.apply(ItemStack itemStack, LootContext lootContext) voidApplyBonusLootFunction.process(ItemStack stack, LootContext context) protected abstract ItemStackConditionalLootFunction.process(ItemStack stack, LootContext context) CopyComponentsLootFunction.process(ItemStack stack, LootContext context) CopyNameLootFunction.process(ItemStack stack, LootContext context) CopyNbtLootFunction.process(ItemStack stack, LootContext context) protected ItemStackCopyStateLootFunction.process(ItemStack stack, LootContext context) EnchantedCountIncreaseLootFunction.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) FilteredLootFunction.process(ItemStack stack, LootContext context) FurnaceSmeltLootFunction.process(ItemStack stack, LootContext context) LimitCountLootFunction.process(ItemStack stack, LootContext context) ModifyContentsLootFunction.process(ItemStack stack, LootContext context) protected ItemStackReferenceLootFunction.process(ItemStack stack, LootContext context) SetAttributesLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetBannerPatternLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetBookCoverLootFunction.process(ItemStack stack, LootContext context) SetComponentsLootFunction.process(ItemStack stack, LootContext context) SetContentsLootFunction.process(ItemStack stack, LootContext context) SetCountLootFunction.process(ItemStack stack, LootContext context) SetCustomDataLootFunction.process(ItemStack stack, LootContext context) SetCustomModelDataLootFunction.process(ItemStack stack, LootContext context) SetDamageLootFunction.process(ItemStack stack, LootContext context) SetEnchantmentsLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetFireworkExplosionLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetFireworksLootFunction.process(ItemStack stack, LootContext context) SetInstrumentLootFunction.process(ItemStack stack, LootContext context) SetItemLootFunction.process(ItemStack stack, LootContext context) SetLootTableLootFunction.process(ItemStack stack, LootContext context) SetLoreLootFunction.process(ItemStack stack, LootContext context) SetNameLootFunction.process(ItemStack stack, LootContext context) SetOminousBottleAmplifierLootFunction.process(ItemStack stack, LootContext context) SetPotionLootFunction.process(ItemStack stack, LootContext context) SetStewEffectLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetWritableBookPagesLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetWrittenBookPagesLootFunction.process(ItemStack stack, LootContext context) protected ItemStackToggleTooltipsLootFunction.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) static BiFunction<ItemStack, LootContext, ItemStack> LootFunctionTypes.join(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> terms) static BiFunction<ItemStack, LootContext, ItemStack> LootFunctionTypes.join(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> terms) -
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.stackThe field for thestackrecord component.Fields in net.minecraft.network.packet.c2s.play with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final Int2ObjectMap<ItemStack> ClickSlotC2SPacket.modifiedStacksprivate static final PacketCodec<RegistryByteBuf, Int2ObjectMap<ItemStack>> ClickSlotC2SPacket.STACK_MAP_CODECMethods in net.minecraft.network.packet.c2s.play that return ItemStackModifier and TypeMethodDescriptionClickSlotC2SPacket.getStack()CreativeInventoryActionC2SPacket.stack()Returns the value of thestackrecord component.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) CreativeInventoryActionC2SPacket(short short2, ItemStack itemStack) 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.getStack()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 ItemStackFields in net.minecraft.particle with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<ItemStack> ItemStackParticleEffect.ITEM_STACK_CODECMethods 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.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
Fields in net.minecraft.predicate.item with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final Optional<CollectionPredicate<ItemStack, ItemPredicate>> BundleContentsPredicate.itemsThe field for theitemsrecord component.private final Optional<CollectionPredicate<ItemStack, ItemPredicate>> ContainerPredicate.itemsThe field for theitemsrecord component.Methods in net.minecraft.predicate.item that return types with arguments of type ItemStackModifier and TypeMethodDescriptionBundleContentsPredicate.items()Returns the value of theitemsrecord component.ContainerPredicate.items()Returns the value of theitemsrecord component.Methods in net.minecraft.predicate.item with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanAttributeModifiersPredicate.test(ItemStack itemStack, AttributeModifiersComponent attributeModifiersComponent) booleanBundleContentsPredicate.test(ItemStack itemStack, BundleContentsComponent bundleContentsComponent) default booleanbooleanbooleanContainerPredicate.test(ItemStack itemStack, ContainerComponent containerComponent) booleanbooleanbooleanEnchantmentsPredicate.test(ItemStack itemStack, ItemEnchantmentsComponent itemEnchantmentsComponent) booleanFireworkExplosionPredicate.test(ItemStack itemStack, FireworkExplosionComponent fireworkExplosionComponent) booleanFireworksPredicate.test(ItemStack itemStack, FireworksComponent fireworksComponent) booleanbooleanbooleanJukeboxPlayablePredicate.test(ItemStack itemStack, JukeboxPlayableComponent jukeboxPlayableComponent) booleanPotionContentsPredicate.test(ItemStack itemStack, PotionContentsComponent potionContentsComponent) booleanbooleanWritableBookContentPredicate.test(ItemStack itemStack, WritableBookContentComponent writableBookContentComponent) booleanWrittenBookContentPredicate.test(ItemStack itemStack, WrittenBookContentComponent writtenBookContentComponent) Constructor parameters in net.minecraft.predicate.item with type arguments of type ItemStackModifierConstructorDescription -
Uses of ItemStack in net.minecraft.recipe
Fields in net.minecraft.recipe declared as ItemStackModifier and TypeFieldDescriptionIngredient.matchingStacksprotected final ItemStackAbstractCookingRecipe.resultprotected final ItemStackCuttingRecipe.result(package private) final ItemStackShapedRecipe.result(package private) final ItemStackShapelessRecipe.result(package private) final ItemStackSmithingTransformRecipe.resultprivate final ItemStackIngredient.StackEntry.stackThe field for thestackrecord component.Fields in net.minecraft.recipe with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack> RecipeCache.CachedRecipe.keyThe field for thekeyrecord component.Methods in net.minecraft.recipe that return ItemStackModifier and TypeMethodDescriptionAbstractCookingRecipe.craft(SingleStackRecipeInput singleStackRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) ArmorDyeRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) BannerDuplicateRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) BookCloningRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) CraftingDecoratedPotRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) CuttingRecipe.craft(SingleStackRecipeInput singleStackRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) FireworkRocketRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) FireworkStarFadeRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) FireworkStarRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) MapCloningRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) MapExtendingRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) Recipe.craft(T input, RegistryWrapper.WrapperLookup lookup) Crafts this recipe.RepairItemRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) ShapedRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) ShapelessRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) ShieldDecorationRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) ShulkerBoxColoringRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) SmithingTransformRecipe.craft(SmithingRecipeInput smithingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) SmithingTrimRecipe.craft(SmithingRecipeInput smithingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) SuspiciousStewRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) TippedArrowRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) 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(CraftingRecipeInput craftingRecipeInput) Ingredient.getMatchingStacks()AbstractCookingRecipe.getResult(RegistryWrapper.WrapperLookup registriesLookup) Returns a preview of the recipe's output.CuttingRecipe.getResult(RegistryWrapper.WrapperLookup registriesLookup) Returns a preview of the recipe's output.FireworkRocketRecipe.getResult(RegistryWrapper.WrapperLookup registriesLookup) Returns a preview of the recipe's output.FireworkStarRecipe.getResult(RegistryWrapper.WrapperLookup registriesLookup) Returns a preview of the recipe's output.Recipe.getResult(RegistryWrapper.WrapperLookup registriesLookup) Returns a preview of the recipe's output.ShapedRecipe.getResult(RegistryWrapper.WrapperLookup registriesLookup) Returns a preview of the recipe's output.ShapelessRecipe.getResult(RegistryWrapper.WrapperLookup registriesLookup) Returns a preview of the recipe's output.SmithingTransformRecipe.getResult(RegistryWrapper.WrapperLookup registriesLookup) Returns a preview of the recipe's output.SmithingTrimRecipe.getResult(RegistryWrapper.WrapperLookup registriesLookup) Returns a preview of the recipe's output.SpecialCraftingRecipe.getResult(RegistryWrapper.WrapperLookup registriesLookup) Returns a preview of the recipe's output.static ItemStackRecipeMatcher.getStackFromId(int itemId) Ingredient.StackEntry.stack()Returns the value of thestackrecord component.Methods in net.minecraft.recipe that return types with arguments of type ItemStackModifier and TypeMethodDescriptionRepairItemRecipe.findPair(CraftingRecipeInput input) RepairItemRecipe.findPair(CraftingRecipeInput input) BannerDuplicateRecipe.getRemainder(CraftingRecipeInput craftingRecipeInput) BookCloningRecipe.getRemainder(CraftingRecipeInput craftingRecipeInput) default DefaultedList<ItemStack> Recipe.getRemainder(T input) Returns the remaining stacks to be left in theinventoryafter the recipe is used.<I extends RecipeInput,T extends Recipe<I>>
DefaultedList<ItemStack> RecipeManager.getRemainingStacks(RecipeType<T> type, I input, 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()RecipeCache.CachedRecipe.key()Returns the value of thekeyrecord component.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.private static booleanRepairItemRecipe.canCombineStacks(ItemStack first, ItemStack second) AbstractCookingRecipe.RecipeFactory.create(String group, CookingRecipeCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) CookingRecipeSerializer.create(String group, CookingRecipeCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) CuttingRecipe.RecipeFactory.create(String group, Ingredient ingredient, ItemStack result) protected intInputSlotFiller.fillInputSlot(Slot slot, ItemStack stack, int int2) static intbooleanBrewingRecipeRegistry.hasItemRecipe(ItemStack input, ItemStack ingredient) booleanBrewingRecipeRegistry.hasPotionRecipe(ItemStack input, ItemStack ingredient) booleanbooleanBrewingRecipeRegistry.isItemRecipeIngredient(ItemStack stack) booleanBrewingRecipeRegistry.isPotionRecipeIngredient(ItemStack stack) private booleanBrewingRecipeRegistry.isPotionType(ItemStack stack) 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, String group, CookingRecipeCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) BlastingRecipe(String group, CookingRecipeCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) CampfireCookingRecipe(String group, CookingRecipeCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) CuttingRecipe(RecipeType<?> type, RecipeSerializer<?> serializer, String group, Ingredient ingredient, ItemStack result) ShapedRecipe(String group, CraftingRecipeCategory category, RawShapedRecipe raw, ItemStack result) ShapedRecipe(String group, CraftingRecipeCategory category, RawShapedRecipe raw, ItemStack result, boolean showNotification) ShapelessRecipe(String group, CraftingRecipeCategory category, ItemStack result, DefaultedList<Ingredient> ingredients) SmeltingRecipe(String group, CookingRecipeCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) SmithingTransformRecipe(Ingredient template, Ingredient base, Ingredient addition, ItemStack result) SmokingRecipe(String group, CookingRecipeCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) privateStackEntry(ItemStack stack) Creates an instance of aStackEntryrecord class.StonecuttingRecipe(String group, Ingredient ingredient, ItemStack result) Constructor parameters in net.minecraft.recipe with type arguments of type ItemStackModifierConstructorDescription(package private)CachedRecipe(DefaultedList<ItemStack> defaultedList, int int2, int int3, @Nullable RecipeEntry<CraftingRecipe> recipeEntry) -
Uses of ItemStack in net.minecraft.recipe.input
Fields in net.minecraft.recipe.input declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackSmithingRecipeInput.additionThe field for theadditionrecord component.private final ItemStackSmithingRecipeInput.baseThe field for thebaserecord component.private final ItemStackSingleStackRecipeInput.itemThe field for theitemrecord component.private final ItemStackSmithingRecipeInput.templateThe field for thetemplaterecord component.Fields in net.minecraft.recipe.input with type parameters of type ItemStackMethods in net.minecraft.recipe.input that return ItemStackModifier and TypeMethodDescriptionSmithingRecipeInput.addition()Returns the value of theadditionrecord component.SmithingRecipeInput.base()Returns the value of thebaserecord component.CraftingRecipeInput.getStackInSlot(int slot) CraftingRecipeInput.getStackInSlot(int x, int y) RecipeInput.getStackInSlot(int slot) SingleStackRecipeInput.getStackInSlot(int slot) SmithingRecipeInput.getStackInSlot(int slot) SingleStackRecipeInput.item()Returns the value of theitemrecord component.SmithingRecipeInput.template()Returns the value of thetemplaterecord component.Methods in net.minecraft.recipe.input that return types with arguments of type ItemStackMethod parameters in net.minecraft.recipe.input with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic CraftingRecipeInputCraftingRecipeInput.createPositioned(int width, int height, List<ItemStack> stacks) Constructors in net.minecraft.recipe.input with parameters of type ItemStackModifierConstructorDescriptionSingleStackRecipeInput(ItemStack itemStack) SmithingRecipeInput(ItemStack itemStack, ItemStack itemStack2, ItemStack itemStack3) Constructor parameters in net.minecraft.recipe.input with type arguments of type ItemStackModifierConstructorDescriptionprivateCraftingRecipeInput(int width, int height, List<ItemStack> stacks) -
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 TypeMethodDescriptionprivate ItemStackGrindstoneScreenHandler.combineItems(ItemStack firstInput, ItemStack secondInput) LecternScreenHandler.getBookItem()ScreenHandler.getCursorStack()private ItemStackGrindstoneScreenHandler.getOutputStack(ItemStack firstInput, ItemStack secondInput) 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.CrafterScreenHandler.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.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 TypeMethodDescriptionstatic 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 ItemStackGrindstoneScreenHandler.combineItems(ItemStack firstInput, ItemStack secondInput) private List<EnchantmentLevelEntry> EnchantmentScreenHandler.generateEnchantments(DynamicRegistryManager registryManager, ItemStack stack, int slot, int level) private ItemStackGrindstoneScreenHandler.getOutputStack(ItemStack firstInput, ItemStack secondInput) private List<RegistryEntry<BannerPattern>> LoomScreenHandler.getPatternsFor(ItemStack stack) private OptionalIntSmithingScreenHandler.getQuickMoveSlot(ItemStack stack) private static OptionalIntSmithingScreenHandler.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 booleanvoidCrafterScreenHandler.onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack) 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 voidGrindstoneScreenHandler.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()CrafterOutputSlot.insertStack(ItemStack stack) CrafterOutputSlot.insertStack(ItemStack stack, int count) Slot.insertStack(ItemStack stack) Slot.insertStack(ItemStack stack, int count) CrafterOutputSlot.takeStack(int amount) CraftingResultSlot.takeStack(int amount) FurnaceOutputSlot.takeStack(int amount) Slot.takeStack(int amount) TradeOutputSlot.takeStack(int amount) CrafterOutputSlot.takeStackRange(int min, int max, PlayerEntity player) 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.CrafterOutputSlot.tryTakeStackRange(int min, int max, PlayerEntity player) Slot.tryTakeStackRange(int min, int max, PlayerEntity player) Methods in net.minecraft.screen.slot with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanintFurnaceFuelSlot.getMaxItemCount(ItemStack stack) intSlot.getMaxItemCount(ItemStack stack) CrafterOutputSlot.insertStack(ItemStack stack) CrafterOutputSlot.insertStack(ItemStack stack, int count) Slot.insertStack(ItemStack stack) Slot.insertStack(ItemStack stack, int count) static booleanprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidvoidCrafterOutputSlot.onQuickTransfer(ItemStack newItem, ItemStack original) voidSlot.onQuickTransfer(ItemStack newItem, ItemStack original) voidCrafterOutputSlot.onTakeItem(PlayerEntity player, ItemStack stack) 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.voidvoidSets 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, RegistryEntry<LootFunction> lootFunction, 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, RegistryEntry<LootTable> 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, RegistryEntry<LootFunction> lootFunction, 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 intExecuteCommand.countMatchingItems(Iterable<? extends Entity> entities, SlotRange slotRange, Predicate<ItemStack> predicate) private static intExecuteCommand.countMatchingItems(ServerCommandSource source, BlockPos pos, SlotRange slotRange, Predicate<ItemStack> predicate) private static intClearCommand.execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Predicate<ItemStack> item) 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, RegistryKey<LootTable> 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) 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.onRecipeCrafted(RecipeEntry<?> 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 ItemStackTradedItem.itemStackThe field for theitemStackrecord component.private final ItemStackTradeOffers.ProcessItemFactory.processedprivate 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.private static ItemStackTradedItem.createDisplayStack(RegistryEntry<Item> item, int count, ComponentPredicate components) private static ItemStackTradeOffers.createPotionStack(RegistryEntry<Potion> potion) TradeOffer.getDisplayedFirstBuyItem()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.getDisplayedSecondBuyItem()Returns the second buy item of this trade offer.TradeOffer.getOriginalFirstBuyItem()Returns the first buy item of this trade offer.TradeOffer.getSellItem()Returns the sell item of this trade offer.MerchantInventory.getStack(int slot) Returns the stack currently stored atslot.TradedItem.itemStack()Returns the value of theitemStackrecord component.MerchantInventory.removeStack(int slot) Removes the stack currently stored atslot.MerchantInventory.removeStack(int slot, int amount) Removes a specific number of items fromslot.Methods in net.minecraft.village with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanTradeOffer.depleteBuyItems(ItemStack firstBuyStack, ItemStack secondBuyStack) TradeOfferList.getValidOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, int index) booleanbooleanTradeOffer.matchesBuyItems(ItemStack stack, ItemStack buyItem) voidMerchant.onSellingItem(ItemStack stack) voidSimpleMerchant.onSellingItem(ItemStack stack) voidSets the stack stored atslottostack.Constructors in net.minecraft.village with parameters of type ItemStackModifierConstructorDescriptionprivateProcessItemFactory(ItemConvertible item, int count, int price, ItemStack processed, int processedCount, int maxUses, int experience, float multiplier) ProcessItemFactory(TradedItem toBeProcessed, int count, ItemStack processed, int maxUses, int processedCount, float multiplier, Optional<RegistryKey<EnchantmentProvider>> enchantmentProviderKey) SellItemFactory(ItemStack stack, int price, int count, int maxUses, int experience) SellItemFactory(ItemStack stack, int price, int count, int maxUses, int experience, float multiplier) SellItemFactory(ItemStack sell, int price, int count, int maxUses, int experience, float multiplier, Optional<RegistryKey<EnchantmentProvider>> enchantmentProviderKey) TradedItem(RegistryEntry<Item> registryEntry, int int2, ComponentPredicate componentPredicate, ItemStack itemStack) privateTradeOffer(TradedItem firstBuyItem, Optional<TradedItem> secondBuyItem, ItemStack sellItem, int uses, int maxUses, boolean rewardingPlayerExperience, int specialPrice, int demandBonus, float priceMultiplier, int merchantExperience) TradeOffer(TradedItem firstBuyItem, Optional<TradedItem> secondBuyItem, ItemStack sellItem, int maxUses, int merchantExperience, float priceMultiplier) TradeOffer(TradedItem firstBuyItem, Optional<TradedItem> secondBuyItem, ItemStack sellItem, int uses, int maxUses, int merchantExperience, float priceMultiplier) TradeOffer(TradedItem firstBuyItem, Optional<TradedItem> secondBuyItem, ItemStack sellItem, int uses, int maxUses, int merchantExperience, float priceMultiplier, int demandBonus) TradeOffer(TradedItem buyItem, ItemStack sellItem, int maxUses, int merchantExperience, float priceMultiplier) -
Uses of ItemStack in net.minecraft.village.raid
Methods in net.minecraft.village.raid that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackRaid.getOminousBanner(RegistryEntryLookup<BannerPattern> bannerPatternLookup) -
Uses of ItemStack in net.minecraft.world.explosion
Methods in net.minecraft.world.explosion with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static voidExplosion.tryMergeStack(List<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> stacks, ItemStack stack, BlockPos pos) Method parameters in net.minecraft.world.explosion with type arguments of type ItemStack