Uses of Class
net.minecraft.item.ItemStack
Packages that use ItemStack
Package
Description
The basic AI system for Minecraft living entities.
-
Uses of ItemStack in net.minecraft.advancement
Fields in net.minecraft.advancement declared as ItemStackMethods in net.minecraft.advancement that return ItemStackModifier and TypeMethodDescriptionAdvancementDisplay.getIcon()private static ItemStackAdvancementDisplay.iconFromJson(JsonObject json) Methods in net.minecraft.advancement with parameters of type ItemStackModifier and TypeMethodDescriptionAdvancement.Builder.display(ItemStack icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden) Constructors in net.minecraft.advancement with parameters of type ItemStackModifierConstructorDescriptionAdvancementDisplay(ItemStack icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden) -
Uses of ItemStack in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanFishingRodHookedCriterion.Conditions.matches(ItemStack rod, LootContext hookedEntityContext, Collection<ItemStack> fishingLoots) booleanInventoryChangedCriterion.Conditions.matches(PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied) booleanbooleanPlacedBlockCriterion.Conditions.matches(BlockState state, BlockPos pos, ServerWorld world, ItemStack stack) booleanbooleanbooleanVillagerTradeCriterion.Conditions.matches(LootContext merchantContext, ItemStack stack) booleanBeeNestDestroyedCriterion.Conditions.test(BlockState state, ItemStack stack, int count) booleanItemCriterion.Conditions.test(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack) booleanPlayerInteractedWithEntityCriterion.Conditions.test(ItemStack stack, LootContext context) booleanThrownItemPickedUpByEntityCriterion.Conditions.test(ServerPlayerEntity player, ItemStack stack, LootContext entityContext) booleanvoidBeeNestDestroyedCriterion.trigger(ServerPlayerEntity player, BlockState state, ItemStack stack, int beeCount) voidConsumeItemCriterion.trigger(ServerPlayerEntity player, ItemStack stack) voidEnchantedItemCriterion.trigger(ServerPlayerEntity player, ItemStack stack, int levels) voidFilledBucketCriterion.trigger(ServerPlayerEntity player, ItemStack stack) voidFishingRodHookedCriterion.trigger(ServerPlayerEntity player, ItemStack rod, FishingBobberEntity bobber, Collection<ItemStack> fishingLoots) voidInventoryChangedCriterion.trigger(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack) private voidInventoryChangedCriterion.trigger(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied) voidItemCriterion.trigger(ServerPlayerEntity player, BlockPos pos, ItemStack stack) voidItemDurabilityChangedCriterion.trigger(ServerPlayerEntity player, ItemStack stack, int durability) voidPlacedBlockCriterion.trigger(ServerPlayerEntity player, BlockPos blockPos, ItemStack stack) voidPlayerInteractedWithEntityCriterion.trigger(ServerPlayerEntity player, ItemStack stack, Entity entity) voidShotCrossbowCriterion.trigger(ServerPlayerEntity player, ItemStack stack) voidThrownItemPickedUpByEntityCriterion.trigger(ServerPlayerEntity player, ItemStack stack, @Nullable Entity entity) voidUsedTotemCriterion.trigger(ServerPlayerEntity player, ItemStack stack) voidUsingItemCriterion.trigger(ServerPlayerEntity player, ItemStack stack) voidVillagerTradeCriterion.trigger(ServerPlayerEntity player, MerchantEntity merchant, ItemStack stack) Method parameters in net.minecraft.advancement.criterion with type arguments of type ItemStackModifier and TypeMethodDescriptionbooleanFishingRodHookedCriterion.Conditions.matches(ItemStack rod, LootContext hookedEntityContext, Collection<ItemStack> fishingLoots) voidFishingRodHookedCriterion.trigger(ServerPlayerEntity player, ItemStack rod, FishingBobberEntity bobber, Collection<ItemStack> fishingLoots) -
Uses of ItemStack in net.minecraft.block
Fields in net.minecraft.block declared as ItemStackMethods in net.minecraft.block that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackShulkerBoxBlock.getItemStack(@Nullable DyeColor color) AbstractBannerBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) AbstractPlantBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) AttachedStemBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) BambooSaplingBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) BigDripleafStemBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) Block.getPickStack(BlockView world, BlockPos pos, BlockState state) CandleCakeBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) CaveVinesBodyBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) CaveVinesHeadBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) CropBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) EndGatewayBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) EndPortalBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) FlowerPotBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) FrostedIceBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) LightBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) NetherPortalBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) NetherWartBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) PistonExtensionBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) PistonHeadBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) ShulkerBoxBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) SpawnerBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) StemBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) SweetBerryBushBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) TallSeagrassBlock.getPickStack(BlockView world, BlockPos pos, BlockState state) BubbleColumnBlock.tryDrainFluid(WorldAccess world, BlockPos pos, BlockState state) FluidBlock.tryDrainFluid(WorldAccess world, BlockPos pos, BlockState state) FluidDrainable.tryDrainFluid(WorldAccess world, BlockPos pos, BlockState state) PowderSnowBlock.tryDrainFluid(WorldAccess world, BlockPos pos, BlockState state) default ItemStackWaterloggable.tryDrainFluid(WorldAccess world, BlockPos pos, BlockState state) Methods in net.minecraft.block that return types with arguments of type ItemStackModifier and TypeMethodDescriptionAbstractBlock.AbstractBlockState.getDroppedStacks(LootContext.Builder builder) AbstractBlock.getDroppedStacks(BlockState state, LootContext.Builder builder) Deprecated.BeehiveBlock.getDroppedStacks(BlockState state, LootContext.Builder builder) 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) FluidBlock.getDroppedStacks(BlockState state, LootContext.Builder builder) PistonExtensionBlock.getDroppedStacks(BlockState state, LootContext.Builder builder) ShulkerBoxBlock.getDroppedStacks(BlockState state, LootContext.Builder builder) WallPlayerSkullBlock.getDroppedStacks(BlockState state, LootContext.Builder builder) Methods in net.minecraft.block with parameters of type ItemStackModifier and TypeMethodDescription(package private) static BlockStateComposterBlock.addToComposter(BlockState state, WorldAccess world, BlockPos pos, ItemStack item) voidBeehiveBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) voidBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) voidIceBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) voidTallPlantBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) voidTurtleEggBlock.afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack) voidBlock.appendTooltip(ItemStack stack, @Nullable BlockView world, List<Text> tooltip, TooltipContext options) voidShulkerBoxBlock.appendTooltip(ItemStack stack, @Nullable BlockView world, List<Text> tooltip, TooltipContext options) static booleanWitherSkullBlock.canDispense(World world, BlockPos pos, ItemStack stack) booleanComposterBlock.ComposterInventory.canExtract(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanComposterBlock.DummyInventory.canExtract(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanComposterBlock.FullComposterInventory.canExtract(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.static BlockStateComposterBlock.compost(BlockState state, ServerWorld world, ItemStack stack, BlockPos pos) protected voidBlock.dropExperienceWhenMined(ServerWorld world, BlockPos pos, ItemStack tool, IntProvider experience) private static voidBlock.dropStack(World world, Supplier<ItemEntity> itemEntitySupplier, ItemStack stack) static voidstatic voidstatic voidBlock.dropStacks(BlockState state, World world, BlockPos pos, @Nullable BlockEntity blockEntity, Entity entity, ItemStack stack) protected DispenserBehaviorDispenserBlock.getBehaviorForItem(ItemStack stack) protected DispenserBehaviorDropperBlock.getBehaviorForItem(ItemStack stack) Block.getDroppedStacks(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack stack) private static booleanRespawnAnchorBlock.isChargeItem(ItemStack stack) voidAbstractBannerBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) voidAbstractFurnaceBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidAbstractRedstoneGateBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidBarrelBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) voidBeaconBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidBedBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) voidBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) voidBrewingStandBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidChestBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidCommandBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidConduitBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) voidDispenserBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidDoorBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidEnchantingTableBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidHopperBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidJukeboxBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) voidPistonBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidPlayerSkullBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) voidShulkerBoxBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidSmallDripleafBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidStructureBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) voidTallPlantBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidTripwireHookBlock.onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) voidWallPlayerSkullBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) voidWallWitherSkullBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) voidWitherSkullBlock.onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack) voidAbstractBlock.AbstractBlockState.onStacksDropped(ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) voidAbstractBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) voidInfestedBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) voidOreBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) voidRedstoneOreBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) voidSculkCatalystBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) voidSculkSensorBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) voidSculkShriekerBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) voidSpawnerBlock.onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack, boolean dropExperience) private static voidLecternBlock.putBook(@Nullable PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack) static booleanLecternBlock.putBookIfAbsent(@Nullable PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack) voidJukeboxBlock.setRecord(@Nullable Entity user, WorldAccess world, BlockPos pos, BlockState state, ItemStack stack) Method parameters in net.minecraft.block with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidBlock.appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks) Appends the stacks of this block shown in the item group to the list.Constructors in net.minecraft.block with parameters of type ItemStackModifierConstructorDescriptionprotectedEntityShapeContext(boolean descending, double minY, ItemStack heldItem, Predicate<FluidState> walkOnFluidPredicate, @Nullable Entity entity) FullComposterInventory(BlockState state, WorldAccess world, BlockPos pos, ItemStack outputItem) -
Uses of ItemStack in net.minecraft.block.cauldron
Methods in net.minecraft.block.cauldron with parameters of type ItemStackModifier and TypeMethodDescriptionstatic ActionResultCauldronBehavior.emptyCauldron(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, ItemStack output, Predicate<BlockState> predicate, SoundEvent soundEvent) static ActionResultCauldronBehavior.fillCauldron(World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, BlockState state, SoundEvent soundEvent) CauldronBehavior.interact(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 TypeMethodDescriptionDispenserBehavior.dispense(BlockPointer pointer, ItemStack stack) final ItemStackItemDispenserBehavior.dispense(BlockPointer pointer, ItemStack stack) protected ItemStackBlockPlacementDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) BoatDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) protected ItemStackItemDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) ProjectileDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) protected ItemStackShearsDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) Methods in net.minecraft.block.dispenser with parameters of type ItemStackModifier and TypeMethodDescriptionprotected abstract ProjectileEntityProjectileDispenserBehavior.createProjectile(World world, Position position, ItemStack stack) Creates the entity that will be spawned in front of the dispenser.DispenserBehavior.dispense(BlockPointer pointer, ItemStack stack) final ItemStackItemDispenserBehavior.dispense(BlockPointer pointer, ItemStack stack) protected ItemStackBlockPlacementDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) BoatDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) protected ItemStackItemDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) ProjectileDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) protected ItemStackShearsDispenserBehavior.dispenseSilently(BlockPointer pointer, ItemStack stack) static voidItemDispenserBehavior.spawnItem(World world, ItemStack stack, int speed, Direction side, Position pos) -
Uses of ItemStack in net.minecraft.block.entity
Fields in net.minecraft.block.entity declared as ItemStackModifier and TypeFieldDescription(package private) ItemStackLecternBlockEntity.bookprivate ItemStackJukeboxBlockEntity.recordFields in net.minecraft.block.entity with type parameters of type ItemStackModifier and TypeFieldDescriptionprotected DefaultedList<ItemStack>AbstractFurnaceBlockEntity.inventoryprivate DefaultedList<ItemStack>BarrelBlockEntity.inventoryprivate DefaultedList<ItemStack>BrewingStandBlockEntity.inventoryprivate DefaultedList<ItemStack>ChestBlockEntity.inventoryprivate 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 TypeMethodDescriptionLecternBlockEntity.getBook()BannerBlockEntity.getPickStack()JukeboxBlockEntity.getRecord()AbstractFurnaceBlockEntity.getStack(int slot) Fetches the stack currently stored at the given slot.BrewingStandBlockEntity.getStack(int slot) Fetches the stack currently stored at the given slot.LootableContainerBlockEntity.getStack(int slot) Fetches the stack currently stored at the given slot.AbstractFurnaceBlockEntity.removeStack(int slot) Removes the stack currently stored at the indicated slot.AbstractFurnaceBlockEntity.removeStack(int slot, int amount) Removes a specific number of items from the given slot.BrewingStandBlockEntity.removeStack(int slot) Removes the stack currently stored at the indicated slot.BrewingStandBlockEntity.removeStack(int slot, int amount) Removes a specific number of items from the given slot.HopperBlockEntity.removeStack(int slot, int amount) Removes a specific number of items from the given slot.LootableContainerBlockEntity.removeStack(int slot) Removes the stack currently stored at the indicated slot.LootableContainerBlockEntity.removeStack(int slot, int amount) Removes a specific number of items from the given slot.private ItemStackLecternBlockEntity.resolveBook(ItemStack book, @Nullable PlayerEntity player) private static ItemStackHopperBlockEntity.transfer(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction side) static ItemStackHopperBlockEntity.transfer(@Nullable Inventory from, Inventory to, ItemStack stack, @Nullable Direction side) Methods in net.minecraft.block.entity that return types with arguments of type ItemStackModifier and TypeMethodDescriptionprotected DefaultedList<ItemStack>BarrelBlockEntity.getInvStackList()protected DefaultedList<ItemStack>ChestBlockEntity.getInvStackList()protected DefaultedList<ItemStack>DispenserBlockEntity.getInvStackList()protected DefaultedList<ItemStack>HopperBlockEntity.getInvStackList()protected abstract DefaultedList<ItemStack>LootableContainerBlockEntity.getInvStackList()protected DefaultedList<ItemStack>ShulkerBoxBlockEntity.getInvStackList()CampfireBlockEntity.getItemsBeingCooked()Methods in net.minecraft.block.entity with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanintDispenserBlockEntity.addToFirstFreeSlot(ItemStack stack) booleanAbstractFurnaceBlockEntity.canExtract(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanBrewingStandBlockEntity.canExtract(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.private static booleanHopperBlockEntity.canExtract(Inventory inv, ItemStack stack, int slot, Direction facing) booleanShulkerBoxBlockEntity.canExtract(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.private static booleanHopperBlockEntity.canInsert(Inventory inventory, ItemStack stack, int slot, @Nullable Direction side) booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.private static booleanHopperBlockEntity.canMergeItems(ItemStack first, ItemStack second) static booleanAbstractFurnaceBlockEntity.canUseAsFuel(ItemStack stack) protected intAbstractFurnaceBlockEntity.getFuelTime(ItemStack fuel) protected intBlastFurnaceBlockEntity.getFuelTime(ItemStack fuel) protected intSmokerBlockEntity.getFuelTime(ItemStack fuel) static intBannerBlockEntity.getPatternCount(ItemStack stack) BannerBlockEntity.getPatternListNbt(ItemStack stack) CampfireBlockEntity.getRecipeFor(ItemStack stack) booleanReturns whether the given stack is a valid for the indicated slot position.booleanReturns whether the given stack is a valid for the indicated slot position.static voidBannerBlockEntity.loadFromItemStack(ItemStack stack) voidvoidprivate ItemStackLecternBlockEntity.resolveBook(ItemStack book, @Nullable PlayerEntity player) voidvoidLecternBlockEntity.setBook(ItemStack book, @Nullable PlayerEntity player) voidvoidvoidvoidvoidvoidBlockEntity.setStackNbt(ItemStack stack) private static ItemStackHopperBlockEntity.transfer(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction side) static ItemStackHopperBlockEntity.transfer(@Nullable Inventory from, Inventory to, ItemStack stack, @Nullable Direction side) Method parameters in net.minecraft.block.entity with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate static booleanAbstractFurnaceBlockEntity.canAcceptRecipeOutput(@Nullable Recipe<?> recipe, DefaultedList<ItemStack> slots, int count) private static booleanBrewingStandBlockEntity.canCraft(DefaultedList<ItemStack> slots) private static voidBrewingStandBlockEntity.craft(World world, BlockPos pos, DefaultedList<ItemStack> slots) private static booleanAbstractFurnaceBlockEntity.craftRecipe(@Nullable Recipe<?> recipe, DefaultedList<ItemStack> slots, int count) protected voidBarrelBlockEntity.setInvStackList(DefaultedList<ItemStack> list) protected voidChestBlockEntity.setInvStackList(DefaultedList<ItemStack> list) protected voidDispenserBlockEntity.setInvStackList(DefaultedList<ItemStack> list) protected voidHopperBlockEntity.setInvStackList(DefaultedList<ItemStack> list) protected abstract voidLootableContainerBlockEntity.setInvStackList(DefaultedList<ItemStack> list) protected voidShulkerBoxBlockEntity.setInvStackList(DefaultedList<ItemStack> list) -
Uses of ItemStack in net.minecraft.client
Methods in net.minecraft.client that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackMinecraftClient.addBlockEntityNbt(ItemStack stack, BlockEntity blockEntity) Methods in net.minecraft.client with parameters of type ItemStackModifier and TypeMethodDescriptionprivate ItemStackMinecraftClient.addBlockEntityNbt(ItemStack stack, BlockEntity blockEntity) -
Uses of ItemStack in net.minecraft.client.color.item
Methods in net.minecraft.client.color.item with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.client.gui.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(int x, int y, float tickDelta, PlayerEntity player, ItemStack stack, int seed) -
Uses of ItemStack in net.minecraft.client.gui.screen
Fields in net.minecraft.client.gui.screen declared as ItemStackModifier and TypeFieldDescription(package private) final ItemStackGameModeSelectionScreen.GameModeSelection.iconMethods in net.minecraft.client.gui.screen that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackCustomizeFlatLevelScreen.SuperflatLayersListWidget.SuperflatLayerEntry.createItemStackFor(BlockState state) Methods in net.minecraft.client.gui.screen with parameters of type ItemStackModifier and TypeMethodDescriptionScreen.getTooltipFromItem(ItemStack stack) private voidCustomizeFlatLevelScreen.SuperflatLayersListWidget.SuperflatLayerEntry.renderIcon(MatrixStack matrices, int x, int y, ItemStack iconItem) protected voidScreen.renderTooltip(MatrixStack matrices, ItemStack stack, int x, int y) 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(int x, int y, int index, ItemRenderer itemRenderer, ItemStack icon) -
Uses of ItemStack in net.minecraft.client.gui.screen.ingame
Fields in net.minecraft.client.gui.screen.ingame declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackLoomScreen.bannerprivate ItemStackLoomScreen.dyeprivate final ItemStackBookEditScreen.itemStackprivate ItemStackLoomScreen.patternprivate ItemStackHandledScreen.quickMovingStackprivate ItemStackEnchantmentScreen.stackprivate ItemStackHandledScreen.touchDragStackprivate ItemStackHandledScreen.touchDropReturningStackFields in net.minecraft.client.gui.screen.ingame with type parameters of type ItemStackModifier and TypeFieldDescriptionfinal DefaultedList<ItemStack>CreativeInventoryScreen.CreativeScreenHandler.itemListMethods in net.minecraft.client.gui.screen.ingame that return ItemStackModifier and TypeMethodDescriptionCreativeInventoryScreen.CreativeScreenHandler.getCursorStack()CreativeInventoryScreen.CreativeSlot.getStack()CreativeInventoryScreen.CreativeSlot.takeStack(int amount) CreativeInventoryScreen.CreativeScreenHandler.transferSlot(PlayerEntity player, int index) Methods in net.minecraft.client.gui.screen.ingame with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanbooleanCreativeInventoryScreen.CreativeScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) static BookScreen.Contentsprivate voidintCreativeInventoryScreen.CreativeSlot.getMaxItemCount(ItemStack stack) voidAnvilScreen.onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack) voidCreativeInventoryListener.onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack) voidForgingScreen.onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack) voidCreativeInventoryScreen.CreativeSlot.onTakeItem(PlayerEntity player, ItemStack stack) private voidMerchantScreen.renderFirstBuyItem(MatrixStack matrices, ItemStack adjustedFirstBuyItem, ItemStack originalFirstBuyItem, int x, int y) protected voidCreativeInventoryScreen.renderTooltip(MatrixStack matrices, ItemStack stack, int x, int y) voidCreativeInventoryScreen.CreativeScreenHandler.setCursorStack(ItemStack stack) voidSets the slot's stack tostackand marks the slot as dirty.Constructors in net.minecraft.client.gui.screen.ingame with parameters of type ItemStackModifierConstructorDescriptionBookEditScreen(PlayerEntity player, ItemStack itemStack, Hand hand) WritableBookContents(ItemStack stack) WrittenBookContents(ItemStack stack) -
Uses of ItemStack in net.minecraft.client.gui.screen.recipebook
Fields in net.minecraft.client.gui.screen.recipebook declared as ItemStackModifier and TypeFieldDescriptionfinal ItemStack[]RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot.stacksMethods in net.minecraft.client.gui.screen.recipebook that return ItemStackConstructors in net.minecraft.client.gui.screen.recipebook with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.client.gui.tooltip
Fields in net.minecraft.client.gui.tooltip with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>BundleTooltipComponent.inventory -
Uses of ItemStack in net.minecraft.client.item
Fields in net.minecraft.client.item with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>BundleTooltipData.inventoryMethods in net.minecraft.client.item that return types with arguments of type ItemStackMethods in net.minecraft.client.item with parameters of type ItemStackModifier and TypeMethodDescriptionfloatModelPredicateProvider.call(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) Deprecated.default floatUnclampedModelPredicateProvider.call(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) Deprecated.private floatCompassAnglePredicateProvider.getAngle(ItemStack stack, ClientWorld world, int seed, Entity entity) CompassAnglePredicateProvider.CompassTarget.getPos(ClientWorld world, ItemStack stack, Entity entity) floatCompassAnglePredicateProvider.unclampedCall(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) floatUnclampedModelPredicateProvider.unclampedCall(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) Constructor parameters in net.minecraft.client.item with type arguments of type ItemStackModifierConstructorDescriptionBundleTooltipData(DefaultedList<ItemStack> inventory, int bundleOccupancy) -
Uses of ItemStack in net.minecraft.client.network
Fields in net.minecraft.client.network declared as ItemStackMethods in net.minecraft.client.network that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackClientPlayNetworkHandler.getActiveTotemOfUndying(PlayerEntity player) Methods in net.minecraft.client.network with parameters of type ItemStackModifier and TypeMethodDescriptionvoidClientPlayerInteractionManager.clickCreativeStack(ItemStack stack, int slotId) voidClientPlayerInteractionManager.dropCreativeStack(ItemStack stack) voidClientPlayerEntity.onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType) Called when a player performs apickup slot actionin a screen handler.voidCalled when the player uses (defaults to right click) a writable or written book item. -
Uses of ItemStack in net.minecraft.client.option
Fields in net.minecraft.client.option with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>HotbarStorageEntry.delegateMethods in net.minecraft.client.option that return types with arguments of type ItemStack -
Uses of ItemStack in net.minecraft.client.particle
Constructors in net.minecraft.client.particle with parameters of type ItemStackModifierConstructorDescription(package private)CrackParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, ItemStack stack) protectedCrackParticle(ClientWorld world, double x, double y, double z, ItemStack stack) -
Uses of ItemStack in net.minecraft.client.recipebook
Fields in net.minecraft.client.recipebook with type parameters of type ItemStackMethods in net.minecraft.client.recipebook that return types with arguments of type ItemStackConstructors in net.minecraft.client.recipebook with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.client.render
Fields in net.minecraft.client.render declared as ItemStackMethods in net.minecraft.client.render with parameters of type ItemStackModifier and TypeMethodDescriptionstatic RenderLayerRenderLayers.getItemLayer(ItemStack stack, boolean direct) voidGameRenderer.showFloatingItem(ItemStack floatingItem) -
Uses of ItemStack in net.minecraft.client.render.entity
Methods in net.minecraft.client.render.entity with parameters of type ItemStackModifier and TypeMethodDescriptionprivate ModelIdentifierItemFrameEntityRenderer.getModelId(T entity, ItemStack stack) private intItemEntityRenderer.getRenderedAmount(ItemStack stack) -
Uses of ItemStack in net.minecraft.client.render.entity.feature
Methods in net.minecraft.client.render.entity.feature with parameters of type ItemStackModifier and TypeMethodDescriptionprotected voidHeldItemFeatureRenderer.renderItem(LivingEntity entity, ItemStack stack, ModelTransformation.Mode transformationMode, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) protected voidPlayerHeldItemFeatureRenderer.renderItem(LivingEntity entity, ItemStack stack, ModelTransformation.Mode transformationMode, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) private voidPlayerHeldItemFeatureRenderer.renderSpyglass(LivingEntity entity, ItemStack stack, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) -
Uses of ItemStack in net.minecraft.client.render.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.applyEatOrDrinkTransformation(MatrixStack matrices, float tickDelta, Arm arm, ItemStack stack) ItemRenderer.getModel(ItemStack stack, @Nullable World world, @Nullable LivingEntity entity, int seed) private voidItemRenderer.innerRenderInGui(@Nullable LivingEntity entity, ItemStack stack, int x, int y, int seed) private voidItemRenderer.innerRenderInGui(@Nullable LivingEntity entity, ItemStack itemStack, int x, int y, int seed, int depth) private static booleanHeldItemRenderer.isChargedCrossbow(ItemStack stack) voidBuiltinModelItemRenderer.render(ItemStack stack, ModelTransformation.Mode mode, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay) private voidItemRenderer.renderBakedItemModel(BakedModel model, ItemStack stack, int light, int overlay, MatrixStack matrices, VertexConsumer vertices) private voidItemRenderer.renderBakedItemQuads(MatrixStack matrices, VertexConsumer vertices, List<BakedQuad> quads, ItemStack stack, int light, int overlay) private voidHeldItemRenderer.renderFirstPersonItem(AbstractClientPlayerEntity player, float tickDelta, float pitch, Hand hand, float swingProgress, ItemStack item, float equipProgress, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) private voidHeldItemRenderer.renderFirstPersonMap(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int swingProgress, ItemStack stack) voidItemRenderer.renderGuiItemIcon(ItemStack stack, int x, int y) protected voidItemRenderer.renderGuiItemModel(ItemStack stack, int x, int y, BakedModel model) voidItemRenderer.renderGuiItemOverlay(TextRenderer renderer, ItemStack stack, int x, int y) Renders the overlay for items in GUIs, including the damage bar and the item count.voidItemRenderer.renderGuiItemOverlay(TextRenderer renderer, ItemStack stack, int x, int y, @Nullable String countLabel) Renders the overlay for items in GUIs, including the damage bar and the item count.voidItemRenderer.renderInGui(ItemStack stack, int x, int y) Renders an item in a GUI without an attached entity.voidItemRenderer.renderInGuiWithOverrides(LivingEntity entity, ItemStack stack, int x, int y, int seed) Renders an item in a GUI with an attached entity.voidItemRenderer.renderInGuiWithOverrides(ItemStack stack, int x, int y) Renders an item in a GUI with the player as the attached entity for calculating model overrides.voidItemRenderer.renderInGuiWithOverrides(ItemStack stack, int x, int y, int seed) voidItemRenderer.renderInGuiWithOverrides(ItemStack stack, int x, int y, int seed, int depth) voidHeldItemRenderer.renderItem(LivingEntity entity, ItemStack stack, ModelTransformation.Mode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) voidItemRenderer.renderItem(@Nullable LivingEntity entity, ItemStack item, ModelTransformation.Mode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable World world, int light, int overlay, int seed) voidItemRenderer.renderItem(ItemStack stack, ModelTransformation.Mode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, BakedModel model) voidItemRenderer.renderItem(ItemStack stack, ModelTransformation.Mode transformationType, int light, int overlay, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int seed) private voidHeldItemRenderer.renderMapInOneHand(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, float equipProgress, Arm arm, float swingProgress, ItemStack stack) -
Uses of ItemStack in net.minecraft.client.render.model.json
Methods in net.minecraft.client.render.model.json with parameters of type ItemStackModifier and TypeMethodDescriptionModelOverrideList.apply(BakedModel model, ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed) -
Uses of ItemStack in net.minecraft.client.search
Fields in net.minecraft.client.search with type parameters of type ItemStackModifier and TypeFieldDescriptionstatic final SearchManager.Key<ItemStack>SearchManager.ITEM_TAGstatic final SearchManager.Key<ItemStack>SearchManager.ITEM_TOOLTIP -
Uses of ItemStack in net.minecraft.client.tutorial
Methods in net.minecraft.client.tutorial with parameters of type ItemStackModifier and TypeMethodDescriptionvoidBundleTutorial.onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType) A callback for starting the bundle tutorial.voidTutorialManager.onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType) Called when a player performs apickup slot actionin a screen handler.voidCraftPlanksTutorialStepHandler.onSlotUpdate(ItemStack stack) voidFindTreeTutorialStepHandler.onSlotUpdate(ItemStack stack) voidPunchTreeTutorialStepHandler.onSlotUpdate(ItemStack stack) voidTutorialManager.onSlotUpdate(ItemStack stack) default voidTutorialStepHandler.onSlotUpdate(ItemStack stack) -
Uses of ItemStack in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return ItemStackModifier and TypeMethodDescriptionItemStackArgument.createStack(int amount, boolean checkOverstack) Methods in net.minecraft.command.argument that return types with arguments of type ItemStackModifier and TypeMethodDescriptionItemPredicateArgumentType.getItemStackPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) Methods in net.minecraft.command.argument with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.enchantment
Methods in net.minecraft.enchantment that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackEnchants thetargetitem stack and returns it.Methods in net.minecraft.enchantment that return types with arguments of type ItemStackModifier and TypeMethodDescriptionstatic Map.Entry<EquipmentSlot,ItemStack> EnchantmentHelper.chooseEquipmentWith(Enchantment enchantment, LivingEntity entity) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.static Map.Entry<EquipmentSlot,ItemStack> EnchantmentHelper.chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.Enchantment.getEquipment(LivingEntity entity) Methods in net.minecraft.enchantment with parameters of type ItemStackModifier and TypeMethodDescriptionstatic intEnchantmentHelper.calculateRequiredExperienceLevel(Random random, int slotIndex, int bookshelfCount, ItemStack stack) Returns the required experience level for an enchanting option in the enchanting table's screen, or the enchantment screen.static ItemStackEnchants thetargetitem stack and returns it.private static voidEnchantmentHelper.forEachEnchantment(EnchantmentHelper.Consumer consumer, ItemStack stack) static List<EnchantmentLevelEntry>EnchantmentHelper.generateEnchantments(Random random, ItemStack stack, int level, boolean treasureAllowed) Generate the enchantments for enchanting thestack.static Map<Enchantment,Integer> Gets the enchantments on an item stack.static floatEnchantmentHelper.getAttackDamage(ItemStack stack, EntityGroup group) static intEnchantmentHelper.getLevel(Enchantment enchantment, ItemStack stack) Gets the level of an enchantment on an item stack.static intEnchantmentHelper.getLoyalty(ItemStack stack) static intEnchantmentHelper.getLuckOfTheSea(ItemStack stack) static intstatic List<EnchantmentLevelEntry>EnchantmentHelper.getPossibleEntries(int power, ItemStack stack, boolean treasureAllowed) Gets all the possible entries for enchanting thestackat the givenpower.static intEnchantmentHelper.getRiptide(ItemStack stack) static booleanEnchantmentHelper.hasBindingCurse(ItemStack stack) static booleanEnchantmentHelper.hasChanneling(ItemStack stack) static booleanEnchantmentHelper.hasVanishingCurse(ItemStack stack) booleanDamageEnchantment.isAcceptableItem(ItemStack stack) booleanEfficiencyEnchantment.isAcceptableItem(ItemStack stack) booleanEnchantment.isAcceptableItem(ItemStack stack) booleanThornsEnchantment.isAcceptableItem(ItemStack stack) booleanUnbreakingEnchantment.isAcceptableItem(ItemStack stack) static voidEnchantmentHelper.set(Map<Enchantment, Integer> enchantments, ItemStack stack) Sets the enchantments on an item stack.static booleanUnbreakingEnchantment.shouldPreventDamage(ItemStack item, int level, Random random) Method parameters in net.minecraft.enchantment with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic Map.Entry<EquipmentSlot,ItemStack> EnchantmentHelper.chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.private static voidEnchantmentHelper.forEachEnchantment(EnchantmentHelper.Consumer consumer, Iterable<ItemStack> stacks) static intEnchantmentHelper.getProtectionAmount(Iterable<ItemStack> equipment, DamageSource source) -
Uses of ItemStack in net.minecraft.entity
Fields in net.minecraft.entity declared as ItemStackFields in net.minecraft.entity with type parameters of type ItemStackModifier and TypeFieldDescriptionEntity.EMPTY_STACK_LISTprivate static final TrackedData<ItemStack>EyeOfEnderEntity.ITEMprivate static final TrackedData<ItemStack>ItemEntity.STACKprivate final DefaultedList<ItemStack>LivingEntity.syncedArmorStacksprivate final DefaultedList<ItemStack>LivingEntity.syncedHandStacksMethods in net.minecraft.entity that return ItemStackModifier and TypeMethodDescriptionLivingEntity.getActiveItem()LivingEntity.getArrowType(ItemStack stack) Bucketable.getBucketItem()abstract ItemStackLivingEntity.getEquippedStack(EquipmentSlot slot) LivingEntity.getMainHandStack()LivingEntity.getOffHandStack()Entity.getPickBlockStack()EyeOfEnderEntity.getStack()FlyingItemEntity.getStack()ItemEntity.getStack()Returns the item stack contained in this item entity.LivingEntity.getStackInHand(Hand hand) private ItemStackLivingEntity.getSyncedArmorStack(EquipmentSlot slot) private ItemStackLivingEntity.getSyncedHandStack(EquipmentSlot slot) private ItemStackEyeOfEnderEntity.getTrackedItem()static ItemStackMethods in net.minecraft.entity that return types with arguments of type ItemStackModifier and TypeMethodDescriptionEntity.getArmorItems()LivingEntity.getArmorItems()private @Nullable Map<EquipmentSlot,ItemStack> LivingEntity.getEquipmentChanges()Returns the difference between the last sent equipment set and the current one.Entity.getItemsEquipped()Entity.getItemsHand()Methods in net.minecraft.entity with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidLivingEntity.applyFoodEffects(ItemStack stack, World world, LivingEntity targetEntity) booleanstatic booleanstatic voidBucketable.copyDataToStack(MobEntity entity, ItemStack stack) Deprecated.voidBucketable.copyDataToStack(ItemStack stack) voidEntity.equipStack(EquipmentSlot slot, ItemStack stack) abstract voidLivingEntity.equipStack(EquipmentSlot slot, ItemStack stack) LivingEntity.getArrowType(ItemStack stack) protected SoundEventLivingEntity.getDrinkSound(ItemStack stack) LivingEntity.getEatSound(ItemStack stack) static EquipmentSlotLivingEntity.getPreferredEquipmentSlot(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 ItemStackvoidLivingEntity.onEquipStack(EquipmentSlot slot, ItemStack oldStack, ItemStack newStack) private voidLivingEntity.playEquipmentBreakEffects(ItemStack stack) protected voidLivingEntity.playEquipSound(ItemStack stack) protected voidLivingEntity.processEquippedStack(ItemStack stack) voidvoidSets the item stack contained in this item entity tostack.voidLivingEntity.setStackInHand(Hand hand, ItemStack stack) private voidLivingEntity.setSyncedArmorStack(EquipmentSlot slot, ItemStack armor) private voidLivingEntity.setSyncedHandStack(EquipmentSlot slot, ItemStack stack) voidCrossbowUser.shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray) protected voidLivingEntity.spawnConsumptionEffects(ItemStack stack, int particleCount) EntityType.spawnFromItemStack(ServerWorld world, @Nullable ItemStack stack, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) private voidLivingEntity.spawnItemParticles(ItemStack stack, int count) protected voidLivingEntity.tickItemStackUsage(ItemStack stack) Method parameters in net.minecraft.entity with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate voidLivingEntity.checkHandStackSwap(Map<EquipmentSlot, ItemStack> equipmentChanges) Notifies nearby players if the stacks in the hands have been swapped.booleanChecks if this entity is holding a certain item.private voidLivingEntity.sendEquipmentChanges(Map<EquipmentSlot, ItemStack> equipmentChanges) Sends equipment changes to nearby players.Constructors in net.minecraft.entity with parameters of type ItemStackModifierConstructorDescriptionItemEntity(World world, double x, double y, double z, ItemStack stack) ItemEntity(World world, double x, double y, double z, ItemStack stack, double velocityX, double velocityY, double velocityZ) -
Uses of ItemStack in net.minecraft.entity.ai.brain.sensor
Methods in net.minecraft.entity.ai.brain.sensor with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.entity.ai.brain.task
Fields in net.minecraft.entity.ai.brain.task declared as ItemStackFields in net.minecraft.entity.ai.brain.task with type parameters of type ItemStackMethods in net.minecraft.entity.ai.brain.task that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackCelebrateRaidWinTask.createFirework(DyeColor color, int flight) Methods in net.minecraft.entity.ai.brain.task that return types with arguments of type ItemStackMethods in net.minecraft.entity.ai.brain.task with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidLookTargetUtil.give(LivingEntity entity, ItemStack stack, Vec3d targetLocation) static voidLookTargetUtil.give(LivingEntity entity, ItemStack stack, Vec3d targetLocation, Vec3d velocityFactor, float yOffset) private static voidHoldTradeOffersTask.holdOffer(VillagerEntity villager, ItemStack stack) static voidGiveInventoryToLookTargetTask.playThrowSound(LivingEntity entity, ItemStack stack, Vec3d target) private voidGiveInventoryToLookTargetTask.triggerCriterion(LookTarget target, ItemStack stack, ServerPlayerEntity player) -
Uses of ItemStack in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal declared as ItemStackMethods in net.minecraft.entity.ai.goal that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackSkeletonHorseTrapTriggerGoal.removeEnchantments(ItemStack stack) Methods in net.minecraft.entity.ai.goal with parameters of type ItemStackModifier and TypeMethodDescriptionprivate ItemStackSkeletonHorseTrapTriggerGoal.removeEnchantments(ItemStack stack) Constructors in net.minecraft.entity.ai.goal with parameters of type ItemStackModifierConstructorDescriptionHoldInHandsGoal(T actor, ItemStack item, @Nullable SoundEvent sound, Predicate<? super T> condition) -
Uses of ItemStack in net.minecraft.entity.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 with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>ArmorStandEntity.armorItemsprivate final DefaultedList<ItemStack>ArmorStandEntity.heldItemsprivate static final TrackedData<ItemStack>ItemFrameEntity.ITEM_STACKMethods in net.minecraft.entity.decoration that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackGlowItemFrameEntity.getAsItemStack()protected ItemStackItemFrameEntity.getAsItemStack()ArmorStandEntity.getEquippedStack(EquipmentSlot slot) ItemFrameEntity.getHeldItemStack()ArmorStandEntity.getPickBlockStack()EndCrystalEntity.getPickBlockStack()ItemFrameEntity.getPickBlockStack()LeashKnotEntity.getPickBlockStack()Methods in net.minecraft.entity.decoration that return types with arguments of type ItemStackModifier and TypeMethodDescriptionArmorStandEntity.getArmorItems()ArmorStandEntity.getItemsHand()Methods in net.minecraft.entity.decoration with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanprivate booleanArmorStandEntity.equip(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand) voidArmorStandEntity.equipStack(EquipmentSlot slot, ItemStack stack) private voidItemFrameEntity.removeFromFrame(ItemStack itemStack) private voidItemFrameEntity.setAsStackHolder(ItemStack stack) voidItemFrameEntity.setHeldItemStack(ItemStack stack) voidItemFrameEntity.setHeldItemStack(ItemStack value, boolean update) -
Uses of ItemStack in net.minecraft.entity.decoration.painting
Methods in net.minecraft.entity.decoration.painting that return ItemStack -
Uses of ItemStack in net.minecraft.entity.mob
Fields in net.minecraft.entity.mob with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>MobEntity.armorItemsprivate final DefaultedList<ItemStack>MobEntity.handItemsMethods in net.minecraft.entity.mob that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackHostileEntity.getArrowType(ItemStack stack) MobEntity.getEquippedStack(EquipmentSlot slot) private static ItemStackPiglinBrain.getItemFromStack(ItemEntity stack) MobEntity.getPickBlockStack()protected ItemStackDrownedEntity.getSkull()Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStackHuskEntity.getSkull()Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStackZombieEntity.getSkull()Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStackZombieVillagerEntity.getSkull()Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStackZombifiedPiglinEntity.getSkull()Returns the item stack this entity will drop when killed by a charged creeper.private ItemStackPiglinEntity.makeInitialWeapon()Methods in net.minecraft.entity.mob that return types with arguments of type ItemStackModifier and TypeMethodDescriptionMobEntity.getArmorItems()PiglinBrain.getBarteredItem(PiglinEntity piglin) MobEntity.getItemsHand()Methods in net.minecraft.entity.mob with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static booleanPiglinBrain.acceptsForBarter(ItemStack stack) protected ItemStackprivate static voidPiglinBrain.barterItem(PiglinEntity piglin, ItemStack stack) booleanprotected booleanPiglinEntity.canEquipStack(ItemStack stack) Returns whether this piglin can equip into or replace current equipment slot.booleanprotected static booleanPiglinBrain.canGather(PiglinEntity piglin, ItemStack stack) booleanbooleanbooleanbooleanprotected booleanPiglinEntity.canInsertIntoInventory(ItemStack stack) booleanMobEntity.canPickupItem(ItemStack stack) booleanZombieEntity.canPickupItem(ItemStack stack) protected PersistentProjectileEntityAbstractSkeletonEntity.createArrowProjectile(ItemStack arrow, float damageModifier) protected PersistentProjectileEntityStrayEntity.createArrowProjectile(ItemStack arrow, float damageModifier) protected PersistentProjectileEntityWitherSkeletonEntity.createArrowProjectile(ItemStack arrow, float damageModifier) private voidMobEntity.disablePlayerShield(PlayerEntity player, ItemStack mobStack, ItemStack playerStack) private voidPiglinEntity.equipAtChance(EquipmentSlot slot, ItemStack stack, Random random) protected voidMobEntity.equipLootStack(EquipmentSlot slot, ItemStack stack) voidAbstractSkeletonEntity.equipStack(EquipmentSlot slot, ItemStack stack) voidMobEntity.equipStack(EquipmentSlot slot, ItemStack stack) protected voidPiglinEntity.equipToMainHand(ItemStack stack) protected voidPiglinEntity.equipToOffHand(ItemStack stack) HostileEntity.getArrowType(ItemStack stack) booleanHoglinEntity.isBreedingItem(ItemStack stack) private static booleanprotected static booleanPiglinBrain.isGoldenItem(ItemStack stack) private booleanPillagerEntity.isRaidCaptain(ItemStack stack) protected static booleanPiglinBrain.isWillingToTrade(PiglinEntity piglin, ItemStack nearbyItems) booleanMobEntity.prefersNewDamageableItem(ItemStack newStack, ItemStack oldStack) protected booleanDrownedEntity.prefersNewEquipment(ItemStack newStack, ItemStack oldStack) protected booleanMobEntity.prefersNewEquipment(ItemStack newStack, ItemStack oldStack) protected booleanPiglinEntity.prefersNewEquipment(ItemStack newStack, ItemStack oldStack) voidPiglinEntity.shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray) voidPillagerEntity.shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray) private static voidPiglinBrain.swapItemWithOffHand(PiglinEntity piglin, ItemStack stack) booleanMethod parameters in net.minecraft.entity.mob with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate static voidPiglinBrain.doBarter(PiglinEntity piglin, List<ItemStack> items) private static voidPiglinBrain.drop(PiglinEntity piglin, List<ItemStack> items, Vec3d pos) private static voidPiglinBrain.dropBarteredItem(PiglinEntity piglin, List<ItemStack> items) private static voidPiglinBrain.dropBarteredItem(PiglinEntity piglin, PlayerEntity player, List<ItemStack> items) -
Uses of ItemStack in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive that return ItemStackModifier and TypeMethodDescriptionHorseEntity.getArmorType()AxolotlEntity.getBucketItem()CodEntity.getBucketItem()PufferfishEntity.getBucketItem()SalmonEntity.getBucketItem()TadpoleEntity.getBucketItem()TropicalFishEntity.getBucketItem()GoatEntity.getGoatHornStack()Methods in net.minecraft.entity.passive with parameters of type ItemStackModifier and TypeMethodDescriptionprivate booleanprivate booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanFoxEntity.canPickupItem(ItemStack stack) voidAxolotlEntity.copyDataToStack(ItemStack stack) voidFishEntity.copyDataToStack(ItemStack stack) voidTadpoleEntity.copyDataToStack(ItemStack stack) voidTropicalFishEntity.copyDataToStack(ItemStack stack) private voidTadpoleEntity.decrementItem(PlayerEntity player, ItemStack stack) private voidAllayEntity.decrementStackUnlessInCreative(PlayerEntity player, ItemStack stack) private voidprotected voidAnimalEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) protected voidAxolotlEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) protected voidCatEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) protected voidFoxEntity.eat(PlayerEntity player, Hand hand, ItemStack stack) private voidTadpoleEntity.eatSlimeBall(PlayerEntity player, ItemStack stack) private voidHorseEntity.equipArmor(ItemStack stack) LlamaEntity.getColorFromCarpet(ItemStack color) protected SoundEventWanderingTraderEntity.getDrinkSound(ItemStack stack) FoxEntity.getEatSound(ItemStack stack) GoatEntity.getEatSound(ItemStack stack) private Optional<Pair<StatusEffect,Integer>> MooshroomEntity.getStewEffectFrom(ItemStack flower) AbstractHorseEntity.interactHorse(PlayerEntity player, ItemStack stack) booleanAbstractHorseEntity.isBreedingItem(ItemStack stack) booleanAnimalEntity.isBreedingItem(ItemStack stack) booleanAxolotlEntity.isBreedingItem(ItemStack stack) booleanBeeEntity.isBreedingItem(ItemStack stack) booleanCatEntity.isBreedingItem(ItemStack stack) booleanChickenEntity.isBreedingItem(ItemStack stack) booleanFoxEntity.isBreedingItem(ItemStack stack) booleanFrogEntity.isBreedingItem(ItemStack stack) booleanLlamaEntity.isBreedingItem(ItemStack stack) booleanOcelotEntity.isBreedingItem(ItemStack stack) booleanPandaEntity.isBreedingItem(ItemStack stack) booleanParrotEntity.isBreedingItem(ItemStack stack) booleanPigEntity.isBreedingItem(ItemStack stack) booleanPolarBearEntity.isBreedingItem(ItemStack stack) booleanRabbitEntity.isBreedingItem(ItemStack stack) booleanStriderEntity.isBreedingItem(ItemStack stack) booleanTurtleEntity.isBreedingItem(ItemStack stack) booleanWolfEntity.isBreedingItem(ItemStack stack) booleanAbstractHorseEntity.isHorseArmor(ItemStack item) Whether the given item stack is valid for this horse's armor slot.booleanHorseEntity.isHorseArmor(ItemStack item) Whether the given item stack is valid for this horse's armor slot.booleanLlamaEntity.isHorseArmor(ItemStack item) Whether the given item stack is valid for this horse's armor slot.private booleanTadpoleEntity.isSlimeBall(ItemStack stack) private static booleanRabbitEntity.isTempting(ItemStack stack) private booleanAllayEntity.matchesDuplicationIngredient(ItemStack stack) voidMerchantEntity.onSellingItem(ItemStack stack) protected booleanAbstractHorseEntity.receiveFood(PlayerEntity player, ItemStack item) protected booleanLlamaEntity.receiveFood(PlayerEntity player, ItemStack item) private voidHorseEntity.setArmorTypeFromStack(ItemStack stack) private voidprivate voidDolphinEntity.PlayWithItemsGoal.spitOutItem(ItemStack stack) Method parameters in net.minecraft.entity.passive with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate StackReferenceAbstractHorseEntity.createInventoryStackReference(int slot, Predicate<ItemStack> predicate) -
Uses of ItemStack in net.minecraft.entity.player
Fields in net.minecraft.entity.player declared as ItemStackFields in net.minecraft.entity.player with type parameters of type ItemStackModifier and TypeFieldDescriptionfinal DefaultedList<ItemStack>PlayerInventory.armorprivate final List<DefaultedList<ItemStack>>PlayerInventory.combinedInventoryfinal DefaultedList<ItemStack>PlayerInventory.mainfinal DefaultedList<ItemStack>PlayerInventory.offHandMethods in net.minecraft.entity.player that return ItemStackModifier and TypeMethodDescriptionPlayerInventory.dropSelectedItem(boolean entireStack) PlayerInventory.getArmorStack(int slot) PlayerEntity.getArrowType(ItemStack stack) PlayerEntity.getEquippedStack(EquipmentSlot slot) PlayerInventory.getMainHandStack()PlayerInventory.getStack(int slot) Fetches the stack currently stored at the given slot.PlayerInventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.PlayerInventory.removeStack(int slot, int amount) Removes a specific number of items from the given slot.Methods in net.minecraft.entity.player that return types with arguments of type ItemStackMethods in net.minecraft.entity.player with parameters of type ItemStackModifier and TypeMethodDescriptionvoidPlayerInventory.addPickBlock(ItemStack stack) private intprivate intvoidPlayerEntity.applyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels) booleanbooleanPlayerEntity.canPlaceOn(BlockPos pos, Direction facing, ItemStack stack) private booleanPlayerInventory.canStackAddMore(ItemStack existingStack, ItemStack stack) booleanvoidvoidPlayerEntity.equipStack(EquipmentSlot slot, ItemStack stack) PlayerEntity.getArrowType(ItemStack stack) intPlayerInventory.getOccupiedSlotWithRoomForStack(ItemStack stack) intPlayerInventory.getSlotWithStack(ItemStack stack) booleanPlayerEntity.giveItemStack(ItemStack stack) intGiven the item stack to search for, returns the equivalent slot index with a matching stack that is all of: not damaged, not enchanted, and not renamed.booleanPlayerInventory.insertStack(int slot, ItemStack stack) booleanPlayerInventory.insertStack(ItemStack stack) voidvoidPlayerInventory.offerOrDrop(ItemStack stack) voidPlayerEntity.onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType) Called when a player performs apickup slot actionin a screen handler.voidvoidvoidCalled when the player uses (defaults to right click) a writable or written book item.Method parameters in net.minecraft.entity.player with type arguments of type ItemStack -
Uses of ItemStack in net.minecraft.entity.projectile
Fields in net.minecraft.entity.projectile declared as ItemStackFields in net.minecraft.entity.projectile with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final TrackedData<ItemStack>AbstractFireballEntity.ITEMprivate static final TrackedData<ItemStack>FireworkRocketEntity.ITEMMethods in net.minecraft.entity.projectile that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackArrowEntity.asItemStack()protected abstract ItemStackPersistentProjectileEntity.asItemStack()protected ItemStackSpectralArrowEntity.asItemStack()protected ItemStackTridentEntity.asItemStack()protected ItemStackAbstractFireballEntity.getItem()AbstractFireballEntity.getStack()FireworkRocketEntity.getStack()Methods in net.minecraft.entity.projectile with parameters of type ItemStackModifier and TypeMethodDescriptionstatic PersistentProjectileEntityProjectileUtil.createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier) static intArrowEntity.getCustomPotionColor(ItemStack stack) voidArrowEntity.initFromStack(ItemStack stack) voidintConstructors in net.minecraft.entity.projectile with parameters of type ItemStackModifierConstructorDescriptionFireworkRocketEntity(World world, double x, double y, double z, ItemStack stack) FireworkRocketEntity(World world, @Nullable Entity entity, double x, double y, double z, ItemStack stack) FireworkRocketEntity(World world, ItemStack stack, double x, double y, double z, boolean shotAtAngle) FireworkRocketEntity(World world, ItemStack stack, Entity entity, double x, double y, double z, boolean shotAtAngle) FireworkRocketEntity(World world, ItemStack stack, LivingEntity shooter) TridentEntity(World world, LivingEntity owner, ItemStack stack) -
Uses of ItemStack in net.minecraft.entity.projectile.thrown
Fields in net.minecraft.entity.projectile.thrown with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final TrackedData<ItemStack>ThrownItemEntity.ITEMMethods in net.minecraft.entity.projectile.thrown that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackThrownItemEntity.getItem()ThrownItemEntity.getStack()Methods in net.minecraft.entity.projectile.thrown with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidPotionEntity.applyLingeringPotion(ItemStack stack, Potion potion) void -
Uses of ItemStack in net.minecraft.entity.vehicle
Fields in net.minecraft.entity.vehicle with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate DefaultedList<ItemStack>ChestBoatEntity.inventoryprivate DefaultedList<ItemStack>StorageMinecartEntity.inventoryMethods in net.minecraft.entity.vehicle that return ItemStackModifier and TypeMethodDescriptiondefault ItemStackVehicleInventory.getInventoryStack(int slot) AbstractMinecartEntity.getPickBlockStack()BoatEntity.getPickBlockStack()ChestBoatEntity.getStack(int slot) Fetches the stack currently stored at the given slot.StorageMinecartEntity.getStack(int slot) Fetches the stack currently stored at the given slot.default ItemStackVehicleInventory.removeInventoryStack(int slot) default ItemStackVehicleInventory.removeInventoryStack(int slot, int amount) ChestBoatEntity.removeStack(int slot) Removes the stack currently stored at the indicated slot.ChestBoatEntity.removeStack(int slot, int amount) Removes a specific number of items from the given slot.StorageMinecartEntity.removeStack(int slot) Removes the stack currently stored at the indicated slot.StorageMinecartEntity.removeStack(int slot, int amount) Removes a specific number of items from the given slot.Methods in net.minecraft.entity.vehicle that return types with arguments of type ItemStackModifier and TypeMethodDescriptionChestBoatEntity.getInventory()StorageMinecartEntity.getInventory()VehicleInventory.getInventory()Methods in net.minecraft.entity.vehicle with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.inventory
Fields in net.minecraft.inventory with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>CraftingInventory.stacksprivate final DefaultedList<ItemStack>CraftingResultInventory.stacksprivate final DefaultedList<ItemStack>SimpleInventory.stacksMethods in net.minecraft.inventory that return ItemStackModifier and TypeMethodDescriptionStackReference.get()Gets the current item stack.CraftingInventory.getStack(int slot) Fetches the stack currently stored at the given slot.CraftingResultInventory.getStack(int slot) Fetches the stack currently stored at the given slot.DoubleInventory.getStack(int slot) Fetches the stack currently stored at the given slot.Inventory.getStack(int slot) Fetches the stack currently stored at the given slot.SimpleInventory.getStack(int slot) Fetches the stack currently stored at the given slot.SimpleInventory.removeItem(Item item, int count) Searches this inventory for the specified item and removes the given amount from this inventory.CraftingInventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.CraftingInventory.removeStack(int slot, int amount) Removes a specific number of items from the given slot.CraftingResultInventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.CraftingResultInventory.removeStack(int slot, int amount) Removes a specific number of items from the given slot.DoubleInventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.DoubleInventory.removeStack(int slot, int amount) Removes a specific number of items from the given slot.static ItemStackInventories.removeStack(List<ItemStack> stacks, int slot) Inventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.Inventory.removeStack(int slot, int amount) Removes a specific number of items from the given slot.SimpleInventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.SimpleInventory.removeStack(int slot, int amount) Removes a specific number of items from the given slot.static ItemStackInventories.splitStack(List<ItemStack> stacks, int slot, int amount) Methods in net.minecraft.inventory that return types with arguments of type ItemStackModifier and TypeMethodDescriptionSimpleInventory.clearToList()Clears this inventory and return all the non-empty stacks in a list.Methods in net.minecraft.inventory with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidSimpleInventory.addToExistingSlot(ItemStack stack) private voidSimpleInventory.addToNewSlot(ItemStack stack) booleanSidedInventory.canExtract(int slot, ItemStack stack, Direction dir) Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.booleanDetermines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanbooleanReturns true if this lock can be opened with the key item stack.booleanReturns whether the given stack is a valid for the indicated slot position.default booleanReturns whether the given stack is a valid for the indicated slot position.static intInventories.remove(ItemStack stack, Predicate<ItemStack> shouldRemove, int maxCount, boolean dryRun) Removes a number, not exceedingmaxCount, of items from an item stack based on a predicate and returns that number.booleanSets thestack.voidvoidvoidvoidvoidprivate voidMethod parameters in net.minecraft.inventory with type arguments of type ItemStackModifier and TypeMethodDescriptiondefault booleanInventory.containsAny(Predicate<ItemStack> predicate) static StackReferenceStackReference.of(LivingEntity entity, EquipmentSlot slot, Predicate<ItemStack> filter) Creates a stack reference backed by an equipment slot of an living entity and guarded by a condition for setting stacks into the inventory.static StackReferenceCreates a stack reference backed by an index within an inventory and guarded by a condition for setting stacks into the inventory.static voidInventories.readNbt(NbtCompound nbt, DefaultedList<ItemStack> stacks) static intInventories.remove(Inventory inventory, Predicate<ItemStack> shouldRemove, int maxCount, boolean dryRun) Removes a number, not exceedingmaxCount, of items from an inventory based on a predicate and returns that number.static intInventories.remove(ItemStack stack, Predicate<ItemStack> shouldRemove, int maxCount, boolean dryRun) Removes a number, not exceedingmaxCount, of items from an item stack based on a predicate and returns that number.static ItemStackInventories.removeStack(List<ItemStack> stacks, int slot) static ItemStackInventories.splitStack(List<ItemStack> stacks, int slot, int amount) static NbtCompoundInventories.writeNbt(NbtCompound nbt, DefaultedList<ItemStack> stacks) static NbtCompoundInventories.writeNbt(NbtCompound nbt, DefaultedList<ItemStack> stacks, boolean setIfEmpty) Constructors in net.minecraft.inventory with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.item
Fields in net.minecraft.item declared as ItemStackModifier and TypeFieldDescriptionstatic final ItemStackItemStack.EMPTYprivate ItemStackItemGroup.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_PROJECTILESMethods in net.minecraft.item that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackDyeableItem.blendAndSetColor(ItemStack stack, List<DyeItem> colors) ItemStack.copy()Creates and returns a copy of this item stack.abstract ItemStackItemGroup.createIcon()static ItemStackFilledMapItem.createMap(World world, int x, int z, byte scale, boolean showIcons, boolean unlimitedTracking) static ItemStackItemUsage.exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack) static ItemStackItemUsage.exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride) protected ItemStackGlassBottleItem.fill(ItemStack stack, PlayerEntity player, ItemStack outputStack) ChorusFruitItem.finishUsing(ItemStack stack, World world, LivingEntity user) HoneyBottleItem.finishUsing(ItemStack stack, World world, LivingEntity user) Item.finishUsing(ItemStack stack, World world, LivingEntity user) ItemStack.finishUsing(World world, LivingEntity user) MilkBucketItem.finishUsing(ItemStack stack, World world, LivingEntity user) PotionItem.finishUsing(ItemStack stack, World world, LivingEntity user) SpyglassItem.finishUsing(ItemStack stack, World world, LivingEntity user) StewItem.finishUsing(ItemStack stack, World world, LivingEntity user) SuspiciousStewItem.finishUsing(ItemStack stack, World world, LivingEntity user) static ItemStackEnchantedBookItem.forEnchantment(EnchantmentLevelEntry info) static ItemStackItemStack.fromNbt(NbtCompound nbt) Deserializes an item stack from NBT.FireworkRocketItem.getDefaultStack()Item.getDefaultStack()PotionItem.getDefaultStack()TippedArrowItem.getDefaultStack()static ItemStackBucketItem.getEmptiedStack(ItemStack stack, PlayerEntity player) static ItemStackRangedWeaponItem.getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate) ItemGroup.getIcon()ItemUsageContext.getStack()static ItemStackGoatHornItem.getStackForInstrument(Item item, RegistryEntry<Instrument> instrument) ItemStack.setCustomName(@Nullable Text name) ItemStack.split(int amount) Methods in net.minecraft.item that return types with arguments of type ItemStackModifier and TypeMethodDescriptionstatic TypedActionResult<ItemStack>ItemUsage.consumeHeldItem(World world, PlayerEntity player, Hand hand) BundleItem.getBundledStacks(ItemStack stack) CrossbowItem.getHeldProjectiles()RangedWeaponItem.getHeldProjectiles()BowItem.getProjectiles()CrossbowItem.getProjectiles()CrossbowItem.getProjectiles(ItemStack crossbow) RangedWeaponItem.getProjectiles()BundleItem.removeFirstStack(ItemStack stack) ArmorItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.BoatItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.BowItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.BucketItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.BundleItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.CrossbowItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.EggItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.ElytraItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.EmptyMapItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.EnderEyeItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.EnderPearlItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.ExperienceBottleItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.FireworkRocketItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.FishingRodItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.GlassBottleItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.GoatHornItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.HoneyBottleItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.Item.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.ItemStack.use(World world, PlayerEntity user, Hand hand) KnowledgeBookItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.LingeringPotionItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.MilkBucketItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.OnAStickItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.PlaceableOnWaterItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.PotionItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.ShieldItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.SnowballItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.SpawnEggItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.SplashPotionItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.SpyglassItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.ThrowablePotionItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.TridentItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.WritableBookItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.WrittenBookItem.use(World world, PlayerEntity user, Hand hand) Called when an item is used by a player.Methods in net.minecraft.item with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidSuspiciousStewItem.addEffectToStew(ItemStack stew, StatusEffect effect, int duration) static voidEnchantedBookItem.addEnchantment(ItemStack stack, EnchantmentLevelEntry entry) private static intBundleItem.addToBundle(ItemStack bundle, ItemStack stack) static voidBannerItem.appendBannerTooltip(ItemStack stack, List<Text> tooltip) voidAirBlockItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidBannerItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidBannerPatternItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidBlockItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidBundleItem.appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) voidCrossbowItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidDiscFragmentItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidEnchantedBookItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidEntityBucketItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidFilledMapItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidFireworkRocketItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidFireworkStarItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidGoatHornItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidLingeringPotionItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidMusicDiscItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidPotionItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidShieldItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidTippedArrowItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) voidWrittenBookItem.appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) static booleanstatic booleanItemStack.areItemsEqual(ItemStack left, ItemStack right) static booleanItemStack.areItemsEqualIgnoreDamage(ItemStack left, ItemStack right) static booleanItemStack.areNbtEqual(ItemStack left, ItemStack right) Returns whether the given item stacks have equivalent custom NBT.static ItemStackDyeableItem.blendAndSetColor(ItemStack stack, List<DyeItem> colors) static booleanItemStack.canCombine(ItemStack stack, ItemStack otherStack) private static Optional<NbtCompound>BundleItem.canMergeStack(ItemStack stack, NbtList items) protected booleanDecorationItem.canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos) protected booleanItemFrameItem.canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos) booleanbooleanbooleanbooleanbooleanbooleanBlockPredicatesChecker.check(ItemStack stack, Registry<Block> blockRegistry, CachedBlockPosition pos) Returns true if any of the predicates in thestack's NBT matched against the block atpos, false otherwise.private static voidCrossbowItem.clearProjectiles(ItemStack crossbow) static voidArrowItem.createArrow(World world, ItemStack stack, LivingEntity shooter) private static PersistentProjectileEntityCrossbowItem.createArrow(World world, LivingEntity entity, ItemStack crossbow, ItemStack arrow) SpectralArrowItem.createArrow(World world, ItemStack stack, LivingEntity shooter) private static voidFilledMapItem.createMapState(ItemStack stack, World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension) FilledMapItem.createSyncPacket(ItemStack stack, World world, PlayerEntity player) Creates a packet that syncs additional item data to the client.NetworkSyncedItem.createSyncPacket(ItemStack stack, World world, PlayerEntity player) Creates a packet that syncs additional item data to the client.static booleanArmorItem.dispenseArmor(BlockPointer pointer, ItemStack armor) private static booleanBundleItem.dropAllBundledItems(ItemStack stack, PlayerEntity player) static ItemStackItemUsage.exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack) static ItemStackItemUsage.exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride) protected ItemStackGlassBottleItem.fill(ItemStack stack, PlayerEntity player, ItemStack outputStack) static voidFilledMapItem.fillExplorationMap(ServerWorld world, ItemStack map) ChorusFruitItem.finishUsing(ItemStack stack, World world, LivingEntity user) HoneyBottleItem.finishUsing(ItemStack stack, World world, LivingEntity user) Item.finishUsing(ItemStack stack, World world, LivingEntity user) MilkBucketItem.finishUsing(ItemStack stack, World world, LivingEntity user) PotionItem.finishUsing(ItemStack stack, World world, LivingEntity user) SpyglassItem.finishUsing(ItemStack stack, World world, LivingEntity user) StewItem.finishUsing(ItemStack stack, World world, LivingEntity user) SuspiciousStewItem.finishUsing(ItemStack stack, World world, LivingEntity user) static floatBundleItem.getAmountFilled(ItemStack stack) static @Nullable NbtCompoundBlockItem.getBlockEntityNbt(ItemStack stack) BundleItem.getBundledStacks(ItemStack stack) private static intBundleItem.getBundleOccupancy(ItemStack stack) default intstatic DyeColorstatic ItemStackBucketItem.getEmptiedStack(ItemStack stack, PlayerEntity player) static NbtListEnchantedBookItem.getEnchantmentNbt(ItemStack stack) static intWrittenBookItem.getGeneration(ItemStack stack) private Optional<RegistryEntry<Instrument>>GoatHornItem.getInstrument(ItemStack stack) intBundleItem.getItemBarColor(ItemStack stack) intItem.getItemBarColor(ItemStack stack) intBundleItem.getItemBarStep(ItemStack stack) intItem.getItemBarStep(ItemStack stack) private static intBundleItem.getItemOccupancy(ItemStack stack) static intFilledMapItem.getMapColor(ItemStack stack) intBowItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intCrossbowItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intGoatHornItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intHoneyBottleItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intMilkBucketItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intPotionItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intShieldItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intSpyglassItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.intTridentItem.getMaxUseTime(ItemStack stack) Returns the maximum use (right-click) time of this item, in ticks.floatItem.getMiningSpeedMultiplier(ItemStack stack, BlockState state) floatMiningToolItem.getMiningSpeedMultiplier(ItemStack stack, BlockState state) floatShearsItem.getMiningSpeedMultiplier(ItemStack stack, BlockState state) floatSwordItem.getMiningSpeedMultiplier(ItemStack stack, BlockState state) FilledMapItem.getOrCreateMapState(ItemStack map, World world) static intWrittenBookItem.getPageCount(ItemStack stack) CrossbowItem.getProjectiles(ItemStack crossbow) private static floatCrossbowItem.getPullProgress(int useTicks, ItemStack stack) static intCrossbowItem.getPullTime(ItemStack stack) Returns this item's rarity, which changes the color of its name.private static floatBundleItem.getTooltipData(ItemStack stack) Item.getTooltipData(ItemStack stack) CompassItem.getTranslationKey(ItemStack stack) Gets the translation key of this item using the provided item stack for context.Item.getTranslationKey(ItemStack stack) Gets the translation key of this item using the provided item stack for context.PotionItem.getTranslationKey(ItemStack stack) Gets the translation key of this item using the provided item stack for context.ShieldItem.getTranslationKey(ItemStack stack) Gets the translation key of this item using the provided item stack for context.TippedArrowItem.getTranslationKey(ItemStack stack) Gets the translation key of this item using the provided item stack for context.BowItem.getUseAction(ItemStack stack) CrossbowItem.getUseAction(ItemStack stack) GoatHornItem.getUseAction(ItemStack stack) HoneyBottleItem.getUseAction(ItemStack stack) Item.getUseAction(ItemStack stack) MilkBucketItem.getUseAction(ItemStack stack) PotionItem.getUseAction(ItemStack stack) ShieldItem.getUseAction(ItemStack stack) SpyglassItem.getUseAction(ItemStack stack) TridentItem.getUseAction(ItemStack stack) default booleanbooleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.booleanChecks if the glint effect should be applied when the item is rendered.static booleanCompassItem.hasLodestone(ItemStack stack) static booleanCrossbowItem.hasProjectile(ItemStack crossbow, Item projectile) voidCompassItem.inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected) voidFilledMapItem.inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected) voidItem.inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected) static booleanbooleanBookItem.isEnchantable(ItemStack stack) Returns whether the givenItemStackis enchantable.booleanEnchantedBookItem.isEnchantable(ItemStack stack) Returns whether the givenItemStackis enchantable.booleanItem.isEnchantable(ItemStack stack) Returns whether the givenItemStackis enchantable.private booleanbooleanBundleItem.isItemBarVisible(ItemStack stack) booleanItem.isItemBarVisible(ItemStack stack) booleanItemStack.isItemEqual(ItemStack stack) booleanItemStack.isItemEqualIgnoreDamage(ItemStack stack) static booleanbooleanCrossbowItem.isUsedOnRelease(ItemStack stack) booleanItem.isUsedOnRelease(ItemStack stack) private static booleanCrossbowItem.loadProjectile(LivingEntity shooter, ItemStack crossbow, ItemStack projectile, boolean simulated, boolean creative) private static booleanCrossbowItem.loadProjectiles(LivingEntity shooter, ItemStack projectile) booleanBundleItem.onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) booleanItem.onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) booleanItemStack.onClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player, StackReference cursorStackReference) voidFilledMapItem.onCraft(ItemStack stack, World world, PlayerEntity player) Called when a player acquires the item by crafting, smelting, smithing, etc.voidItem.onCraft(ItemStack stack, World world, PlayerEntity player) Called when a player acquires the item by crafting, smelting, smithing, etc.voidvoidEntityBucketItem.onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos) default voidFluidModificationItem.onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos) booleanBundleItem.onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player) booleanItem.onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player) voidBowItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) voidCrossbowItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) voidItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) voidSpyglassItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) voidTridentItem.onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks) private BlockStateBlockItem.placeFromNbt(BlockPos pos, World world, ItemStack stack, BlockState state) booleanItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) booleanMiningToolItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) booleanSwordItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) booleanTridentItem.postHit(ItemStack stack, LivingEntity target, LivingEntity attacker) booleanItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) booleanMiningToolItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) booleanShearsItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) booleanSwordItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) booleanTridentItem.postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner) protected booleanBlockItem.postPlacement(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state) protected booleanSignItem.postPlacement(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state) private static voidCrossbowItem.postShoot(World world, LivingEntity entity, ItemStack stack) private static voidCrossbowItem.putProjectile(ItemStack crossbow, ItemStack projectile) default voidDyeableItem.removeColor(ItemStack stack) BundleItem.removeFirstStack(ItemStack stack) static booleanWrittenBookItem.resolve(ItemStack book, @Nullable ServerCommandSource commandSource, @Nullable PlayerEntity player) private static voidstatic voidBlockItem.setBlockEntityNbt(ItemStack stack, BlockEntityType<?> blockEntityType, NbtCompound tag) static voidCrossbowItem.setCharged(ItemStack stack, boolean charged) default voidprivate static voidGoatHornItem.setInstrument(ItemStack stack, RegistryEntry<Instrument> instrument) private static voidstatic voidGoatHornItem.setRandomInstrumentFromTag(ItemStack stack, TagKey<Instrument> instrumentTag, Random random) private static voidCrossbowItem.shoot(World world, LivingEntity shooter, Hand hand, ItemStack crossbow, ItemStack projectile, float soundPitch, boolean creative, float speed, float divergence, float simulated) static voidCrossbowItem.shootAll(World world, LivingEntity entity, Hand hand, ItemStack stack, float speed, float divergence) SpawnEggItem.spawnBaby(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack) private voidEntityBucketItem.spawnEntity(ServerWorld world, ItemStack stack, BlockPos pos) voidCrossbowItem.usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks) voidItem.usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks) 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) Item.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) NameTagItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) SaddleItem.useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand) static booleanBoneMealItem.useOnFertilizable(ItemStack stack, World world, BlockPos pos) static booleanBoneMealItem.useOnGround(ItemStack stack, World world, BlockPos blockPos, @Nullable Direction facing) static booleanBlockItem.writeNbtToBlockEntity(World world, @Nullable PlayerEntity player, BlockPos pos, ItemStack stack) Method parameters in net.minecraft.item with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidBlockItem.appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks) Appends the stacks of this item shown in the item group to the list.voidEnchantedBookItem.appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks) Appends the stacks of this item shown in the item group to the list.voidGoatHornItem.appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks) Appends the stacks of this item shown in the item group to the list.voidItem.appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks) Appends the stacks of this item shown in the item group to the list.voidItemGroup.appendStacks(DefaultedList<ItemStack> stacks) voidPotionItem.appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks) Appends the stacks of this item shown in the item group to the list.voidTippedArrowItem.appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks) Appends the stacks of this item shown in the item group to the list.static ItemStackRangedWeaponItem.getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate) static voidItemUsage.spawnItemContents(ItemEntity itemEntity, Stream<ItemStack> contents) 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) -
Uses of ItemStack in net.minecraft.item.map
Methods in net.minecraft.item.map with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidMapState.addDecorationsNbt(ItemStack stack, BlockPos pos, String id, MapIcon.Type type) voidMapState.update(PlayerEntity player, ItemStack stack) -
Uses of ItemStack in net.minecraft.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 TypeMethodDescriptionLootTable.generateLoot(LootContext context) LootTable.processStacks(Consumer<ItemStack> lootConsumer) Method parameters in net.minecraft.loot with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidLootPool.addGeneratedLoot(Consumer<ItemStack> lootConsumer, LootContext context) voidLootChoice.generateLoot(Consumer<ItemStack> lootConsumer, LootContext context) voidLootTable.generateLoot(LootContext context, Consumer<ItemStack> lootConsumer) voidLootTable.generateUnprocessedLoot(LootContext context, Consumer<ItemStack> lootConsumer) LootTable.processStacks(Consumer<ItemStack> lootConsumer) private voidLootTable.shuffle(ObjectArrayList<ItemStack> drops, int freeSlots, Random random) private voidLootPool.supplyOnce(Consumer<ItemStack> lootConsumer, LootContext context) -
Uses of ItemStack in net.minecraft.loot.context
Fields in net.minecraft.loot.context with type parameters of type ItemStackModifier and TypeFieldDescriptionstatic final LootContextParameter<ItemStack>LootContextParameters.TOOLMethod parameters in net.minecraft.loot.context with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidLootContext.Dropper.add(LootContext context, Consumer<ItemStack> consumer) 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> LootFunctionManager.AndFunction.field_27905private final BiFunction<ItemStack,LootContext, ItemStack> LootFunctionManager.AndFunction.field_27905static final BiFunction<ItemStack,LootContext, ItemStack> LootFunctionTypes.NOOPstatic final BiFunction<ItemStack,LootContext, ItemStack> LootFunctionTypes.NOOPMethods in net.minecraft.loot.function that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackEnchantRandomlyLootFunction.addEnchantmentToStack(ItemStack stack, Enchantment enchantment, Random random) final ItemStackConditionalLootFunction.apply(ItemStack itemStack, LootContext lootContext) LootFunctionManager.AndFunction.apply(ItemStack itemStack, LootContext lootContext) ApplyBonusLootFunction.process(ItemStack stack, LootContext context) protected abstract ItemStackConditionalLootFunction.process(ItemStack stack, LootContext context) CopyNameLootFunction.process(ItemStack stack, LootContext context) CopyNbtLootFunction.process(ItemStack stack, LootContext context) protected ItemStackCopyStateFunction.process(ItemStack stack, LootContext context) EnchantRandomlyLootFunction.process(ItemStack stack, LootContext context) EnchantWithLevelsLootFunction.process(ItemStack stack, LootContext context) ExplorationMapLootFunction.process(ItemStack stack, LootContext context) ExplosionDecayLootFunction.process(ItemStack stack, LootContext context) FillPlayerHeadLootFunction.process(ItemStack stack, LootContext context) FurnaceSmeltLootFunction.process(ItemStack stack, LootContext context) LimitCountLootFunction.process(ItemStack stack, LootContext context) LootingEnchantLootFunction.process(ItemStack stack, LootContext context) SetAttributesLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetBannerPatternFunction.process(ItemStack stack, LootContext context) SetContentsLootFunction.process(ItemStack stack, LootContext context) SetCountLootFunction.process(ItemStack stack, LootContext context) SetDamageLootFunction.process(ItemStack stack, LootContext context) SetEnchantmentsLootFunction.process(ItemStack stack, LootContext context) SetGoatHornSoundLootFunction.process(ItemStack stack, LootContext context) SetLootTableLootFunction.process(ItemStack stack, LootContext context) SetLoreLootFunction.process(ItemStack stack, LootContext context) SetNameLootFunction.process(ItemStack stack, LootContext context) SetNbtLootFunction.process(ItemStack stack, LootContext context) SetPotionLootFunction.process(ItemStack stack, LootContext context) SetStewEffectLootFunction.process(ItemStack stack, LootContext context) Methods in net.minecraft.loot.function that return types with arguments of type ItemStackModifier and TypeMethodDescriptionLootFunction.apply(BiFunction<ItemStack, LootContext, ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context) static BiFunction<ItemStack,LootContext, ItemStack> LootFunctionTypes.join(BiFunction<ItemStack, LootContext, ItemStack>[] lootFunctions) static BiFunction<ItemStack,LootContext, ItemStack> LootFunctionTypes.join(BiFunction<ItemStack, LootContext, ItemStack>[] lootFunctions) Methods in net.minecraft.loot.function with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static ItemStackEnchantRandomlyLootFunction.addEnchantmentToStack(ItemStack stack, Enchantment enchantment, Random random) final ItemStackConditionalLootFunction.apply(ItemStack itemStack, LootContext lootContext) LootFunctionManager.AndFunction.apply(ItemStack itemStack, LootContext lootContext) SetLoreLootFunction.getLoreForMerge(ItemStack stack, boolean otherLoreExists) ApplyBonusLootFunction.process(ItemStack stack, LootContext context) protected abstract ItemStackConditionalLootFunction.process(ItemStack stack, LootContext context) CopyNameLootFunction.process(ItemStack stack, LootContext context) CopyNbtLootFunction.process(ItemStack stack, LootContext context) protected ItemStackCopyStateFunction.process(ItemStack stack, LootContext context) EnchantRandomlyLootFunction.process(ItemStack stack, LootContext context) EnchantWithLevelsLootFunction.process(ItemStack stack, LootContext context) ExplorationMapLootFunction.process(ItemStack stack, LootContext context) ExplosionDecayLootFunction.process(ItemStack stack, LootContext context) FillPlayerHeadLootFunction.process(ItemStack stack, LootContext context) FurnaceSmeltLootFunction.process(ItemStack stack, LootContext context) LimitCountLootFunction.process(ItemStack stack, LootContext context) LootingEnchantLootFunction.process(ItemStack stack, LootContext context) SetAttributesLootFunction.process(ItemStack stack, LootContext context) protected ItemStackSetBannerPatternFunction.process(ItemStack stack, LootContext context) SetContentsLootFunction.process(ItemStack stack, LootContext context) SetCountLootFunction.process(ItemStack stack, LootContext context) SetDamageLootFunction.process(ItemStack stack, LootContext context) SetEnchantmentsLootFunction.process(ItemStack stack, LootContext context) SetGoatHornSoundLootFunction.process(ItemStack stack, LootContext context) SetLootTableLootFunction.process(ItemStack stack, LootContext context) SetLoreLootFunction.process(ItemStack stack, LootContext context) SetNameLootFunction.process(ItemStack stack, LootContext context) SetNbtLootFunction.process(ItemStack stack, LootContext context) SetPotionLootFunction.process(ItemStack stack, LootContext context) SetStewEffectLootFunction.process(ItemStack stack, LootContext context) Method parameters in net.minecraft.loot.function with type arguments of type ItemStackModifier and TypeMethodDescriptionLootFunction.apply(BiFunction<ItemStack, LootContext, ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context) LootFunction.apply(BiFunction<ItemStack, LootContext, ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context) LootFunction.apply(BiFunction<ItemStack, LootContext, ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context) -
Uses of ItemStack in net.minecraft.network
Methods in net.minecraft.network that return ItemStackModifier and TypeMethodDescriptionPacketByteBuf.readItemStack()Reads an item stack from this buf.Methods in net.minecraft.network with parameters of type ItemStackModifier and TypeMethodDescriptionPacketByteBuf.writeItemStack(ItemStack stack) Writes an item stack to this buf. -
Uses of ItemStack in net.minecraft.network.packet.c2s.play
Fields in net.minecraft.network.packet.c2s.play declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackClickSlotC2SPacket.stackprivate final ItemStackCreativeInventoryActionC2SPacket.stackFields in net.minecraft.network.packet.c2s.play with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final Int2ObjectMap<ItemStack>ClickSlotC2SPacket.modifiedStacksMethods in net.minecraft.network.packet.c2s.play that return ItemStackModifier and TypeMethodDescriptionCreativeInventoryActionC2SPacket.getItemStack()ClickSlotC2SPacket.getStack()Methods in net.minecraft.network.packet.c2s.play that return types with arguments of type ItemStackConstructors in net.minecraft.network.packet.c2s.play with parameters of type ItemStackModifierConstructorDescriptionClickSlotC2SPacket(int syncId, int revision, int slot, int button, SlotActionType actionType, ItemStack stack, Int2ObjectMap<ItemStack> modifiedStacks) CreativeInventoryActionC2SPacket(int slot, ItemStack stack) Constructor parameters in net.minecraft.network.packet.c2s.play with type arguments of type ItemStackModifierConstructorDescriptionClickSlotC2SPacket(int syncId, int revision, int slot, int button, SlotActionType actionType, ItemStack stack, Int2ObjectMap<ItemStack> modifiedStacks) -
Uses of ItemStack in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackInventoryS2CPacket.cursorStackprivate final ItemStackScreenHandlerSlotUpdateS2CPacket.stackFields in net.minecraft.network.packet.s2c.play with type parameters of type ItemStackModifier and TypeFieldDescriptionInventoryS2CPacket.contentsprivate final List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> EntityEquipmentUpdateS2CPacket.equipmentListMethods in net.minecraft.network.packet.s2c.play that return ItemStackModifier and TypeMethodDescriptionInventoryS2CPacket.getCursorStack()ScreenHandlerSlotUpdateS2CPacket.getItemStack()Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type ItemStackModifier and TypeMethodDescriptionInventoryS2CPacket.getContents()List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> EntityEquipmentUpdateS2CPacket.getEquipmentList()Constructors in net.minecraft.network.packet.s2c.play with parameters of type ItemStackModifierConstructorDescriptionInventoryS2CPacket(int syncId, int revision, DefaultedList<ItemStack> contents, ItemStack cursorStack) ScreenHandlerSlotUpdateS2CPacket(int syncId, int revision, int slot, ItemStack stack) Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type ItemStackModifierConstructorDescriptionEntityEquipmentUpdateS2CPacket(int id, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> equipmentList) InventoryS2CPacket(int syncId, int revision, DefaultedList<ItemStack> contents, ItemStack cursorStack) -
Uses of ItemStack in net.minecraft.particle
Fields in net.minecraft.particle declared as ItemStackMethods in net.minecraft.particle that return ItemStackConstructors in net.minecraft.particle with parameters of type ItemStackModifierConstructorDescriptionItemStackParticleEffect(ParticleType<ItemStackParticleEffect> type, ItemStack stack) -
Uses of ItemStack in net.minecraft.potion
Methods in net.minecraft.potion that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackPotionUtil.setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects) static ItemStackMethods in net.minecraft.potion with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidPotionUtil.buildTooltip(ItemStack stack, List<Text> list, float durationMultiplier) static intstatic List<StatusEffectInstance>PotionUtil.getCustomPotionEffects(ItemStack stack) static Potionstatic List<StatusEffectInstance>PotionUtil.getPotionEffects(ItemStack stack) static ItemStackPotionUtil.setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects) static ItemStack -
Uses of ItemStack in net.minecraft.predicate
Methods in net.minecraft.predicate with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity declared as ItemStackConstructors in net.minecraft.predicate.entity with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.predicate.item
Methods in net.minecraft.predicate.item with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.recipe
Fields in net.minecraft.recipe declared as ItemStackModifier and TypeFieldDescriptionIngredient.matchingStacksprotected final ItemStackAbstractCookingRecipe.outputprotected final ItemStackCuttingRecipe.output(package private) final ItemStackShapedRecipe.output(package private) final ItemStackShapelessRecipe.output(package private) final ItemStackSmithingRecipe.resultprivate final ItemStackIngredient.StackEntry.stackFields in net.minecraft.recipe with type parameters of type ItemStackMethods in net.minecraft.recipe that return ItemStackModifier and TypeMethodDescriptionCrafts this recipe.ArmorDyeRecipe.craft(CraftingInventory craftingInventory) BannerDuplicateRecipe.craft(CraftingInventory craftingInventory) BookCloningRecipe.craft(CraftingInventory craftingInventory) static ItemStackCrafts this recipe.FireworkRocketRecipe.craft(CraftingInventory craftingInventory) FireworkStarFadeRecipe.craft(CraftingInventory craftingInventory) FireworkStarRecipe.craft(CraftingInventory craftingInventory) MapCloningRecipe.craft(CraftingInventory craftingInventory) MapExtendingRecipe.craft(CraftingInventory craftingInventory) Crafts this recipe.RepairItemRecipe.craft(CraftingInventory craftingInventory) ShapedRecipe.craft(CraftingInventory craftingInventory) ShapelessRecipe.craft(CraftingInventory craftingInventory) ShieldDecorationRecipe.craft(CraftingInventory craftingInventory) ShulkerBoxColoringRecipe.craft(CraftingInventory craftingInventory) Crafts this recipe.SuspiciousStewRecipe.craft(CraftingInventory craftingInventory) TippedArrowRecipe.craft(CraftingInventory craftingInventory) BlastingRecipe.createIcon()Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.CampfireCookingRecipe.createIcon()Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.default ItemStackRecipe.createIcon()Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.SmeltingRecipe.createIcon()Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.SmithingRecipe.createIcon()Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.SmokingRecipe.createIcon()Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.StonecuttingRecipe.createIcon()Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.Ingredient.getMatchingStacks()AbstractCookingRecipe.getOutput()Returns a preview of the recipe's output.CuttingRecipe.getOutput()Returns a preview of the recipe's output.FireworkRocketRecipe.getOutput()Returns a preview of the recipe's output.FireworkStarRecipe.getOutput()Returns a preview of the recipe's output.Recipe.getOutput()Returns a preview of the recipe's output.ShapedRecipe.getOutput()Returns a preview of the recipe's output.ShapelessRecipe.getOutput()Returns a preview of the recipe's output.SmithingRecipe.getOutput()Returns a preview of the recipe's output.SpecialCraftingRecipe.getOutput()Returns a preview of the recipe's output.static ItemStackRecipeMatcher.getStackFromId(int itemId) static ItemStackShapedRecipe.outputFromJson(JsonObject json) Methods in net.minecraft.recipe that return types with arguments of type ItemStackModifier and TypeMethodDescriptionBannerDuplicateRecipe.getRemainder(CraftingInventory craftingInventory) BookCloningRecipe.getRemainder(CraftingInventory craftingInventory) default DefaultedList<ItemStack>Recipe.getRemainder(C inventory) Returns the remaining stacks to be left in theinventoryafter the recipe is used.<C extends Inventory,T extends Recipe<C>>
DefaultedList<ItemStack>RecipeManager.getRemainingStacks(RecipeType<T> type, C inventory, World world) Returns the remainder of a recipe of the giventypethat match the giveninventoryandworld, or a shallow copy of theinventory.Ingredient.Entry.getStacks()Ingredient.StackEntry.getStacks()Ingredient.TagEntry.getStacks()Methods in net.minecraft.recipe with parameters of type ItemStackModifier and TypeMethodDescriptionvoidAdds a full item stack to the pool of available resources.voidAdds an item stack to the pool of available resources.voidRecipeMatcher.addUnenchantedInput(ItemStack stack) Adds a full item stack to the pool of available resources.static ItemStackCookingRecipeSerializer.RecipeFactory.create(Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime) CuttingRecipe.Serializer.RecipeFactory.create(Identifier id, String group, Ingredient input, ItemStack output) protected voidInputSlotFiller.fillInputSlot(Slot slot, ItemStack stack) static intprotected static booleanBrewingRecipeRegistry.hasItemRecipe(ItemStack input, ItemStack ingredient) protected static booleanBrewingRecipeRegistry.hasPotionRecipe(ItemStack input, ItemStack ingredient) static booleanprotected static booleanBrewingRecipeRegistry.isItemRecipeIngredient(ItemStack stack) protected static booleanBrewingRecipeRegistry.isPotionRecipeIngredient(ItemStack stack) static booleanBrewingRecipeRegistry.isValidIngredient(ItemStack stack) static IngredientbooleanbooleanSmithingRecipe.testAddition(ItemStack stack) Method parameters in net.minecraft.recipe with type arguments of type ItemStackConstructors in net.minecraft.recipe with parameters of type ItemStackModifierConstructorDescriptionAbstractCookingRecipe(RecipeType<?> type, Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime) BlastingRecipe(Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime) CampfireCookingRecipe(Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime) CuttingRecipe(RecipeType<?> type, RecipeSerializer<?> serializer, Identifier id, String group, Ingredient input, ItemStack output) ShapedRecipe(Identifier id, String group, int width, int height, DefaultedList<Ingredient> input, ItemStack output) ShapelessRecipe(Identifier id, String group, ItemStack output, DefaultedList<Ingredient> input) SmeltingRecipe(Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime) SmithingRecipe(Identifier id, Ingredient base, Ingredient addition, ItemStack result) SmokingRecipe(Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime) (package private)StackEntry(ItemStack stack) StonecuttingRecipe(Identifier id, String group, Ingredient input, ItemStack output) -
Uses of ItemStack in net.minecraft.screen
Fields in net.minecraft.screen declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackScreenHandler.cursorStackprivate ItemStackStonecutterScreenHandler.inputStackprivate ItemStackScreenHandler.previousCursorStackFields in net.minecraft.screen with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>ScreenHandler.previousTrackedStacksprivate final DefaultedList<ItemStack>ScreenHandler.trackedStacksA list of item stacks that is used for tracking changes inScreenHandler.sendContentUpdates().Methods in net.minecraft.screen that return ItemStackModifier and TypeMethodDescriptionLecternScreenHandler.getBookItem()ScreenHandler.getCursorStack()private ItemStackprivate ItemStackGrindstoneScreenHandler.transferEnchantments(ItemStack target, ItemStack source) AbstractFurnaceScreenHandler.transferSlot(PlayerEntity player, int index) BeaconScreenHandler.transferSlot(PlayerEntity player, int index) BrewingStandScreenHandler.transferSlot(PlayerEntity player, int index) CartographyTableScreenHandler.transferSlot(PlayerEntity player, int index) CraftingScreenHandler.transferSlot(PlayerEntity player, int index) EnchantmentScreenHandler.transferSlot(PlayerEntity player, int index) ForgingScreenHandler.transferSlot(PlayerEntity player, int index) Generic3x3ContainerScreenHandler.transferSlot(PlayerEntity player, int index) GenericContainerScreenHandler.transferSlot(PlayerEntity player, int index) GrindstoneScreenHandler.transferSlot(PlayerEntity player, int index) HopperScreenHandler.transferSlot(PlayerEntity player, int index) HorseScreenHandler.transferSlot(PlayerEntity player, int index) LecternScreenHandler.transferSlot(PlayerEntity player, int index) LoomScreenHandler.transferSlot(PlayerEntity player, int index) MerchantScreenHandler.transferSlot(PlayerEntity player, int index) PlayerScreenHandler.transferSlot(PlayerEntity player, int index) abstract ItemStackScreenHandler.transferSlot(PlayerEntity player, int index) ShulkerBoxScreenHandler.transferSlot(PlayerEntity player, int index) StonecutterScreenHandler.transferSlot(PlayerEntity player, int index) Methods in net.minecraft.screen that return types with arguments of type ItemStackMethods in net.minecraft.screen with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidstatic voidScreenHandler.calculateStackSize(Set<Slot> slots, int mode, ItemStack stack, int stackSize) booleanbooleanbooleanbooleanbooleanCartographyTableScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) booleanCraftingScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) booleanMerchantScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) booleanPlayerScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) booleanScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) booleanSmithingScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) booleanStonecutterScreenHandler.canInsertIntoSlot(ItemStack stack, Slot slot) static booleanScreenHandler.canInsertItemIntoSlot(@Nullable Slot slot, ItemStack stack, boolean allowOverflow) private voidScreenHandler.checkSlotUpdates(int slot, ItemStack stack, Supplier<ItemStack> copySupplier) private List<EnchantmentLevelEntry>EnchantmentScreenHandler.generateEnchantments(ItemStack stack, int slot, int level) private List<RegistryEntry<BannerPattern>>LoomScreenHandler.getPatternsFor(ItemStack stack) private ItemStackprotected booleanScreenHandler.insertItem(ItemStack stack, int startIndex, int endIndex, boolean fromLast) protected booleanprotected booleanAbstractFurnaceScreenHandler.isSmeltable(ItemStack itemStack) protected booleanForgingScreenHandler.isUsableAsAddition(ItemStack stack) protected booleanSmithingScreenHandler.isUsableAsAddition(ItemStack stack) static booleanstatic booleanvoidScreenHandlerListener.onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack) voidBrewingStandScreenHandler.PotionSlot.onTakeItem(PlayerEntity player, ItemStack stack) protected voidAnvilScreenHandler.onTakeOutput(PlayerEntity player, ItemStack stack) protected abstract voidForgingScreenHandler.onTakeOutput(PlayerEntity player, ItemStack stack) protected voidSmithingScreenHandler.onTakeOutput(PlayerEntity player, ItemStack stack) voidScreenHandler.setCursorStack(ItemStack stack) voidScreenHandler.setPreviousCursorStack(ItemStack stack) voidScreenHandler.setPreviousTrackedSlot(int slot, ItemStack stack) voidScreenHandler.setPreviousTrackedSlotMutable(int slot, ItemStack stack) voidScreenHandler.setStackInSlot(int slot, int revision, ItemStack stack) private ItemStackGrindstoneScreenHandler.transferEnchantments(ItemStack target, ItemStack source) voidScreenHandlerSyncHandler.updateCursorStack(ScreenHandler handler, ItemStack stack) private voidStonecutterScreenHandler.updateInput(Inventory input, ItemStack stack) private voidCartographyTableScreenHandler.updateResult(ItemStack map, ItemStack item, ItemStack oldResult) voidScreenHandlerSyncHandler.updateSlot(ScreenHandler handler, int slot, ItemStack stack) voidScreenHandler.updateSlotStacks(int revision, List<ItemStack> stacks, ItemStack cursorStack) voidScreenHandlerSyncHandler.updateState(ScreenHandler handler, DefaultedList<ItemStack> stacks, ItemStack cursorStack, int[] properties) private voidScreenHandler.updateTrackedSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier) Method parameters in net.minecraft.screen with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate voidScreenHandler.checkSlotUpdates(int slot, ItemStack stack, Supplier<ItemStack> copySupplier) voidScreenHandler.updateSlotStacks(int revision, List<ItemStack> stacks, ItemStack cursorStack) voidScreenHandlerSyncHandler.updateState(ScreenHandler handler, DefaultedList<ItemStack> stacks, ItemStack cursorStack, int[] properties) private voidScreenHandler.updateTrackedSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier) -
Uses of ItemStack in net.minecraft.screen.slot
Methods in net.minecraft.screen.slot that return ItemStackModifier and TypeMethodDescriptionSlot.getStack()Slot.insertStack(ItemStack stack) Slot.insertStack(ItemStack stack, int count) CraftingResultSlot.takeStack(int amount) FurnaceOutputSlot.takeStack(int amount) Slot.takeStack(int amount) TradeOutputSlot.takeStack(int amount) Slot.takeStackRange(int min, int max, PlayerEntity player) Methods in net.minecraft.screen.slot that return types with arguments of type ItemStackMethods in net.minecraft.screen.slot with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanintFurnaceFuelSlot.getMaxItemCount(ItemStack stack) intSlot.getMaxItemCount(ItemStack stack) Slot.insertStack(ItemStack stack) Slot.insertStack(ItemStack stack, int count) static booleanprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidvoidSlot.onQuickTransfer(ItemStack newItem, ItemStack original) voidCraftingResultSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidFurnaceOutputSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidTradeOutputSlot.onTakeItem(PlayerEntity player, ItemStack stack) voidSets the slot's stack tostackand marks the slot as dirty.voidSlot.setStackNoCallbacks(ItemStack stack) Sets the slot's stack tostackand marks the slot as dirty. -
Uses of ItemStack in net.minecraft.server.command
Methods in net.minecraft.server.command that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackLootCommand.getHeldItem(ServerCommandSource source, EquipmentSlot slot) private static ItemStackItemCommand.getStackInSlot(Entity entity, int slotId) private static ItemStackItemCommand.getStackInSlotFromInventoryAt(ServerCommandSource source, BlockPos pos, int slotId) private static ItemStackItemCommand.getStackWithModifier(ServerCommandSource source, LootFunction modifier, ItemStack stack) Methods in net.minecraft.server.command with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static intItemCommand.executeBlockReplace(ServerCommandSource source, BlockPos pos, int slot, ItemStack stack) private static intItemCommand.executeEntityReplace(ServerCommandSource source, Collection<? extends Entity> targets, int slot, ItemStack stack) private static intLootCommand.executeFish(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, BlockPos pos, ItemStack stack, LootCommand.Target constructor) private static intLootCommand.executeMine(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BlockPos pos, ItemStack stack, LootCommand.Target constructor) private static ItemStackItemCommand.getStackWithModifier(ServerCommandSource source, LootFunction modifier, ItemStack stack) private static booleanprivate static booleanLootCommand.itemsMatch(ItemStack first, ItemStack second) Method parameters in net.minecraft.server.command with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidintLootCommand.Target.accept(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, List<ItemStack> items, LootCommand.FeedbackMessage messageSender) private static intClearCommand.execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Predicate<ItemStack> item, int maxCount) private static intLootCommand.executeBlock(ServerCommandSource source, BlockPos targetPos, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static intLootCommand.executeGive(Collection<ServerPlayerEntity> players, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static intLootCommand.executeInsert(ServerCommandSource source, BlockPos targetPos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static intLootCommand.executeReplace(Collection<? extends Entity> targets, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static intLootCommand.executeSpawn(ServerCommandSource source, Vec3d pos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static voidLootCommand.replace(Entity entity, List<ItemStack> stacks, int slot, int stackCount, List<ItemStack> addedStacks) private static voidLootCommand.sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks) private static voidLootCommand.sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks, Identifier lootTable) -
Uses of ItemStack in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type ItemStackModifier and TypeMethodDescriptionvoidServerPlayerEntity.applyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels) private static booleanServerPlayNetworkHandler.canPlace(ServerPlayerEntity player, ItemStack stack) Checks if a player can place a block or fluid from a bucket.DemoServerPlayerInteractionManager.interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) ServerPlayerInteractionManager.interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) DemoServerPlayerInteractionManager.interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) ServerPlayerInteractionManager.interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand) private voidServerPlayNetworkHandler.setTextToBook(List<FilteredMessage<String>> messages, UnaryOperator<String> postProcessor, ItemStack book) protected voidServerPlayerEntity.tickItemStackUsage(ItemStack stack) voidCalled when the player uses (defaults to right click) a writable or written book item. -
Uses of ItemStack in net.minecraft.test
Methods in net.minecraft.test that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackStructureTestListener.createBookWithText(String text, boolean required, String output) -
Uses of ItemStack in net.minecraft.text
Fields in net.minecraft.text declared as ItemStackMethods in net.minecraft.text that return ItemStackConstructors in net.minecraft.text with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.util
Methods in net.minecraft.util with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidMethod parameters in net.minecraft.util with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic voidItemScatterer.spawn(World world, BlockPos pos, DefaultedList<ItemStack> stacks) -
Uses of ItemStack in net.minecraft.village
Fields in net.minecraft.village declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackTradeOffer.firstBuyItemprivate final ItemStackTradeOffers.ProcessItemFactory.secondBuyprivate final ItemStackTradeOffer.secondBuyItemprivate final ItemStackTradeOffers.ProcessItemFactory.sellprivate final ItemStackTradeOffers.SellItemFactory.sellprivate final ItemStackTradeOffers.SellPotionHoldingItemFactory.sellprivate final ItemStackTradeOffer.sellItemprivate final ItemStackTradeOffers.SellEnchantedToolFactory.toolFields in net.minecraft.village with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final DefaultedList<ItemStack>MerchantInventory.inventoryMethods in net.minecraft.village that return ItemStackModifier and TypeMethodDescriptionTradeOffer.copySellItem()Returns a copy of the sell item of this trade offer.TradeOffer.getAdjustedFirstBuyItem()Returns a copy of the first buy item of this trade offer, with its price adjusted depending on the demand bonus, the special price and the price multiplier.TradeOffer.getOriginalFirstBuyItem()Returns the first buy item of this trade offer.TradeOffer.getSecondBuyItem()Returns the second buy item of this trade offer.TradeOffer.getSellItem()Returns the sell item of this trade offer.MerchantInventory.getStack(int slot) Fetches the stack currently stored at the given slot.MerchantInventory.removeStack(int slot) Removes the stack currently stored at the indicated slot.MerchantInventory.removeStack(int slot, int amount) Removes a specific number of items from the given slot.Methods in net.minecraft.village with parameters of type ItemStackModifier and TypeMethodDescriptionprivate booleanTradeOffer.acceptsBuy(ItemStack given, ItemStack sample) booleanTradeOffer.depleteBuyItems(ItemStack firstBuyStack, ItemStack secondBuyStack) TradeOfferList.getValidOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, int index) booleanTradeOffer.matchesBuyItems(ItemStack first, ItemStack second) voidMerchant.onSellingItem(ItemStack stack) voidSimpleMerchant.onSellingItem(ItemStack stack) voidConstructors in net.minecraft.village with parameters of type ItemStackModifierConstructorDescriptionSellItemFactory(ItemStack stack, int price, int count, int maxUses, int experience) SellItemFactory(ItemStack stack, int price, int count, int maxUses, int experience, float multiplier) TradeOffer(ItemStack buyItem, ItemStack sellItem, int maxUses, int merchantExperience, float priceMultiplier) TradeOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int maxUses, int merchantExperience, float priceMultiplier) TradeOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int uses, int maxUses, int merchantExperience, float priceMultiplier) TradeOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int uses, int maxUses, int merchantExperience, float priceMultiplier, int demandBonus) -
Uses of ItemStack in net.minecraft.village.raid
Methods in net.minecraft.village.raid that return ItemStack -
Uses of ItemStack in net.minecraft.world.explosion
Methods in net.minecraft.world.explosion with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static voidExplosion.tryMergeStack(ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> stacks, ItemStack stack, BlockPos pos) Method parameters in net.minecraft.world.explosion with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate static voidExplosion.tryMergeStack(ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> stacks, ItemStack stack, BlockPos pos)
AbstractBlock.AbstractBlockState.getDroppedStacks(net.minecraft.loot.context.LootContext.Builder)instead.