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<AssetInfo> 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) booleanbooleanKilledByArrowCriterion.Conditions.matches(Collection<LootContext> victimContexts, int uniqueEntityTypeCount, @Nullable ItemStack weapon) booleanbooleanbooleanVillagerTradeCriterion.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) voidKilledByArrowCriterion.trigger(ServerPlayerEntity player, Collection<Entity> piercingKilledEntities, @Nullable ItemStack weapon) 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(RegistryKey<Recipe<?>> recipeKey, List<ItemStack> ingredients) voidFishingRodHookedCriterion.trigger(ServerPlayerEntity player, ItemStack rod, FishingBobberEntity bobber, Collection<ItemStack> fishingLoots) voidRecipeCraftedCriterion.trigger(ServerPlayerEntity player, RegistryKey<Recipe<?>> recipeKey, 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 ItemStackTestBlock.applyBlockStateToStack(ItemStack stack, TestBlockMode mode) static ItemStackShulkerBoxBlock.getItemStack(@Nullable DyeColor color) protected ItemStackAbstractBannerBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) AbstractBlock.AbstractBlockState.getPickStack(WorldView world, BlockPos pos, boolean includeData) protected ItemStackAbstractBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackAbstractPlantBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackAttachedStemBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackBambooShootBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackBeehiveBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackBigDripleafStemBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackCandleCakeBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackCaveVinesBodyBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackCaveVinesHeadBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackCropBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackDecoratedPotBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackEndGatewayBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackEndPortalBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackFlowerPotBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackFrostedIceBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackLightBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackNetherPortalBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackNetherWartBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackPistonExtensionBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackPistonHeadBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackStemBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackSweetBerryBushBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackTallSeagrassBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected ItemStackTestBlock.getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) BarrierBlock.tryDrainFluid(@Nullable LivingEntity drainer, WorldAccess world, BlockPos pos, BlockState state) BubbleColumnBlock.tryDrainFluid(@Nullable LivingEntity drainer, WorldAccess world, BlockPos pos, BlockState state) FluidBlock.tryDrainFluid(@Nullable LivingEntity drainer, WorldAccess world, BlockPos pos, BlockState state) FluidDrainable.tryDrainFluid(@Nullable LivingEntity drainer, WorldAccess world, BlockPos pos, BlockState state) PowderSnowBlock.tryDrainFluid(@Nullable LivingEntity drainer, WorldAccess world, BlockPos pos, BlockState state) default ItemStackWaterloggable.tryDrainFluid(@Nullable LivingEntity drainer, WorldAccess world, BlockPos pos, BlockState state) Methods in net.minecraft.block that return types with arguments of type ItemStackModifier and TypeMethodDescriptionAbstractBlock.AbstractBlockState.getDroppedStacks(LootWorldContext.Builder builder) AbstractBlock.getDroppedStacks(BlockState state, LootWorldContext.Builder builder) Returns the block's dropped item stacks.BeehiveBlock.getDroppedStacks(BlockState state, LootWorldContext.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, LootWorldContext.Builder builder) Returns the block's dropped item stacks.FluidBlock.getDroppedStacks(BlockState state, LootWorldContext.Builder builder) Returns the block's dropped item stacks.PistonExtensionBlock.getDroppedStacks(BlockState state, LootWorldContext.Builder builder) Returns the block's dropped item stacks.ShulkerBoxBlock.getDroppedStacks(BlockState state, LootWorldContext.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.static ItemStackTestBlock.applyBlockStateToStack(ItemStack stack, TestBlockMode mode) 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) private static DispenserBehaviorDispenserBlock.getBehaviorForItem(ItemStack stack) 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.voidPaleMossCarpetBlock.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 ActionResultAbstractBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultAbstractCauldronBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultAbstractSignBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultBeehiveBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultCakeBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultCampfireBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultCandleBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultCandleCakeBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultChiseledBookshelfBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultComposterBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultDecoratedPotBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultFlowerPotBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultHangingSignBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultJukeboxBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultLecternBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultNoteBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultPumpkinBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultRedstoneOreBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultRespawnAnchorBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultSweetBerryBushBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ActionResultTntBlock.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 ActionResultWallHangingSignBlock.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<?> 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(ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidAbstractBlock.onExploded(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidAbstractCandleBlock.onExploded(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidBeehiveBlock.onExploded(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidBellBlock.onExploded(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidButtonBlock.onExploded(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidCreakingHeartBlock.onExploded(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidDoorBlock.onExploded(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidFenceGateBlock.onExploded(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidLeverBlock.onExploded(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidTrapdoorBlock.onExploded(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) Constructors in net.minecraft.block with parameters of type ItemStackModifierConstructorDescriptionprotectedEntityShapeContext(boolean descending, boolean placement, 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 TypeMethodDescriptionprivate static ActionResultCauldronBehavior.cleanArmor(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) private static ActionResultCauldronBehavior.cleanBanner(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) private static ActionResultCauldronBehavior.cleanShulkerBox(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) static ActionResultCauldronBehavior.emptyCauldron(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, ItemStack output, Predicate<BlockState> fullPredicate, SoundEvent soundEvent) Empties a cauldron if it's full.static ActionResultCauldronBehavior.fillCauldron(World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, BlockState state, SoundEvent soundEvent) Fills a cauldron from a bucket stack.CauldronBehavior.interact(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) Called when a player interacts with a cauldron.private static ActionResultCauldronBehavior.tryFillWithLava(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) private static ActionResultCauldronBehavior.tryFillWithPowderSnow(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) private static ActionResultCauldronBehavior.tryFillWithWater(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack) -
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 ItemStackEquippableDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) protected ItemStackItemDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) MinecartDispenserBehavior.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) static booleanEquippableDispenserBehavior.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 ItemStackEquippableDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) protected ItemStackItemDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) MinecartDispenserBehavior.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) private static booleanShearsDispenserBehavior.tryShearEntity(ServerWorld world, BlockPos pos, ItemStack shears) -
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.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, ItemStack key) 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(ServerWorld world, @Nullable LivingEntity entity, ItemStack stack) DispenserBlockEntity.addToFirstFreeSlot(ItemStack stack) private booleanCrafterBlockEntity.betterSlotExists(int count, ItemStack stack, int slot) booleanBrushableBlockEntity.brush(long worldTime, ServerWorld world, LivingEntity brusher, Direction hitDirection, ItemStack brush) 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.private voidBrushableBlockEntity.finishBrushing(ServerWorld world, LivingEntity brusher, ItemStack brush) private voidBrushableBlockEntity.generateItem(ServerWorld world, LivingEntity brusher, ItemStack brush) VaultBlockEntity.Server.generateLoot(ServerWorld world, VaultConfig config, BlockPos pos, PlayerEntity player, ItemStack key) protected intAbstractFurnaceBlockEntity.getFuelTime(FuelRegistry fuelRegistry, ItemStack stack) protected intBlastFurnaceBlockEntity.getFuelTime(FuelRegistry fuelRegistry, ItemStack stack) protected intSmokerBlockEntity.getFuelTime(FuelRegistry fuelRegistry, ItemStack stack) private static intLecternBlockEntity.getPageCount(ItemStack stack) 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) private 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.private voidBrushableBlockEntity.spawnItem(ServerWorld world, LivingEntity brusher, ItemStack brush) 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 dynamicRegistryManager, @Nullable RecipeEntry<? extends AbstractCookingRecipe> recipe, SingleStackRecipeInput input, DefaultedList<ItemStack> inventory, int maxCount) 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 dynamicRegistryManager, @Nullable RecipeEntry<? extends AbstractCookingRecipe> recipe, SingleStackRecipeInput input, DefaultedList<ItemStack> inventory, int maxCount) 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 registries, 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.gui
Methods in net.minecraft.client.gui with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidDrawContext.drawCooldownProgress(ItemStack stack, int x, int y) private 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) voidvoidvoidprivate voidDrawContext.drawItemBar(ItemStack stack, int x, int y) 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) private voidDrawContext.drawStackCount(TextRenderer textRenderer, ItemStack stack, int x, int y, @Nullable String stackCountText) voidDrawContext.drawStackOverlay(TextRenderer textRenderer, ItemStack stack, int x, int y) voidDrawContext.drawStackOverlay(TextRenderer textRenderer, ItemStack stack, int x, int y, @Nullable String stackCountText) -
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 ItemStackGameModeSwitcherScreen.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 ItemStackLoomScreen.patternprivate ItemStackHandledScreen.quickMovingStackprivate final ItemStackBookEditScreen.stackprivate 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, @Nullable String amountText) private voidSmithingScreen.equipArmorStand(ItemStack stack) intCreativeInventoryScreen.CreativeSlot.getMaxItemCount(ItemStack stack) CreativeInventoryScreen.getTooltipFromItem(ItemStack stack) HandledScreen.getTooltipFromItem(ItemStack stack) private booleanHandledScreen.isItemTooltipSticky(ItemStack item) 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 stack, Hand hand, WritableBookContentComponent writableBookContent) -
Uses of ItemStack in net.minecraft.client.gui.screen.recipebook
Fields in net.minecraft.client.gui.screen.recipebook declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackRecipeBookWidget.Tab.primaryIconThe field for theprimaryIconrecord component.Fields in net.minecraft.client.gui.screen.recipebook with type parameters of type ItemStackModifier and TypeFieldDescriptionAnimatedResultButton.Result.displayItemsThe field for thedisplayItemsrecord component.GhostRecipe.CyclingItem.itemsThe field for theitemsrecord component.RecipeBookWidget.Tab.secondaryIconThe field for thesecondaryIconrecord component.RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot.stacksThe field for thestacksrecord component.Methods in net.minecraft.client.gui.screen.recipebook that return ItemStackModifier and TypeMethodDescriptionGhostRecipe.CyclingItem.get(int index) RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot.get(int index) AnimatedResultButton.getDisplayStack()AnimatedResultButton.Result.getDisplayStack(int currentIndex) RecipeBookWidget.Tab.primaryIcon()Returns the value of theprimaryIconrecord component.Methods in net.minecraft.client.gui.screen.recipebook that return types with arguments of type ItemStackModifier and TypeMethodDescriptionAnimatedResultButton.Result.displayItems()Returns the value of thedisplayItemsrecord component.GhostRecipe.CyclingItem.items()Returns the value of theitemsrecord component.RecipeBookWidget.Tab.secondaryIcon()Returns the value of thesecondaryIconrecord component.RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot.stacks()Returns the value of thestacksrecord component.Methods in net.minecraft.client.gui.screen.recipebook with parameters of type ItemStackMethod parameters in net.minecraft.client.gui.screen.recipebook with type arguments of type ItemStackModifier and TypeMethodDescriptionprotected static RecipeAlternativesWidget.AlternativeButtonWidget.InputSlotConstructors in net.minecraft.client.gui.screen.recipebook with parameters of type ItemStackModifierConstructorDescriptionTab(ItemStack itemStack, Optional<ItemStack> optional, RecipeBookGroup recipeBookGroup) Constructor parameters in net.minecraft.client.gui.screen.recipebook with type arguments of type ItemStackModifierConstructorDescription(package private)CyclingItem(List<ItemStack> list, boolean bool) (package private)Result(NetworkRecipeId networkRecipeId, List<ItemStack> list) Tab(ItemStack itemStack, Optional<ItemStack> optional, RecipeBookGroup recipeBookGroup) -
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.gui.tooltip
Methods in net.minecraft.client.gui.tooltip that return types with arguments of type ItemStackModifier and TypeMethodDescriptionBundleTooltipComponent.firstStacksInContents(int numberOfStacksShown) Methods in net.minecraft.client.gui.tooltip with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanBundleTooltipSubmenuHandler.onScroll(double horizontal, double vertical, int slotId, ItemStack item) booleanvoidprivate voidBundleTooltipSubmenuHandler.sendPacket(ItemStack item, int slotId, int selectedItemIndex) Method parameters in net.minecraft.client.gui.tooltip with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate voidBundleTooltipComponent.drawItem(int index, int x, int y, List<ItemStack> stacks, int seed, TextRenderer textRenderer, DrawContext drawContext) private intBundleTooltipComponent.numContentItemsAfter(List<ItemStack> items) private static booleanBundleTooltipComponent.shouldDrawItem(List<ItemStack> items, int itemIndex) -
Uses of ItemStack in net.minecraft.client.item
Methods in net.minecraft.client.item with parameters of type ItemStackModifier and TypeMethodDescriptionvoidItemModelManager.clearAndUpdate(ItemRenderState renderState, ItemStack stack, ItemDisplayContext displayContext, @Nullable World world, @Nullable LivingEntity entity, int seed) booleanItemModelManager.hasHandAnimationOnSwap(ItemStack stack) private static voidItemModelManager.resolveProfileComponent(ItemStack stack) voidItemModelManager.update(ItemRenderState renderState, ItemStack stack, ItemDisplayContext displayContext, @Nullable World world, @Nullable LivingEntity entity, int seed) voidItemModelManager.updateForLivingEntity(ItemRenderState renderState, ItemStack stack, ItemDisplayContext displayContext, LivingEntity entity) voidItemModelManager.updateForNonLivingEntity(ItemRenderState renderState, ItemStack stack, ItemDisplayContext displayContext, Entity entity) -
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.getActiveDeathProtector(PlayerEntity player) Methods in net.minecraft.client.network with parameters of type ItemStackModifier and TypeMethodDescriptionvoidClientPlayerInteractionManager.clickCreativeStack(ItemStack stack, int slotId) voidClientPlayerEntity.dropCreativeStack(ItemStack stack) 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 registries) -
Uses of ItemStack in net.minecraft.client.particle
Methods in net.minecraft.client.particle with parameters of type ItemStackModifier and TypeMethodDescriptionprotected ItemRenderStateCrackParticle.Factory.getItemRenderState(ItemStack stack, ClientWorld world) -
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) voidGameRenderer.showFloatingItem(ItemStack floatingItem) -
Uses of ItemStack in net.minecraft.client.render.entity
Methods in net.minecraft.client.render.entity that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackBipedEntityRenderer.getEquippedStack(LivingEntity entity, EquipmentSlot slot) Methods in net.minecraft.client.render.entity with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static BipedEntityModel.ArmPosePlayerEntityRenderer.getArmPose(PlayerEntity player, ItemStack stack, Hand hand) -
Uses of ItemStack in net.minecraft.client.render.entity.equipment
Methods in net.minecraft.client.render.entity.equipment with parameters of type ItemStackModifier and TypeMethodDescriptionvoidEquipmentRenderer.render(EquipmentModel.LayerType layerType, RegistryKey<EquipmentAsset> assetKey, Model model, ItemStack stack, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) voidEquipmentRenderer.render(EquipmentModel.LayerType layerType, RegistryKey<EquipmentAsset> assetKey, Model model, ItemStack stack, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, @Nullable Identifier texture) -
Uses of ItemStack in net.minecraft.client.render.entity.feature
Fields in net.minecraft.client.render.entity.feature with type parameters of type ItemStackMethods in net.minecraft.client.render.entity.feature with parameters of type ItemStackModifier and TypeMethodDescriptionprivate booleanCapeFeatureRenderer.hasCustomModelForLayer(ItemStack stack, EquipmentModel.LayerType layerType) static booleanArmorFeatureRenderer.hasModel(ItemStack stack, EquipmentSlot slot) private voidLlamaDecorFeatureRenderer.render(MatrixStack matrices, VertexConsumerProvider vertexConsumers, LlamaEntityRenderState state, ItemStack stack, RegistryKey<EquipmentAsset> registryKey, int light) private voidArmorFeatureRenderer.renderArmor(MatrixStack matrices, VertexConsumerProvider vertexConsumers, ItemStack stack, EquipmentSlot slot, int light, A armorModel) private voidWolfArmorFeatureRenderer.renderCracks(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, ItemStack stack, Model model) Constructor parameters in net.minecraft.client.render.entity.feature with type arguments of type ItemStackModifierConstructorDescriptionSaddleFeatureRenderer(FeatureRendererContext<S, RM> context, EquipmentRenderer equipmentRenderer, EM model, EquipmentModel.LayerType layerType, Function<S, ItemStack> saddleStackGetter) SaddleFeatureRenderer(FeatureRendererContext<S, RM> context, EquipmentRenderer equipmentRenderer, EquipmentModel.LayerType layerType, Function<S, ItemStack> saddleStackGetter, EM adultModel, EM babyModel) -
Uses of ItemStack in net.minecraft.client.render.entity.state
Fields in net.minecraft.client.render.entity.state declared as ItemStackModifier and TypeFieldDescriptionHorseEntityRenderState.armorLlamaEntityRenderState.bodyArmorWolfEntityRenderState.bodyArmorBipedEntityRenderState.equippedChestStackBipedEntityRenderState.equippedFeetStackBipedEntityRenderState.equippedHeadStackBipedEntityRenderState.equippedLegsStackCamelEntityRenderState.saddleStackLivingHorseEntityRenderState.saddleStackPigEntityRenderState.saddleStackStriderEntityRenderState.saddleStackMethods in net.minecraft.client.render.entity.state with parameters of type ItemStack -
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 tickProgress, Arm arm, ItemStack stack, PlayerEntity player, float equipProgress) private voidHeldItemRenderer.applyEatOrDrinkTransformation(MatrixStack matrices, float tickProgress, Arm arm, ItemStack stack, PlayerEntity player) private static booleanHeldItemRenderer.isChargedCrossbow(ItemStack stack) private voidHeldItemRenderer.renderFirstPersonItem(AbstractClientPlayerEntity player, float tickProgress, 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, ItemDisplayContext renderMode, MatrixStack matrices, VertexConsumerProvider vertexConsumer, int light) voidItemRenderer.renderItem(@Nullable LivingEntity entity, ItemStack stack, ItemDisplayContext displayContext, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable World world, int light, int overlay, int seed) voidItemRenderer.renderItem(ItemStack stack, ItemDisplayContext displayContext, 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 booleanHeldItemRenderer.shouldSkipHandAnimationOnSwap(ItemStack from, ItemStack to) -
Uses of ItemStack in net.minecraft.client.render.item.model
Methods in net.minecraft.client.render.item.model with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static booleanBasicItemModel.shouldUseSpecialGlint(ItemStack stack) voidBasicItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidBundleSelectedItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidCompositeItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidConditionItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidEmptyItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidMissingItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidRangeDispatchItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidSelectItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) voidSpecialItemModel.update(ItemRenderState state, ItemStack stack, ItemModelManager resolver, ItemDisplayContext displayContext, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) -
Uses of ItemStack in net.minecraft.client.render.item.model.special
Methods in net.minecraft.client.render.item.model.special with parameters of type ItemStackModifier and TypeMethodDescription -
Uses of ItemStack in net.minecraft.client.render.item.property
Methods in net.minecraft.client.render.item.property with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanPropertyTester.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) -
Uses of ItemStack in net.minecraft.client.render.item.property.bool
Methods in net.minecraft.client.render.item.property.bool with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanBrokenProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanBundleHasSelectedItemProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanCarriedProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanComponentBooleanProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanCustomModelDataFlagProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanDamagedProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanExtendedViewProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanFishingRodCastProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanHasComponentProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanKeybindDownProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanSelectedProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanUsingItemProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanViewEntityProperty.test(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed, ItemDisplayContext displayContext) -
Uses of ItemStack in net.minecraft.client.render.item.property.numeric
Methods in net.minecraft.client.render.item.property.numeric with parameters of type ItemStackModifier and TypeMethodDescriptionprotected floatCompassState.getAngle(ItemStack stack, ClientWorld world, int seed, Entity user) protected abstract floatNeedleAngleState.getAngle(ItemStack stack, ClientWorld world, int seed, Entity user) protected floatTimeProperty.getAngle(ItemStack stack, ClientWorld world, int seed, Entity user) (package private) abstract floatTimeProperty.Source.getAngle(ClientWorld world, ItemStack stack, Entity user, Random random) CompassState.Target.getPosition(ClientWorld world, ItemStack stack, Entity holder) static intUseDurationProperty.getTicksUsedSoFar(ItemStack stack, LivingEntity user) floatBundleFullnessProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatCompassProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatCooldownProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatCountProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatCrossbowPullProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatCustomModelDataFloatProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatDamageProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatNeedleAngleState.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed) floatNumericProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatUseCycleProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) floatUseDurationProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity holder, int seed) -
Uses of ItemStack in net.minecraft.client.render.item.property.select
Methods in net.minecraft.client.render.item.property.select with parameters of type ItemStackModifier and TypeMethodDescriptionChargeTypeProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) ComponentSelectProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed, ItemDisplayContext displayContext) ContextDimensionProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) ContextEntityTypeProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) CustomModelDataStringProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) DisplayContextProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) ItemBlockStateProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) LocalTimeProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) MainHandProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) SelectProperty.getValue(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user, int seed, ItemDisplayContext displayContext) TrimMaterialProperty.getValue(ItemStack itemStack, @Nullable ClientWorld clientWorld, @Nullable LivingEntity livingEntity, int int2, ItemDisplayContext itemDisplayContext) -
Uses of ItemStack in net.minecraft.client.render.item.tint
Methods in net.minecraft.client.render.item.tint with parameters of type ItemStackModifier and TypeMethodDescriptionintConstantTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intCustomModelDataTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intDyeTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intFireworkTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intGrassTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intMapColorTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intPotionTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intTeamTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) intTintSource.getTint(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity user) -
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 registries, List<ItemStack> stacks) SearchManager.collectItemTooltips(Stream<ItemStack> stacks, Item.TooltipContext context, TooltipType type) -
Uses of ItemStack in net.minecraft.client.toast
Fields in net.minecraft.client.toast declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackRecipeToast.DisplayItems.categoryItemThe field for thecategoryItemrecord component.private final ItemStackRecipeToast.DisplayItems.unlockedItemThe field for theunlockedItemrecord component.Methods in net.minecraft.client.toast that return ItemStackModifier and TypeMethodDescriptionRecipeToast.DisplayItems.categoryItem()Returns the value of thecategoryItemrecord component.RecipeToast.DisplayItems.unlockedItem()Returns the value of theunlockedItemrecord component.Methods in net.minecraft.client.toast with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidRecipeToast.addRecipes(ItemStack categoryItem, ItemStack unlockedItem) Constructors in net.minecraft.client.toast with parameters of type ItemStackModifierConstructorDescription(package private)DisplayItems(ItemStack itemStack, ItemStack itemStack2) -
Uses of ItemStack in net.minecraft.client.tutorial
Methods in net.minecraft.client.tutorial with parameters of type ItemStackModifier and TypeMethodDescriptionvoidTutorialManager.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 TypeFieldDescriptionItemPredicateArgumentType.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, com.mojang.serialization.Dynamic<?> dynamic) ItemPredicateArgumentType.Context.componentPresencePredicate(com.mojang.brigadier.ImmutableStringReader immutableStringReader, ItemPredicateArgumentType.ComponentCheck componentCheck) ItemPredicateArgumentType.ComponentCheck.createPredicate(com.mojang.brigadier.ImmutableStringReader reader, com.mojang.serialization.Dynamic<?> value) ItemPredicateArgumentType.SubPredicateCheck.createPredicate(com.mojang.brigadier.ImmutableStringReader reader, com.mojang.serialization.Dynamic<?> value) 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, com.mojang.serialization.Dynamic<?> dynamic) 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 ItemStackUseRemainderComponent.convertIntoThe field for theconvertIntorecord component.private 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.stacksMethods in net.minecraft.component.type that return ItemStackModifier and TypeMethodDescriptionUseRemainderComponent.convert(ItemStack stack, int oldCount, boolean inCreative, UseRemainderComponent.StackInserter inserter) UseRemainderComponent.convertInto()Returns the value of theconvertIntorecord component.ContainerComponent.copyFirstStack()Returns a copy of the first contained stack in this component.static ItemStackPotionContentsComponent.createStack(Item item, RegistryEntry<Potion> potion) ConsumableComponent.finishConsumption(World world, LivingEntity user, ItemStack stack) BundleContentsComponent.get(int index) ContainerComponent.Slot.item()Returns the value of theitemrecord component.BundleContentsComponent.Builder.removeSelected()static ItemStackMethods in net.minecraft.component.type that return types with arguments of type ItemStackModifier and TypeMethodDescriptionChargedProjectilesComponent.getProjectiles()BundleContentsComponent.iterate()BundleContentsComponent.iterateCopy()ContainerComponent.iterateNonEmpty()Returns an iterable over this component's non-empty item stacks.ContainerComponent.iterateNonEmptyCopy()Returns an iterable over copies of this component's non-empty item stacks.BundleContentsComponent.stream()ContainerComponent.stream()Returns a stream over copies of this component's stored item stacks.ContainerComponent.streamNonEmpty()Returns a stream over copies of this component's non-empty item stacks.Methods in net.minecraft.component.type with parameters of type ItemStackModifier and TypeMethodDescriptionintprivate static voidChargedProjectilesComponent.appendProjectileTooltip(Item.TooltipContext context, Consumer<Text> textConsumer, ItemStack projectile, int count) voidvoidDeathProtectionComponent.applyDeathEffects(ItemStack stack, LivingEntity entity) voidBlocksAttacksComponent.applyShieldCooldown(ServerWorld world, LivingEntity affectedEntity, float cooldownSeconds, ItemStack stack) static booleanBundleContentsComponent.canBeBundled(ItemStack stack) booleanConsumableComponent.canConsume(LivingEntity user, ItemStack stack) ConsumableComponent.consume(LivingEntity user, ItemStack stack, Hand hand) UseRemainderComponent.convert(ItemStack stack, int oldCount, boolean inCreative, UseRemainderComponent.StackInserter inserter) EquippableComponent.equip(ItemStack stack, PlayerEntity player) EquippableComponent.equipOnInteract(PlayerEntity player, LivingEntity entity, ItemStack stack) ConsumableComponent.finishConsumption(World world, LivingEntity user, ItemStack stack) static intConsumableComponent.ConsumableSoundProvider.getConsumeSound(ItemStack stack) private intBundleContentsComponent.Builder.getInsertionIndex(ItemStack stack) private intBundleContentsComponent.Builder.getMaxAllowed(ItemStack stack) (package private) static FractionBundleContentsComponent.getOccupancy(ItemStack stack) booleanstatic ChargedProjectilesComponentvoidConsumable.onConsume(World world, LivingEntity user, ItemStack stack, ConsumableComponent consumable) voidFoodComponent.onConsume(World world, LivingEntity user, ItemStack stack, ConsumableComponent consumable) voidOminousBottleAmplifierComponent.onConsume(World world, LivingEntity user, ItemStack stack, ConsumableComponent consumable) voidPotionContentsComponent.onConsume(World world, LivingEntity user, ItemStack stack, ConsumableComponent consumable) voidSuspiciousStewEffectsComponent.onConsume(World world, LivingEntity user, ItemStack stack, ConsumableComponent consumable) voidBlocksAttacksComponent.onShieldHit(World world, ItemStack stack, LivingEntity entity, Hand hand, float itemDamage) static booleanWrittenBookContentComponent.resolveInStack(ItemStack stack, ServerCommandSource commandSource, @Nullable PlayerEntity player) static voidNbtComponent.set(ComponentType<NbtComponent> type, ItemStack stack, Consumer<NbtCompound> nbtSetter) static voidNbtComponent.set(ComponentType<NbtComponent> type, ItemStack stack, NbtCompound nbt) voidUseCooldownComponent.set(ItemStack stack, LivingEntity user) static ItemStackvoidConsumableComponent.spawnParticlesAndPlaySound(Random random, LivingEntity user, ItemStack stack, int particleCount) static ActionResultJukeboxPlayableComponent.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) Copies the contents of this component to a list of item stacks.private static intContainerComponent.findLastNonEmptyIndex(List<ItemStack> stacks) static ContainerComponentContainerComponent.fromStacks(List<ItemStack> stacks) Creates a container component from a list of item stacks.static ChargedProjectilesComponentprivate static com.mojang.serialization.DataResult<BundleContentsComponent> BundleContentsComponent.validateOccupancy(List<ItemStack> stacks) Constructors 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, int selectedStackIndex) privateChargedProjectilesComponent(List<ItemStack> projectiles) privateContainerComponent(List<ItemStack> stacks) privateContainerComponent(DefaultedList<ItemStack> stacks) -
Uses of ItemStack in net.minecraft.data.recipe
Fields in net.minecraft.data.recipe declared as ItemStackMethods in net.minecraft.data.recipe with parameters of type ItemStackModifier and TypeMethodDescriptionstatic ShapelessRecipeJsonBuilderShapelessRecipeJsonBuilder.create(RegistryEntryLookup<Item> registryLookup, RecipeCategory category, ItemStack output) protected ShapelessRecipeJsonBuilderRecipeGenerator.createShapeless(RecipeCategory category, ItemStack output) Constructors in net.minecraft.data.recipe with parameters of type ItemStackModifierConstructorDescriptionprivateShapelessRecipeJsonBuilder(RegistryEntryLookup<Item> registryLookup, RecipeCategory category, ItemStack output) -
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) static ItemStackEnchantmentHelper.getEnchantedBookWith(EnchantmentLevelEntry entry) 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) 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) EnchantmentHelper.getHighestLevelEffect(ItemStack stack, ComponentType<T> componentType) 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.getRepairWithExperience(ServerWorld world, ItemStack stack, int baseRepairWithExperience) 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.modifyRepairWithExperience(ServerWorld world, int level, ItemStack stack, MutableFloat repairWithExperience) 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, ProjectileEntity projectile, Consumer<Item> onBreak) static voidEnchantmentHelper.onTargetDamaged(ServerWorld world, Entity target, DamageSource damageSource, @Nullable ItemStack weapon) static voidEnchantmentHelper.onTargetDamaged(ServerWorld world, Entity target, DamageSource damageSource, @Nullable ItemStack weapon, Consumer<Item> breakCallback) 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.riptideStackFields in net.minecraft.entity with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final TrackedData<ItemStack> EyeOfEnderEntity.ITEMprivate static final TrackedData<ItemStack> OminousItemSpawnerEntity.ITEMprivate final Map<EquipmentSlot, ItemStack> LivingEntity.lastEquipmentStacksprivate final EnumMap<EquipmentSlot, ItemStack> EntityEquipment.mapprivate static final TrackedData<ItemStack> ItemEntity.STACKMethods in net.minecraft.entity that return ItemStackModifier and TypeMethodDescriptionEntityEquipment.get(EquipmentSlot slot) LivingEntity.getActiveItem()LivingEntity.getBlockingItem()Returns the item stack currently being used for blocking, such as shields.Bucketable.getBucketItem()EquipmentHolder.getEquippedStack(EquipmentSlot slot) LivingEntity.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.getStackInArm(Arm arm) LivingEntity.getStackInHand(Hand hand) Entity.getWeaponStack()LivingEntity.getWeaponStack()static ItemStackEntityEquipment.put(EquipmentSlot slot, ItemStack stack) Methods in net.minecraft.entity that return types with arguments of type ItemStackModifier and TypeMethodDescriptionprivate @Nullable Map<EquipmentSlot, ItemStack> LivingEntity.getEquipmentChanges()Returns the difference between the last sent equipment set and the current one.Methods in net.minecraft.entity with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanLivingEntity.areItemsDifferent(ItemStack stack, ItemStack stack2) final booleanLivingEntity.canEquip(ItemStack stack, EquipmentSlot slot) final booleanLivingEntity.canEquipFromDispenser(ItemStack stack) static booleanLivingEntity.canGlideWith(ItemStack stack, EquipmentSlot slot) static booleanEntityType.componentsCopier(Consumer<T> chained, ItemStack stack) EntityType.copier(Consumer<T> chained, World world, ItemStack stack, @Nullable LivingEntity spawner) EntityType.copier(World world, ItemStack stack, @Nullable LivingEntity spawner) final voidEntity.copyComponentsFrom(ItemStack stack) static voidBucketable.copyDataToStack(MobEntity entity, ItemStack stack) Deprecated.voidBucketable.copyDataToStack(ItemStack stack) static OminousItemSpawnerEntityprivate @Nullable ItemEntityLivingEntity.createItemEntity(ItemStack stack, boolean atSelf, boolean retainOwnership) Entity.dropStack(ServerWorld world, ItemStack stack) Dropsstackat the entity's position.Entity.dropStack(ServerWorld world, ItemStack stack, float yOffset) Dropsstackat the entity's position with the given Y offset.voidEquipmentHolder.equipStack(EquipmentSlot slot, ItemStack stack) voidLivingEntity.equipStack(EquipmentSlot slot, ItemStack stack) protected voidLivingEntity.forEachShearedItem(ServerWorld world, RegistryKey<LootTable> lootTableKey, ItemStack tool, BiConsumer<ServerWorld, ItemStack> lootConsumer) protected RegistryEntry<SoundEvent> LivingEntity.getEquipSound(EquipmentSlot slot, ItemStack stack, EquippableComponent equippableComponent) final EquipmentSlotLivingEntity.getPreferredEquipmentSlot(ItemStack stack) LivingEntity.getProjectileType(ItemStack stack) default @Nullable EquipmentSlotEquipmentHolder.getSlotForStack(ItemStack stack, List<EquipmentSlot> slotBlacklist) voidLivingEntity.giveOrDropStack(ItemStack stack) private static voidItemEntity.merge(ItemEntity targetEntity, ItemStack targetStack, ItemEntity sourceEntity, ItemStack sourceStack) private static voidItemEntity.merge(ItemEntity targetEntity, ItemStack stack1, ItemStack stack2) static ItemStackEntityType.nbtCopier(Consumer<T> chained, World world, ItemStack stack, @Nullable LivingEntity spawner) private voidLivingEntity.onEquipmentRemoved(ItemStack removedEquipment, EquipmentSlot slot, AttributeContainer container) voidLivingEntity.onEquipStack(EquipmentSlot slot, ItemStack oldStack, ItemStack newStack) private voidLivingEntity.playEquipmentBreakEffects(ItemStack stack) EntityEquipment.put(EquipmentSlot slot, ItemStack stack) voidprivate voidvoidSets the item stack contained in this item entity tostack.voidLivingEntity.setStackInHand(Hand hand, ItemStack stack) voidShearable.sheared(ServerWorld world, SoundCategory shearedSoundCategory, ItemStack shears) EntityType.spawnFromItemStack(ServerWorld world, @Nullable ItemStack stack, @Nullable LivingEntity spawner, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) voidLivingEntity.spawnItemParticles(ItemStack stack, int count) private EntityOminousItemSpawnerEntity.spawnProjectile(ServerWorld world, ProjectileItem item, ItemStack stack) protected voidLivingEntity.tickItemStackUsage(ItemStack stack) Method parameters in net.minecraft.entity with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate voidLivingEntity.checkHandStackSwap(Map<EquipmentSlot, ItemStack> equipmentChanges) Notifies nearby players if the stacks in the hands have been swapped.protected booleanLivingEntity.forEachGeneratedItem(ServerWorld world, RegistryKey<LootTable> lootTableKey, Function<LootWorldContext.Builder, LootWorldContext> lootContextParametersFactory, BiConsumer<ServerWorld, ItemStack> lootConsumer) booleanLivingEntity.forEachGiftedItem(ServerWorld world, RegistryKey<LootTable> lootTableKey, BiConsumer<ServerWorld, ItemStack> lootConsumer) protected voidLivingEntity.forEachShearedItem(ServerWorld world, RegistryKey<LootTable> lootTableKey, ItemStack tool, BiConsumer<ServerWorld, ItemStack> lootConsumer) 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) Constructor parameters in net.minecraft.entity with type arguments of type ItemStack -
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 with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidTargetUtil.give(LivingEntity entity, ItemStack stack, Vec3d targetLocation) static voidTargetUtil.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 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()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 with parameters of type ItemStackModifier and TypeMethodDescriptionAbstractDecorationEntity.dropStack(ServerWorld world, ItemStack stack, float yOffset) Dropsstackat the entity's position with the given Y offset.private booleanArmorStandEntity.equip(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand) 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 ItemStack -
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
Methods in net.minecraft.entity.mob that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackMobEntity.getBodyArmor()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()MobEntity.tryEquip(ServerWorld world, ItemStack stack) Methods in net.minecraft.entity.mob that return types with arguments of type ItemStackMethods 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) protected booleanPiglinEntity.canEquipStack(ItemStack stack) Returns whether this piglin can equip into or replace current equipment slot.booleanMobEntity.canGather(ServerWorld world, ItemStack stack) protected static booleanPiglinBrain.canGather(PiglinEntity piglin, ItemStack stack) booleanPiglinBruteEntity.canGather(ServerWorld world, ItemStack stack) booleanPiglinEntity.canGather(ServerWorld world, ItemStack stack) booleanZombieEntity.canGather(ServerWorld world, ItemStack stack) booleanZombifiedPiglinEntity.canGather(ServerWorld world, ItemStack stack) protected booleanPiglinEntity.canInsertIntoInventory(ItemStack stack) booleanMobEntity.canPickupItem(ItemStack stack) booleanWitherSkeletonEntity.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 voidBoggedEntity.dropShearedItems(ServerWorld world, ItemStack shears) private voidPiglinEntity.equipAtChance(EquipmentSlot slot, ItemStack stack, Random random) voidMobEntity.equipBodyArmor(ItemStack stack) protected voidMobEntity.equipLootStack(EquipmentSlot slot, ItemStack stack) protected voidPiglinEntity.equipToMainHand(ItemStack stack) protected voidPiglinEntity.equipToOffHand(ItemStack stack) private doubleMobEntity.getAttributeValueWithStack(ItemStack stack, RegistryEntry<EntityAttribute> attribute, EquipmentSlot slot) HostileEntity.getProjectileType(ItemStack stack) booleanHoglinEntity.isBreedingItem(ItemStack stack) private static booleanprotected static booleanPiglinBrain.isGoldenItem(ItemStack stack) private booleanPillagerEntity.isRaidCaptain(ItemStack stack) protected static booleanPiglinBrain.isWillingToTrade(PiglinEntity piglin, ItemStack nearbyItems) voidAbstractSkeletonEntity.onEquipStack(EquipmentSlot slot, ItemStack oldStack, ItemStack newStack) private booleanMobEntity.prefersNewArmor(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) booleanMobEntity.prefersNewDamageableItem(ItemStack newStack, ItemStack oldStack) protected booleanDrownedEntity.prefersNewEquipment(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) protected booleanMobEntity.prefersNewEquipment(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) protected booleanPiglinEntity.prefersNewEquipment(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) private booleanMobEntity.prefersNewWeapon(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) voidBoggedEntity.sheared(ServerWorld world, SoundCategory shearedSoundCategory, ItemStack shears) private static voidPiglinBrain.swapItemWithOffHand(ServerWorld world, PiglinEntity piglin, ItemStack stack) MobEntity.tryEquip(ServerWorld world, 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.dropForeignEquipment(ServerWorld world, Predicate<ItemStack> dropPredicate) Drops all foreign equipment (equipment which this entity picked up from the world and should be always dropped undamaged). -
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 booleanbooleanAllayEntity.canGather(ServerWorld world, ItemStack stack) booleanVillagerEntity.canGather(ServerWorld world, ItemStack stack) booleanFoxEntity.canPickupItem(ItemStack stack) voidAxolotlEntity.copyDataToStack(ItemStack stack) voidFishEntity.copyDataToStack(ItemStack stack) voidSalmonEntity.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) private voidTadpoleEntity.eatSlimeBall(PlayerEntity player, ItemStack stack) voidAbstractHorseEntity.equipHorseArmor(PlayerEntity player, ItemStack stack) WanderingTraderEntity.getConsumeSound(ItemStack stack) Cracks.getCrackLevel(ItemStack stack) protected RegistryEntry<SoundEvent> AbstractHorseEntity.getEquipSound(EquipmentSlot slot, ItemStack stack, EquippableComponent equippableComponent) protected RegistryEntry<SoundEvent> CamelEntity.getEquipSound(EquipmentSlot slot, ItemStack stack, EquippableComponent equippableComponent) protected RegistryEntry<SoundEvent> PigEntity.getEquipSound(EquipmentSlot slot, ItemStack stack, EquippableComponent equippableComponent) protected RegistryEntry<SoundEvent> StriderEntity.getEquipSound(EquipmentSlot slot, ItemStack stack, EquippableComponent equippableComponent) private Optional<SuspiciousStewEffectsComponent> MooshroomEntity.getStewEffectFrom(ItemStack flower) AbstractHorseEntity.interactHorse(PlayerEntity player, ItemStack stack) booleanAbstractCowEntity.isBreedingItem(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) 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) 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) voidMooshroomEntity.sheared(ServerWorld world, SoundCategory shearedSoundCategory, ItemStack shears) voidSheepEntity.sheared(ServerWorld world, SoundCategory shearedSoundCategory, ItemStack shears) voidSnowGolemEntity.sheared(ServerWorld world, SoundCategory shearedSoundCategory, ItemStack shears) 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 ItemStackMethods in net.minecraft.entity.player that return ItemStackModifier and TypeMethodDescriptionPlayerInventory.dropSelectedItem(boolean entireStack) PlayerEquipment.get(EquipmentSlot slot) PlayerEntity.getProjectileType(ItemStack stack) PlayerInventory.getSelectedStack()PlayerInventory.getStack(int slot) Returns the stack currently stored atslot.PlayerEntity.getWeaponStack()PlayerEquipment.put(EquipmentSlot slot, ItemStack stack) PlayerInventory.removeStack(int slot) Removes the stack currently stored atslot.PlayerInventory.removeStack(int slot, int amount) Removes a specific number of items fromslot.PlayerInventory.setSelectedStack(ItemStack stack) 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 TypeMethodDescriptionprivate intprivate intvoidPlayerEntity.applyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels) booleanPlayerEntity.canPlaceOn(BlockPos pos, Direction facing, ItemStack stack) private booleanPlayerInventory.canStackAddMore(ItemStack existingStack, ItemStack stack) booleanvoidPlayerEntity.dropCreativeStack(ItemStack stack) floatItemCooldownManager.getCooldownProgress(ItemStack stack, float tickProgress) intPlayerInventory.getMatchingSlot(RegistryEntry<Item> item, ItemStack stack) intPlayerInventory.getOccupiedSlotWithRoomForStack(ItemStack stack) PlayerEntity.getProjectileType(ItemStack stack) intPlayerInventory.getSlotWithStack(ItemStack stack) booleanPlayerEntity.giveItemStack(ItemStack stack) booleanPlayerInventory.insertStack(int slot, ItemStack stack) booleanPlayerInventory.insertStack(ItemStack stack) booleanItemCooldownManager.isCoolingDown(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.PlayerEquipment.put(EquipmentSlot slot, ItemStack stack) voidvoidPlayerInventory.setSelectedStack(ItemStack stack) voidSets the stack stored atslottostack.voidPlayerInventory.swapStackWithHotbar(ItemStack stack) static booleanPlayerInventory.usableWhenFillingSlot(ItemStack stack) 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 TypeMethodDescriptionProjectileEntity.ProjectileCreator.create(ServerWorld world, LivingEntity shooter, ItemStack stack) static 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 voidstatic <T extends ProjectileEntity>
TProjectileEntity.spawn(T projectile, ServerWorld world, ItemStack projectileStack) static <T extends ProjectileEntity>
TProjectileEntity.spawn(T projectile, ServerWorld world, ItemStack projectileStack, Consumer<T> beforeSpawn) static <T extends ProjectileEntity>
TProjectileEntity.spawnWithVelocity(ProjectileEntity.ProjectileCreator<T> creator, ServerWorld world, ItemStack projectileStack, LivingEntity shooter, double velocityX, double velocityY, double velocityZ, float power, float divergence) static <T extends ProjectileEntity>
TProjectileEntity.spawnWithVelocity(ProjectileEntity.ProjectileCreator<T> creator, ServerWorld world, ItemStack projectileStack, LivingEntity shooter, float roll, float power, float divergence) static <T extends ProjectileEntity>
TProjectileEntity.spawnWithVelocity(T projectile, ServerWorld world, ItemStack projectileStack, double velocityX, double velocityY, double velocityZ, float power, float divergence) voidProjectileEntity.triggerProjectileSpawned(ServerWorld world, ItemStack projectileStack) intConstructors 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 ItemStackModifier and TypeMethodDescriptionvoidvoidLingeringPotionEntity.spawnAreaEffectCloud(ServerWorld world, ItemStack stack, @Nullable Entity entityHit) protected abstract voidPotionEntity.spawnAreaEffectCloud(ServerWorld world, ItemStack stack, @Nullable Entity entityHit) voidSplashPotionEntity.spawnAreaEffectCloud(ServerWorld world, ItemStack stack, @Nullable Entity entityHit) Constructors in net.minecraft.entity.projectile.thrown with parameters of type ItemStackModifierConstructorDescriptionEggEntity(World world, LivingEntity owner, ItemStack stack) EnderPearlEntity(World world, LivingEntity owner, ItemStack stack) ExperienceBottleEntity(World world, double x, double y, double z, ItemStack stack) ExperienceBottleEntity(World world, LivingEntity owner, ItemStack stack) LingeringPotionEntity(World world, double x, double y, double z, ItemStack stack) LingeringPotionEntity(World world, LivingEntity owner, ItemStack stack) PotionEntity(EntityType<? extends PotionEntity> type, World world, double x, double y, double z, ItemStack stack) PotionEntity(EntityType<? extends PotionEntity> type, World world, LivingEntity owner, ItemStack stack) SnowballEntity(World world, double x, double y, double z, ItemStack stack) SnowballEntity(World world, LivingEntity owner, ItemStack stack) SplashPotionEntity(World world, double x, double y, double z, ItemStack stack) SplashPotionEntity(World world, LivingEntity owner, ItemStack stack) ThrownItemEntity(EntityType<? extends ThrownItemEntity> type, double x, double y, double z, World world, ItemStack stack) ThrownItemEntity(EntityType<? extends ThrownItemEntity> type, LivingEntity owner, World world, ItemStack stack) -
Uses of ItemStack in net.minecraft.entity.vehicle
Fields in net.minecraft.entity.vehicle with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate DefaultedList<ItemStack> AbstractChestBoatEntity.inventoryprivate DefaultedList<ItemStack> StorageMinecartEntity.inventoryMethods in net.minecraft.entity.vehicle that return ItemStackModifier and TypeMethodDescriptiondefault ItemStackVehicleInventory.getInventoryStack(int slot) final ItemStackAbstractBoatEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.abstract ItemStackAbstractMinecartEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.ChestMinecartEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.CommandBlockMinecartEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.FurnaceMinecartEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.HopperMinecartEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.MinecartEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.SpawnerMinecartEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.TntMinecartEntity.getPickBlockStack()Returns the stack for creative "pick block" functionality, ornullif there is none.AbstractChestBoatEntity.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) AbstractChestBoatEntity.removeStack(int slot) Removes the stack currently stored atslot.AbstractChestBoatEntity.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 TypeMethodDescriptionAbstractChestBoatEntity.getInventory()StorageMinecartEntity.getInventory()VehicleInventory.getInventory()Methods in net.minecraft.entity.vehicle with parameters of type ItemStackModifier and TypeMethodDescriptionstatic <T extends AbstractMinecartEntity>
TAbstractMinecartEntity.create(World world, double x, double y, double z, EntityType<T> type, SpawnReason reason, 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.Inventory.Iterator.next()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()Inventory.iterator()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 ItemStackModifierConstructorDescriptionprivateCraftingInventory(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, ItemStack> ItemStack.LENGTH_PREPENDED_OPTIONAL_PACKET_CODECstatic final com.mojang.serialization.MapCodec<ItemStack> ItemStack.MAP_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 TypeMethodDescriptionprivate ItemStackItemStack.applyRemainderAndCooldown(LivingEntity user, ItemStack stack) ItemStack.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(ServerWorld serverWorld, 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) 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) SpyglassItem.finishUsing(ItemStack stack, World world, LivingEntity user) Called when an entity finishes using the item, such as eating food or drinking a potion.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) final ItemStackItem.getRecipeRemainder()Gets the remainder item that should be left behind when this item is used as a crafting ingredient.static ItemStackBundleItem.getSelectedStack(ItemStack stack) 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 TypeMethodDescriptionItemStackSet.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) private static PacketCodec<RegistryByteBuf, ItemStack> ItemStack.createOptionalPacketCodec(PacketCodec<RegistryByteBuf, ComponentChanges> componentsPacketCodec) 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) BundleItem.popFirstBundledStack(ItemStack stack, PlayerEntity player, BundleContentsComponent contents) 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) voidDecorationItem.appendTooltip(ItemStack stack, Item.TooltipContext context, TooltipDisplayComponent displayComponent, Consumer<Text> textConsumer, TooltipType type) voidDiscFragmentItem.appendTooltip(ItemStack stack, Item.TooltipContext context, TooltipDisplayComponent displayComponent, Consumer<Text> textConsumer, TooltipType type) voidItem.appendTooltip(ItemStack stack, Item.TooltipContext context, TooltipDisplayComponent displayComponent, Consumer<Text> textConsumer, TooltipType type) Deprecated.voidSmithingTemplateItem.appendTooltip(ItemStack stack, Item.TooltipContext context, TooltipDisplayComponent displayComponent, Consumer<Text> textConsumer, TooltipType type) private ItemStackItemStack.applyRemainderAndCooldown(LivingEntity user, ItemStack stack) 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.booleanDebugStickItem.canMine(ItemStack stack, BlockState state, World world, BlockPos pos, LivingEntity user) Returns whether a player can break a block while holding the item.booleanItem.canMine(ItemStack stack, BlockState state, World world, BlockPos pos, LivingEntity user) Returns whether a player can break a block while holding the item.protected booleanDecorationItem.canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos) protected booleanItemFrameItem.canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos) booleanItemStack.canRepairWith(ItemStack ingredient) booleanprivate static voidBlockItem.copyComponentsToBlockEntity(World world, BlockPos pos, ItemStack stack) private static voidFilledMapItem.copyMap(ItemStack itemStack, ServerWorld serverWorld) ArrowItem.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 @Nullable AbstractBoatEntityBoatItem.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) protected PotionEntityLingeringPotionItem.createEntity(ServerWorld world, LivingEntity user, ItemStack stack) protected PotionEntityLingeringPotionItem.createEntity(World world, Position pos, ItemStack stack) 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) protected PotionEntitySplashPotionItem.createEntity(ServerWorld world, LivingEntity user, ItemStack stack) protected PotionEntitySplashPotionItem.createEntity(World world, Position pos, ItemStack stack) protected abstract PotionEntityThrowablePotionItem.createEntity(ServerWorld world, LivingEntity user, ItemStack stack) protected abstract PotionEntityThrowablePotionItem.createEntity(World world, Position pos, ItemStack stack) 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) private voidBundleItem.dropContentsOnUse(World world, PlayerEntity player, ItemStack stack) private booleanBundleItem.dropFirstBundledStack(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) Item.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.static floatBundleItem.getAmountFilled(ItemStack stack) static ItemStackBucketItem.getEmptiedStack(ItemStack stack, PlayerEntity player) EntityType<?> SpawnEggItem.getEntityType(RegistryWrapper.WrapperLookup registries, ItemStack stack) intFuelRegistry.getFuelTicks(ItemStack item) private Optional<RegistryEntry<Instrument>> GoatHornItem.getInstrument(ItemStack stack, RegistryWrapper.WrapperLookup registries) 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.intBundleItem.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.intItem.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) static intBundleItem.getNumberOfStacksShown(ItemStack stack) 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) static ItemStackBundleItem.getSelectedStack(ItemStack stack) static intBundleItem.getSelectedStackIndex(ItemStack stack) BundleItem.getTooltipData(ItemStack stack) Item.getTooltipData(ItemStack stack) BowItem.getUseAction(ItemStack stack) Returns the use action the item should perform.BrushItem.getUseAction(ItemStack stack) Returns the use action the item should perform.BundleItem.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.Item.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 intstatic booleanBundleItem.hasSelectedStack(ItemStack stack) voidCompassItem.inventoryTick(ItemStack stack, ServerWorld world, Entity entity, @Nullable EquipmentSlot slot) Called on both the client and the server every tick if the item is in a player or other entity's inventory.voidFilledMapItem.inventoryTick(ItemStack stack, ServerWorld world, Entity entity, @Nullable EquipmentSlot slot) Called on both the client and the server every tick if the item is in a player or other entity's inventory.voidItem.inventoryTick(ItemStack stack, ServerWorld world, Entity entity, @Nullable EquipmentSlot slot) Called on both the client and the server every tick if the item is in a player or other entity's inventory.static booleanbooleanItem.isCorrectForDrops(ItemStack stack, BlockState state) booleanbooleanBundleItem.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(RegistryWrapper.WrapperLookup registries, ItemStack stack, EntityType<?> type) booleanCrossbowItem.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, PlayerEntity playerEntity) Called when a player acquires the item by crafting, smelting, smithing, etc.voidvoiddefault voidFluidModificationItem.onEmptied(@Nullable LivingEntity user, 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.booleanBowItem.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.booleanCrossbowItem.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.booleanItem.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.booleanSpyglassItem.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.booleanTridentItem.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) BundleItem.popFirstBundledStack(ItemStack stack, PlayerEntity player, BundleContentsComponent contents) voidItem.postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) voidMaceItem.postDamageEntity(ItemStack stack, LivingEntity target, LivingEntity attacker) voidItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) Called on the server when the item is used to hit an entity.voidMaceItem.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.private static voidFilledMapItem.scale(ItemStack map, ServerWorld serverWorld) static voidBlockItem.setBlockEntityData(ItemStack stack, BlockEntityType<?> type, NbtCompound nbt) static voidBundleItem.setSelectedStackIndex(ItemStack stack, int selectedStackIndex) 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) booleanBlockItem.shouldShowOperatorBlockWarnings(ItemStack stack, @Nullable PlayerEntity player) booleanItem.shouldShowOperatorBlockWarnings(ItemStack stack, @Nullable PlayerEntity player) booleanSpawnEggItem.shouldShowOperatorBlockWarnings(ItemStack stack, @Nullable PlayerEntity player) 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.voidBundleItem.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.static booleanBoneMealItem.useOnFertilizable(ItemStack stack, World world, BlockPos pos) static booleanBoneMealItem.useOnGround(ItemStack stack, World world, BlockPos blockPos, @Nullable Direction facing) 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.consume
Methods in net.minecraft.item.consume with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanApplyEffectsConsumeEffect.onConsume(World world, ItemStack stack, LivingEntity user) booleanClearAllEffectsConsumeEffect.onConsume(World world, ItemStack stack, LivingEntity user) booleanConsumeEffect.onConsume(World world, ItemStack stack, LivingEntity user) booleanPlaySoundConsumeEffect.onConsume(World world, ItemStack stack, LivingEntity user) booleanRemoveEffectsConsumeEffect.onConsume(World world, ItemStack stack, LivingEntity user) booleanTeleportRandomlyConsumeEffect.onConsume(World world, ItemStack stack, LivingEntity user) -
Uses of ItemStack in net.minecraft.item.equipment.trim
Methods in net.minecraft.item.equipment.trim with parameters of type ItemStackModifier and TypeMethodDescriptionstatic Optional<RegistryEntry<ArmorTrimMaterial>> ArmorTrimMaterials.get(RegistryWrapper.WrapperLookup registries, ItemStack stack) -
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.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(LootWorldContext parameters) LootTable.generateLoot(LootWorldContext parameters, long seed) LootTable.generateLoot(LootWorldContext 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(LootContext context, Consumer<ItemStack> lootConsumer) voidLootTable.generateLoot(LootWorldContext parameters, long seed, Consumer<ItemStack> lootConsumer) voidLootTable.generateLoot(LootWorldContext parameters, Consumer<ItemStack> lootConsumer) voidLootTable.generateUnprocessedLoot(LootContext context, Consumer<ItemStack> lootConsumer) voidLootTable.generateUnprocessedLoot(LootWorldContext parameters, Consumer<ItemStack> lootConsumer) LootTable.processStacks(ServerWorld world, Consumer<ItemStack> consumer) private voidLootTable.spreadStacks(ObjectArrayList<ItemStack> stacks, 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 ContextParameter<ItemStack> LootContextParameters.TOOLMethod parameters in net.minecraft.loot.context with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidvoidLootWorldContext.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) 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) 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 ItemStackCreativeInventoryActionC2SPacket.stackThe field for thestackrecord component.Methods in net.minecraft.network.packet.c2s.play that return ItemStackModifier and TypeMethodDescriptionCreativeInventoryActionC2SPacket.stack()Returns the value of thestackrecord component.Constructors in net.minecraft.network.packet.c2s.play with parameters of type ItemStackModifierConstructorDescriptionCreativeInventoryActionC2SPacket(int slot, ItemStack stack) CreativeInventoryActionC2SPacket(short short2, ItemStack itemStack) -
Uses of ItemStack in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackSetCursorItemS2CPacket.contentsThe field for thecontentsrecord component.private final ItemStackSetPlayerInventoryS2CPacket.contentsThe field for thecontentsrecord component.private final ItemStackInventoryS2CPacket.cursorStackThe field for thecursorStackrecord component.private final ItemStackScreenHandlerSlotUpdateS2CPacket.stackFields in net.minecraft.network.packet.s2c.play with type parameters of type ItemStackModifier and TypeFieldDescriptionInventoryS2CPacket.contentsThe field for thecontentsrecord component.private final List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> EntityEquipmentUpdateS2CPacket.equipmentListMethods in net.minecraft.network.packet.s2c.play that return ItemStackModifier and TypeMethodDescriptionSetCursorItemS2CPacket.contents()Returns the value of thecontentsrecord component.SetPlayerInventoryS2CPacket.contents()Returns the value of thecontentsrecord component.InventoryS2CPacket.cursorStack()Returns the value of thecursorStackrecord component.ScreenHandlerSlotUpdateS2CPacket.getStack()Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type ItemStackModifier and TypeMethodDescriptionInventoryS2CPacket.contents()Returns the value of thecontentsrecord component.List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> EntityEquipmentUpdateS2CPacket.getEquipmentList()Constructors in net.minecraft.network.packet.s2c.play with parameters of type ItemStackModifierConstructorDescriptionInventoryS2CPacket(int int2, int int3, List<ItemStack> list, ItemStack itemStack) ScreenHandlerSlotUpdateS2CPacket(int syncId, int revision, int slot, ItemStack stack) SetCursorItemS2CPacket(ItemStack itemStack) SetPlayerInventoryS2CPacket(int int2, ItemStack itemStack) Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type ItemStackModifierConstructorDescriptionEntityEquipmentUpdateS2CPacket(int entityId, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> equipmentList) InventoryS2CPacket(int int2, int int3, List<ItemStack> list, ItemStack itemStack) -
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.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 ItemStackConstructor 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 TypeFieldDescription(package private) final ItemStackShapedRecipe.result(package private) final ItemStackShapelessRecipe.resultprivate final ItemStackSingleStackRecipe.resultFields 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 TypeMethodDescriptionArmorDyeRecipe.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) 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 registries) 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) SingleStackRecipe.craft(SingleStackRecipeInput singleStackRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) SmithingTransformRecipe.craft(SmithingRecipeInput smithingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) SmithingTrimRecipe.craft(SmithingRecipeInput smithingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) static ItemStackSmithingTrimRecipe.craft(RegistryWrapper.WrapperLookup registries, ItemStack base, ItemStack addition, RegistryEntry<ArmorTrimPattern> pattern) TippedArrowRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) TransmuteRecipe.craft(CraftingRecipeInput craftingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup) private static ItemStackMapExtendingRecipe.findFilledMap(CraftingRecipeInput input) private static ItemStackCraftingDecoratedPotRecipe.getBack(CraftingRecipeInput input) private static ItemStackCraftingDecoratedPotRecipe.getFront(CraftingRecipeInput input) private static ItemStackCraftingDecoratedPotRecipe.getLeft(CraftingRecipeInput input) private static ItemStackCraftingDecoratedPotRecipe.getRight(CraftingRecipeInput input) protected ItemStackSingleStackRecipe.result()Methods in net.minecraft.recipe that return types with arguments of type ItemStackModifier and TypeMethodDescriptionstatic DefaultedList<ItemStack> CraftingRecipe.collectRecipeRemainders(CraftingRecipeInput input) RepairItemRecipe.findPair(CraftingRecipeInput craftingRecipeInput) RepairItemRecipe.findPair(CraftingRecipeInput craftingRecipeInput) BannerDuplicateRecipe.getRecipeRemainders(CraftingRecipeInput input) BookCloningRecipe.getRecipeRemainders(CraftingRecipeInput input) default DefaultedList<ItemStack> CraftingRecipe.getRecipeRemainders(CraftingRecipeInput input) RecipeDisplayEntry.getStacks(ContextParameterMap context) RecipeCache.CachedRecipe.key()Returns the value of thekeyrecord component.Methods in net.minecraft.recipe with parameters of type ItemStackModifier and TypeMethodDescriptionvoidvoidvoidRecipeFinder.addInputIfUsable(ItemStack item) private static booleanRepairItemRecipe.canCombineStacks(ItemStack first, ItemStack second) booleanstatic ItemStackSmithingTrimRecipe.craft(RegistryWrapper.WrapperLookup registries, ItemStack base, ItemStack addition, RegistryEntry<ArmorTrimPattern> pattern) AbstractCookingRecipe.RecipeFactory.create(String group, CookingRecipeCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) SingleStackRecipe.RecipeFactory.create(String group, Ingredient ingredient, ItemStack result) booleanBrewingRecipeRegistry.hasItemRecipe(ItemStack input, ItemStack ingredient) booleanBrewingRecipeRegistry.hasPotionRecipe(ItemStack input, ItemStack ingredient) booleanbooleanTransmuteRecipeResult.isEqualToResult(ItemStack stack) booleanBrewingRecipeRegistry.isItemRecipeIngredient(ItemStack stack) booleanBrewingRecipeRegistry.isPotionRecipeIngredient(ItemStack stack) private booleanBrewingRecipeRegistry.isPotionType(ItemStack stack) booleanBrewingRecipeRegistry.isValidIngredient(ItemStack stack) static booleanIngredient.matches(Optional<Ingredient> ingredient, ItemStack stack) booleanMethod parameters in net.minecraft.recipe with type arguments of type ItemStackModifier and TypeMethodDescriptiondefault voidRecipeUnlocker.unlockLastRecipe(PlayerEntity player, List<ItemStack> ingredients) Constructors in net.minecraft.recipe with parameters of type ItemStackModifierConstructorDescriptionAbstractCookingRecipe(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) 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, List<Ingredient> ingredients) SingleStackRecipe(String group, Ingredient ingredient, ItemStack result) SmeltingRecipe(String group, CookingRecipeCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) SmokingRecipe(String group, CookingRecipeCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) 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.display
Fields in net.minecraft.recipe.display declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackSlotDisplay.StackSlotDisplay.stackThe field for thestackrecord component.Methods in net.minecraft.recipe.display that return ItemStackModifier and TypeMethodDescriptiondefault ItemStackSlotDisplay.getFirst(ContextParameterMap context) SlotDisplay.StackSlotDisplay.stack()Returns the value of thestackrecord component.SlotDisplay.NoopDisplayedItemFactory.toDisplayed(ItemStack itemStack) Methods in net.minecraft.recipe.display that return types with arguments of type ItemStackMethods in net.minecraft.recipe.display with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanDisplayedItemFactory.FromStack.toDisplayed(ItemStack stack) SlotDisplay.NoopDisplayedItemFactory.toDisplayed(ItemStack itemStack) Constructors in net.minecraft.recipe.display with parameters of type ItemStack -
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.inputStackFields in net.minecraft.screen with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate 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 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 booleanprivate static voidScreenHandler.offerOrDropStack(PlayerEntity player, ItemStack stack) voidCrafterScreenHandler.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.setReceivedStack(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(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, List<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, List<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 TypeMethodDescriptionprivate static DefaultedList<ItemStack> CraftingResultSlot.copyInput(CraftingRecipeInput input) private DefaultedList<ItemStack> CraftingResultSlot.getRecipeRemainders(CraftingRecipeInput input, World world) ForgingSlotsManager.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.screen.sync
Fields in net.minecraft.screen.sync declared as ItemStackMethods in net.minecraft.screen.sync with parameters of type ItemStackModifier and TypeMethodDescriptionstatic ItemStackHashItemStackHash.fromItemStack(ItemStack stack, ComponentChangesHash.ComponentHasher hasher) booleanItemStackHash.hashEquals(ItemStack stack, ComponentChangesHash.ComponentHasher hasher) booleanItemStackHash.Impl.hashEquals(ItemStack stack, ComponentChangesHash.ComponentHasher hasher) booleanbooleanvoidTrackedSlot.Impl.setReceivedStack(ItemStack receivedStack) voidTrackedSlot.setReceivedStack(ItemStack receivedStack) -
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.private static voidServerPlayNetworkHandler.copyBlockDataToStack(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack) voidServerPlayerEntity.giveOrDropStack(ItemStack stack) DemoServerPlayerInteractionManager.interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) ServerPlayerInteractionManager.interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) DemoServerPlayerInteractionManager.interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) ServerPlayerInteractionManager.interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) private voidServerPlayNetworkHandler.onPickItem(ItemStack stack) private voidServerPlayerEntity.sendMapPacket(ItemStack stack) 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 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 ItemStackModifier and TypeFieldDescriptionprivate final ItemStackHoverEvent.ShowItem.itemThe field for theitemrecord component.Methods in net.minecraft.text that return ItemStackModifier and TypeMethodDescriptionHoverEvent.ShowItem.item()Returns the value of theitemrecord component.Constructors in net.minecraft.text with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.util
Fields in net.minecraft.util declared as ItemStackModifier and TypeFieldDescriptionActionResult.ItemContext.newHandStackThe field for thenewHandStackrecord component.Methods in net.minecraft.util that return ItemStackModifier and TypeMethodDescriptionActionResult.Success.getNewHandStack()Returns the item stack that should replace the hand stack after this interaction, if any.ActionResult.ItemContext.newHandStack()Returns the value of thenewHandStackrecord component.Methods in net.minecraft.util with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidSpawns an item entity ofstackaround the given position.ActionResult.Success.withNewHandStack(ItemStack newHandStack) 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.Constructors in net.minecraft.util with parameters of type ItemStack -
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, ComponentMapPredicate 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, ComponentMapPredicate componentMapPredicate, 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.createOminousBanner(RegistryEntryLookup<BannerPattern> bannerPatternLookup) -
Uses of ItemStack in net.minecraft.world.explosion
Fields in net.minecraft.world.explosion declared as ItemStackMethods in net.minecraft.world.explosion with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static voidExplosionImpl.addDroppedItem(List<ExplosionImpl.DroppedItem> droppedItemsOut, ItemStack item, BlockPos pos) voidConstructors in net.minecraft.world.explosion with parameters of type ItemStack