Uses of Class
net.minecraft.item.ItemStack
-
Uses of ItemStack in net.minecraft.advancement
Fields in net.minecraft.advancement declared as ItemStack Modifier and Type Field Description private ItemStackAdvancementDisplay. iconMethods in net.minecraft.advancement that return ItemStack Modifier and Type Method Description ItemStackAdvancementDisplay. getIcon()private static ItemStackAdvancementDisplay. iconFromJson(JsonObject json)Methods in net.minecraft.advancement with parameters of type ItemStack Modifier and Type Method Description Advancement.TaskAdvancement.Task. 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 ItemStack Constructor Description AdvancementDisplay(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 ItemStack Modifier and Type Method Description voidVillagerTradeCriterion. handle(ServerPlayerEntity player, MerchantEntity merchant, ItemStack stack)booleanConsumeItemCriterion.Conditions. matches(ItemStack stack)booleanEnchantedItemCriterion.Conditions. matches(ItemStack stack, int levels)booleanFilledBucketCriterion.Conditions. matches(ItemStack stack)booleanFishingRodHookedCriterion.Conditions. matches(ItemStack rod, LootContext hookedEntityContext, Collection<ItemStack> fishingLoots)booleanInventoryChangedCriterion.Conditions. matches(PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied)booleanItemDurabilityChangedCriterion.Conditions. matches(ItemStack stack, int durability)booleanPlacedBlockCriterion.Conditions. matches(BlockState state, BlockPos pos, ServerWorld world, ItemStack stack)booleanShotCrossbowCriterion.Conditions. matches(ItemStack stack)booleanUsedTotemCriterion.Conditions. matches(ItemStack stack)booleanVillagerTradeCriterion.Conditions. matches(LootContext merchantContext, ItemStack stack)booleanBeeNestDestroyedCriterion.Conditions. test(BlockState state, ItemStack stack, int count)voidBeeNestDestroyedCriterion. test(ServerPlayerEntity player, BlockState state, ItemStack stack, int beeCount)booleanItemUsedOnBlockCriterion.Conditions. test(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)voidItemUsedOnBlockCriterion. test(ServerPlayerEntity player, BlockPos pos, ItemStack stack)booleanPlayerInteractedWithEntityCriterion.Conditions. test(ItemStack stack, LootContext context)voidPlayerInteractedWithEntityCriterion. test(ServerPlayerEntity player, ItemStack stack, Entity entity)booleanThrownItemPickedUpByEntityCriterion.Conditions. test(ServerPlayerEntity player, ItemStack stack, LootContext entityContext)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)voidItemDurabilityChangedCriterion. trigger(ServerPlayerEntity player, ItemStack stack, int durability)voidPlacedBlockCriterion. trigger(ServerPlayerEntity player, BlockPos blockPos, ItemStack stack)voidShotCrossbowCriterion. trigger(ServerPlayerEntity player, ItemStack stack)voidThrownItemPickedUpByEntityCriterion. trigger(ServerPlayerEntity player, ItemStack stack, Entity entity)voidUsedTotemCriterion. trigger(ServerPlayerEntity player, ItemStack stack)Method parameters in net.minecraft.advancement.criterion with type arguments of type ItemStack Modifier and Type Method Description booleanFishingRodHookedCriterion.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 ItemStack Modifier and Type Field Description private ItemStackEntityShapeContext. bootsprivate ItemStackEntityShapeContext. heldItemMethods in net.minecraft.block with parameters of type ItemStack Modifier and Type Method Description 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.booleanComposterBlock.ComposterInventory. canInsert(int slot, ItemStack stack, @Nullable Direction dir)Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanComposterBlock.DummyInventory. canInsert(int slot, ItemStack stack, @Nullable Direction dir)Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanComposterBlock.FullComposterInventory. canInsert(int slot, ItemStack stack, @Nullable Direction dir)Determines 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)static voidBlock. dropStack(World world, BlockPos pos, ItemStack stack)static 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)static List<ItemStack>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)voidAbstractBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)Deprecated.voidInfestedBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)voidOreBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)voidRedstoneOreBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)voidSpawnerBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)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(WorldAccess world, BlockPos pos, BlockState state, ItemStack stack)Method parameters in net.minecraft.block with type arguments of type ItemStack Modifier and Type Method Description voidBlock. addStacksForDisplay(ItemGroup group, DefaultedList<ItemStack> list)Constructors in net.minecraft.block with parameters of type ItemStack Constructor Description EntityShapeContext(boolean descending, double minY, ItemStack boots, ItemStack heldItem, Predicate<Fluid> walkOnFluidPredicate, Optional<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 ItemStack Modifier and Type Method Description static 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)ActionResultCauldronBehavior. 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 ItemStack Modifier and Type Method Description ItemStackDispenserBehavior. dispense(BlockPointer pointer, ItemStack stack)ItemStackItemDispenserBehavior. dispense(BlockPointer pointer, ItemStack stack)protected ItemStackBlockPlacementDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)ItemStackBoatDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)protected ItemStackItemDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)ItemStackProjectileDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)protected ItemStackShearsDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)Methods in net.minecraft.block.dispenser with parameters of type ItemStack Modifier and Type Method Description protected abstract ProjectileEntityProjectileDispenserBehavior. createProjectile(World world, Position position, ItemStack stack)ItemStackDispenserBehavior. dispense(BlockPointer pointer, ItemStack stack)ItemStackItemDispenserBehavior. dispense(BlockPointer pointer, ItemStack stack)protected ItemStackBlockPlacementDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)ItemStackBoatDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)protected ItemStackItemDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)ItemStackProjectileDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)protected ItemStackShearsDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)static voidItemDispenserBehavior. spawnItem(World world, ItemStack stack, int offset, Direction side, Position pos) -
Uses of ItemStack in net.minecraft.block.entity
Fields in net.minecraft.block.entity declared as ItemStack Modifier and Type Field Description private ItemStackLecternBlockEntity. bookprivate ItemStackJukeboxBlockEntity. recordFields in net.minecraft.block.entity with type parameters of type ItemStack Modifier and Type Field Description protected 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 DefaultedList<ItemStack>CampfireBlockEntity. itemsBeingCookedMethods in net.minecraft.block.entity that return ItemStack Modifier and Type Method Description ItemStackLecternBlockEntity. getBook()ItemStackBannerBlockEntity. getPickStack()ItemStackJukeboxBlockEntity. getRecord()ItemStackAbstractFurnaceBlockEntity. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackBrewingStandBlockEntity. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackLootableContainerBlockEntity. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackAbstractFurnaceBlockEntity. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackAbstractFurnaceBlockEntity. removeStack(int slot, int amount)Removes a specific number of items from the given slot.ItemStackBrewingStandBlockEntity. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackBrewingStandBlockEntity. removeStack(int slot, int amount)Removes a specific number of items from the given slot.ItemStackHopperBlockEntity. removeStack(int slot, int amount)Removes a specific number of items from the given slot.ItemStackLootableContainerBlockEntity. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackLootableContainerBlockEntity. 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 direction)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 ItemStack Modifier and Type Method Description protected 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()DefaultedList<ItemStack>CampfireBlockEntity. getItemsBeingCooked()Methods in net.minecraft.block.entity with parameters of type ItemStack Modifier and Type Method Description booleanCampfireBlockEntity. addItem(ItemStack item, int integer)intDispenserBlockEntity. 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.booleanAbstractFurnaceBlockEntity. canInsert(int slot, ItemStack stack, @Nullable Direction dir)Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanBrewingStandBlockEntity. canInsert(int slot, ItemStack stack, @Nullable Direction dir)Determines 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)booleanShulkerBoxBlockEntity. canInsert(int slot, ItemStack stack, @Nullable Direction dir)Determines 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)static @Nullable NbtListBannerBlockEntity. getPatternListTag(ItemStack stack)Optional<CampfireCookingRecipe>CampfireBlockEntity. getRecipeFor(ItemStack item)booleanAbstractFurnaceBlockEntity. isValid(int slot, ItemStack stack)Returns whether the given stack is a valid for the indicated slot position.booleanBrewingStandBlockEntity. isValid(int slot, ItemStack stack)Returns whether the given stack is a valid for the indicated slot position.static voidBannerBlockEntity. loadFromItemStack(ItemStack stack)voidBannerBlockEntity. readFrom(ItemStack stack, DyeColor baseColor)private ItemStackLecternBlockEntity. resolveBook(ItemStack book, @Nullable PlayerEntity player)voidLecternBlockEntity. setBook(ItemStack book)voidLecternBlockEntity. setBook(ItemStack book, @Nullable PlayerEntity player)voidJukeboxBlockEntity. setRecord(ItemStack stack)voidAbstractFurnaceBlockEntity. setStack(int slot, ItemStack stack)voidBrewingStandBlockEntity. setStack(int slot, ItemStack stack)voidHopperBlockEntity. setStack(int slot, ItemStack stack)voidLootableContainerBlockEntity. setStack(int slot, ItemStack stack)private static ItemStackHopperBlockEntity. transfer(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction direction)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 ItemStack Modifier and Type Method Description private 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 ItemStack Modifier and Type Method Description private ItemStackMinecraftClient. addBlockEntityNbt(ItemStack stack, BlockEntity blockEntity)Methods in net.minecraft.client with parameters of type ItemStack Modifier and Type Method Description private 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 Modifier and Type Method Description intItemColorProvider. getColor(ItemStack stack, int tintIndex)intItemColors. getColorMultiplier(ItemStack item, int tintIndex) -
Uses of ItemStack in net.minecraft.client.gui.hud
Fields in net.minecraft.client.gui.hud declared as ItemStack Modifier and Type Field Description private ItemStackInGameHud. currentStackMethods in net.minecraft.client.gui.hud with parameters of type ItemStack Modifier and Type Method Description private voidInGameHud. renderHotbarItem(int x, int y, float tickDelta, PlayerEntity player, ItemStack stack, int int2) -
Uses of ItemStack in net.minecraft.client.gui.screen
Fields in net.minecraft.client.gui.screen declared as ItemStack Modifier and Type Field Description (package private) ItemStackGameModeSelectionScreen.GameMode. iconMethods in net.minecraft.client.gui.screen with parameters of type ItemStack Modifier and Type Method Description List<Text>Screen. 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) -
Uses of ItemStack in net.minecraft.client.gui.screen.advancement
Fields in net.minecraft.client.gui.screen.advancement declared as ItemStack Modifier and Type Field Description private ItemStackAdvancementTab. iconMethods in net.minecraft.client.gui.screen.advancement with parameters of type ItemStack Modifier and Type Method Description voidAdvancementTabType. 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 ItemStack Modifier and Type Field Description private ItemStackLoomScreen. bannerprivate ItemStackLoomScreen. dyeprivate ItemStackBookEditScreen. itemStackprivate ItemStackLoomScreen. patternprivate ItemStackHandledScreen. quickMovingStackprivate ItemStackEnchantmentScreen. stackprivate ItemStackHandledScreen. touchDragStackprivate ItemStackHandledScreen. touchDropReturningStackFields in net.minecraft.client.gui.screen.ingame with type parameters of type ItemStack Modifier and Type Field Description DefaultedList<ItemStack>CreativeInventoryScreen.CreativeScreenHandler. itemListMethods in net.minecraft.client.gui.screen.ingame that return ItemStack Modifier and Type Method Description ItemStackCreativeInventoryScreen.CreativeScreenHandler. getCursorStack()ItemStackCreativeInventoryScreen.CreativeSlot. getStack()ItemStackCreativeInventoryScreen.CreativeSlot. takeStack(int amount)ItemStackCreativeInventoryScreen.CreativeScreenHandler. transferSlot(PlayerEntity player, int index)Methods in net.minecraft.client.gui.screen.ingame with parameters of type ItemStack Modifier and Type Method Description booleanCreativeInventoryScreen.CreativeSlot. canInsert(ItemStack stack)booleanCreativeInventoryScreen.CreativeScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)static BookScreen.ContentsBookScreen.Contents. create(ItemStack stack)private voidHandledScreen. drawItem(ItemStack stack, int xPosition, int yPosition, String amountText)intCreativeInventoryScreen.CreativeSlot. getMaxItemCount(ItemStack stack)private static List<String>BookScreen.WritableBookContents. getPages(ItemStack stack)private static List<String>BookScreen.WrittenBookContents. getPages(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)voidCreativeInventoryScreen.CreativeSlot. setStack(ItemStack stack)Constructors in net.minecraft.client.gui.screen.ingame with parameters of type ItemStack Constructor Description BookEditScreen(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 ItemStack Modifier and Type Field Description ItemStack[]RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot. stacksMethods in net.minecraft.client.gui.screen.recipebook that return ItemStack Modifier and Type Method Description ItemStackRecipeBookGhostSlots.GhostInputSlot. getCurrentItemStack()Constructors in net.minecraft.client.gui.screen.recipebook with parameters of type ItemStack Constructor Description InputSlot(int y, int x, ItemStack[] stacks) -
Uses of ItemStack in net.minecraft.client.gui.tooltip
Fields in net.minecraft.client.gui.tooltip with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>BundleTooltipComponent. inventory -
Uses of ItemStack in net.minecraft.client.item
Fields in net.minecraft.client.item with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>BundleTooltipData. inventoryMethods in net.minecraft.client.item that return types with arguments of type ItemStack Modifier and Type Method Description DefaultedList<ItemStack>BundleTooltipData. getInventory()Methods in net.minecraft.client.item with parameters of type ItemStack Modifier and Type Method Description floatModelPredicateProvider. call(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed)Constructor parameters in net.minecraft.client.item with type arguments of type ItemStack Constructor Description BundleTooltipData(DefaultedList<ItemStack> inventory, int bundleOccupancy) -
Uses of ItemStack in net.minecraft.client.network
Fields in net.minecraft.client.network declared as ItemStack Modifier and Type Field Description private ItemStackClientPlayerInteractionManager. selectedStackMethods in net.minecraft.client.network that return ItemStack Modifier and Type Method Description private static ItemStackClientPlayNetworkHandler. getActiveTotemOfUndying(PlayerEntity player)Methods in net.minecraft.client.network with parameters of type ItemStack Modifier and Type Method Description voidClientPlayerInteractionManager. 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.voidClientPlayerEntity. useBook(ItemStack book, Hand hand)Called 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 ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>HotbarStorageEntry. delegateMethods in net.minecraft.client.option that return types with arguments of type ItemStack Modifier and Type Method Description protected List<ItemStack>HotbarStorageEntry. delegate() -
Uses of ItemStack in net.minecraft.client.particle
Constructors in net.minecraft.client.particle with parameters of type ItemStack Constructor Description CrackParticle(ClientWorld world, double x, double y, double z, double double2, double double3, double double4, ItemStack stack)CrackParticle(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 ItemStack Modifier and Type Field Description private List<ItemStack>RecipeBookGroup. iconsMethods in net.minecraft.client.recipebook that return types with arguments of type ItemStack Modifier and Type Method Description List<ItemStack>RecipeBookGroup. getIcons()Constructors in net.minecraft.client.recipebook with parameters of type ItemStack Constructor Description RecipeBookGroup(ItemStack[] entries) -
Uses of ItemStack in net.minecraft.client.render
Fields in net.minecraft.client.render declared as ItemStack Modifier and Type Field Description private @Nullable ItemStackGameRenderer. floatingItemMethods in net.minecraft.client.render with parameters of type ItemStack Modifier and Type Method Description static 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 ItemStack Modifier and Type Method Description private 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 ItemStack Modifier and Type Method Description protected 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 ItemStack Modifier and Type Field Description private ItemStackHeldItemRenderer. mainHandprivate ItemStackHeldItemRenderer. offHandMethods in net.minecraft.client.render.item with parameters of type ItemStack Modifier and Type Method Description private voidHeldItemRenderer. applyEatOrDrinkTransformation(MatrixStack matrices, float tickDelta, Arm arm, ItemStack stack)BakedModelItemRenderer. getHeldItemModel(ItemStack itemStack, @Nullable World world, @Nullable LivingEntity entity, int seed)BakedModelItemModels. getModel(ItemStack stack)SpriteItemModels. getSprite(ItemStack stack)private voidItemRenderer. innerRenderInGui(@Nullable LivingEntity entity, ItemStack itemStack, int x, int y, int int2)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 int2)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 int2)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 ItemStack Modifier and Type Method Description @Nullable BakedModelModelOverrideList. 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 ItemStack Modifier and Type Field Description static SearchManager.Key<ItemStack>SearchManager. ITEM_TAGstatic SearchManager.Key<ItemStack>SearchManager. ITEM_TOOLTIP -
Uses of ItemStack in net.minecraft.client.tutorial
Methods in net.minecraft.client.tutorial with parameters of type ItemStack Modifier and Type Method Description voidBundleTutorial. 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 ItemStack Modifier and Type Method Description ItemStackItemStackArgument. createStack(int amount, boolean checkOverstack)Methods in net.minecraft.command.argument that return types with arguments of type ItemStack Modifier and Type Method Description Predicate<ItemStack>ItemPredicateArgumentType.ItemPredicateArgument. create(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext)static Predicate<ItemStack>ItemPredicateArgumentType. getItemPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)Methods in net.minecraft.command.argument with parameters of type ItemStack Modifier and Type Method Description booleanItemPredicateArgumentType.ItemPredicate. test(ItemStack itemStack)booleanItemPredicateArgumentType.TagPredicate. test(ItemStack itemStack)booleanItemStackArgument. test(ItemStack itemStack) -
Uses of ItemStack in net.minecraft.enchantment
Methods in net.minecraft.enchantment that return ItemStack Modifier and Type Method Description static ItemStackEnchantmentHelper. enchant(Random random, ItemStack target, int level, boolean treasureAllowed)Enchants thetargetitem stack and returns it.Methods in net.minecraft.enchantment that return types with arguments of type ItemStack Modifier and Type Method Description static 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, indicating the item stack has the enchantment supplied.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, indicating the item stack has the enchantment supplied and fulfills the extra condition.Map<EquipmentSlot,ItemStack>Enchantment. getEquipment(LivingEntity entity)Methods in net.minecraft.enchantment with parameters of type ItemStack Modifier and Type Method Description static intEnchantmentHelper. calculateRequiredExperienceLevel(Random random, int slotIndex, int bookshelfCount, ItemStack stack)Returns the required experience level for an enchanting option in the enchanting table's screen, or the enchantment screen.static ItemStackEnchantmentHelper. enchant(Random random, ItemStack target, int level, boolean treasureAllowed)Enchants 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>EnchantmentHelper. get(ItemStack stack)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 intEnchantmentHelper. getLure(ItemStack stack)static 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 ItemStack Modifier and Type Method Description 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, indicating the item stack has the enchantment supplied and fulfills the extra condition.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 ItemStack Modifier and Type Field Description protected ItemStackLivingEntity. activeItemStackFields in net.minecraft.entity with type parameters of type ItemStack Modifier and Type Field Description private static List<ItemStack>Entity. EMPTY_STACK_LISTprivate DefaultedList<ItemStack>LivingEntity. equippedArmorprivate DefaultedList<ItemStack>LivingEntity. equippedHandprivate static TrackedData<ItemStack>EyeOfEnderEntity. ITEMprivate static TrackedData<ItemStack>ItemEntity. STACKMethods in net.minecraft.entity that return ItemStack Modifier and Type Method Description ItemStackLivingEntity. eatFood(World world, ItemStack stack)ItemStackLivingEntity. getActiveItem()private ItemStackLivingEntity. getArmorInSlot(EquipmentSlot slot)ItemStackLivingEntity. getArrowType(ItemStack stack)ItemStackBucketable. getBucketItem()abstract ItemStackLivingEntity. getEquippedStack(EquipmentSlot slot)ItemStackLivingEntity. getMainHandStack()ItemStackLivingEntity. getOffHandStack()@Nullable ItemStackEntity. getPickBlockStack()ItemStackEyeOfEnderEntity. getStack()ItemStackFlyingItemEntity. getStack()ItemStackItemEntity. getStack()Returns the item stack contained in this item entity.ItemStackLivingEntity. getStackInHand(Hand hand)private ItemStackLivingEntity. getStackInHandSlot(EquipmentSlot slot)private ItemStackEyeOfEnderEntity. getTrackedItem()static ItemStackItemEntity. merge(ItemStack stack1, ItemStack stack2, int maxCount)Methods in net.minecraft.entity that return types with arguments of type ItemStack Modifier and Type Method Description Iterable<ItemStack>Entity. getArmorItems()abstract Iterable<ItemStack>LivingEntity. getArmorItems()Iterable<ItemStack>Entity. getItemsEquipped()Iterable<ItemStack>Entity. getItemsHand()private @Nullable Map<EquipmentSlot,ItemStack>LivingEntity. method_30129()Methods in net.minecraft.entity with parameters of type ItemStack Modifier and Type Method Description private voidLivingEntity. applyFoodEffects(ItemStack stack, World world, LivingEntity targetEntity)booleanLivingEntity. canEquip(ItemStack stack)static booleanItemEntity. canMerge(ItemStack stack1, ItemStack stack2)static voidBucketable. copyDataToStack(MobEntity entity, ItemStack stack)voidBucketable. copyDataToStack(ItemStack stack)@Nullable ItemEntityEntity. dropStack(ItemStack stack)@Nullable ItemEntityEntity. dropStack(ItemStack stack, float yOffset)ItemStackLivingEntity. eatFood(World world, ItemStack stack)voidEntity. equipStack(EquipmentSlot slot, ItemStack stack)abstract voidLivingEntity. equipStack(EquipmentSlot slot, ItemStack stack)ItemStackLivingEntity. getArrowType(ItemStack stack)protected SoundEventLivingEntity. getDrinkSound(ItemStack stack)SoundEventLivingEntity. 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 ItemStackItemEntity. merge(ItemStack stack1, ItemStack stack2, int maxCount)protected voidLivingEntity. onEquipStack(ItemStack stack)private voidLivingEntity. playEquipmentBreakEffects(ItemStack stack)private voidLivingEntity. setArmorInSlot(EquipmentSlot slot, ItemStack armor)voidEyeOfEnderEntity. setItem(ItemStack stack)voidItemEntity. setStack(ItemStack stack)Sets the item stack contained in this item entity tostack.voidLivingEntity. setStackInHand(Hand hand, ItemStack stack)private voidLivingEntity. setStackInHandSlot(EquipmentSlot slot, ItemStack stack)voidCrossbowUser. shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)protected voidLivingEntity. spawnConsumptionEffects(ItemStack stack, int particleCount)@Nullable EntityEntityType. spawnFromItemStack(ServerWorld world, @Nullable ItemStack stack, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)private voidLivingEntity. spawnItemParticles(ItemStack stack, int count)Method parameters in net.minecraft.entity with type arguments of type ItemStack Modifier and Type Method Description booleanLivingEntity. isHolding(Predicate<ItemStack> predicate)Checks if this entity is holding a certain item.private voidLivingEntity. method_30121(Map<EquipmentSlot,ItemStack> map)private voidLivingEntity. method_30123(Map<EquipmentSlot,ItemStack> map)Constructors in net.minecraft.entity with parameters of type ItemStack Constructor Description ItemEntity(World world, double x, double y, double z, ItemStack stack) -
Uses of ItemStack in net.minecraft.entity.ai.brain.sensor
Methods in net.minecraft.entity.ai.brain.sensor with parameters of type ItemStack Modifier and Type Method Description private booleanTemptationsSensor. test(ItemStack stack) -
Uses of ItemStack in net.minecraft.entity.ai.brain.task
Fields in net.minecraft.entity.ai.brain.task declared as ItemStack Modifier and Type Field Description private @Nullable ItemStackHoldTradeOffersTask. customerHeldStackFields in net.minecraft.entity.ai.brain.task with type parameters of type ItemStack Modifier and Type Field Description private List<ItemStack>HoldTradeOffersTask. offersMethods in net.minecraft.entity.ai.brain.task that return ItemStack Modifier and Type Method Description private ItemStackCelebrateRaidWinTask. createFirework(DyeColor color, int flight)Methods in net.minecraft.entity.ai.brain.task that return types with arguments of type ItemStack Modifier and Type Method Description private List<ItemStack>GiveGiftsToHeroTask. getGifts(VillagerEntity villager)Methods in net.minecraft.entity.ai.brain.task with parameters of type ItemStack Modifier and Type Method Description static voidLookTargetUtil. give(LivingEntity entity, ItemStack stack, Vec3d targetLocation) -
Uses of ItemStack in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal declared as ItemStack Modifier and Type Field Description private ItemStackHoldInHandsGoal. itemMethods in net.minecraft.entity.ai.goal that return ItemStack Modifier and Type Method Description private ItemStackSkeletonHorseTrapTriggerGoal. removeEnchantments(ItemStack stack)Methods in net.minecraft.entity.ai.goal with parameters of type ItemStack Modifier and Type Method Description private ItemStackSkeletonHorseTrapTriggerGoal. removeEnchantments(ItemStack stack)Constructors in net.minecraft.entity.ai.goal with parameters of type ItemStack Constructor Description HoldInHandsGoal(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 ItemStack Modifier and Type Field Description static TrackedDataHandler<ItemStack>TrackedDataHandlerRegistry. ITEM_STACK -
Uses of ItemStack in net.minecraft.entity.decoration
Fields in net.minecraft.entity.decoration with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>ArmorStandEntity. armorItemsprivate DefaultedList<ItemStack>ArmorStandEntity. heldItemsprivate static TrackedData<ItemStack>ItemFrameEntity. ITEM_STACKMethods in net.minecraft.entity.decoration that return ItemStack Modifier and Type Method Description protected ItemStackGlowItemFrameEntity. getAsItemStack()protected ItemStackItemFrameEntity. getAsItemStack()ItemStackArmorStandEntity. getEquippedStack(EquipmentSlot slot)ItemStackItemFrameEntity. getHeldItemStack()ItemStackArmorStandEntity. getPickBlockStack()ItemStackEndCrystalEntity. getPickBlockStack()ItemStackItemFrameEntity. getPickBlockStack()ItemStackLeashKnotEntity. getPickBlockStack()Methods in net.minecraft.entity.decoration that return types with arguments of type ItemStack Modifier and Type Method Description Iterable<ItemStack>ArmorStandEntity. getArmorItems()Iterable<ItemStack>ArmorStandEntity. getItemsHand()Methods in net.minecraft.entity.decoration with parameters of type ItemStack Modifier and Type Method Description booleanArmorStandEntity. canEquip(ItemStack stack)ItemEntityAbstractDecorationEntity. dropStack(ItemStack stack, float yOffset)private booleanArmorStandEntity. equip(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand)voidArmorStandEntity. equipStack(EquipmentSlot slot, ItemStack stack)private voidItemFrameEntity. removeFromFrame(ItemStack map)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 Modifier and Type Method Description ItemStackPaintingEntity. getPickBlockStack() -
Uses of ItemStack in net.minecraft.entity.mob
Fields in net.minecraft.entity.mob with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>MobEntity. armorItemsprivate DefaultedList<ItemStack>MobEntity. handItemsMethods in net.minecraft.entity.mob that return ItemStack Modifier and Type Method Description protected ItemStackPiglinEntity. addItem(ItemStack stack)ItemStackHostileEntity. getArrowType(ItemStack stack)ItemStackMobEntity. getEquippedStack(EquipmentSlot slot)private static ItemStackPiglinBrain. getItemFromStack(ItemEntity stack)@Nullable ItemStackMobEntity. 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 ItemStack Modifier and Type Method Description Iterable<ItemStack>MobEntity. getArmorItems()private static List<ItemStack>PiglinBrain. getBarteredItem(PiglinEntity piglin)Iterable<ItemStack>MobEntity. getItemsHand()Methods in net.minecraft.entity.mob with parameters of type ItemStack Modifier and Type Method Description private static booleanPiglinBrain. acceptsForBarter(ItemStack stack)protected ItemStackPiglinEntity. addItem(ItemStack stack)private static voidPiglinBrain. barterItem(PiglinEntity piglin, ItemStack stack)booleanMobEntity. canEquip(ItemStack stack)protected booleanPiglinEntity. canEquipStack(ItemStack stack)Returns whether this piglin can equip into or replace current equipment slot.booleanMobEntity. canGather(ItemStack stack)protected static booleanPiglinBrain. canGather(PiglinEntity piglin, ItemStack stack)booleanPiglinBruteEntity. canGather(ItemStack stack)booleanPiglinEntity. canGather(ItemStack stack)protected 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)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)ItemStackHostileEntity. getArrowType(ItemStack stack)booleanHoglinEntity. isBreedingItem(ItemStack stack)private static booleanPiglinBrain. isFood(ItemStack stack)protected 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)booleanMobEntity. tryEquip(ItemStack equipment)Method parameters in net.minecraft.entity.mob with type arguments of type ItemStack Modifier and Type Method Description private static voidPiglinBrain. doBarter(PiglinEntity piglin, List<ItemStack> list)private static voidPiglinBrain. drop(PiglinEntity piglin, List<ItemStack> list, Vec3d vec3d)private static voidPiglinBrain. dropBarteredItem(PiglinEntity piglin, List<ItemStack> list)private static voidPiglinBrain. dropBarteredItem(PiglinEntity piglin, PlayerEntity player, List<ItemStack> list) -
Uses of ItemStack in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive that return ItemStack Modifier and Type Method Description ItemStackHorseEntity. getArmorType()ItemStackAxolotlEntity. getBucketItem()ItemStackCodEntity. getBucketItem()ItemStackPufferfishEntity. getBucketItem()ItemStackSalmonEntity. getBucketItem()ItemStackTropicalFishEntity. getBucketItem()Methods in net.minecraft.entity.passive with parameters of type ItemStack Modifier and Type Method Description private booleanFoxEntity. canEat(ItemStack stack)private booleanPandaEntity. canEat(ItemStack stack)booleanDolphinEntity. canEquip(ItemStack stack)booleanFoxEntity. canEquip(ItemStack stack)booleanPandaEntity. canEquip(ItemStack stack)booleanVillagerEntity. canGather(ItemStack stack)booleanFoxEntity. canPickupItem(ItemStack stack)voidAxolotlEntity. copyDataToStack(ItemStack stack)voidFishEntity. copyDataToStack(ItemStack stack)voidTropicalFishEntity. copyDataToStack(ItemStack stack)private voidFoxEntity. dropItem(ItemStack stack)protected 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 voidHorseEntity. equipArmor(ItemStack stack)private static @Nullable DyeColorLlamaEntity. getColorFromCarpet(ItemStack color)protected SoundEventWanderingTraderEntity. getDrinkSound(ItemStack stack)SoundEventFoxEntity. getEatSound(ItemStack stack)private Optional<Pair<StatusEffect,Integer>>MooshroomEntity. getStewEffectFrom(ItemStack flower)ActionResultHorseBaseEntity. interactHorse(PlayerEntity player, 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)booleanHorseBaseEntity. 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)booleanHorseBaseEntity. 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 static booleanRabbitEntity. isTempting(ItemStack stack)voidMerchantEntity. onSellingItem(ItemStack stack)protected booleanHorseBaseEntity. receiveFood(PlayerEntity player, ItemStack item)protected booleanLlamaEntity. receiveFood(PlayerEntity player, ItemStack item)private voidHorseEntity. setArmorTypeFromStack(ItemStack stack)private voidFoxEntity. spit(ItemStack stack)private voidDolphinEntity.PlayWithItemsGoal. spitOutItem(ItemStack stack)Method parameters in net.minecraft.entity.passive with type arguments of type ItemStack Modifier and Type Method Description private CommandItemSlotHorseBaseEntity. method_32335(int int2, Predicate<ItemStack> predicate) -
Uses of ItemStack in net.minecraft.entity.player
Fields in net.minecraft.entity.player declared as ItemStack Modifier and Type Field Description private ItemStackPlayerEntity. selectedItemFields in net.minecraft.entity.player with type parameters of type ItemStack Modifier and Type Field Description DefaultedList<ItemStack>PlayerInventory. armorprivate List<DefaultedList<ItemStack>>PlayerInventory. combinedInventoryDefaultedList<ItemStack>PlayerInventory. mainDefaultedList<ItemStack>PlayerInventory. offHandMethods in net.minecraft.entity.player that return ItemStack Modifier and Type Method Description ItemStackPlayerEntity. eatFood(World world, ItemStack stack)ItemStackPlayerInventory. getArmorStack(int slot)ItemStackPlayerEntity. getArrowType(ItemStack stack)ItemStackPlayerEntity. getEquippedStack(EquipmentSlot slot)ItemStackPlayerInventory. getMainHandStack()ItemStackPlayerInventory. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackPlayerInventory. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackPlayerInventory. 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 ItemStack Modifier and Type Method Description Iterable<ItemStack>PlayerEntity. getArmorItems()Iterable<ItemStack>PlayerEntity. getItemsHand()Methods in net.minecraft.entity.player with parameters of type ItemStack Modifier and Type Method Description voidPlayerInventory. addPickBlock(ItemStack stack)private intPlayerInventory. addStack(int slot, ItemStack stack)private intPlayerInventory. addStack(ItemStack stack)voidPlayerEntity. applyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels)booleanPlayerEntity. canEquip(ItemStack stack)booleanPlayerEntity. canPlaceOn(BlockPos pos, Direction facing, ItemStack stack)private booleanPlayerInventory. canStackAddMore(ItemStack existingStack, ItemStack stack)booleanPlayerInventory. contains(ItemStack stack)@Nullable ItemEntityPlayerEntity. dropItem(ItemStack stack, boolean retainOwnership)@Nullable ItemEntityPlayerEntity. dropItem(ItemStack stack, boolean throwRandomly, boolean retainOwnership)voidHungerManager. eat(Item item, ItemStack stack)ItemStackPlayerEntity. eatFood(World world, ItemStack stack)voidPlayerEntity. equipStack(EquipmentSlot slot, ItemStack stack)ItemStackPlayerEntity. getArrowType(ItemStack stack)intPlayerInventory. getOccupiedSlotWithRoomForStack(ItemStack stack)intPlayerInventory. getSlotWithStack(ItemStack stack)booleanPlayerEntity. giveItemStack(ItemStack stack)intPlayerInventory. indexOf(ItemStack stack)booleanPlayerInventory. insertStack(int slot, ItemStack stack)booleanPlayerInventory. insertStack(ItemStack stack)voidPlayerInventory. method_32338(ItemStack itemStack, boolean bool)voidPlayerInventory. offerOrDrop(ItemStack stack)voidPlayerEntity. onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType)Called when a player performs apickup slot actionin a screen handler.voidPlayerInventory. removeOne(ItemStack stack)voidPlayerInventory. setStack(int slot, ItemStack stack)voidPlayerEntity. useBook(ItemStack book, Hand hand)Called when the player uses (defaults to right click) a writable or written book item. -
Uses of ItemStack in net.minecraft.entity.projectile
Fields in net.minecraft.entity.projectile declared as ItemStack Modifier and Type Field Description private ItemStackTridentEntity. tridentStackFields in net.minecraft.entity.projectile with type parameters of type ItemStack Modifier and Type Field Description private static TrackedData<ItemStack>AbstractFireballEntity. ITEMprivate static TrackedData<ItemStack>FireworkRocketEntity. ITEMMethods in net.minecraft.entity.projectile that return ItemStack Modifier and Type Method Description protected ItemStackArrowEntity. asItemStack()protected abstract ItemStackPersistentProjectileEntity. asItemStack()protected ItemStackSpectralArrowEntity. asItemStack()protected ItemStackTridentEntity. asItemStack()protected ItemStackAbstractFireballEntity. getItem()ItemStackAbstractFireballEntity. getStack()ItemStackFireworkRocketEntity. getStack()Methods in net.minecraft.entity.projectile with parameters of type ItemStack Modifier and Type Method Description static PersistentProjectileEntityProjectileUtil. createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier)static intArrowEntity. getCustomPotionColor(ItemStack stack)voidArrowEntity. initFromStack(ItemStack stack)voidAbstractFireballEntity. setItem(ItemStack stack)intFishingBobberEntity. use(ItemStack usedItem)Constructors in net.minecraft.entity.projectile with parameters of type ItemStack Constructor Description FireworkRocketEntity(World world, double x, double y, double z, ItemStack stack)FireworkRocketEntity(World world, @Nullable Entity entity, double x, double y, double z, ItemStack stack)FireworkRocketEntity(World world, ItemStack stack, double x, double y, double z, boolean shotAtAngle)FireworkRocketEntity(World world, ItemStack stack, Entity entity, double x, double y, double z, boolean shotAtAngle)FireworkRocketEntity(World world, ItemStack stack, LivingEntity shooter)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 ItemStack Modifier and Type Field Description private static TrackedData<ItemStack>ThrownItemEntity. ITEMMethods in net.minecraft.entity.projectile.thrown that return ItemStack Modifier and Type Method Description protected ItemStackThrownItemEntity. getItem()ItemStackThrownItemEntity. getStack()Methods in net.minecraft.entity.projectile.thrown with parameters of type ItemStack Modifier and Type Method Description private voidPotionEntity. applyLingeringPotion(ItemStack stack, Potion potion)voidThrownItemEntity. setItem(ItemStack item) -
Uses of ItemStack in net.minecraft.entity.vehicle
Fields in net.minecraft.entity.vehicle with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>StorageMinecartEntity. inventoryMethods in net.minecraft.entity.vehicle that return ItemStack Modifier and Type Method Description ItemStackAbstractMinecartEntity. getPickBlockStack()ItemStackBoatEntity. getPickBlockStack()ItemStackStorageMinecartEntity. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackStorageMinecartEntity. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackStorageMinecartEntity. removeStack(int slot, int amount)Removes a specific number of items from the given slot.Methods in net.minecraft.entity.vehicle with parameters of type ItemStack Modifier and Type Method Description voidStorageMinecartEntity. setStack(int slot, ItemStack stack) -
Uses of ItemStack in net.minecraft.inventory
Fields in net.minecraft.inventory with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>CraftingInventory. stacksprivate DefaultedList<ItemStack>CraftingResultInventory. stacksprivate DefaultedList<ItemStack>SimpleInventory. stacksMethods in net.minecraft.inventory that return ItemStack Modifier and Type Method Description ItemStackSimpleInventory. addStack(ItemStack stack)ItemStackCommandItemSlot. get()Gets the current item stack in this slot.ItemStackCraftingInventory. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackCraftingResultInventory. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackDoubleInventory. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackInventory. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackSimpleInventory. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackSimpleInventory. removeItem(Item item, int count)Searches this inventory for the specified item and removes the given amount from this inventory.ItemStackCraftingInventory. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackCraftingInventory. removeStack(int slot, int amount)Removes a specific number of items from the given slot.ItemStackCraftingResultInventory. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackCraftingResultInventory. removeStack(int slot, int amount)Removes a specific number of items from the given slot.ItemStackDoubleInventory. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackDoubleInventory. removeStack(int slot, int amount)Removes a specific number of items from the given slot.static ItemStackInventories. removeStack(List<ItemStack> stacks, int slot)ItemStackInventory. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackInventory. removeStack(int slot, int amount)Removes a specific number of items from the given slot.ItemStackSimpleInventory. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackSimpleInventory. 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 ItemStack Modifier and Type Method Description List<ItemStack>SimpleInventory. clearToList()Clears this inventory and return all the non-empty stacks in a list.Methods in net.minecraft.inventory with parameters of type ItemStack Modifier and Type Method Description ItemStackSimpleInventory. addStack(ItemStack stack)private 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.booleanSidedInventory. canInsert(int slot, ItemStack stack, @Nullable Direction dir)Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.booleanSimpleInventory. canInsert(ItemStack stack)booleanContainerLock. canOpen(ItemStack stack)Returns true if this lock can be opened with the key item stack.booleanDoubleInventory. isValid(int slot, ItemStack stack)Returns whether the given stack is a valid for the indicated slot position.default booleanInventory. isValid(int slot, ItemStack stack)Returns 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.booleanCommandItemSlot. set(ItemStack stack)Sets thestackto this slot.voidCraftingInventory. setStack(int slot, ItemStack stack)voidCraftingResultInventory. setStack(int slot, ItemStack stack)voidDoubleInventory. setStack(int slot, ItemStack stack)voidInventory. setStack(int slot, ItemStack stack)voidSimpleInventory. setStack(int slot, ItemStack stack)private voidSimpleInventory. transfer(ItemStack source, ItemStack target)Method parameters in net.minecraft.inventory with type arguments of type ItemStack Modifier and Type Method Description static CommandItemSlotCommandItemSlot. of(LivingEntity entity, EquipmentSlot equipmentSlot, Predicate<ItemStack> stackFilter)Creates a slot backed by an equipment slot of an living entity and guarded by a condition for setting stacks into the inventory.static CommandItemSlotCommandItemSlot. of(Inventory inventory, int index, Predicate<ItemStack> stackFilter)Creates a slot 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 Constructor Description SimpleInventory(ItemStack[] items) -
Uses of ItemStack in net.minecraft.item
Fields in net.minecraft.item declared as ItemStack Modifier and Type Field Description static ItemStackItemStack. EMPTYprivate ItemStackItemGroup. iconprivate ItemStackItemUsageContext. stackFields in net.minecraft.item with type parameters of type ItemStack Modifier and Type Field Description static Predicate<ItemStack>RangedWeaponItem. BOW_PROJECTILESstatic com.mojang.serialization.Codec<ItemStack>ItemStack. CODECstatic Predicate<ItemStack>RangedWeaponItem. CROSSBOW_HELD_PROJECTILESMethods in net.minecraft.item that return ItemStack Modifier and Type Method Description static ItemStackDyeableItem. blendAndSetColor(ItemStack stack, List<DyeItem> colors)ItemStackItemStack. copy()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)ItemStackChorusFruitItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackHoneyBottleItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackItemStack. finishUsing(World world, LivingEntity user)ItemStackMilkBucketItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackMushroomStewItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackPotionItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackSpyglassItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackSuspiciousStewItem. finishUsing(ItemStack stack, World world, LivingEntity user)static ItemStackEnchantedBookItem. forEnchantment(EnchantmentLevelEntry info)static ItemStackItemStack. fromNbt(NbtCompound nbt)ItemStackFireworkItem. getDefaultStack()ItemStackItem. getDefaultStack()ItemStackPotionItem. getDefaultStack()ItemStackTippedArrowItem. getDefaultStack()static ItemStackBucketItem. getEmptiedStack(ItemStack stack, PlayerEntity player)static ItemStackRangedWeaponItem. getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate)ItemStackItemGroup. getIcon()ItemStackItemUsageContext. getStack()ItemStackItemStack. setCustomName(@Nullable Text name)ItemStackItemStack. split(int amount)Methods in net.minecraft.item that return types with arguments of type ItemStack Modifier and Type Method Description static TypedActionResult<ItemStack>ItemUsage. consumeHeldItem(World world, PlayerEntity player, Hand hand)private static Stream<ItemStack>BundleItem. getBundledStacks(ItemStack stack)Predicate<ItemStack>CrossbowItem. getHeldProjectiles()Predicate<ItemStack>RangedWeaponItem. getHeldProjectiles()Predicate<ItemStack>BowItem. getProjectiles()Predicate<ItemStack>CrossbowItem. getProjectiles()private static List<ItemStack>CrossbowItem. getProjectiles(ItemStack crossbow)abstract Predicate<ItemStack>RangedWeaponItem. getProjectiles()private static Optional<ItemStack>BundleItem. removeFirstStack(ItemStack stack)TypedActionResult<ItemStack>ArmorItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>BoatItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>BowItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>BucketItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>BundleItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>CrossbowItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>EggItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ElytraItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>EmptyMapItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>EnderEyeItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>EnderPearlItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ExperienceBottleItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>FireworkItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>FishingRodItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>GlassBottleItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>HoneyBottleItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>Item. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ItemStack. use(World world, PlayerEntity user, Hand hand)TypedActionResult<ItemStack>KnowledgeBookItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>LilyPadItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>LingeringPotionItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>MilkBucketItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>OnAStickItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>PotionItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ShieldItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>SnowballItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>SpawnEggItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>SplashPotionItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>SpyglassItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>ThrowablePotionItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>TridentItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>WritableBookItem. use(World world, PlayerEntity user, Hand hand)Called when an item is used by a player.TypedActionResult<ItemStack>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 ItemStack Modifier and Type Method Description static voidSuspiciousStewItem. addEffectToStew(ItemStack stew, StatusEffect effect, int duration)static voidEnchantedBookItem. addEnchantment(ItemStack stack, EnchantmentLevelEntry entry)private static intBundleItem. addToBundle(ItemStack bundle, ItemStack stack)static voidBannerItem. appendBannerTooltip(ItemStack stack, List<Text> tooltip)voidAirBlockItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)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)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)voidFireworkChargeItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)voidFireworkItem. 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 booleanItemStack. areEqual(ItemStack left, ItemStack right)static booleanItemStack. areItemsEqual(ItemStack left, ItemStack right)static booleanItemStack. areItemsEqualIgnoreDamage(ItemStack left, ItemStack right)static booleanItemStack. areTagsEqual(ItemStack left, ItemStack right)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)booleanArmorItem. canRepair(ItemStack stack, ItemStack ingredient)booleanElytraItem. canRepair(ItemStack stack, ItemStack ingredient)booleanItem. canRepair(ItemStack stack, ItemStack ingredient)booleanShieldItem. canRepair(ItemStack stack, ItemStack ingredient)booleanToolItem. canRepair(ItemStack stack, ItemStack ingredient)private static voidCrossbowItem. clearProjectiles(ItemStack crossbow)static voidFilledMapItem. copyMap(World world, ItemStack stack)PersistentProjectileEntityArrowItem. createArrow(World world, ItemStack stack, LivingEntity shooter)private static PersistentProjectileEntityCrossbowItem. createArrow(World world, LivingEntity entity, ItemStack crossbow, ItemStack arrow)PersistentProjectileEntitySpectralArrowItem. 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)@Nullable Packet<?>FilledMapItem. createSyncPacket(ItemStack stack, World world, PlayerEntity player)Creates a packet that syncs additional item data to the client.@Nullable Packet<?>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)ItemStackChorusFruitItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackHoneyBottleItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackMilkBucketItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackMushroomStewItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackPotionItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackSpyglassItem. finishUsing(ItemStack stack, World world, LivingEntity user)ItemStackSuspiciousStewItem. finishUsing(ItemStack stack, World world, LivingEntity user)static floatBundleItem. getAmountFilled(ItemStack stack)private static Stream<ItemStack>BundleItem. getBundledStacks(ItemStack stack)private static intBundleItem. getBundleOccupancy(ItemStack stack)default intDyeableItem. getColor(ItemStack stack)static DyeColorShieldItem. getColor(ItemStack stack)static ItemStackBucketItem. getEmptiedStack(ItemStack stack, PlayerEntity player)static NbtListEnchantedBookItem. getEnchantmentNbt(ItemStack stack)static intWrittenBookItem. getGeneration(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)static @Nullable IntegerFilledMapItem. getMapId(ItemStack stack)intBowItem. getMaxUseTime(ItemStack stack)intCrossbowItem. getMaxUseTime(ItemStack stack)intHoneyBottleItem. getMaxUseTime(ItemStack stack)intItem. getMaxUseTime(ItemStack stack)intMilkBucketItem. getMaxUseTime(ItemStack stack)intPotionItem. getMaxUseTime(ItemStack stack)intShieldItem. getMaxUseTime(ItemStack stack)intSpyglassItem. getMaxUseTime(ItemStack stack)intTridentItem. getMaxUseTime(ItemStack stack)floatAxeItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)floatItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)floatMiningToolItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)floatPickaxeItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)floatShearsItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)floatSwordItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)TextItem. getName(ItemStack stack)TextSkullItem. getName(ItemStack stack)TextWrittenBookItem. getName(ItemStack stack)static @Nullable MapStateFilledMapItem. getOrCreateMapState(ItemStack map, World world)static intWrittenBookItem. getPageCount(ItemStack stack)private static List<ItemStack>CrossbowItem. getProjectiles(ItemStack crossbow)private static floatCrossbowItem. getPullProgress(int useTicks, ItemStack stack)static intCrossbowItem. getPullTime(ItemStack stack)RarityItem. getRarity(ItemStack stack)private static floatCrossbowItem. getSpeed(ItemStack stack)Optional<TooltipData>BundleItem. getTooltipData(ItemStack stack)Optional<TooltipData>Item. getTooltipData(ItemStack stack)StringCompassItem. getTranslationKey(ItemStack stack)Gets the translation key of this item using the provided item stack for context.StringItem. getTranslationKey(ItemStack stack)Gets the translation key of this item using the provided item stack for context.StringPotionItem. getTranslationKey(ItemStack stack)Gets the translation key of this item using the provided item stack for context.StringShieldItem. getTranslationKey(ItemStack stack)Gets the translation key of this item using the provided item stack for context.StringTippedArrowItem. getTranslationKey(ItemStack stack)Gets the translation key of this item using the provided item stack for context.UseActionBowItem. getUseAction(ItemStack stack)UseActionCrossbowItem. getUseAction(ItemStack stack)UseActionHoneyBottleItem. getUseAction(ItemStack stack)UseActionItem. getUseAction(ItemStack stack)UseActionMilkBucketItem. getUseAction(ItemStack stack)UseActionPotionItem. getUseAction(ItemStack stack)UseActionShieldItem. getUseAction(ItemStack stack)UseActionSpyglassItem. getUseAction(ItemStack stack)UseActionTridentItem. getUseAction(ItemStack stack)default booleanDyeableItem. hasColor(ItemStack stack)booleanCompassItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanDebugStickItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanEnchantedBookItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanEnchantedGoldenAppleItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanEndCrystalItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanExperienceBottleItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanNetherStarItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanPotionItem. hasGlint(ItemStack stack)Checks if the glint effect should be applied when the item is rendered.booleanWrittenBookItem. hasGlint(ItemStack stack)Checks 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 booleanCrossbowItem. isCharged(ItemStack stack)booleanBookItem. isEnchantable(ItemStack stack)booleanEnchantedBookItem. isEnchantable(ItemStack stack)booleanItem. isEnchantable(ItemStack stack)private booleanItemStack. isEqual(ItemStack stack)booleanBundleItem. isItemBarVisible(ItemStack stack)booleanItem. isItemBarVisible(ItemStack stack)booleanItemStack. isItemEqual(ItemStack stack)booleanItemStack. isItemEqualIgnoreDamage(ItemStack stack)static booleanElytraItem. isUsable(ItemStack stack)booleanCrossbowItem. 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, CommandItemSlot cursorSlot)booleanItem. onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)booleanItemStack. onClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)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.voidBucketItem. onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)voidEntityBucketItem. 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. placeFromTag(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)private static Optional<ItemStack>BundleItem. removeFirstStack(ItemStack stack)static booleanWrittenBookItem. resolve(ItemStack book, @Nullable ServerCommandSource commandSource, @Nullable PlayerEntity player)private static voidFilledMapItem. scale(ItemStack map, World world, int amount)static voidCrossbowItem. setCharged(ItemStack stack, boolean charged)default voidDyeableItem. setColor(ItemStack stack, int color)private static voidFilledMapItem. setMapId(ItemStack stack, int id)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)Optional<MobEntity>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 voidDebugStickItem. use(PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos, boolean update, ItemStack stack)ActionResultDyeItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultNameTagItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)ActionResultSaddleItem. 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. writeTagToBlockEntity(World world, @Nullable PlayerEntity player, BlockPos pos, ItemStack stack)Method parameters in net.minecraft.item with type arguments of type ItemStack Modifier and Type Method Description voidBlockItem. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)voidEnchantedBookItem. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)voidItem. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)voidItemGroup. appendStacks(DefaultedList<ItemStack> stacks)voidPotionItem. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)voidTippedArrowItem. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)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 ItemStack Constructor Description AutomaticItemPlacementContext(World world, BlockPos pos, Direction facing, ItemStack stack, Direction side)ItemPlacementContext(PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hitResult)ItemPlacementContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit)ItemUsageContext(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 ItemStack Modifier and Type Method Description static 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 ItemStack Modifier and Type Field Description private BiFunction<ItemStack,LootContext,ItemStack>LootTable. combinedFunctionprivate BiFunction<ItemStack,LootContext,ItemStack>LootTable. combinedFunctionprivate BiFunction<ItemStack,LootContext,ItemStack>LootPool. javaFunctionsprivate BiFunction<ItemStack,LootContext,ItemStack>LootPool. javaFunctionsMethods in net.minecraft.loot that return types with arguments of type ItemStack Modifier and Type Method Description List<ItemStack>LootTable. generateLoot(LootContext context)static Consumer<ItemStack>LootTable. processStacks(Consumer<ItemStack> lootConsumer)Method parameters in net.minecraft.loot with type arguments of type ItemStack Modifier and Type Method Description voidLootPool. 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)static Consumer<ItemStack>LootTable. processStacks(Consumer<ItemStack> lootConsumer)private voidLootTable. shuffle(List<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 ItemStack Modifier and Type Field Description static LootContextParameter<ItemStack>LootContextParameters. TOOLMethod parameters in net.minecraft.loot.context with type arguments of type ItemStack Modifier and Type Method Description voidLootContext.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 ItemStack Modifier and Type Field Description private BiFunction<ItemStack,LootContext,ItemStack>LeafEntry. compiledFunctionsprivate BiFunction<ItemStack,LootContext,ItemStack>LeafEntry. compiledFunctionsMethod parameters in net.minecraft.loot.entry with type arguments of type ItemStack Modifier and Type Method Description voidDynamicEntry. 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 ItemStack Modifier and Type Field Description private BiFunction<ItemStack,LootContext,ItemStack>LootFunctionManager.AndFunction. field_27905private BiFunction<ItemStack,LootContext,ItemStack>LootFunctionManager.AndFunction. field_27905static BiFunction<ItemStack,LootContext,ItemStack>LootFunctionTypes. NOOPstatic BiFunction<ItemStack,LootContext,ItemStack>LootFunctionTypes. NOOPMethods in net.minecraft.loot.function that return ItemStack Modifier and Type Method Description private static ItemStackEnchantRandomlyLootFunction. addEnchantmentToStack(ItemStack stack, Enchantment enchantment, Random random)ItemStackConditionalLootFunction. apply(ItemStack itemStack, LootContext lootContext)ItemStackLootFunctionManager.AndFunction. apply(ItemStack itemStack, LootContext lootContext)ItemStackApplyBonusLootFunction. process(ItemStack stack, LootContext context)protected abstract ItemStackConditionalLootFunction. process(ItemStack stack, LootContext context)ItemStackCopyNameLootFunction. process(ItemStack stack, LootContext context)ItemStackCopyNbtLootFunction. process(ItemStack stack, LootContext context)protected ItemStackCopyStateFunction. process(ItemStack stack, LootContext context)ItemStackEnchantRandomlyLootFunction. process(ItemStack stack, LootContext context)ItemStackEnchantWithLevelsLootFunction. process(ItemStack stack, LootContext context)ItemStackExplorationMapLootFunction. process(ItemStack stack, LootContext context)ItemStackExplosionDecayLootFunction. process(ItemStack stack, LootContext context)ItemStackFillPlayerHeadLootFunction. process(ItemStack stack, LootContext context)ItemStackFurnaceSmeltLootFunction. process(ItemStack stack, LootContext context)ItemStackLimitCountLootFunction. process(ItemStack stack, LootContext context)ItemStackLootingEnchantLootFunction. process(ItemStack stack, LootContext context)ItemStackSetAttributesLootFunction. process(ItemStack stack, LootContext context)protected ItemStackSetBannerPatternFunction. process(ItemStack stack, LootContext context)ItemStackSetContentsLootFunction. process(ItemStack stack, LootContext context)ItemStackSetCountLootFunction. process(ItemStack stack, LootContext context)ItemStackSetDamageLootFunction. process(ItemStack stack, LootContext context)ItemStackSetEnchantmentsLootFunction. process(ItemStack stack, LootContext context)ItemStackSetLootTableLootFunction. process(ItemStack stack, LootContext context)ItemStackSetLoreLootFunction. process(ItemStack stack, LootContext context)ItemStackSetNameLootFunction. process(ItemStack stack, LootContext context)ItemStackSetNbtLootFunction. process(ItemStack stack, LootContext context)ItemStackSetStewEffectLootFunction. process(ItemStack stack, LootContext context)Methods in net.minecraft.loot.function that return types with arguments of type ItemStack Modifier and Type Method Description static Consumer<ItemStack>LootFunction. 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 ItemStack Modifier and Type Method Description private static ItemStackEnchantRandomlyLootFunction. addEnchantmentToStack(ItemStack stack, Enchantment enchantment, Random random)ItemStackConditionalLootFunction. apply(ItemStack itemStack, LootContext lootContext)ItemStackLootFunctionManager.AndFunction. apply(ItemStack itemStack, LootContext lootContext)private @Nullable NbtListSetLoreLootFunction. getLoreForMerge(ItemStack stack, boolean otherLoreExists)ItemStackApplyBonusLootFunction. process(ItemStack stack, LootContext context)protected abstract ItemStackConditionalLootFunction. process(ItemStack stack, LootContext context)ItemStackCopyNameLootFunction. process(ItemStack stack, LootContext context)ItemStackCopyNbtLootFunction. process(ItemStack stack, LootContext context)protected ItemStackCopyStateFunction. process(ItemStack stack, LootContext context)ItemStackEnchantRandomlyLootFunction. process(ItemStack stack, LootContext context)ItemStackEnchantWithLevelsLootFunction. process(ItemStack stack, LootContext context)ItemStackExplorationMapLootFunction. process(ItemStack stack, LootContext context)ItemStackExplosionDecayLootFunction. process(ItemStack stack, LootContext context)ItemStackFillPlayerHeadLootFunction. process(ItemStack stack, LootContext context)ItemStackFurnaceSmeltLootFunction. process(ItemStack stack, LootContext context)ItemStackLimitCountLootFunction. process(ItemStack stack, LootContext context)ItemStackLootingEnchantLootFunction. process(ItemStack stack, LootContext context)ItemStackSetAttributesLootFunction. process(ItemStack stack, LootContext context)protected ItemStackSetBannerPatternFunction. process(ItemStack stack, LootContext context)ItemStackSetContentsLootFunction. process(ItemStack stack, LootContext context)ItemStackSetCountLootFunction. process(ItemStack stack, LootContext context)ItemStackSetDamageLootFunction. process(ItemStack stack, LootContext context)ItemStackSetEnchantmentsLootFunction. process(ItemStack stack, LootContext context)ItemStackSetLootTableLootFunction. process(ItemStack stack, LootContext context)ItemStackSetLoreLootFunction. process(ItemStack stack, LootContext context)ItemStackSetNameLootFunction. process(ItemStack stack, LootContext context)ItemStackSetNbtLootFunction. process(ItemStack stack, LootContext context)ItemStackSetStewEffectLootFunction. process(ItemStack stack, LootContext context)Method parameters in net.minecraft.loot.function with type arguments of type ItemStack Modifier and Type Method Description static Consumer<ItemStack>LootFunction. apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)static Consumer<ItemStack>LootFunction. apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)static Consumer<ItemStack>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 ItemStack Modifier and Type Method Description ItemStackPacketByteBuf. readItemStack()Reads an item stack from this buf.Methods in net.minecraft.network with parameters of type ItemStack Modifier and Type Method Description PacketByteBufPacketByteBuf. 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 ItemStack Modifier and Type Field Description private ItemStackBookUpdateC2SPacket. bookprivate ItemStackClickSlotC2SPacket. stackprivate ItemStackCreativeInventoryActionC2SPacket. stackFields in net.minecraft.network.packet.c2s.play with type parameters of type ItemStack Modifier and Type Field Description private Int2ObjectMap<ItemStack>ClickSlotC2SPacket. modifiedStacksMethods in net.minecraft.network.packet.c2s.play that return ItemStack Modifier and Type Method Description ItemStackBookUpdateC2SPacket. getBook()ItemStackCreativeInventoryActionC2SPacket. getItemStack()ItemStackClickSlotC2SPacket. getStack()Methods in net.minecraft.network.packet.c2s.play that return types with arguments of type ItemStack Modifier and Type Method Description Int2ObjectMap<ItemStack>ClickSlotC2SPacket. getModifiedStacks()Constructors in net.minecraft.network.packet.c2s.play with parameters of type ItemStack Constructor Description BookUpdateC2SPacket(ItemStack book, boolean signed, int slot)ClickSlotC2SPacket(int syncId, int slot, int clickData, 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 ItemStack Constructor Description ClickSlotC2SPacket(int syncId, int slot, int clickData, 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 ItemStack Modifier and Type Field Description private ItemStackScreenHandlerSlotUpdateS2CPacket. stackFields in net.minecraft.network.packet.s2c.play with type parameters of type ItemStack Modifier and Type Field Description private List<ItemStack>InventoryS2CPacket. contentsprivate List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>>EntityEquipmentUpdateS2CPacket. equipmentListMethods in net.minecraft.network.packet.s2c.play that return ItemStack Modifier and Type Method Description ItemStackScreenHandlerSlotUpdateS2CPacket. getItemStack()Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type ItemStack Modifier and Type Method Description List<ItemStack>InventoryS2CPacket. getContents()List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>>EntityEquipmentUpdateS2CPacket. getEquipmentList()Constructors in net.minecraft.network.packet.s2c.play with parameters of type ItemStack Constructor Description ScreenHandlerSlotUpdateS2CPacket(int syncId, int slot, ItemStack stack)Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type ItemStack Constructor Description EntityEquipmentUpdateS2CPacket(int id, List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> equipmentList)InventoryS2CPacket(int syncId, DefaultedList<ItemStack> contents) -
Uses of ItemStack in net.minecraft.particle
Fields in net.minecraft.particle declared as ItemStack Modifier and Type Field Description private ItemStackItemStackParticleEffect. stackMethods in net.minecraft.particle that return ItemStack Modifier and Type Method Description ItemStackItemStackParticleEffect. getItemStack()Constructors in net.minecraft.particle with parameters of type ItemStack Constructor Description ItemStackParticleEffect(ParticleType<ItemStackParticleEffect> type, ItemStack stack) -
Uses of ItemStack in net.minecraft.potion
Methods in net.minecraft.potion that return ItemStack Modifier and Type Method Description static ItemStackPotionUtil. setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects)static ItemStackPotionUtil. setPotion(ItemStack stack, Potion potion)Methods in net.minecraft.potion with parameters of type ItemStack Modifier and Type Method Description static voidPotionUtil. buildTooltip(ItemStack stack, List<Text> list, float float2)static intPotionUtil. getColor(ItemStack stack)static List<StatusEffectInstance>PotionUtil. getCustomPotionEffects(ItemStack stack)static PotionPotionUtil. getPotion(ItemStack stack)static List<StatusEffectInstance>PotionUtil. getPotionEffects(ItemStack stack)static ItemStackPotionUtil. setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects)static ItemStackPotionUtil. setPotion(ItemStack stack, Potion potion) -
Uses of ItemStack in net.minecraft.predicate
Methods in net.minecraft.predicate with parameters of type ItemStack Modifier and Type Method Description booleanNbtPredicate. test(ItemStack stack) -
Uses of ItemStack in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity declared as ItemStack Modifier and Type Field Description private ItemStackEntityPredicates.Equipable. stackConstructors in net.minecraft.predicate.entity with parameters of type ItemStack Constructor Description Equipable(ItemStack stack) -
Uses of ItemStack in net.minecraft.predicate.item
Methods in net.minecraft.predicate.item with parameters of type ItemStack Modifier and Type Method Description booleanItemPredicate. test(ItemStack stack) -
Uses of ItemStack in net.minecraft.recipe
Fields in net.minecraft.recipe declared as ItemStack Modifier and Type Field Description private ItemStack[]Ingredient. matchingStacksprotected ItemStackAbstractCookingRecipe. outputprotected ItemStackCuttingRecipe. outputprivate ItemStackShapedRecipe. outputprivate ItemStackShapelessRecipe. outputprivate ItemStackSmithingRecipe. resultprivate ItemStackIngredient.StackEntry. stackFields in net.minecraft.recipe with type parameters of type ItemStack Modifier and Type Field Description private static Predicate<ItemStack>BrewingRecipeRegistry. POTION_TYPE_PREDICATEMethods in net.minecraft.recipe that return ItemStack Modifier and Type Method Description ItemStackAbstractCookingRecipe. craft(Inventory inv)ItemStackArmorDyeRecipe. craft(CraftingInventory craftingInventory)ItemStackBannerDuplicateRecipe. craft(CraftingInventory craftingInventory)ItemStackBookCloningRecipe. craft(CraftingInventory craftingInventory)static ItemStackBrewingRecipeRegistry. craft(ItemStack input, ItemStack ingredient)ItemStackCuttingRecipe. craft(Inventory inv)ItemStackFireworkRocketRecipe. craft(CraftingInventory craftingInventory)ItemStackFireworkStarFadeRecipe. craft(CraftingInventory craftingInventory)ItemStackFireworkStarRecipe. craft(CraftingInventory craftingInventory)ItemStackMapCloningRecipe. craft(CraftingInventory craftingInventory)ItemStackMapExtendingRecipe. craft(CraftingInventory craftingInventory)ItemStackRecipe. craft(C inv)ItemStackRepairItemRecipe. craft(CraftingInventory craftingInventory)ItemStackShapedRecipe. craft(CraftingInventory craftingInventory)ItemStackShapelessRecipe. craft(CraftingInventory craftingInventory)ItemStackShieldDecorationRecipe. craft(CraftingInventory craftingInventory)ItemStackShulkerBoxColoringRecipe. craft(CraftingInventory craftingInventory)ItemStackSmithingRecipe. craft(Inventory inv)ItemStackSuspiciousStewRecipe. craft(CraftingInventory craftingInventory)ItemStackTippedArrowRecipe. craft(CraftingInventory craftingInventory)ItemStack[]Ingredient. getMatchingStacksClient()ItemStackAbstractCookingRecipe. getOutput()ItemStackCuttingRecipe. getOutput()ItemStackFireworkRocketRecipe. getOutput()ItemStackFireworkStarRecipe. getOutput()ItemStackRecipe. getOutput()ItemStackShapedRecipe. getOutput()ItemStackShapelessRecipe. getOutput()ItemStackSmithingRecipe. getOutput()ItemStackSpecialCraftingRecipe. getOutput()ItemStackBlastingRecipe. getRecipeKindIcon()ItemStackCampfireCookingRecipe. getRecipeKindIcon()default ItemStackRecipe. getRecipeKindIcon()ItemStackSmeltingRecipe. getRecipeKindIcon()ItemStackSmithingRecipe. getRecipeKindIcon()ItemStackSmokingRecipe. getRecipeKindIcon()ItemStackStonecuttingRecipe. getRecipeKindIcon()static ItemStackRecipeFinder. getStackFromId(int id)static ItemStackShapedRecipe. method_35228(JsonObject jsonObject)Methods in net.minecraft.recipe that return types with arguments of type ItemStack Modifier and Type Method Description DefaultedList<ItemStack>BannerDuplicateRecipe. getRemainingStacks(CraftingInventory craftingInventory)DefaultedList<ItemStack>BookCloningRecipe. getRemainingStacks(CraftingInventory craftingInventory)default DefaultedList<ItemStack>Recipe. getRemainingStacks(C inventory)<C extends Inventory, T extends Recipe<C>>
DefaultedList<ItemStack>RecipeManager. getRemainingStacks(RecipeType<T> recipeType, C inventory, World world)Collection<ItemStack>Ingredient.Entry. getStacks()Collection<ItemStack>Ingredient.StackEntry. getStacks()Collection<ItemStack>Ingredient.TagEntry. getStacks()Methods in net.minecraft.recipe with parameters of type ItemStack Modifier and Type Method Description voidRecipeFinder. addItem(ItemStack stack)voidRecipeFinder. addItem(ItemStack stack, int count)voidRecipeFinder. addNormalItem(ItemStack stack)static ItemStackBrewingRecipeRegistry. craft(ItemStack input, ItemStack ingredient)TCookingRecipeSerializer.RecipeFactory. create(Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime)TCuttingRecipe.Serializer.RecipeFactory. create(Identifier id, String group, Ingredient input, ItemStack output)protected voidInputSlotFiller. fillInputSlot(Slot slot, ItemStack stack)static intRecipeFinder. getItemId(ItemStack stack)protected static booleanBrewingRecipeRegistry. hasItemRecipe(ItemStack input, ItemStack ingredient)protected static booleanBrewingRecipeRegistry. hasPotionRecipe(ItemStack input, ItemStack ingredient)static booleanBrewingRecipeRegistry. hasRecipe(ItemStack input, ItemStack ingredient)protected static booleanBrewingRecipeRegistry. isItemRecipeIngredient(ItemStack stack)protected static booleanBrewingRecipeRegistry. isPotionRecipeIngredient(ItemStack stack)static booleanBrewingRecipeRegistry. isValidIngredient(ItemStack stack)static IngredientIngredient. ofStacks(ItemStack[] stacks)booleanIngredient. test(@Nullable ItemStack itemStack)booleanSmithingRecipe. testAddition(ItemStack stack)Method parameters in net.minecraft.recipe with type arguments of type ItemStack Modifier and Type Method Description static IngredientIngredient. ofStacks(Stream<ItemStack> stacks)Constructors in net.minecraft.recipe with parameters of type ItemStack Constructor Description AbstractCookingRecipe(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> ingredients, 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)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 ItemStack Modifier and Type Field Description private ItemStackScreenHandler. cursorStackprivate ItemStackStonecutterScreenHandler. inputStackprivate ItemStackScreenHandler. previousCursorStackFields in net.minecraft.screen with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>ScreenHandler. previousTrackedStacksprivate DefaultedList<ItemStack>ScreenHandler. trackedStacksA list of item stacks that is used for tracking changes inScreenHandler.sendContentUpdates().Methods in net.minecraft.screen that return ItemStack Modifier and Type Method Description ItemStackLecternScreenHandler. getBookItem()ItemStackScreenHandler. getCursorStack()private ItemStackGrindstoneScreenHandler. grind(ItemStack item, int damage, int amount)private ItemStackGrindstoneScreenHandler. transferEnchantments(ItemStack target, ItemStack source)ItemStackAbstractFurnaceScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackBeaconScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackBrewingStandScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackCartographyTableScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackCraftingScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackEnchantmentScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackForgingScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackGeneric3x3ContainerScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackGenericContainerScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackGrindstoneScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackHopperScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackHorseScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackLoomScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackMerchantScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackPlayerScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackShulkerBoxScreenHandler. transferSlot(PlayerEntity player, int index)ItemStackStonecutterScreenHandler. transferSlot(PlayerEntity player, int index)Methods in net.minecraft.screen that return types with arguments of type ItemStack Modifier and Type Method Description DefaultedList<ItemStack>ScreenHandler. getStacks()Methods in net.minecraft.screen with parameters of type ItemStack Modifier and Type Method Description private voidMerchantScreenHandler. autofill(int slot, ItemStack stack)static voidScreenHandler. calculateStackSize(Set<Slot> slots, int mode, ItemStack stack, int stackSize)booleanBeaconScreenHandler.PaymentSlot. canInsert(ItemStack stack)booleanBrewingStandScreenHandler.FuelSlot. canInsert(ItemStack stack)booleanBrewingStandScreenHandler.IngredientSlot. canInsert(ItemStack stack)booleanBrewingStandScreenHandler.PotionSlot. canInsert(ItemStack stack)booleanCartographyTableScreenHandler. 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 List<EnchantmentLevelEntry>EnchantmentScreenHandler. generateEnchantments(ItemStack stack, int slot, int level)private ItemStackGrindstoneScreenHandler. grind(ItemStack item, int damage, int amount)protected booleanScreenHandler. insertItem(ItemStack stack, int startIndex, int endIndex, boolean fromLast)protected booleanAbstractFurnaceScreenHandler. isFuel(ItemStack itemStack)protected booleanAbstractFurnaceScreenHandler. isSmeltable(ItemStack itemStack)static booleanBrewingStandScreenHandler.FuelSlot. matches(ItemStack stack)static booleanBrewingStandScreenHandler.PotionSlot. matches(ItemStack stack)protected booleanForgingScreenHandler. method_30025(ItemStack itemStack)protected booleanSmithingScreenHandler. method_30025(ItemStack itemStack)voidScreenHandlerListener. onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)voidBrewingStandScreenHandler.PotionSlot. onTakeItem(PlayerEntity player, ItemStack stack)protected voidAnvilScreenHandler. onTakeOutput(PlayerEntity player, ItemStack stack)protected abstract voidForgingScreenHandler. onTakeOutput(PlayerEntity player, ItemStack stack)protected voidSmithingScreenHandler. onTakeOutput(PlayerEntity player, ItemStack stack)voidScreenHandler. setCursorStack(ItemStack stack)voidScreenHandler. setPreviousCursorStack(ItemStack stack)voidScreenHandler. setPreviousTrackedSlot(int slot, ItemStack stack)voidScreenHandler. setStackInSlot(int slot, 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 itemStack, ItemStack itemStack2, ItemStack oldResult)private voidScreenHandler. updateSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)voidScreenHandlerSyncHandler. updateSlot(ScreenHandler handler, int slot, ItemStack stack)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 ItemStack Modifier and Type Method Description private voidScreenHandler. updateSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)voidScreenHandler. updateSlotStacks(List<ItemStack> stacks)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 ItemStack Modifier and Type Method Description ItemStackSlot. getStack()ItemStackSlot. insertStack(ItemStack stack)ItemStackSlot. insertStack(ItemStack stack, int count)ItemStackCraftingResultSlot. takeStack(int amount)ItemStackFurnaceOutputSlot. takeStack(int amount)ItemStackSlot. takeStack(int amount)ItemStackTradeOutputSlot. takeStack(int amount)ItemStackSlot. takeStackRange(int min, int max, PlayerEntity player)Methods in net.minecraft.screen.slot that return types with arguments of type ItemStack Modifier and Type Method Description Optional<ItemStack>Slot. tryTakeStackRange(int min, int max, PlayerEntity player)Methods in net.minecraft.screen.slot with parameters of type ItemStack Modifier and Type Method Description booleanCraftingResultSlot. canInsert(ItemStack stack)booleanFurnaceFuelSlot. canInsert(ItemStack stack)booleanFurnaceOutputSlot. canInsert(ItemStack stack)booleanShulkerBoxSlot. canInsert(ItemStack stack)booleanSlot. canInsert(ItemStack stack)booleanTradeOutputSlot. canInsert(ItemStack stack)intFurnaceFuelSlot. getMaxItemCount(ItemStack stack)intSlot. getMaxItemCount(ItemStack stack)ItemStackSlot. insertStack(ItemStack stack)ItemStackSlot. insertStack(ItemStack stack, int count)static booleanFurnaceFuelSlot. isBucket(ItemStack stack)protected voidCraftingResultSlot. onCrafted(ItemStack stack)protected voidCraftingResultSlot. onCrafted(ItemStack stack, int amount)protected voidFurnaceOutputSlot. onCrafted(ItemStack stack)protected voidFurnaceOutputSlot. onCrafted(ItemStack stack, int amount)protected voidSlot. onCrafted(ItemStack stack)protected voidSlot. onCrafted(ItemStack stack, int amount)protected voidTradeOutputSlot. onCrafted(ItemStack stack)protected voidTradeOutputSlot. onCrafted(ItemStack stack, int amount)voidSlot. onStackChanged(ItemStack originalItem, ItemStack newItem)voidCraftingResultSlot. onTakeItem(PlayerEntity player, ItemStack stack)voidFurnaceOutputSlot. onTakeItem(PlayerEntity player, ItemStack stack)voidSlot. onTakeItem(PlayerEntity player, ItemStack stack)voidTradeOutputSlot. onTakeItem(PlayerEntity player, ItemStack stack)voidSlot. setStack(ItemStack stack) -
Uses of ItemStack in net.minecraft.server.command
Methods in net.minecraft.server.command that return ItemStack Modifier and Type Method Description private 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 ItemStack Modifier and Type Method Description private 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 booleanLootCommand. insert(Inventory inventory, ItemStack stack)private static booleanLootCommand. itemsMatch(ItemStack first, ItemStack second)Method parameters in net.minecraft.server.command with type arguments of type ItemStack Modifier and Type Method Description voidLootCommand.FeedbackMessage. accept(List<ItemStack> items)intLootCommand.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 ItemStack Modifier and Type Method Description voidServerPlayerEntity. 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.ItemEntityServerPlayerEntity. dropItem(ItemStack stack, boolean throwRandomly, boolean retainOwnership)ActionResultDemoServerPlayerInteractionManager. interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)ActionResultServerPlayerInteractionManager. interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)ActionResultDemoServerPlayerInteractionManager. interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)ActionResultServerPlayerInteractionManager. interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)private voidServerPlayNetworkHandler. setTextToBook(List<TextStream.Message> messages, UnaryOperator<String> postProcessor, ItemStack book)voidServerPlayerEntity. useBook(ItemStack book, Hand hand)Called 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 ItemStack Modifier and Type Method Description private static ItemStackStructureTestListener. createBookWithText(String text, boolean required, String output) -
Uses of ItemStack in net.minecraft.text
Fields in net.minecraft.text declared as ItemStack Modifier and Type Field Description private @Nullable ItemStackHoverEvent.ItemStackContent. stackMethods in net.minecraft.text that return ItemStack Modifier and Type Method Description ItemStackHoverEvent.ItemStackContent. asStack()Constructors in net.minecraft.text with parameters of type ItemStack Constructor Description ItemStackContent(ItemStack stack) -
Uses of ItemStack in net.minecraft.util
Methods in net.minecraft.util with parameters of type ItemStack Modifier and Type Method Description static voidItemScatterer. spawn(World world, double x, double y, double z, ItemStack stack)Method parameters in net.minecraft.util with type arguments of type ItemStack Modifier and Type Method Description static voidItemScatterer. spawn(World world, BlockPos pos, DefaultedList<ItemStack> stacks) -
Uses of ItemStack in net.minecraft.village
Fields in net.minecraft.village declared as ItemStack Modifier and Type Field Description private ItemStackTradeOffer. firstBuyItemprivate ItemStackTradeOffers.ProcessItemFactory. secondBuyprivate ItemStackTradeOffer. secondBuyItemprivate ItemStackTradeOffers.ProcessItemFactory. sellprivate ItemStackTradeOffers.SellItemFactory. sellprivate ItemStackTradeOffers.SellPotionHoldingItemFactory. sellprivate ItemStackTradeOffer. sellItemprivate ItemStackTradeOffers.SellEnchantedToolFactory. toolFields in net.minecraft.village with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>MerchantInventory. inventoryMethods in net.minecraft.village that return ItemStack Modifier and Type Method Description ItemStackTradeOffer. copySellItem()Returns a copy of the sell item of this trade offer.ItemStackTradeOffer. 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.ItemStackTradeOffer. getOriginalFirstBuyItem()Returns the first buy item of this trade offer.ItemStackTradeOffer. getSecondBuyItem()Returns the second buy item of this trade offer.ItemStackTradeOffer. getSellItem()Returns the sell item of this trade offer.ItemStackMerchantInventory. getStack(int slot)Fetches the stack currently stored at the given slot.ItemStackMerchantInventory. removeStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackMerchantInventory. removeStack(int slot, int amount)Removes a specific number of items from the given slot.Methods in net.minecraft.village with parameters of type ItemStack Modifier and Type Method Description private booleanTradeOffer. acceptsBuy(ItemStack given, ItemStack sample)booleanTradeOffer. depleteBuyItems(ItemStack firstBuyStack, ItemStack secondBuyStack)@Nullable TradeOfferTradeOfferList. getValidOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, int index)booleanTradeOffer. matchesBuyItems(ItemStack first, ItemStack second)voidMerchant. onSellingItem(ItemStack stack)voidSimpleMerchant. onSellingItem(ItemStack stack)voidMerchantInventory. setStack(int slot, ItemStack stack)Constructors in net.minecraft.village with parameters of type ItemStack Constructor Description SellItemFactory(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 Modifier and Type Method Description static ItemStackRaid. getOminousBanner() -
Uses of ItemStack in net.minecraft.world.explosion
Methods in net.minecraft.world.explosion with parameters of type ItemStack Modifier and Type Method Description private 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 ItemStack Modifier and Type Method Description private static voidExplosion. tryMergeStack(ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> stacks, ItemStack stack, BlockPos pos)