Uses of Class
net.minecraft.world.item.ItemStack
Packages that use ItemStack
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of ItemStack in net.minecraft.advancements
Fields in net.minecraft.advancements declared as ItemStackMethods in net.minecraft.advancements that return ItemStackMethods in net.minecraft.advancements with parameters of type ItemStackModifier and TypeMethodDescriptionAdvancement.Builder.display(ItemStack icon, Component title, Component description, ResourceLocation background, AdvancementType type, boolean showToast, boolean announceChat, boolean hidden) Constructors in net.minecraft.advancements with parameters of type ItemStackModifierConstructorDescriptionDisplayInfo(ItemStack icon, Component title, Component description, Optional<ClientAsset> background, AdvancementType type, boolean showToast, boolean announceChat, boolean hidden) -
Uses of ItemStack in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanBeeNestDestroyedTrigger.TriggerInstance.matches(BlockState state, ItemStack stack, int numBees) booleanbooleanbooleanbooleanFishingRodHookedTrigger.TriggerInstance.matches(ItemStack rod, LootContext context, Collection<ItemStack> stacks) booleanInventoryChangeTrigger.TriggerInstance.matches(Inventory inventory, ItemStack stack, int full, int empty, int occupied) booleanbooleanKilledByArrowTrigger.TriggerInstance.matches(Collection<LootContext> context, int uniqueEntityTypes, ItemStack firedFromWeapon) booleanPickedUpItemTrigger.TriggerInstance.matches(ServerPlayer player, ItemStack stack, LootContext context) booleanPlayerInteractTrigger.TriggerInstance.matches(ItemStack item, LootContext lootContext) booleanbooleanTradeTrigger.TriggerInstance.matches(LootContext context, ItemStack stack) booleanbooleanbooleanvoidAnyBlockInteractionTrigger.trigger(ServerPlayer player, BlockPos pos, ItemStack stack) voidBeeNestDestroyedTrigger.trigger(ServerPlayer player, BlockState state, ItemStack stack, int numBees) voidConsumeItemTrigger.trigger(ServerPlayer player, ItemStack item) voidEnchantedItemTrigger.trigger(ServerPlayer player, ItemStack item, int levelsSpent) voidFilledBucketTrigger.trigger(ServerPlayer player, ItemStack stack) voidFishingRodHookedTrigger.trigger(ServerPlayer player, ItemStack rod, FishingHook entity, Collection<ItemStack> stacks) voidInventoryChangeTrigger.trigger(ServerPlayer player, Inventory inventory, ItemStack stack) private voidInventoryChangeTrigger.trigger(ServerPlayer player, Inventory inventory, ItemStack stack, int full, int empty, int occupied) voidItemDurabilityTrigger.trigger(ServerPlayer player, ItemStack item, int newDurability) voidItemUsedOnLocationTrigger.trigger(ServerPlayer player, BlockPos pos, ItemStack stack) voidKilledByArrowTrigger.trigger(ServerPlayer player, Collection<Entity> victims, ItemStack firedFromWeapon) voidPickedUpItemTrigger.trigger(ServerPlayer player, ItemStack stack, Entity entity) voidPlayerInteractTrigger.trigger(ServerPlayer player, ItemStack item, Entity entity) voidShotCrossbowTrigger.trigger(ServerPlayer shooter, ItemStack stack) voidTradeTrigger.trigger(ServerPlayer player, AbstractVillager villager, ItemStack stack) voidUsedTotemTrigger.trigger(ServerPlayer player, ItemStack item) voidUsingItemTrigger.trigger(ServerPlayer player, ItemStack item) Method parameters in net.minecraft.advancements.critereon with type arguments of type ItemStackModifier and TypeMethodDescriptionbooleanFishingRodHookedTrigger.TriggerInstance.matches(ItemStack rod, LootContext context, Collection<ItemStack> stacks) (package private) booleanRecipeCraftedTrigger.TriggerInstance.matches(ResourceKey<Recipe<?>> recipeId, List<ItemStack> ingredients) voidFishingRodHookedTrigger.trigger(ServerPlayer player, ItemStack rod, FishingHook entity, Collection<ItemStack> stacks) voidRecipeCraftedTrigger.trigger(ServerPlayer player, ResourceKey<Recipe<?>> recipeId, List<ItemStack> ingredients) -
Uses of ItemStack in net.minecraft.client.color.item
Methods in net.minecraft.client.color.item with parameters of type ItemStackModifier and TypeMethodDescriptionintConstant.calculate(ItemStack stack, ClientLevel level, LivingEntity entity) intCustomModelDataSource.calculate(ItemStack stack, ClientLevel level, LivingEntity entity) intDye.calculate(ItemStack stack, ClientLevel level, LivingEntity entity) intFirework.calculate(ItemStack stack, ClientLevel level, LivingEntity entity) intGrassColorSource.calculate(ItemStack stack, ClientLevel level, LivingEntity entity) intItemTintSource.calculate(ItemStack stack, ClientLevel level, LivingEntity entity) intMapColor.calculate(ItemStack stack, ClientLevel level, LivingEntity entity) intPotion.calculate(ItemStack stack, ClientLevel level, LivingEntity entity) intTeamColor.calculate(ItemStack stack, ClientLevel level, LivingEntity entity) -
Uses of ItemStack in net.minecraft.client.gui
Fields in net.minecraft.client.gui declared as ItemStackMethods in net.minecraft.client.gui with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanBundleMouseActions.onMouseScrolled(double xOffset, double yOffset, int hoveredSlotIndex, ItemStack hoveredSlotItem) booleanItemSlotMouseAction.onMouseScrolled(double xOffset, double yOffset, int hoveredSlotIndex, ItemStack hoveredSlotItem) voidGuiGraphics.renderFakeItem(ItemStack stack, int x, int y) Renders a fake item stack at the specified coordinates.voidGuiGraphics.renderFakeItem(ItemStack stack, int x, int y, int seed) voidGuiGraphics.renderItem(LivingEntity entity, ItemStack stack, int x, int y, int seed) Renders an item stack for a living entity at the specified coordinates with a random seed.private voidGuiGraphics.renderItem(LivingEntity entity, Level level, ItemStack stack, int x, int y, int seed) Renders an item stack for a living entity in a specific level at the specified coordinates with a random seed.voidGuiGraphics.renderItem(ItemStack stack, int x, int y) Renders an item stack at the specified coordinates.voidGuiGraphics.renderItem(ItemStack stack, int x, int y, int seed) Renders an item stack at the specified coordinates with a random seed.private voidGuiGraphics.renderItemBar(ItemStack stack, int x, int y) private voidGuiGraphics.renderItemCooldown(ItemStack stack, int x, int y) private voidGuiGraphics.renderItemCount(Font font, ItemStack stack, int x, int y, String text) voidGuiGraphics.renderItemDecorations(Font font, ItemStack stack, int x, int y) Renders additional decorations for an item stack at the specified coordinates.voidGuiGraphics.renderItemDecorations(Font font, ItemStack stack, int x, int y, String text) Renders additional decorations for an item stack at the specified coordinates with optional custom text.private voidGui.renderSlot(GuiGraphics guiGraphics, int x, int y, DeltaTracker deltaTracker, Player player, ItemStack stack, int seed) voidGuiGraphics.renderTooltip(Font font, List<ClientTooltipComponent> components, int x, int y, ClientTooltipPositioner positioner, ResourceLocation background, ItemStack tooltipStack) voidGuiGraphics.setComponentTooltipForNextFrame(Font font, List<? extends FormattedText> lines, int x, int y, ItemStack stack) voidGuiGraphics.setComponentTooltipForNextFrame(Font font, List<? extends FormattedText> lines, int x, int y, ItemStack stack, ResourceLocation backgroundTexture) voidGuiGraphics.setComponentTooltipFromElementsForNextFrame(Font font, List<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> elements, int mouseX, int mouseY, ItemStack stack) voidGuiGraphics.setComponentTooltipFromElementsForNextFrame(Font font, List<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> elements, int mouseX, int mouseY, ItemStack stack, ResourceLocation backgroundTexture) voidGuiGraphics.setTooltipForNextFrame(Font font, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, ItemStack stack, int mouseX, int mouseY) voidGuiGraphics.setTooltipForNextFrame(Font font, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, ItemStack stack, int mouseX, int mouseY, ResourceLocation backgroundTexture) voidGuiGraphics.setTooltipForNextFrame(Font font, ItemStack stack, int x, int y) private voidBundleMouseActions.toggleSelectedBundleItem(ItemStack stack, int index, int nextIndex) voidBundleMouseActions.unselectedBundleItem(ItemStack bundle, int slotIndex) -
Uses of ItemStack in net.minecraft.client.gui.components
Fields in net.minecraft.client.gui.components declared as ItemStackConstructors in net.minecraft.client.gui.components with parameters of type ItemStackModifierConstructorDescriptionItemDisplayWidget(Minecraft minecraft, int offsetX, int offsetY, int width, int height, Component message, ItemStack itemStack, boolean decorations, boolean tooltip) -
Uses of ItemStack in net.minecraft.client.gui.components.toasts
Fields in net.minecraft.client.gui.components.toasts declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackRecipeToast.Entry.categoryItemThe field for thecategoryItemrecord component.private final ItemStackRecipeToast.Entry.unlockedItemThe field for theunlockedItemrecord component.Methods in net.minecraft.client.gui.components.toasts that return ItemStackModifier and TypeMethodDescriptionRecipeToast.Entry.categoryItem()Returns the value of thecategoryItemrecord component.RecipeToast.Entry.unlockedItem()Returns the value of theunlockedItemrecord component.Methods in net.minecraft.client.gui.components.toasts with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidConstructors in net.minecraft.client.gui.components.toasts with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.client.gui.screens
Methods in net.minecraft.client.gui.screens that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackCreateFlatWorldScreen.DetailsList.Entry.getDisplayItem(BlockState state) Methods in net.minecraft.client.gui.screens with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidCreateFlatWorldScreen.DetailsList.Entry.blitSlot(GuiGraphics guiGraphics, int x, int y, ItemStack stack) Screen.getTooltipFromItem(Minecraft minecraft, ItemStack item) -
Uses of ItemStack in net.minecraft.client.gui.screens.advancements
Fields in net.minecraft.client.gui.screens.advancements declared as ItemStackMethods in net.minecraft.client.gui.screens.advancements with parameters of type ItemStackModifier and TypeMethodDescriptionvoidAdvancementTabType.drawIcon(GuiGraphics guiGraphics, int offsetX, int offsetY, int index, ItemStack stack) -
Uses of ItemStack in net.minecraft.client.gui.screens.debug
Fields in net.minecraft.client.gui.screens.debug declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackGameModeSwitcherScreen.GameModeIcon.renderStackConstructors in net.minecraft.client.gui.screens.debug with parameters of type ItemStackModifierConstructorDescriptionprivateGameModeIcon(Component name, GameType mode, ItemStack renderStack) -
Uses of ItemStack in net.minecraft.client.gui.screens.inventory
Fields in net.minecraft.client.gui.screens.inventory declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackLoomScreen.bannerStackprivate final ItemStackBookEditScreen.bookprivate ItemStackAbstractContainerScreen.draggingItemUsed when touchscreen is enabledprivate ItemStackLoomScreen.dyeStackprivate final ItemStackAbstractContainerScreen.SnapbackData.itemThe field for theitemrecord component.private ItemStackEnchantmentScreen.lastprivate ItemStackAbstractContainerScreen.lastQuickMovedprivate ItemStackLoomScreen.patternStackFields in net.minecraft.client.gui.screens.inventory with type parameters of type ItemStackModifier and TypeFieldDescriptionfinal NonNullList<ItemStack> CreativeModeInventoryScreen.ItemPickerMenu.itemsThe list of items in this container.Methods in net.minecraft.client.gui.screens.inventory that return ItemStackModifier and TypeMethodDescriptionCreativeModeInventoryScreen.ItemPickerMenu.getCarried()CreativeModeInventoryScreen.SlotWrapper.getItem()AbstractContainerScreen.SnapbackData.item()Returns the value of theitemrecord component.CreativeModeInventoryScreen.ItemPickerMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.CreativeModeInventoryScreen.SlotWrapper.remove(int amount) Decrease the size of the stack in slot (first int arg) by the amount of the second int arg.Methods in net.minecraft.client.gui.screens.inventory with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanCreativeModeInventoryScreen.ItemPickerMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.static BookViewScreen.BookAccessintCreativeModeInventoryScreen.SlotWrapper.getMaxStackSize(ItemStack stack) AbstractContainerScreen.getTooltipFromContainerItem(ItemStack stack) CreativeModeInventoryScreen.getTooltipFromContainerItem(ItemStack stack) booleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.voidprivate voidMerchantScreen.renderAndDecorateCostA(GuiGraphics guiGraphics, ItemStack realCost, ItemStack baseCost, int x, int y) private voidAbstractContainerScreen.renderFloatingItem(GuiGraphics guiGraphics, ItemStack stack, int x, int y, String text) protected voidAbstractContainerScreen.renderSlotContents(GuiGraphics guiGraphics, ItemStack itemstack, Slot slot, String countString) voidHelper method to put a stack in the slot.voidCreativeModeInventoryScreen.SlotWrapper.setByPlayer(ItemStack newStack, ItemStack oldStack) voidCreativeModeInventoryScreen.ItemPickerMenu.setCarried(ItemStack stack) private booleanAbstractContainerScreen.showTooltipWithItemInHand(ItemStack stack) voidAnvilScreen.slotChanged(AbstractContainerMenu containerToSend, int slotInd, ItemStack stack) Sends the contents of an inventory slot to the client-side Container.voidCreativeInventoryListener.slotChanged(AbstractContainerMenu containerToSend, int slotInd, ItemStack stack) Sends the contents of an inventory slot to the client-side Container.voidItemCombinerScreen.slotChanged(AbstractContainerMenu containerToSend, int slotInd, ItemStack stack) Sends the contents of an inventory slot to the client-side Container.voidSmithingScreen.slotChanged(AbstractContainerMenu containerToSend, int slotInd, ItemStack stack) Sends the contents of an inventory slot to the client-side Container.private voidSmithingScreen.updateArmorStandPreview(ItemStack stack) Method parameters in net.minecraft.client.gui.screens.inventory with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate voidCreativeModeInventoryScreen.refreshCurrentTabContents(Collection<ItemStack> items) Constructors in net.minecraft.client.gui.screens.inventory with parameters of type ItemStackModifierConstructorDescriptionBookEditScreen(Player owner, ItemStack book, InteractionHand hand, WritableBookContent content) (package private)SnapbackData(ItemStack item, Vector2i start, Vector2i end, long time) Creates an instance of aSnapbackDatarecord class. -
Uses of ItemStack in net.minecraft.client.gui.screens.inventory.tooltip
Methods in net.minecraft.client.gui.screens.inventory.tooltip that return types with arguments of type ItemStackMethod parameters in net.minecraft.client.gui.screens.inventory.tooltip with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate intClientBundleTooltip.getAmountOfHiddenItems(List<ItemStack> shownItems) private voidClientBundleTooltip.renderSlot(int slotIndex, int x, int y, List<ItemStack> shownItems, int seed, Font font, GuiGraphics guiGraphics) private static booleanClientBundleTooltip.shouldRenderItemSlot(List<ItemStack> shownItems, int slotIndex) -
Uses of ItemStack in net.minecraft.client.gui.screens.recipebook
Fields in net.minecraft.client.gui.screens.recipebook declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackRecipeBookComponent.TabInfo.primaryIconThe field for theprimaryIconrecord component.Fields in net.minecraft.client.gui.screens.recipebook with type parameters of type ItemStackModifier and TypeFieldDescriptionRecipeButton.ResolvedEntry.displayItemsThe field for thedisplayItemsrecord component.OverlayRecipeComponent.OverlayRecipeButton.Pos.ingredientsThe field for theingredientsrecord component.GhostSlots.GhostSlot.itemsThe field for theitemsrecord component.RecipeBookComponent.TabInfo.secondaryIconThe field for thesecondaryIconrecord component.Methods in net.minecraft.client.gui.screens.recipebook that return ItemStackModifier and TypeMethodDescriptionRecipeButton.getDisplayStack()GhostSlots.GhostSlot.getItem(int index) RecipeBookComponent.TabInfo.primaryIcon()Returns the value of theprimaryIconrecord component.OverlayRecipeComponent.OverlayRecipeButton.Pos.selectIngredient(int index) RecipeButton.ResolvedEntry.selectItem(int index) Methods in net.minecraft.client.gui.screens.recipebook that return types with arguments of type ItemStackModifier and TypeMethodDescriptionRecipeButton.ResolvedEntry.displayItems()Returns the value of thedisplayItemsrecord component.OverlayRecipeComponent.OverlayRecipeButton.Pos.ingredients()Returns the value of theingredientsrecord component.GhostSlots.GhostSlot.items()Returns the value of theitemsrecord component.RecipeBookComponent.TabInfo.secondaryIcon()Returns the value of thesecondaryIconrecord component.Methods in net.minecraft.client.gui.screens.recipebook with parameters of type ItemStackMethod parameters in net.minecraft.client.gui.screens.recipebook with type arguments of type ItemStackModifier and TypeMethodDescriptionprotected static OverlayRecipeComponent.OverlayRecipeButton.PosOverlayRecipeComponent.OverlayRecipeButton.createGridPos(int x, int y, List<ItemStack> possibleItems) Constructors in net.minecraft.client.gui.screens.recipebook with parameters of type ItemStackModifierConstructorDescriptionTabInfo(ItemStack primaryIcon, Optional<ItemStack> secondaryIcon, ExtendedRecipeBookCategory category) Creates an instance of aTabInforecord class.Constructor parameters in net.minecraft.client.gui.screens.recipebook with type arguments of type ItemStackModifierConstructorDescription(package private)Creates an instance of aGhostSlotrecord class.Creates an instance of aPosrecord class.(package private)ResolvedEntry(RecipeDisplayId id, List<ItemStack> displayItems) Creates an instance of aResolvedEntryrecord class.TabInfo(ItemStack primaryIcon, Optional<ItemStack> secondaryIcon, ExtendedRecipeBookCategory category) Creates an instance of aTabInforecord class. -
Uses of ItemStack in net.minecraft.client.multiplayer
Fields in net.minecraft.client.multiplayer declared as ItemStackFields in net.minecraft.client.multiplayer with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate CompletableFuture<SearchTree<ItemStack>> SessionSearchTrees.creativeByNameSearchprivate CompletableFuture<SearchTree<ItemStack>> SessionSearchTrees.creativeByTagSearchMethods in net.minecraft.client.multiplayer that return ItemStackMethods in net.minecraft.client.multiplayer that return types with arguments of type ItemStackModifier and TypeMethodDescriptionSessionSearchTrees.creativeNameSearch()SessionSearchTrees.creativeNameSearch(SessionSearchTrees.Key key) SessionSearchTrees.creativeTagSearch()SessionSearchTrees.creativeTagSearch(SessionSearchTrees.Key key) Methods in net.minecraft.client.multiplayer with parameters of type ItemStackModifier and TypeMethodDescriptionvoidMultiPlayerGameMode.handleCreativeModeItemAdd(ItemStack stack, int slotId) Used in PlayerControllerMP to update the server with an ItemStack in a slot.voidMultiPlayerGameMode.handleCreativeModeItemDrop(ItemStack stack) Sends a Packet107 to the server to drop the item on the groundMethod parameters in net.minecraft.client.multiplayer with type arguments of type ItemStackModifier and TypeMethodDescriptionSessionSearchTrees.getTooltipLines(Stream<ItemStack> items, Item.TooltipContext context, TooltipFlag tooltipFlag) voidSessionSearchTrees.updateCreativeTags(List<ItemStack> items) voidSessionSearchTrees.updateCreativeTags(List<ItemStack> items, SessionSearchTrees.Key key) voidSessionSearchTrees.updateCreativeTooltips(HolderLookup.Provider registries, List<ItemStack> items) voidSessionSearchTrees.updateCreativeTooltips(HolderLookup.Provider registries, List<ItemStack> items, SessionSearchTrees.Key key) -
Uses of ItemStack in net.minecraft.client.particle
Methods in net.minecraft.client.particle with parameters of type ItemStackModifier and TypeMethodDescriptionprotected ItemStackRenderStateBreakingItemParticle.ItemParticleProvider.calculateState(ItemStack stack, ClientLevel level) -
Uses of ItemStack in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type ItemStackModifier and TypeMethodDescriptionvoidLocalPlayer.handleCreativeModeItemDrop(ItemStack stack) voidLocalPlayer.openItemGui(ItemStack stack, InteractionHand hand) voidLocalPlayer.updateTutorialInventoryAction(ItemStack carried, ItemStack clicked, ClickAction action) -
Uses of ItemStack in net.minecraft.client.player.inventory
Methods in net.minecraft.client.player.inventory that return types with arguments of type ItemStack -
Uses of ItemStack in net.minecraft.client.renderer
Fields in net.minecraft.client.renderer declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackScreenEffectRenderer.itemActivationItemprivate ItemStackItemInHandRenderer.mainHandItemprivate ItemStackItemInHandRenderer.offHandItemMethods in net.minecraft.client.renderer with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidItemInHandRenderer.applyBrushTransform(PoseStack poseStack, float partialTick, HumanoidArm arm, ItemStack stack, Player player, float equippedProgress) private voidItemInHandRenderer.applyEatTransform(PoseStack poseStack, float partialTick, HumanoidArm arm, ItemStack stack, Player player) voidGameRenderer.displayItemActivation(ItemStack stack) voidScreenEffectRenderer.displayItemActivation(ItemStack item, RandomSource random) static RenderTypeItemBlockRenderTypes.getRenderType(ItemStack stack) Deprecated.private static booleanItemInHandRenderer.isChargedCrossbow(ItemStack stack) private voidItemInHandRenderer.renderArmWithItem(AbstractClientPlayer player, float partialTicks, float pitch, InteractionHand hand, float swingProgress, ItemStack stack, float equippedProgress, PoseStack poseStack, MultiBufferSource buffer, int combinedLight) voidItemInHandRenderer.renderItem(LivingEntity entity, ItemStack stack, ItemDisplayContext displayContext, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight) private voidItemInHandRenderer.renderMap(PoseStack poseStack, MultiBufferSource buffer, int packedLight, ItemStack stack) private voidItemInHandRenderer.renderOneHandedMap(PoseStack poseStack, MultiBufferSource buffer, int packedLight, float equippedProgress, HumanoidArm hand, float swingProgress, ItemStack stack) private booleanItemInHandRenderer.shouldInstantlyReplaceVisibleItem(ItemStack oldItem, ItemStack newItem) -
Uses of ItemStack in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackHumanoidMobRenderer.getEquipmentIfRenderable(LivingEntity entity, EquipmentSlot slot) Methods in net.minecraft.client.renderer.entity with parameters of type ItemStackModifier and TypeMethodDescriptionvoidItemRenderer.renderStatic(LivingEntity entity, ItemStack stack, ItemDisplayContext displayContext, PoseStack poseStack, MultiBufferSource bufferSource, Level level, int packedLight, int packedOverlay, int seed) voidItemRenderer.renderStatic(ItemStack stack, ItemDisplayContext displayContext, int packedLight, int packedOverlay, PoseStack poseStack, MultiBufferSource bufferSource, Level level, int seed) -
Uses of ItemStack in net.minecraft.client.renderer.entity.layers
Fields in net.minecraft.client.renderer.entity.layers with type parameters of type ItemStackMethods in net.minecraft.client.renderer.entity.layers with parameters of type ItemStackModifier and TypeMethodDescriptionprivate booleanCapeLayer.hasLayer(ItemStack stack, EquipmentClientInfo.LayerType layer) private voidWolfArmorLayer.maybeRenderCracks(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, ItemStack armorItem, Model model) private voidHumanoidArmorLayer.renderArmorPiece(PoseStack poseStack, MultiBufferSource bufferSource, ItemStack armorItem, EquipmentSlot slot, int packedLight, A model) private voidLlamaDecorLayer.renderEquipment(PoseStack poseStack, MultiBufferSource bufferSource, LlamaRenderState renderState, ItemStack stack, ResourceKey<EquipmentAsset> equipmentAsset, int packedLight) voidEquipmentLayerRenderer.renderLayers(EquipmentClientInfo.LayerType layerType, ResourceKey<EquipmentAsset> equipmentAsset, Model armorModel, ItemStack item, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight) voidEquipmentLayerRenderer.renderLayers(EquipmentClientInfo.LayerType layerType, ResourceKey<EquipmentAsset> equipmentAsset, Model armorModel, ItemStack item, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, ResourceLocation playerTexture) static booleanHumanoidArmorLayer.shouldRender(ItemStack stack, EquipmentSlot slot) Constructor parameters in net.minecraft.client.renderer.entity.layers with type arguments of type ItemStackModifierConstructorDescriptionSimpleEquipmentLayer(RenderLayerParent<S, RM> renderer, EquipmentLayerRenderer equipmentRenderer, EM model, EquipmentClientInfo.LayerType layer, Function<S, ItemStack> itemGetter) SimpleEquipmentLayer(RenderLayerParent<S, RM> renderer, EquipmentLayerRenderer equipmentRenderer, EquipmentClientInfo.LayerType layer, Function<S, ItemStack> itemGetter, EM adultModel, EM babyModel) -
Uses of ItemStack in net.minecraft.client.renderer.entity.player
Methods in net.minecraft.client.renderer.entity.player with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static HumanoidModel.ArmPosePlayerRenderer.getArmPose(Player player, ItemStack stack, InteractionHand hand) -
Uses of ItemStack in net.minecraft.client.renderer.entity.state
Fields in net.minecraft.client.renderer.entity.state declared as ItemStackModifier and TypeFieldDescriptionHorseRenderState.bodyArmorItemWolfRenderState.bodyArmorItemHappyGhastRenderState.bodyItemLlamaRenderState.bodyItemHumanoidRenderState.chestEquipmentHumanoidRenderState.feetEquipmentHumanoidRenderState.headEquipmentHumanoidRenderState.legsEquipmentCamelRenderState.saddleEquineRenderState.saddlePigRenderState.saddleStriderRenderState.saddleMethods in net.minecraft.client.renderer.entity.state with parameters of type ItemStackModifier and TypeMethodDescriptionvoidItemClusterRenderState.extractItemGroupRenderState(Entity entity, ItemStack stack, ItemModelResolver itemModelResolver) static intItemClusterRenderState.getSeedForItemStack(ItemStack stack) -
Uses of ItemStack in net.minecraft.client.renderer.item
Methods in net.minecraft.client.renderer.item with parameters of type ItemStackModifier and TypeMethodDescriptionvoidItemModelResolver.appendItemLayers(ItemStackRenderState renderState, ItemStack stack, ItemDisplayContext displayContext, Level level, LivingEntity entity, int seed) private static booleanBlockModelWrapper.hasSpecialAnimatedTexture(ItemStack stack) booleanItemModelResolver.shouldPlaySwapAnimation(ItemStack stack) voidBlockModelWrapper.update(ItemStackRenderState renderState, ItemStack stack, ItemModelResolver itemModelResolver, ItemDisplayContext displayContext, ClientLevel level, LivingEntity entity, int seed) voidBundleSelectedItemSpecialRenderer.update(ItemStackRenderState p_387618_, ItemStack p_386990_, ItemModelResolver p_386923_, ItemDisplayContext p_387805_, ClientLevel p_387156_, LivingEntity p_388838_, int p_386711_) voidCompositeModel.update(ItemStackRenderState renderState, ItemStack stack, ItemModelResolver itemModelResolver, ItemDisplayContext displayContext, ClientLevel level, LivingEntity entity, int seed) voidConditionalItemModel.update(ItemStackRenderState renderState, ItemStack stack, ItemModelResolver itemModelResolver, ItemDisplayContext displayContext, ClientLevel level, LivingEntity entity, int seed) voidEmptyModel.update(ItemStackRenderState p_390492_, ItemStack p_390354_, ItemModelResolver p_390507_, ItemDisplayContext p_390501_, ClientLevel p_390403_, LivingEntity p_390475_, int p_390493_) voidItemModel.update(ItemStackRenderState renderState, ItemStack stack, ItemModelResolver itemModelResolver, ItemDisplayContext displayContext, ClientLevel level, LivingEntity entity, int seed) voidMissingItemModel.update(ItemStackRenderState renderState, ItemStack stack, ItemModelResolver itemModelResolver, ItemDisplayContext displayContext, ClientLevel level, LivingEntity entity, int seed) voidRangeSelectItemModel.update(ItemStackRenderState renderState, ItemStack stack, ItemModelResolver itemModelResolver, ItemDisplayContext displayContext, ClientLevel level, LivingEntity entity, int seed) voidSelectItemModel.update(ItemStackRenderState renderState, ItemStack stack, ItemModelResolver itemModelResolver, ItemDisplayContext displayContext, ClientLevel level, LivingEntity entity, int seed) voidSpecialModelWrapper.update(ItemStackRenderState renderState, ItemStack stack, ItemModelResolver itemModelResolver, ItemDisplayContext displayContext, ClientLevel level, LivingEntity entity, int seed) voidItemModelResolver.updateForLiving(ItemStackRenderState renderState, ItemStack stack, ItemDisplayContext displayContext, LivingEntity entity) voidItemModelResolver.updateForNonLiving(ItemStackRenderState renderState, ItemStack stack, ItemDisplayContext displayContext, Entity entity) voidItemModelResolver.updateForTopItem(ItemStackRenderState renderState, ItemStack stack, ItemDisplayContext displayContext, Level level, LivingEntity entity, int seed) -
Uses of ItemStack in net.minecraft.client.renderer.item.properties.conditional
Methods in net.minecraft.client.renderer.item.properties.conditional with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanBroken.get(ItemStack p_386887_, ClientLevel p_388949_, LivingEntity p_386628_, int p_387040_, ItemDisplayContext p_389458_) booleanBundleHasSelectedItem.get(ItemStack p_387343_, ClientLevel p_386467_, LivingEntity p_387284_, int p_388377_, ItemDisplayContext p_389630_) booleanComponentMatches.get(ItemStack p_399920_, ClientLevel p_399844_, LivingEntity p_399573_, int p_400095_, ItemDisplayContext p_400208_) booleanCustomModelDataProperty.get(ItemStack stack, ClientLevel level, LivingEntity entity, int seed, ItemDisplayContext displayContext) booleanDamaged.get(ItemStack p_388323_, ClientLevel p_388659_, LivingEntity p_386950_, int p_387664_, ItemDisplayContext p_389573_) booleanExtendedView.get(ItemStack p_389501_, ClientLevel p_389409_, LivingEntity p_389583_, int p_389502_, ItemDisplayContext p_389679_) booleanFishingRodCast.get(ItemStack p_388347_, ClientLevel p_388341_, LivingEntity p_386847_, int p_386531_, ItemDisplayContext p_389619_) booleanHasComponent.get(ItemStack p_388222_, ClientLevel p_386715_, LivingEntity p_386871_, int p_387461_, ItemDisplayContext p_389562_) booleanIsCarried.get(ItemStack p_387247_, ClientLevel p_387933_, LivingEntity p_388427_, int p_386998_, ItemDisplayContext p_389534_) booleanIsKeybindDown.get(ItemStack p_389550_, ClientLevel p_389440_, LivingEntity p_389703_, int p_389439_, ItemDisplayContext p_389599_) booleanIsSelected.get(ItemStack p_387724_, ClientLevel p_387118_, LivingEntity p_387251_, int p_388905_, ItemDisplayContext p_389631_) booleanIsUsingItem.get(ItemStack p_386538_, ClientLevel p_386504_, LivingEntity p_388492_, int p_387916_, ItemDisplayContext p_389393_) booleanIsViewEntity.get(ItemStack p_390357_, ClientLevel p_390458_, LivingEntity p_390497_, int p_390451_, ItemDisplayContext p_390466_) booleanItemModelPropertyTest.get(ItemStack stack, ClientLevel level, LivingEntity entity, int seed, ItemDisplayContext displayContext) -
Uses of ItemStack in net.minecraft.client.renderer.item.properties.numeric
Methods in net.minecraft.client.renderer.item.properties.numeric with parameters of type ItemStackModifier and TypeMethodDescriptionprotected floatCompassAngleState.calculate(ItemStack stack, ClientLevel level, int seed, Entity entity) protected abstract floatNeedleDirectionHelper.calculate(ItemStack stack, ClientLevel level, int seed, Entity entity) protected floatTime.calculate(ItemStack stack, ClientLevel level, int seed, Entity entity) floatBundleFullness.get(ItemStack p_388015_, ClientLevel p_386753_, LivingEntity p_386760_, int p_386639_) floatCompassAngle.get(ItemStack stack, ClientLevel level, LivingEntity entity, int seed) (package private) abstract GlobalPosCompassAngleState.CompassTarget.get(ClientLevel level, ItemStack stack, Entity entity) floatCooldown.get(ItemStack p_387823_, ClientLevel p_386825_, LivingEntity p_387191_, int p_387909_) floatCount.get(ItemStack p_388019_, ClientLevel p_386708_, LivingEntity p_387940_, int p_388179_) floatCrossbowPull.get(ItemStack p_387470_, ClientLevel p_387947_, LivingEntity p_388564_, int p_388371_) floatCustomModelDataProperty.get(ItemStack p_386883_, ClientLevel p_387867_, LivingEntity p_388117_, int p_388040_) floatDamage.get(ItemStack p_386977_, ClientLevel p_386768_, LivingEntity p_387971_, int p_386955_) floatNeedleDirectionHelper.get(ItemStack stack, ClientLevel level, LivingEntity entity, int seed) floatRangeSelectItemModelProperty.get(ItemStack stack, ClientLevel level, LivingEntity entity, int seed) (package private) abstract floatTime.TimeSource.get(ClientLevel level, ItemStack stack, Entity entity, RandomSource random) floatUseCycle.get(ItemStack p_387347_, ClientLevel p_388372_, LivingEntity p_387048_, int p_388681_) floatUseDuration.get(ItemStack stack, ClientLevel level, LivingEntity entity, int seed) static intUseDuration.useDuration(ItemStack stack, LivingEntity entity) -
Uses of ItemStack in net.minecraft.client.renderer.item.properties.select
Methods in net.minecraft.client.renderer.item.properties.select with parameters of type ItemStackModifier and TypeMethodDescriptionCharge.get(ItemStack p_387321_, ClientLevel p_387482_, LivingEntity p_387912_, int p_387536_, ItemDisplayContext p_387489_) ComponentContents.get(ItemStack p_397602_, ClientLevel p_397414_, LivingEntity p_397883_, int p_397032_, ItemDisplayContext p_397548_) ContextDimension.get(ItemStack p_390388_, ClientLevel p_390477_, LivingEntity p_390423_, int p_390520_, ItemDisplayContext p_390452_) ContextEntityType.get(ItemStack p_390525_, ClientLevel p_390442_, LivingEntity p_390437_, int p_390427_, ItemDisplayContext p_390397_) CustomModelDataProperty.get(ItemStack p_388036_, ClientLevel p_387600_, LivingEntity p_388624_, int p_388055_, ItemDisplayContext p_387132_) DisplayContext.get(ItemStack p_388079_, ClientLevel p_388467_, LivingEntity p_388500_, int p_388313_, ItemDisplayContext p_387120_) ItemBlockState.get(ItemStack p_387708_, ClientLevel p_388625_, LivingEntity p_388880_, int p_388899_, ItemDisplayContext p_388088_) LocalTime.get(ItemStack stack, ClientLevel level, LivingEntity entity, int seed, ItemDisplayContext displayContext) MainHand.get(ItemStack p_387406_, ClientLevel p_387423_, LivingEntity p_388453_, int p_388098_, ItemDisplayContext p_386609_) SelectItemModelProperty.get(ItemStack stack, ClientLevel level, LivingEntity entity, int seed, ItemDisplayContext displayContext) TrimMaterialProperty.get(ItemStack p_387701_, ClientLevel p_388261_, LivingEntity p_387373_, int p_388817_, ItemDisplayContext p_386970_) -
Uses of ItemStack in net.minecraft.client.renderer.special
Methods in net.minecraft.client.renderer.special with parameters of type ItemStackModifier and TypeMethodDescriptionBannerSpecialRenderer.extractArgument(ItemStack stack) DecoratedPotSpecialRenderer.extractArgument(ItemStack stack) default VoidNoDataSpecialModelRenderer.extractArgument(ItemStack stack) PlayerHeadSpecialRenderer.extractArgument(ItemStack stack) ShieldSpecialRenderer.extractArgument(ItemStack stack) SpecialModelRenderer.extractArgument(ItemStack stack) -
Uses of ItemStack in net.minecraft.client.tutorial
Methods in net.minecraft.client.tutorial with parameters of type ItemStackModifier and TypeMethodDescriptionvoidCalled when the player pick up an ItemStackvoidCalled when the player pick up an ItemStackvoidCalled when the player pick up an ItemStackvoidCalled when the player pick up an ItemStackdefault voidCalled when the player pick up an ItemStackvoidTutorial.onInventoryAction(ItemStack carriedStack, ItemStack slottedStack, ClickAction action) -
Uses of ItemStack in net.minecraft.commands.arguments.item
Fields in net.minecraft.commands.arguments.item with type parameters of type ItemStackModifier and TypeFieldDescriptionItemPredicateArgument.ComponentWrapper.presenceCheckerThe field for thepresenceCheckerrecord component.ItemPredicateArgument.PredicateWrapper.typeThe field for thetyperecord component.ItemPredicateArgument.ComponentWrapper.valueCheckerThe field for thevalueCheckerrecord component.Methods in net.minecraft.commands.arguments.item that return ItemStackModifier and TypeMethodDescriptionItemInput.createItemStack(int count, boolean allowOversizedStacks) Methods in net.minecraft.commands.arguments.item that return types with arguments of type ItemStackModifier and TypeMethodDescriptionItemPredicateArgument.Context.createComponentTest(com.mojang.brigadier.ImmutableStringReader reader, ItemPredicateArgument.ComponentWrapper context) ItemPredicateArgument.Context.createComponentTest(com.mojang.brigadier.ImmutableStringReader reader, ItemPredicateArgument.ComponentWrapper context, com.mojang.serialization.Dynamic<?> data) ItemPredicateArgument.Context.createPredicateTest(com.mojang.brigadier.ImmutableStringReader reader, ItemPredicateArgument.PredicateWrapper predicateType, com.mojang.serialization.Dynamic<?> data) ItemPredicateArgument.ComponentWrapper.decode(com.mojang.brigadier.ImmutableStringReader reader, com.mojang.serialization.Dynamic<?> data) ItemPredicateArgument.PredicateWrapper.decode(com.mojang.brigadier.ImmutableStringReader reader, com.mojang.serialization.Dynamic<?> data) ItemPredicateArgument.Context.forElementType(com.mojang.brigadier.ImmutableStringReader reader, ResourceLocation elementType) ItemPredicateArgument.Context.forTagType(com.mojang.brigadier.ImmutableStringReader reader, ResourceLocation tagType) ItemPredicateArgument.ComponentWrapper.presenceChecker()Returns the value of thepresenceCheckerrecord component.ItemPredicateArgument.PredicateWrapper.type()Returns the value of thetyperecord component.ItemPredicateArgument.ComponentWrapper.valueChecker()Returns the value of thevalueCheckerrecord component.Method parameters in net.minecraft.commands.arguments.item with type arguments of type ItemStackModifier and TypeMethodDescriptionConstructor parameters in net.minecraft.commands.arguments.item with type arguments of type ItemStackModifierConstructorDescription(package private)ComponentWrapper(ResourceLocation id, Predicate<ItemStack> presenceChecker, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> valueChecker) Creates an instance of aComponentWrapperrecord class.(package private)ComponentWrapper(ResourceLocation id, Predicate<ItemStack> presenceChecker, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> valueChecker) Creates an instance of aComponentWrapperrecord class.(package private)PredicateWrapper(ResourceLocation id, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> type) Creates an instance of aPredicateWrapperrecord class. -
Uses of ItemStack in net.minecraft.core.cauldron
Methods in net.minecraft.core.cauldron with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static InteractionResultCauldronInteraction.bannerInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) private static InteractionResultCauldronInteraction.dyedItemIteration(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) static InteractionResultCauldronInteraction.emptyBucket(Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack, BlockState state, SoundEvent emptySound) static InteractionResultCauldronInteraction.fillBucket(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack emptyStack, ItemStack filledStack, Predicate<BlockState> statePredicate, SoundEvent fillSound) private static InteractionResultCauldronInteraction.fillLavaInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack) private static InteractionResultCauldronInteraction.fillPowderSnowInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack) private static InteractionResultCauldronInteraction.fillWaterInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack filledStack) CauldronInteraction.interact(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) private static InteractionResultCauldronInteraction.shulkerBoxInteraction(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ItemStack stack) -
Uses of ItemStack in net.minecraft.core.component.predicates
Fields in net.minecraft.core.component.predicates with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final Optional<CollectionPredicate<ItemStack, ItemPredicate>> BundlePredicate.itemsThe field for theitemsrecord component.private final Optional<CollectionPredicate<ItemStack, ItemPredicate>> ContainerPredicate.itemsThe field for theitemsrecord component.Methods in net.minecraft.core.component.predicates that return types with arguments of type ItemStackModifier and TypeMethodDescriptionBundlePredicate.items()Returns the value of theitemsrecord component.ContainerPredicate.items()Returns the value of theitemsrecord component.Constructor parameters in net.minecraft.core.component.predicates with type arguments of type ItemStackModifierConstructorDescriptionCreates an instance of aBundlePredicaterecord class.Creates an instance of aContainerPredicaterecord class. -
Uses of ItemStack in net.minecraft.core.dispenser
Methods in net.minecraft.core.dispenser that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackDefaultDispenseItemBehavior.consumeWithRemainder(BlockSource blockSource, ItemStack stack, ItemStack remainder) final ItemStackDefaultDispenseItemBehavior.dispense(BlockSource blockSource, ItemStack item) DispenseItemBehavior.dispense(BlockSource blockSource, ItemStack item) BoatDispenseItemBehavior.execute(BlockSource blockSource, ItemStack item) protected ItemStackDefaultDispenseItemBehavior.execute(BlockSource blockSource, ItemStack item) protected ItemStackEquipmentDispenseItemBehavior.execute(BlockSource blockSource, ItemStack item) MinecartDispenseItemBehavior.execute(BlockSource blockSource, ItemStack item) ProjectileDispenseBehavior.execute(BlockSource blockSource, ItemStack item) protected ItemStackShearsDispenseItemBehavior.execute(BlockSource blockSource, ItemStack item) protected ItemStackShulkerBoxDispenseBehavior.execute(BlockSource p_302426_, ItemStack p_123588_) Methods in net.minecraft.core.dispenser with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidDefaultDispenseItemBehavior.addToInventoryOrDispense(BlockSource blockSource, ItemStack remainder) protected ItemStackDefaultDispenseItemBehavior.consumeWithRemainder(BlockSource blockSource, ItemStack stack, ItemStack remainder) final ItemStackDefaultDispenseItemBehavior.dispense(BlockSource blockSource, ItemStack item) DispenseItemBehavior.dispense(BlockSource blockSource, ItemStack item) static booleanEquipmentDispenseItemBehavior.dispenseEquipment(BlockSource blockSource, ItemStack item) BoatDispenseItemBehavior.execute(BlockSource blockSource, ItemStack item) protected ItemStackDefaultDispenseItemBehavior.execute(BlockSource blockSource, ItemStack item) protected ItemStackEquipmentDispenseItemBehavior.execute(BlockSource blockSource, ItemStack item) MinecartDispenseItemBehavior.execute(BlockSource blockSource, ItemStack item) ProjectileDispenseBehavior.execute(BlockSource blockSource, ItemStack item) protected ItemStackShearsDispenseItemBehavior.execute(BlockSource blockSource, ItemStack item) protected ItemStackShulkerBoxDispenseBehavior.execute(BlockSource p_302426_, ItemStack p_123588_) static voidDefaultDispenseItemBehavior.spawnItem(Level level, ItemStack stack, int speed, Direction facing, Position position) private static booleanShearsDispenseItemBehavior.tryShearEntity(ServerLevel level, BlockPos pos, ItemStack stack) -
Uses of ItemStack in net.minecraft.core.particles
Fields in net.minecraft.core.particles declared as ItemStackFields in net.minecraft.core.particles with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<ItemStack> ItemParticleOption.ITEM_CODECMethods in net.minecraft.core.particles that return ItemStackConstructors in net.minecraft.core.particles with parameters of type ItemStackModifierConstructorDescriptionItemParticleOption(ParticleType<ItemParticleOption> type, ItemStack itemStack) -
Uses of ItemStack in net.minecraft.data.recipes
Fields in net.minecraft.data.recipes declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackShapelessRecipeBuilder.resultprivate final ItemStackShapedRecipeBuilder.resultStackprivate final ItemStackSimpleCookingRecipeBuilder.stackResultMethods in net.minecraft.data.recipes with parameters of type ItemStackModifier and TypeMethodDescriptionstatic SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.blasting(Ingredient p_252115_, RecipeCategory p_249421_, ItemStack result, float p_250383_, int p_250476_) static SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.campfireCooking(Ingredient p_249393_, RecipeCategory p_249372_, ItemStack result, float p_252321_, int p_251916_) static <T extends AbstractCookingRecipe>
SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.generic(Ingredient p_250999_, RecipeCategory p_248815_, ItemStack result, float p_251320_, int p_248693_, RecipeSerializer<T> p_250921_, AbstractCookingRecipe.Factory<T> p_312657_) static ShapedRecipeBuilderShapedRecipeBuilder.shaped(HolderGetter<Item> p_365019_, RecipeCategory p_251325_, ItemStack result) protected ShapelessRecipeBuilderRecipeProvider.shapeless(RecipeCategory category, ItemStack result) static ShapelessRecipeBuilderShapelessRecipeBuilder.shapeless(HolderGetter<Item> items, RecipeCategory category, ItemStack result) static SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.smelting(Ingredient p_249223_, RecipeCategory p_251240_, ItemStack result, float p_249452_, int p_250496_) static SimpleCookingRecipeBuilderSimpleCookingRecipeBuilder.smoking(Ingredient p_248930_, RecipeCategory p_250319_, ItemStack result, float p_252329_, int p_250482_) Constructors in net.minecraft.data.recipes with parameters of type ItemStackModifierConstructorDescriptionprivateShapedRecipeBuilder(HolderGetter<Item> p_365072_, RecipeCategory p_249996_, ItemStack result) privateShapelessRecipeBuilder(HolderGetter<Item> items, RecipeCategory category, ItemStack result) privateSimpleCookingRecipeBuilder(RecipeCategory p_251345_, CookingBookCategory p_251607_, ItemStack result, Ingredient p_250362_, float p_251204_, int p_250189_, AbstractCookingRecipe.Factory<?> p_311960_) -
Uses of ItemStack in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.network
Methods in net.minecraft.network with parameters of type ItemStackModifier and TypeMethodDescriptionstatic HashedStackHashedStack.create(ItemStack stack, HashedPatchMap.HashGenerator hashGenerator) booleanHashedStack.ActualItem.matches(ItemStack p_412763_, HashedPatchMap.HashGenerator p_412137_) booleanHashedStack.matches(ItemStack stack, HashedPatchMap.HashGenerator hashGenerator) -
Uses of ItemStack in net.minecraft.network.chat
Fields in net.minecraft.network.chat declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackHoverEvent.ShowItem.itemThe field for theitemrecord component.Methods in net.minecraft.network.chat that return ItemStackModifier and TypeMethodDescriptionHoverEvent.ShowItem.item()Returns the value of theitemrecord component.Constructors in net.minecraft.network.chat with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackClientboundContainerSetContentPacket.carriedItemThe field for thecarriedItemrecord component.private final ItemStackClientboundSetCursorItemPacket.contentsThe field for thecontentsrecord component.private final ItemStackClientboundSetPlayerInventoryPacket.contentsThe field for thecontentsrecord component.private final ItemStackClientboundContainerSetSlotPacket.itemStackprivate final ItemStackServerboundSetCreativeModeSlotPacket.itemStackThe field for theitemStackrecord component.Fields in net.minecraft.network.protocol.game with type parameters of type ItemStackModifier and TypeFieldDescriptionClientboundContainerSetContentPacket.itemsThe field for theitemsrecord component.private final List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> ClientboundSetEquipmentPacket.slotsMethods in net.minecraft.network.protocol.game that return ItemStackModifier and TypeMethodDescriptionClientboundContainerSetContentPacket.carriedItem()Returns the value of thecarriedItemrecord component.ClientboundSetCursorItemPacket.contents()Returns the value of thecontentsrecord component.ClientboundSetPlayerInventoryPacket.contents()Returns the value of thecontentsrecord component.ClientboundContainerSetSlotPacket.getItem()ServerboundSetCreativeModeSlotPacket.itemStack()Returns the value of theitemStackrecord component.Methods in net.minecraft.network.protocol.game that return types with arguments of type ItemStackModifier and TypeMethodDescriptionList<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> ClientboundSetEquipmentPacket.getSlots()ClientboundContainerSetContentPacket.items()Returns the value of theitemsrecord component.Constructors in net.minecraft.network.protocol.game with parameters of type ItemStackModifierConstructorDescriptionClientboundContainerSetContentPacket(int containerId, int stateId, List<ItemStack> items, ItemStack carriedItem) Creates an instance of aClientboundContainerSetContentPacketrecord class.ClientboundContainerSetSlotPacket(int containerId, int stateId, int slot, ItemStack itemStack) ClientboundSetCursorItemPacket(ItemStack contents) Creates an instance of aClientboundSetCursorItemPacketrecord class.ClientboundSetPlayerInventoryPacket(int slot, ItemStack contents) Creates an instance of aClientboundSetPlayerInventoryPacketrecord class.ServerboundSetCreativeModeSlotPacket(int p_134553_, ItemStack p_134554_) ServerboundSetCreativeModeSlotPacket(short slotNum, ItemStack itemStack) Creates an instance of aServerboundSetCreativeModeSlotPacketrecord class.Constructor parameters in net.minecraft.network.protocol.game with type arguments of type ItemStackModifierConstructorDescriptionClientboundContainerSetContentPacket(int containerId, int stateId, List<ItemStack> items, ItemStack carriedItem) Creates an instance of aClientboundContainerSetContentPacketrecord class.ClientboundSetEquipmentPacket(int entity, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> slots) -
Uses of ItemStack in net.minecraft.network.syncher
Fields in net.minecraft.network.syncher with type parameters of type ItemStackModifier and TypeFieldDescriptionstatic final EntityDataSerializer<ItemStack> EntityDataSerializers.ITEM_STACK -
Uses of ItemStack in net.minecraft.server.commands
Methods in net.minecraft.server.commands that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackItemCommands.applyModifier(CommandSourceStack source, Holder<LootItemFunction> modifier, ItemStack stack) private static ItemStackItemCommands.getBlockItem(CommandSourceStack source, BlockPos pos, int slot) private static ItemStackItemCommands.getEntityItem(Entity entity, int slot) private static ItemStackLootCommand.getSourceHandItem(CommandSourceStack source, EquipmentSlot slot) Methods in net.minecraft.server.commands with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static ItemStackItemCommands.applyModifier(CommandSourceStack source, Holder<LootItemFunction> modifier, ItemStack stack) private static booleanLootCommand.canMergeItems(ItemStack first, ItemStack second) private static booleanLootCommand.distributeToContainer(Container container, ItemStack item) private static intLootCommand.dropBlockLoot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, BlockPos pos, ItemStack tool, LootCommand.DropConsumer dropConsumer) private static intLootCommand.dropFishingLoot(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Holder<LootTable> lootTable, BlockPos pos, ItemStack tool, LootCommand.DropConsumer dropConsumer) private static intItemCommands.setBlockItem(CommandSourceStack source, BlockPos pos, int slot, ItemStack item) private static intItemCommands.setEntityItem(CommandSourceStack source, Collection<? extends Entity> targets, int slot, ItemStack item) Method parameters in net.minecraft.server.commands with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidintLootCommand.DropConsumer.accept(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, List<ItemStack> items, LootCommand.Callback callback) private static intLootCommand.blockDistribute(CommandSourceStack source, BlockPos pos, List<ItemStack> items, LootCommand.Callback callback) private static intLootCommand.blockReplace(CommandSourceStack source, BlockPos pos, int slot, int numSlots, List<ItemStack> items, LootCommand.Callback callback) private static voidLootCommand.callback(CommandSourceStack source, List<ItemStack> items) private static voidLootCommand.callback(CommandSourceStack source, List<ItemStack> items, ResourceKey<LootTable> lootTable) private static intClearInventoryCommands.clearInventory(CommandSourceStack source, Collection<ServerPlayer> targetPlayers, Predicate<ItemStack> itemPredicate, int maxCount) private static intClearInventoryCommands.clearUnlimited(CommandSourceStack source, Collection<ServerPlayer> targets, Predicate<ItemStack> filter) private static intExecuteCommand.countItems(Iterable<? extends Entity> targets, SlotRange slotRange, Predicate<ItemStack> filter) private static intExecuteCommand.countItems(CommandSourceStack source, BlockPos pos, SlotRange slotRange, Predicate<ItemStack> filter) private static intLootCommand.dropInWorld(CommandSourceStack source, Vec3 pos, List<ItemStack> items, LootCommand.Callback callback) private static intLootCommand.entityReplace(Collection<? extends Entity> targets, int startSlot, int numSlots, List<ItemStack> items, LootCommand.Callback callback) private static intLootCommand.playerGive(Collection<ServerPlayer> targets, List<ItemStack> items, LootCommand.Callback callback) private static voidLootCommand.setSlots(Entity target, List<ItemStack> items, int startSlot, int numSlots, List<ItemStack> setItems) -
Uses of ItemStack in net.minecraft.server.dialog.body
Fields in net.minecraft.server.dialog.body declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackItemBody.itemThe field for theitemrecord component.Methods in net.minecraft.server.dialog.body that return ItemStackModifier and TypeMethodDescriptionItemBody.item()Returns the value of theitemrecord component.Constructors in net.minecraft.server.dialog.body with parameters of type ItemStackModifierConstructorDescriptionItemBody(ItemStack item, Optional<PlainMessage> description, boolean showDecorations, boolean showTooltip, int width, int height) Creates an instance of aItemBodyrecord class. -
Uses of ItemStack in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type ItemStackModifier and TypeMethodDescriptionvoidServerPlayer.handleExtraItemsCreatedOnUse(ItemStack stack) voidServerPlayer.onEnchantmentPerformed(ItemStack enchantedItem, int cost) voidServerPlayer.openItemGui(ItemStack stack, InteractionHand hand) private voidServerPlayer.synchronizeSpecialItemUpdates(ItemStack stack) protected voidServerPlayer.updateUsingItem(ItemStack usingItem) DemoMode.useItem(ServerPlayer player, Level level, ItemStack stack, InteractionHand hand) ServerPlayerGameMode.useItem(ServerPlayer player, Level level, ItemStack stack, InteractionHand hand) DemoMode.useItemOn(ServerPlayer player, Level level, ItemStack stack, InteractionHand hand, BlockHitResult hitResult) ServerPlayerGameMode.useItemOn(ServerPlayer player, Level level, ItemStack stack, InteractionHand hand, BlockHitResult hitResult) Method parameters in net.minecraft.server.level with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidServerPlayer.triggerRecipeCrafted(RecipeHolder<?> recipe, List<ItemStack> items) -
Uses of ItemStack in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static voidServerGamePacketListenerImpl.addBlockDataToItem(BlockState state, ServerLevel level, BlockPos pos, ItemStack stack) private voidServerGamePacketListenerImpl.tryPickItem(ItemStack stack) private static booleanServerGamePacketListenerImpl.wasBlockPlacementAttempt(ServerPlayer player, ItemStack stack) -
Uses of ItemStack in net.minecraft.world
Fields in net.minecraft.world declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackInteractionResult.ItemContext.heldItemTransformedToThe field for theheldItemTransformedTorecord component.private final ItemStackItemStackWithSlot.stackThe field for thestackrecord component.Fields in net.minecraft.world with type parameters of type ItemStackMethods in net.minecraft.world that return ItemStackModifier and TypeMethodDescriptionCompoundContainer.getItem(int index) Returns the stack in the given slot.Container.getItem(int slot) Returns the stack in the given slot.SimpleContainer.getItem(int index) Returns the stack in the given slot.InteractionResult.ItemContext.heldItemTransformedTo()Returns the value of theheldItemTransformedTorecord component.InteractionResult.Success.heldItemTransformedTo()Container.ContainerIterator.next()CompoundContainer.removeItem(int index, int count) Removes up to a specified number of items from an inventory slot and returns them in a new stack.Container.removeItem(int slot, int amount) Removes up to a specified number of items from an inventory slot and returns them in a new stack.static ItemStackContainerHelper.removeItem(List<ItemStack> stacks, int index, int amount) SimpleContainer.removeItem(int index, int count) Removes up to a specified number of items from an inventory slot and returns them in a new stack.CompoundContainer.removeItemNoUpdate(int index) Removes a stack from the given slot and returns it.Container.removeItemNoUpdate(int slot) Removes a stack from the given slot and returns it.SimpleContainer.removeItemNoUpdate(int index) Removes a stack from the given slot and returns it.SimpleContainer.removeItemType(Item item, int amount) ItemStackWithSlot.stack()Returns the value of thestackrecord component.static ItemStackMethods in net.minecraft.world that return types with arguments of type ItemStackModifier and TypeMethodDescriptionSimpleContainer.getItems()Container.iterator()SimpleContainer.removeAllItems()Methods in net.minecraft.world with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanSimpleContainer.canAddItem(ItemStack stack) booleanCompoundContainer.canPlaceItem(int index, ItemStack stack) Returnstrueif automation is allowed to insert the given stack (ignoring stack size) into the given slot.default booleanContainer.canPlaceItem(int slot, ItemStack stack) Returnstrueif automation is allowed to insert the given stack (ignoring stack size) into the given slot.booleanWorldlyContainer.canPlaceItemThroughFace(int index, ItemStack itemStack, Direction direction) Returnstrueif automation can insert the given item in the given slot from the given side.default booleanContainer.canTakeItem(Container target, int slot, ItemStack stack) Returnstrueif the given stack can be extracted into the target inventory.booleanWorldlyContainer.canTakeItemThroughFace(int index, ItemStack stack, Direction direction) Returnstrueif automation can extract the given item in the given slot from the given side.static intContainerHelper.clearOrCountMatchingItems(ItemStack stack, Predicate<ItemStack> itemPredicate, int maxItems, boolean simulate) static voidContainers.dropItemStack(Level level, double x, double y, double z, ItemStack stack) default intContainer.getMaxStackSize(ItemStack stack) InteractionResult.Success.heldItemTransformedTo(ItemStack stack) private voidSimpleContainer.moveItemsBetweenStacks(ItemStack stack, ItemStack other) private voidSimpleContainer.moveItemToEmptySlots(ItemStack stack) private voidSimpleContainer.moveItemToOccupiedSlotsWithSameType(ItemStack stack) voidSets the given item stack to the specified slot in the inventory (can be crafting or armor sections).voidSets the given item stack to the specified slot in the inventory (can be crafting or armor sections).voidSets the given item stack to the specified slot in the inventory (can be crafting or armor sections).booleanLockCode.unlocksWith(ItemStack stack) Method parameters in net.minecraft.world with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic intContainerHelper.clearOrCountMatchingItems(Container container, Predicate<ItemStack> itemPredicate, int maxItems, boolean simulate) Clears items from the inventory matching a predicate.static intContainerHelper.clearOrCountMatchingItems(ItemStack stack, Predicate<ItemStack> itemPredicate, int maxItems, boolean simulate) static voidContainers.dropContents(Level level, BlockPos pos, NonNullList<ItemStack> stackList) voidSimpleContainer.fromItemList(ValueInput.TypedInputList<ItemStack> input) default booleanContainer.hasAnyMatching(Predicate<ItemStack> predicate) static voidContainerHelper.loadAllItems(ValueInput input, NonNullList<ItemStack> items) static ItemStackContainerHelper.removeItem(List<ItemStack> stacks, int index, int amount) static voidContainerHelper.saveAllItems(ValueOutput output, NonNullList<ItemStack> items) static voidContainerHelper.saveAllItems(ValueOutput output, NonNullList<ItemStack> items, boolean allowEmpty) voidSimpleContainer.storeAsItemList(ValueOutput.TypedOutputList<ItemStack> output) static ItemStackConstructors in net.minecraft.world with parameters of type ItemStackModifierConstructorDescriptionItemContext(boolean wasItemInteraction, ItemStack heldItemTransformedTo) Creates an instance of aItemContextrecord class.ItemStackWithSlot(int slot, ItemStack stack) Creates an instance of aItemStackWithSlotrecord class.SimpleContainer(ItemStack... items) -
Uses of ItemStack in net.minecraft.world.damagesource
Methods in net.minecraft.world.damagesource that return ItemStack -
Uses of ItemStack in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as ItemStackModifier and TypeFieldDescriptionprotected ItemStackLivingEntity.autoSpinAttackItemStackprivate final ItemStackDisplay.ItemDisplay.ItemRenderState.itemStackThe field for theitemStackrecord component.protected ItemStackLivingEntity.useItemFields in net.minecraft.world.entity with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final EntityDataAccessor<ItemStack> OminousItemSpawner.DATA_ITEMprivate static final EntityDataAccessor<ItemStack> Display.ItemDisplay.DATA_ITEM_STACK_IDprivate final EnumMap<EquipmentSlot, ItemStack> EntityEquipment.itemsprivate final Map<EquipmentSlot, ItemStack> LivingEntity.lastEquipmentItemsMethods in net.minecraft.world.entity that return ItemStackModifier and TypeMethodDescriptionMob.equipItemIfPossible(ServerLevel level, ItemStack stack) EntityEquipment.get(EquipmentSlot slot) SlotAccess.get()Mob.getBodyArmorItem()OminousItemSpawner.getItem()LivingEntity.getItemBlockingWith()EquipmentUser.getItemBySlot(EquipmentSlot slot) LivingEntity.getItemBySlot(EquipmentSlot slot) LivingEntity.getItemHeldByArm(HumanoidArm arm) LivingEntity.getItemInHand(InteractionHand hand) private ItemStackDisplay.ItemDisplay.getItemStack()LivingEntity.getMainHandItem()LivingEntity.getOffhandItem()Entity.getPickResult()Mob.getPickResult()LivingEntity.getProjectile(ItemStack weaponStack) LivingEntity.getUseItem()Entity.getWeaponItem()LivingEntity.getWeaponItem()Display.ItemDisplay.ItemRenderState.itemStack()Returns the value of theitemStackrecord component.EntityEquipment.set(EquipmentSlot slot, ItemStack stack) Methods in net.minecraft.world.entity that return types with arguments of type ItemStackModifier and TypeMethodDescriptionprivate Map<EquipmentSlot, ItemStack> LivingEntity.collectEquipmentChanges()Methods in net.minecraft.world.entity with parameters of type ItemStackModifier and TypeMethodDescriptionEntityType.appendComponentsConfig(Consumer<T> consumer, ItemStack stack) EntityType.appendCustomEntityStackConfig(Consumer<T> consumer, Level level, ItemStack stack, LivingEntity owner) EntityType.appendDefaultStackConfig(Consumer<T> consumer, Level level, ItemStack stack, LivingEntity owner) final voidEntity.applyComponentsFromItemStack(ItemStack stack) private booleanEntity.attemptToShearEquipment(Player player, InteractionHand hand, ItemStack stack, Mob mob) private voidRenders broken item particles using the given ItemStackfinal booleanLivingEntity.canEquipWithDispenser(ItemStack stack) static booleanLivingEntity.canGlideUsing(ItemStack stack, EquipmentSlot slot) booleanMob.canHoldItem(ItemStack stack) protected booleanMob.canReplaceCurrentItem(ItemStack newItem, ItemStack currentItem, EquipmentSlot slot) booleanMob.canReplaceEqualItem(ItemStack candidate, ItemStack existing) private booleanMob.compareArmor(ItemStack newItem, ItemStack currentItem, EquipmentSlot slot) private booleanMob.compareWeapons(ItemStack newItem, ItemStack currentItem, EquipmentSlot slot) static OminousItemSpawnerEntityType.createDefaultStackConfig(Level level, ItemStack stack, LivingEntity owner) private ItemEntityLivingEntity.createItemStackToDrop(ItemStack stack, boolean randomizeMotion, boolean includeThrower) protected voidLivingEntity.dropFromShearingLootTable(ServerLevel level, ResourceKey<LootTable> lootTable, ItemStack shears, BiConsumer<ServerLevel, ItemStack> dropConsumer) Mob.equipItemIfPossible(ServerLevel level, ItemStack stack) booleanLivingEntity.equipmentHasChanged(ItemStack oldItem, ItemStack newItem) private doubleMob.getApproximateAttributeWith(ItemStack item, Holder<Attribute> attribute, EquipmentSlot slot) final EquipmentSlotLivingEntity.getEquipmentSlotForItem(ItemStack stack) protected Holder<SoundEvent> LivingEntity.getEquipSound(EquipmentSlot slot, ItemStack stack, Equippable equippable) LivingEntity.getProjectile(ItemStack weaponStack) voidLivingEntity.handleExtraItemsCreatedOnUse(ItemStack stack) final booleanLivingEntity.isEquippableInSlot(ItemStack stack, EquipmentSlot slot) voidLivingEntity.onEquipItem(EquipmentSlot slot, ItemStack oldItem, ItemStack newItem) default EquipmentSlotEquipmentUser.resolveSlot(ItemStack stack, List<EquipmentSlot> excludedSlots) EntityEquipment.set(EquipmentSlot slot, ItemStack stack) booleanvoidMob.setBodyArmorItem(ItemStack stack) private voidvoidLivingEntity.setItemInHand(InteractionHand hand, ItemStack stack) voidEquipmentUser.setItemSlot(EquipmentSlot slot, ItemStack stack) voidLivingEntity.setItemSlot(EquipmentSlot slot, ItemStack stack) protected voidMob.setItemSlotAndDropWhenKilled(EquipmentSlot slot, ItemStack stack) private voidDisplay.ItemDisplay.setItemStack(ItemStack itemStack) voidShearable.shear(ServerLevel level, SoundSource soundSource, ItemStack shears) EntityType.spawn(ServerLevel level, ItemStack spawnedFrom, LivingEntity owner, BlockPos pos, EntitySpawnReason reason, boolean shouldOffsetY, boolean shouldOffsetYMore) Entity.spawnAtLocation(ServerLevel level, ItemStack stack) Entity.spawnAtLocation(ServerLevel level, ItemStack stack, float yOffset) Entity.spawnAtLocation(ServerLevel level, ItemStack stack, Vec3 offset) voidLivingEntity.spawnItemParticles(ItemStack stack, int amount) private EntityOminousItemSpawner.spawnProjectile(ServerLevel level, ProjectileItem projectileItem, ItemStack stack) private voidLivingEntity.stopLocationBasedEffects(ItemStack stack, EquipmentSlot slot, AttributeMap attributeMap) protected voidLivingEntity.updateUsingItem(ItemStack usingItem) booleanMob.wantsToPickUp(ServerLevel level, ItemStack stack) Method parameters in net.minecraft.world.entity with type arguments of type ItemStackModifier and TypeMethodDescriptionbooleanLivingEntity.dropFromGiftLootTable(ServerLevel level, ResourceKey<LootTable> lootTable, BiConsumer<ServerLevel, ItemStack> dropConsumer) protected booleanLivingEntity.dropFromLootTable(ServerLevel level, ResourceKey<LootTable> lootTable, Function<LootParams.Builder, LootParams> paramsBuilder, BiConsumer<ServerLevel, ItemStack> dropConsumer) protected voidLivingEntity.dropFromShearingLootTable(ServerLevel level, ResourceKey<LootTable> lootTable, ItemStack shears, BiConsumer<ServerLevel, ItemStack> dropConsumer) Mob.dropPreservedEquipment(ServerLevel level, Predicate<ItemStack> filter) static SlotAccessSlotAccess.forContainer(Container inventory, int slot, Predicate<ItemStack> stackFilter) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity entity, EquipmentSlot slot, Predicate<ItemStack> stackFilter) private voidLivingEntity.handleEquipmentChanges(Map<EquipmentSlot, ItemStack> equipments) private voidLivingEntity.handleHandSwap(Map<EquipmentSlot, ItemStack> hands) booleanstatic SlotAccessstatic SlotAccessConstructors in net.minecraft.world.entity with parameters of type ItemStackModifierConstructorDescriptionItemRenderState(ItemStack itemStack, ItemDisplayContext itemTransform) Creates an instance of aItemRenderStaterecord class.Constructor parameters in net.minecraft.world.entity with type arguments of type ItemStack -
Uses of ItemStack in net.minecraft.world.entity.ai.behavior
Fields in net.minecraft.world.entity.ai.behavior declared as ItemStackFields in net.minecraft.world.entity.ai.behavior with type parameters of type ItemStackMethods in net.minecraft.world.entity.ai.behavior that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackCelebrateVillagersSurvivedRaid.getFirework(DyeColor color, int flightTime) Methods in net.minecraft.world.entity.ai.behavior with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static voidShowTradesToPlayer.displayAsHeldItem(Villager villager, ItemStack item) static voidBehaviorUtils.throwItem(LivingEntity livingEntity, ItemStack stack, Vec3 offset) static voidBehaviorUtils.throwItem(LivingEntity entity, ItemStack stack, Vec3 offset, Vec3 speedMultiplier, float yOffset) static voidGoAndGiveItemsToTarget.throwItem(LivingEntity entity, ItemStack stack, Vec3 throwPos) private voidGoAndGiveItemsToTarget.triggerDropItemOnBlock(PositionTracker positionTracker, ItemStack stack, ServerPlayer player) -
Uses of ItemStack in net.minecraft.world.entity.ai.goal
Fields in net.minecraft.world.entity.ai.goal declared as ItemStackFields in net.minecraft.world.entity.ai.goal with type parameters of type ItemStackConstructors in net.minecraft.world.entity.ai.goal with parameters of type ItemStackModifierConstructorDescriptionUseItemGoal(T mob, ItemStack item, SoundEvent finishUsingSound, Predicate<? super T> canUseSelector) Constructor parameters in net.minecraft.world.entity.ai.goal with type arguments of type ItemStackModifierConstructorDescriptionForNonPathfinders(Mob p_415602_, double p_416457_, Predicate<ItemStack> p_415698_, boolean p_416268_, double p_416020_) (package private)TemptGoal(Mob mob, double speedModifier, Predicate<ItemStack> items, boolean canScare, double stopDistance) TemptGoal(PathfinderMob mob, double speedModifier, Predicate<ItemStack> items, boolean canScare) TemptGoal(PathfinderMob mob, double speedModifier, Predicate<ItemStack> items, boolean canScare, double stopDistance) -
Uses of ItemStack in net.minecraft.world.entity.ai.sensing
Fields in net.minecraft.world.entity.ai.sensing with type parameters of type ItemStackMethods in net.minecraft.world.entity.ai.sensing with parameters of type ItemStackConstructor parameters in net.minecraft.world.entity.ai.sensing with type arguments of type ItemStack -
Uses of ItemStack in net.minecraft.world.entity.animal
Fields in net.minecraft.world.entity.animal with type parameters of type ItemStackMethods in net.minecraft.world.entity.animal that return ItemStackModifier and TypeMethodDescriptionBucketable.getBucketItemStack()Cod.getBucketItemStack()Pufferfish.getBucketItemStack()Salmon.getBucketItemStack()TropicalFish.getBucketItemStack()Methods in net.minecraft.world.entity.animal with parameters of type ItemStackModifier and TypeMethodDescriptionprivate booleanbooleanFox.canHoldItem(ItemStack stack) private voidprivate voidFox.dropItemStack(ItemStack stack) private Optional<SuspiciousStewEffects> MushroomCow.getEffectsFromItemStack(ItemStack stack) protected Holder<SoundEvent> Pig.getEquipSound(EquipmentSlot slot, ItemStack stack, Equippable equippable) booleanabstract booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)static voidBucketable.saveDefaultDataToBucketTag(Mob mob, ItemStack bucket) Deprecated.voidAbstractFish.saveToBucketTag(ItemStack stack) voidBucketable.saveToBucketTag(ItemStack stack) voidSalmon.saveToBucketTag(ItemStack stack) voidTropicalFish.saveToBucketTag(ItemStack stack) voidMushroomCow.shear(ServerLevel level, SoundSource soundSource, ItemStack shears) voidSnowGolem.shear(ServerLevel level, SoundSource soundSource, ItemStack shears) private voidFox.spitOutItem(ItemStack stack) protected voidAnimal.usePlayerItem(Player player, InteractionHand hand, ItemStack stack) Constructor parameters in net.minecraft.world.entity.animal with type arguments of type ItemStackModifierConstructorDescriptionCatTemptGoal(Cat cat, double speedModifier, Predicate<ItemStack> items, boolean canScare) OcelotTemptGoal(Ocelot ocelot, double speedModifier, Predicate<ItemStack> items, boolean canScare) -
Uses of ItemStack in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay with parameters of type ItemStackModifier and TypeMethodDescriptionprivate booleanAllay.allayConsidersItemEqual(ItemStack first, ItemStack second) booleanAllay.equipmentHasChanged(ItemStack oldItem, ItemStack newItem) private booleanAllay.hasNonMatchingPotion(ItemStack first, ItemStack second) private voidAllay.removeInteractionItem(Player player, ItemStack stack) booleanAllay.wantsToPickUp(ServerLevel level, ItemStack stack) -
Uses of ItemStack in net.minecraft.world.entity.animal.armadillo
Methods in net.minecraft.world.entity.animal.armadillo that return types with arguments of type ItemStackMethods in net.minecraft.world.entity.animal.armadillo with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.world.entity.animal.axolotl
Methods in net.minecraft.world.entity.animal.axolotl that return ItemStackMethods in net.minecraft.world.entity.animal.axolotl that return types with arguments of type ItemStackMethods in net.minecraft.world.entity.animal.axolotl with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)voidAxolotl.saveToBucketTag(ItemStack stack) protected voidAxolotl.usePlayerItem(Player player, InteractionHand hand, ItemStack stack) -
Uses of ItemStack in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel that return types with arguments of type ItemStackMethods in net.minecraft.world.entity.animal.camel with parameters of type ItemStackModifier and TypeMethodDescriptionprotected Holder<SoundEvent> Camel.getEquipSound(EquipmentSlot slot, ItemStack stack, Equippable equippable) protected booleanCamel.handleEating(Player player, ItemStack stack) booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type) -
Uses of ItemStack in net.minecraft.world.entity.animal.frog
Methods in net.minecraft.world.entity.animal.frog that return ItemStackMethods in net.minecraft.world.entity.animal.frog that return types with arguments of type ItemStackMethods in net.minecraft.world.entity.animal.frog with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidbooleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)private booleanvoidTadpole.saveToBucketTag(ItemStack stack) private voidTadpole.usePlayerItem(Player player, ItemStack stack) -
Uses of ItemStack in net.minecraft.world.entity.animal.goat
Methods in net.minecraft.world.entity.animal.goat that return ItemStackMethods in net.minecraft.world.entity.animal.goat that return types with arguments of type ItemStackMethods in net.minecraft.world.entity.animal.goat with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type ItemStackModifier and TypeMethodDescriptionvoidAbstractHorse.equipBodyArmor(Player player, ItemStack stack) private voidAbstractChestedHorse.equipChest(Player player, ItemStack chestStack) protected Holder<SoundEvent> AbstractHorse.getEquipSound(EquipmentSlot slot, ItemStack stack, Equippable equippable) protected booleanAbstractHorse.handleEating(Player player, ItemStack stack) protected booleanLlama.handleEating(Player player, ItemStack stack) booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type) -
Uses of ItemStack in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)voidSheep.shear(ServerLevel level, SoundSource soundSource, ItemStack shears) -
Uses of ItemStack in net.minecraft.world.entity.animal.sniffer
Methods in net.minecraft.world.entity.animal.sniffer that return types with arguments of type ItemStackMethods in net.minecraft.world.entity.animal.sniffer with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.world.entity.animal.wolf
Methods in net.minecraft.world.entity.animal.wolf with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.world.entity.boss
Methods in net.minecraft.world.entity.boss that return ItemStack -
Uses of ItemStack in net.minecraft.world.entity.boss.enderdragon
Methods in net.minecraft.world.entity.boss.enderdragon that return ItemStack -
Uses of ItemStack in net.minecraft.world.entity.decoration
Fields in net.minecraft.world.entity.decoration with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final EntityDataAccessor<ItemStack> ItemFrame.DATA_ITEMMethods in net.minecraft.world.entity.decoration that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackGlowItemFrame.getFrameItemStack()protected ItemStackItemFrame.getFrameItemStack()ItemFrame.getItem()ArmorStand.getPickResult()ItemFrame.getPickResult()LeashFenceKnotEntity.getPickResult()Painting.getPickResult()Methods in net.minecraft.world.entity.decoration with parameters of type ItemStackModifier and TypeMethodDescriptionItemFrame.getFramedMapId(ItemStack stack) private voidItemFrame.onItemChanged(ItemStack item) private voidItemFrame.removeFramedMap(ItemStack stack) Removes the dot representing this frame's position from the map when the item frame is broken.voidvoidHangingEntity.spawnAtLocation(ServerLevel level, ItemStack stack, float yOffset) private booleanArmorStand.swapItem(Player player, EquipmentSlot slot, ItemStack stack, InteractionHand hand) -
Uses of ItemStack in net.minecraft.world.entity.item
Fields in net.minecraft.world.entity.item with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final EntityDataAccessor<ItemStack> ItemEntity.DATA_ITEMMethods in net.minecraft.world.entity.item that return ItemStackMethods in net.minecraft.world.entity.item with parameters of type ItemStackModifier and TypeMethodDescriptionstatic booleanItemEntity.areMergable(ItemStack destinationStack, ItemStack originStack) private static voidItemEntity.merge(ItemEntity destinationEntity, ItemStack destinationStack, ItemEntity originEntity, ItemStack originStack) private static voidItemEntity.merge(ItemEntity destinationEntity, ItemStack destinationStack, ItemStack originStack) static ItemStackvoidSets the item that this entity represents.Constructors in net.minecraft.world.entity.item with parameters of type ItemStackModifierConstructorDescriptionItemEntity(Level level, double posX, double posY, double posZ, ItemStack itemStack) ItemEntity(Level level, double posX, double posY, double posZ, ItemStack itemStack, double deltaX, double deltaY, double deltaZ) -
Uses of ItemStack in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster that return ItemStackModifier and TypeMethodDescriptionMonster.getProjectile(ItemStack shootable) protected ItemStackDrowned.getSkull()protected ItemStackHusk.getSkull()protected ItemStackZombie.getSkull()protected ItemStackZombieVillager.getSkull()protected ItemStackZombifiedPiglin.getSkull()Methods in net.minecraft.world.entity.monster with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanWitherSkeleton.canHoldItem(ItemStack stack) booleanZombie.canHoldItem(ItemStack stack) protected booleanDrowned.canReplaceCurrentItem(ItemStack newItem, ItemStack currentItem, EquipmentSlot slot) protected AbstractArrowprotected AbstractArrowprotected AbstractArrowprotected AbstractArrowprotected Holder<SoundEvent> Strider.getEquipSound(EquipmentSlot slot, ItemStack stack, Equippable equippable) Monster.getProjectile(ItemStack shootable) booleanChecks if the parameter is an item which this animal can be fed to breed it (wheat, carrots or seeds depending on the animal type)voidAbstractSkeleton.onEquipItem(EquipmentSlot slot, ItemStack oldItem, ItemStack newItem) voidBogged.shear(ServerLevel level, SoundSource soundSource, ItemStack shears) private voidBogged.spawnShearedMushrooms(ServerLevel level, ItemStack stack) private booleanbooleanZombie.wantsToPickUp(ServerLevel level, ItemStack stack) booleanZombifiedPiglin.wantsToPickUp(ServerLevel level, ItemStack stack) -
Uses of ItemStack in net.minecraft.world.entity.monster.hoglin
Methods in net.minecraft.world.entity.monster.hoglin with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackPiglin.addToInventory(ItemStack stack) private ItemStackPiglin.createSpawnWeapon()private static ItemStackPiglinAi.removeOneItemFromItemEntity(ItemEntity itemEntity) Methods in net.minecraft.world.entity.monster.piglin that return types with arguments of type ItemStackMethods in net.minecraft.world.entity.monster.piglin with parameters of type ItemStackModifier and TypeMethodDescriptionprotected ItemStackPiglin.addToInventory(ItemStack stack) protected booleanPiglin.canAddToInventory(ItemStack stack) protected static booleanprotected booleanPiglin.canReplaceCurrentItem(ItemStack candidate) protected booleanPiglin.canReplaceCurrentItem(ItemStack newItem, ItemStack currentItem, EquipmentSlot slot) protected voidPiglin.holdInMainHand(ItemStack stack) private static voidPiglinAi.holdInOffhand(ServerLevel level, Piglin piglin, ItemStack stack) protected voidPiglin.holdInOffHand(ItemStack stack) private static booleanPiglinAi.isBarterCurrency(ItemStack stack) private static booleanprotected static booleanPiglinAi.isLovedItem(ItemStack item) private voidPiglin.maybeWearArmor(EquipmentSlot slot, ItemStack stack, RandomSource random) private static voidPiglinAi.putInInventory(Piglin piglin, ItemStack stack) protected static booleanPiglinAi.wantsToPickup(Piglin piglin, ItemStack stack) booleanPiglin.wantsToPickUp(ServerLevel level, ItemStack stack) booleanPiglinBrute.wantsToPickUp(ServerLevel level, ItemStack stack) Method parameters in net.minecraft.world.entity.monster.piglin with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate static voidPiglinAi.throwItems(Piglin pilgin, List<ItemStack> stacks) private static voidPiglinAi.throwItemsTowardPlayer(Piglin piglin, Player player, List<ItemStack> stacks) private static voidPiglinAi.throwItemsTowardPos(Piglin piglin, List<ItemStack> stacks, Vec3 pos) private static voidPiglinAi.throwItemsTowardRandomPos(Piglin piglin, List<ItemStack> stacks) -
Uses of ItemStack in net.minecraft.world.entity.npc
Fields in net.minecraft.world.entity.npc declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackVillagerTrades.EnchantedItemForEmeralds.itemStackprivate final ItemStackVillagerTrades.ItemsForEmeralds.itemStackprivate final ItemStackVillagerTrades.ItemsAndEmeraldsToItems.toItemprivate final ItemStackVillagerTrades.TippedArrowForItemsAndEmeralds.toItemAn ItemStack that can have potion effects written to it.Methods in net.minecraft.world.entity.npc that return ItemStackMethods in net.minecraft.world.entity.npc with parameters of type ItemStackModifier and TypeMethodDescriptionWanderingTrader.getConsumeSound(ItemStack stack) voidAbstractVillager.notifyTradeUpdated(ItemStack stack) Notifies the merchant of a possible merchant recipe being fulfilled or not.voidClientSideMerchant.notifyTradeUpdated(ItemStack stack) Notifies the merchant of a possible merchant recipe being fulfilled or not.booleanVillager.wantsToPickUp(ServerLevel level, ItemStack stack) Constructors in net.minecraft.world.entity.npc with parameters of type ItemStackModifierConstructorDescriptionItemsAndEmeraldsToItems(ItemCost fromItem, int emeraldCost, ItemStack toItem, int maxUses, int villagerXp, float priceMultiplier, Optional<ResourceKey<EnchantmentProvider>> enchantmentProvider) ItemsAndEmeraldsToItems(ItemLike fromItem, int fromItemCount, int emeraldCost, ItemStack toItem, int toItemCount, int maxUses, int villagerXp, float priceMultiplier) ItemsForEmeralds(ItemStack itemStack, int emeraldCost, int numberOfItems, int maxUses, int villagerXp) ItemsForEmeralds(ItemStack itemStack, int emeraldCost, int numberOfItems, int maxUses, int villagerXp, float priceMultiplier) ItemsForEmeralds(ItemStack itemStack, int emeraldCost, int numberOfItems, int maxUses, int villagerXp, float priceMultiplier, Optional<ResourceKey<EnchantmentProvider>> enchantmentProvider) -
Uses of ItemStack in net.minecraft.world.entity.player
Fields in net.minecraft.world.entity.player declared as ItemStackFields in net.minecraft.world.entity.player with type parameters of type ItemStackMethods in net.minecraft.world.entity.player that return ItemStackModifier and TypeMethodDescriptionPlayerEquipment.get(EquipmentSlot slot) Inventory.getItem(int index) Returns the stack in the given slot.Player.getProjectile(ItemStack shootable) Inventory.getSelectedItem()Player.getWeaponItem()Inventory.removeFromSelected(boolean removeStack) Inventory.removeItem(int index, int count) Removes up to a specified number of items from an inventory slot and returns them in a new stack.Inventory.removeItemNoUpdate(int index) Removes a stack from the given slot and returns it.PlayerEquipment.set(EquipmentSlot slot, ItemStack stack) Inventory.setSelectedItem(ItemStack stack) Methods in net.minecraft.world.entity.player that return types with arguments of type ItemStackMethods in net.minecraft.world.entity.player with parameters of type ItemStackModifier and TypeMethodDescriptionvoidStackedItemContents.accountSimpleStack(ItemStack stack) voidStackedItemContents.accountStack(ItemStack stack) voidStackedItemContents.accountStack(ItemStack stack, int maxStackSize) booleanAdds the stack to the specified slot in the player's inventory.booleanAdds the stack to the first empty slot in the player's inventory.voidInventory.addAndPickItem(ItemStack stack) booleanprivate intInventory.addResource(int slot, ItemStack stack) private intInventory.addResource(ItemStack stack) This function stores as many items of an ItemStack as possible in a matching slot and returns the quantity of left over items.booleanReturnstrueif the specifiedItemStackexists in the inventory.Drops an item into the world.intInventory.findSlotMatchingCraftingIngredient(Holder<Item> item, ItemStack stack) intInventory.findSlotMatchingItem(ItemStack stack) Finds the stack or an equivalent one in the main inventoryPlayer.getProjectile(ItemStack shootable) intInventory.getSlotWithRemainingSpace(ItemStack stack) Stores a stack in the player's inventory.voidPlayer.handleCreativeModeItemDrop(ItemStack stack) private booleanInventory.hasRemainingSpaceForItem(ItemStack destination, ItemStack origin) static booleanInventory.isUsableForCrafting(ItemStack stack) booleanPlayer.mayUseItemAt(BlockPos pos, Direction facing, ItemStack stack) Returns whether this player can modify the block at a certain location with the given stack.voidPlayer.onEnchantmentPerformed(ItemStack enchantedItem, int levelCost) voidPlayer.openItemGui(ItemStack stack, InteractionHand hand) voidInventory.placeItemBackInInventory(ItemStack stack) voidInventory.placeItemBackInInventory(ItemStack stack, boolean sendPacket) voidInventory.removeItem(ItemStack stack) PlayerEquipment.set(EquipmentSlot slot, ItemStack stack) voidSets the given item stack to the specified slot in the inventory (can be crafting or armor sections).Inventory.setSelectedItem(ItemStack stack) voidPlayer.startAutoSpinAttack(int ticks, float damage, ItemStack itemStack) voidPlayer.updateTutorialInventoryAction(ItemStack carried, ItemStack clicked, ClickAction action) Method parameters in net.minecraft.world.entity.player with type arguments of type ItemStackModifier and TypeMethodDescriptionintInventory.clearOrCountMatchingItems(Predicate<ItemStack> stackPredicate, int maxCount, Container inventory) booleanvoidPlayer.triggerRecipeCrafted(RecipeHolder<?> recipe, List<ItemStack> items) -
Uses of ItemStack in net.minecraft.world.entity.projectile
Fields in net.minecraft.world.entity.projectile declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackAbstractArrow.firedFromWeaponprivate ItemStackAbstractArrow.pickupItemStackFields in net.minecraft.world.entity.projectile with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final EntityDataAccessor<ItemStack> FireworkRocketEntity.DATA_ID_FIREWORKS_ITEMprivate static final EntityDataAccessor<ItemStack> EyeOfEnder.DATA_ITEM_STACKprivate static final EntityDataAccessor<ItemStack> Fireball.DATA_ITEM_STACKprivate static final EntityDataAccessor<ItemStack> ThrowableItemProjectile.DATA_ITEM_STACKMethods in net.minecraft.world.entity.projectile that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackEyeOfEnder.getDefaultItem()private ItemStackFireball.getDefaultItem()private static ItemStackFireworkRocketEntity.getDefaultItem()protected abstract ItemStackAbstractArrow.getDefaultPickupItem()protected ItemStackArrow.getDefaultPickupItem()protected ItemStackSpectralArrow.getDefaultPickupItem()protected ItemStackThrownTrident.getDefaultPickupItem()EyeOfEnder.getItem()Fireball.getItem()FireworkRocketEntity.getItem()ItemSupplier.getItem()ThrowableItemProjectile.getItem()protected ItemStackAbstractArrow.getPickupItem()AbstractArrow.getPickupItemStackOrigin()AbstractArrow.getWeaponItem()ThrownTrident.getWeaponItem()Methods in net.minecraft.world.entity.projectile with parameters of type ItemStackModifier and TypeMethodDescriptionvoidProjectile.applyOnProjectileSpawned(ServerLevel level, ItemStack spawnedFrom) Projectile.ProjectileFactory.create(ServerLevel level, LivingEntity owner, ItemStack spawnedFrom) private byteThrownTrident.getLoyaltyFromItem(ItemStack stack) static AbstractArrowProjectileUtil.getMobArrow(LivingEntity shooter, ItemStack arrow, float velocity, ItemStack weapon) protected voidAbstractArrow.hitBlockEnchantmentEffects(ServerLevel level, BlockHitResult hitResult, ItemStack stack) protected voidThrownTrident.hitBlockEnchantmentEffects(ServerLevel level, BlockHitResult hitResult, ItemStack stack) protected abstract voidAbstractThrownPotion.onHitAsPotion(ServerLevel level, ItemStack stack, HitResult hitResult) voidThrownLingeringPotion.onHitAsPotion(ServerLevel level, ItemStack stack, HitResult hitResult) voidThrownSplashPotion.onHitAsPotion(ServerLevel level, ItemStack stack, HitResult hitResult) intvoidvoidvoidprotected voidAbstractArrow.setPickupItemStack(ItemStack pickupItemStack) protected voidArrow.setPickupItemStack(ItemStack pickupItemStack) static <T extends Projectile>
TProjectile.spawnProjectile(T projectile, ServerLevel level, ItemStack spawnedFrom) static <T extends Projectile>
TProjectile.spawnProjectile(T projectile, ServerLevel level, ItemStack stack, Consumer<T> adapter) static <T extends Projectile>
TProjectile.spawnProjectileFromRotation(Projectile.ProjectileFactory<T> factory, ServerLevel level, ItemStack spawnedFrom, LivingEntity owner, float z, float velocity, float inaccuracy) static <T extends Projectile>
TProjectile.spawnProjectileUsingShoot(Projectile.ProjectileFactory<T> factory, ServerLevel level, ItemStack spawnedFrom, LivingEntity owner, double x, double y, double z, float velocity, float inaccuracy) static <T extends Projectile>
TProjectile.spawnProjectileUsingShoot(T projectile, ServerLevel level, ItemStack spawnedFrom, double x, double y, double z, float velocity, float inaccuracy) Constructors in net.minecraft.world.entity.projectile with parameters of type ItemStackModifierConstructorDescriptionprotectedAbstractArrow(EntityType<? extends AbstractArrow> entityType, double x, double y, double z, Level level, ItemStack pickupItemStack, ItemStack firedFromWeapon) protectedAbstractArrow(EntityType<? extends AbstractArrow> entityType, LivingEntity owner, Level level, ItemStack pickupItemStack, ItemStack firedFromWeapon) AbstractThrownPotion(EntityType<? extends AbstractThrownPotion> entityType, Level level, double x, double y, double z, ItemStack item) AbstractThrownPotion(EntityType<? extends AbstractThrownPotion> entityType, Level level, LivingEntity owner, ItemStack item) Arrow(Level level, double x, double y, double z, ItemStack pickupItemStack, ItemStack firedFromWeapon) Arrow(Level level, LivingEntity owner, ItemStack pickupItemStack, ItemStack firedFromWeapon) FireworkRocketEntity(Level level, double x, double y, double z, ItemStack stack) FireworkRocketEntity(Level level, Entity shooter, double x, double y, double z, ItemStack stack) FireworkRocketEntity(Level level, ItemStack stack, double x, double y, double z, boolean shotAtAngle) FireworkRocketEntity(Level level, ItemStack stack, Entity shooter, double x, double y, double z, boolean shotAtAngle) FireworkRocketEntity(Level level, ItemStack stack, LivingEntity shooter) Snowball(Level level, LivingEntity owner, ItemStack item) SpectralArrow(Level level, double x, double y, double z, ItemStack pickupItemStack, ItemStack firedFromWeapon) SpectralArrow(Level level, LivingEntity owner, ItemStack pickupItemStack, ItemStack firedFromWeapon) ThrowableItemProjectile(EntityType<? extends ThrowableItemProjectile> entityType, double x, double y, double z, Level level, ItemStack item) ThrowableItemProjectile(EntityType<? extends ThrowableItemProjectile> entityType, LivingEntity owner, Level level, ItemStack item) ThrownEgg(Level level, LivingEntity owner, ItemStack item) ThrownEnderpearl(Level level, LivingEntity owner, ItemStack item) ThrownExperienceBottle(Level level, double x, double y, double z, ItemStack item) ThrownExperienceBottle(Level level, LivingEntity owner, ItemStack item) ThrownLingeringPotion(Level level, double x, double y, double z, ItemStack item) ThrownLingeringPotion(Level level, LivingEntity owner, ItemStack item) ThrownSplashPotion(Level level, double x, double y, double z, ItemStack stack) ThrownSplashPotion(Level level, LivingEntity owner, ItemStack item) ThrownTrident(Level level, double x, double y, double z, ItemStack pickupItemStack) ThrownTrident(Level level, LivingEntity shooter, ItemStack pickupItemStack) -
Uses of ItemStack in net.minecraft.world.entity.projectile.windcharge
Methods in net.minecraft.world.entity.projectile.windcharge that return ItemStack -
Uses of ItemStack in net.minecraft.world.entity.raid
Methods in net.minecraft.world.entity.raid that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackRaid.getOminousBannerInstance(HolderGetter<BannerPattern> patternRegistry) -
Uses of ItemStack in net.minecraft.world.entity.vehicle
Fields in net.minecraft.world.entity.vehicle with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate NonNullList<ItemStack> AbstractChestBoat.itemStacksprivate NonNullList<ItemStack> AbstractMinecartContainer.itemStacksMethods in net.minecraft.world.entity.vehicle that return ItemStackModifier and TypeMethodDescriptiondefault ItemStackContainerEntity.getChestVehicleItem(int slot) AbstractChestBoat.getItem(int slot) Returns the stack in the given slot.AbstractMinecartContainer.getItem(int index) Returns the stack in the given slot.final ItemStackAbstractBoat.getPickResult()abstract ItemStackAbstractMinecart.getPickResult()Minecart.getPickResult()MinecartChest.getPickResult()MinecartCommandBlock.getPickResult()MinecartFurnace.getPickResult()MinecartHopper.getPickResult()MinecartSpawner.getPickResult()MinecartTNT.getPickResult()default ItemStackContainerEntity.removeChestVehicleItem(int slot, int amount) default ItemStackContainerEntity.removeChestVehicleItemNoUpdate(int slot) AbstractChestBoat.removeItem(int slot, int amount) Removes up to a specified number of items from an inventory slot and returns them in a new stack.AbstractMinecartContainer.removeItem(int index, int count) Removes up to a specified number of items from an inventory slot and returns them in a new stack.AbstractChestBoat.removeItemNoUpdate(int slot) Removes a stack from the given slot and returns it.AbstractMinecartContainer.removeItemNoUpdate(int index) Removes a stack from the given slot and returns it.Methods in net.minecraft.world.entity.vehicle that return types with arguments of type ItemStackModifier and TypeMethodDescriptionAbstractChestBoat.getItemStacks()AbstractMinecartContainer.getItemStacks()ContainerEntity.getItemStacks()Methods in net.minecraft.world.entity.vehicle with parameters of type ItemStackModifier and TypeMethodDescriptionstatic <T extends AbstractMinecart>
TAbstractMinecart.createMinecart(Level level, double x, double y, double z, EntityType<T> type, EntitySpawnReason spawnReason, ItemStack spawnedFrom, Player player) default voidContainerEntity.setChestVehicleItem(int slot, ItemStack stack) voidSets the given item stack to the specified slot in the inventory (can be crafting or armor sections).voidSets the given item stack to the specified slot in the inventory (can be crafting or armor sections). -
Uses of ItemStack in net.minecraft.world.food
Methods in net.minecraft.world.food with parameters of type ItemStackModifier and TypeMethodDescriptionvoidFoodProperties.onConsume(Level level, LivingEntity entity, ItemStack stack, Consumable consumable) -
Uses of ItemStack in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackAbstractContainerMenu.carriedprivate ItemStackStonecutterMenu.inputThe ItemStack set in the input slot by the player.private ItemStackRemoteSlot.Synchronized.remoteStackFields in net.minecraft.world.inventory with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final NonNullList<ItemStack> TransientCraftingContainer.itemsprivate final NonNullList<ItemStack> MerchantContainer.itemStacksprivate final NonNullList<ItemStack> ResultContainer.itemStacksprivate final NonNullList<ItemStack> AbstractContainerMenu.lastSlotsItemCombinerMenuSlotDefinition.SlotDefinition.mayPlaceThe field for themayPlacerecord component.Methods in net.minecraft.world.inventory that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackGrindstoneMenu.computeResult(ItemStack inputItem, ItemStack additionalItem) LecternMenu.getBook()AbstractContainerMenu.getCarried()MerchantContainer.getItem(int index) Returns the stack in the given slot.ResultContainer.getItem(int index) Returns the stack in the given slot.Slot.getItem()TransientCraftingContainer.getItem(int slot) Returns the stack in the given slot.private ItemStackGrindstoneMenu.mergeItems(ItemStack inputItem, ItemStack additionalItem) abstract ItemStackAbstractContainerMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.AbstractFurnaceMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.BeaconMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.BrewingStandMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.CartographyTableMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.ChestMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.CrafterMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.CraftingMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.DispenserMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.EnchantmentMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.GrindstoneMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.HopperMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.HorseInventoryMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.InventoryMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.ItemCombinerMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.LecternMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.LoomMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.MerchantMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.ShulkerBoxMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.StonecutterMenu.quickMoveStack(Player player, int index) Handle when the stack in slotindexis shift-clicked.FurnaceResultSlot.remove(int amount) Decrease the size of the stack in slot (first int arg) by the amount of the second int arg.MerchantResultSlot.remove(int amount) Decrease the size of the stack in slot (first int arg) by the amount of the second int arg.NonInteractiveResultSlot.remove(int p_307370_) ResultSlot.remove(int amount) Decrease the size of the stack in slot (first int arg) by the amount of the second int arg.Slot.remove(int amount) Decrease the size of the stack in slot (first int arg) by the amount of the second int arg.MerchantContainer.removeItem(int index, int count) Removes up to a specified number of items from an inventory slot and returns them in a new stack.ResultContainer.removeItem(int index, int count) Removes up to a specified number of items from an inventory slot and returns them in a new stack.TransientCraftingContainer.removeItem(int slot, int amount) Removes up to a specified number of items from an inventory slot and returns them in a new stack.MerchantContainer.removeItemNoUpdate(int index) Removes a stack from the given slot and returns it.ResultContainer.removeItemNoUpdate(int index) Removes a stack from the given slot and returns it.TransientCraftingContainer.removeItemNoUpdate(int slot) Removes a stack from the given slot and returns it.private ItemStackGrindstoneMenu.removeNonCursesFrom(ItemStack item) NonInteractiveResultSlot.safeInsert(ItemStack p_307685_) NonInteractiveResultSlot.safeInsert(ItemStack p_307656_, int p_307278_) Slot.safeInsert(ItemStack stack) Slot.safeInsert(ItemStack stack, int increment) Methods in net.minecraft.world.inventory that return types with arguments of type ItemStackModifier and TypeMethodDescriptionprivate static NonNullList<ItemStack> ResultSlot.copyAllInputItems(CraftingInput input) AbstractContainerMenu.getItems()CraftingContainer.getItems()TransientCraftingContainer.getItems()SmithingMenu.getRelevantItems()private NonNullList<ItemStack> ResultSlot.getRemainingItems(CraftingInput input, Level level) ItemCombinerMenuSlotDefinition.SlotDefinition.mayPlace()Returns the value of themayPlacerecord component.Methods in net.minecraft.world.inventory with parameters of type ItemStackModifier and TypeMethodDescriptionstatic booleanAbstractContainerMenu.canItemQuickReplace(Slot slot, ItemStack stack, boolean stackSizeMatters) Checks if it's possible to add the given itemstack to the given slot.protected booleanItemCombinerMenu.canMoveIntoInputSlots(ItemStack stack) booleanSmithingMenu.canMoveIntoInputSlots(ItemStack stack) protected booleanbooleanAbstractContainerMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanCartographyTableMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanCraftingMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanInventoryMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanMerchantMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanSmithingMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.booleanStonecutterMenu.canTakeItemForPickAll(ItemStack stack, Slot slot) Called to determine if the current slot is valid for the stack merging (double-click) code.protected voidFurnaceResultSlot.checkTakeAchievements(ItemStack stack) protected voidMerchantResultSlot.checkTakeAchievements(ItemStack stack) protected voidResultSlot.checkTakeAchievements(ItemStack stack) protected voidSlot.checkTakeAchievements(ItemStack stack) private ItemStackGrindstoneMenu.computeResult(ItemStack inputItem, ItemStack additionalItem) private static voidAbstractContainerMenu.dropOrPlaceInInventory(Player player, ItemStack stack) voidvoidprivate List<EnchantmentInstance> EnchantmentMenu.getEnchantmentList(RegistryAccess registryAccess, ItemStack stack, int slot, int cost) intFurnaceFuelSlot.getMaxStackSize(ItemStack stack) intSlot.getMaxStackSize(ItemStack stack) static intAbstractContainerMenu.getQuickCraftPlaceCount(Set<Slot> slots, int type, ItemStack stack) private List<Holder<BannerPattern>> LoomMenu.getSelectablePatterns(ItemStack stack) voidAbstractContainerMenu.initializeContents(int stateId, List<ItemStack> items, ItemStack carried) static booleanprotected booleanbooleanbooleanbooleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.booleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.booleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.booleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.booleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.booleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.booleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.booleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.booleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.booleanbooleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.booleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.booleanCheck if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.static booleanBrewingStandMenu.FuelSlot.mayPlaceItem(ItemStack itemStack) Returnstrueif the givenItemStackis usable as fuel in the brewing stand.static booleanBrewingStandMenu.PotionSlot.mayPlaceItem(PotionBrewing potionBrewing, ItemStack p_39134_) static booleanBrewingStandMenu.PotionSlot.mayPlaceItem(ItemStack stack) Deprecated.private voidGrindstoneMenu.mergeEnchantsFrom(ItemStack inputItem, ItemStack additionalItem) private ItemStackGrindstoneMenu.mergeItems(ItemStack inputItem, ItemStack additionalItem) protected booleanAbstractContainerMenu.moveItemStackTo(ItemStack stack, int startIndex, int endIndex, boolean reverseDirection) Merges provided ItemStack with the first available one in the container/player inventor between minIndex (included) and maxIndex (excluded).protected voidFurnaceResultSlot.onQuickCraft(ItemStack stack, int amount) Typically increases an internal count, then callsonCrafting(item).protected voidMerchantResultSlot.onQuickCraft(ItemStack stack, int amount) Typically increases an internal count, then callsonCrafting(item).voidNonInteractiveResultSlot.onQuickCraft(ItemStack p_307668_, ItemStack p_307399_) protected voidResultSlot.onQuickCraft(ItemStack stack, int amount) Typically increases an internal count, then callsonCrafting(item).protected voidSlot.onQuickCraft(ItemStack stack, int amount) Typically increases an internal count, then callsonCrafting(item).voidSlot.onQuickCraft(ItemStack oldStack, ItemStack newStack) if par2 has more items than par1, onCrafting(item,countIncrease) is calledprotected voidvoidvoidprotected abstract voidvoidvoidvoidvoidprotected voidprivate ItemStackGrindstoneMenu.removeNonCursesFrom(ItemStack item) NonInteractiveResultSlot.safeInsert(ItemStack p_307685_) NonInteractiveResultSlot.safeInsert(ItemStack p_307656_, int p_307278_) Slot.safeInsert(ItemStack stack) Slot.safeInsert(ItemStack stack, int increment) voidContainerSynchronizer.sendCarriedChange(AbstractContainerMenu containerMenu, ItemStack stack) voidContainerSynchronizer.sendInitialData(AbstractContainerMenu container, List<ItemStack> items, ItemStack carried, int[] remoteDataSlots) voidContainerSynchronizer.sendSlotChange(AbstractContainerMenu container, int slot, ItemStack itemStack) voidHelper method to put a stack in the slot.voidArmorSlot.setByPlayer(ItemStack newStack, ItemStack oldStack) voidSlot.setByPlayer(ItemStack stack) voidSlot.setByPlayer(ItemStack newStack, ItemStack oldStack) voidAbstractContainerMenu.setCarried(ItemStack stack) voidPuts an ItemStack in a slot.voidSets the given item stack to the specified slot in the inventory (can be crafting or armor sections).voidSets the given item stack to the specified slot in the inventory (can be crafting or armor sections).voidSets the given item stack to the specified slot in the inventory (can be crafting or armor sections).voidAbstractContainerMenu.setRemoteSlot(int slot, ItemStack stack) private voidStonecutterMenu.setupRecipeList(ItemStack stack) private voidCartographyTableMenu.setupResultSlot(ItemStack map, ItemStack firstSlotStack, ItemStack resultOutput) voidContainerListener.slotChanged(AbstractContainerMenu containerToSend, int dataSlotIndex, ItemStack stack) Sends the contents of an inventory slot to the client-side Container.voidCrafterMenu.slotChanged(AbstractContainerMenu containerToSend, int dataSlotIndex, ItemStack stack) Sends the contents of an inventory slot to the client-side Container.private voidAbstractContainerMenu.synchronizeSlotToRemote(int slotIndex, ItemStack stack, Supplier<ItemStack> supplier) private voidAbstractContainerMenu.triggerSlotListeners(int slotIndex, ItemStack stack, Supplier<ItemStack> supplier) private booleanAbstractContainerMenu.tryItemClickBehaviourOverride(Player player, ClickAction action, Slot slot, ItemStack clickedItem, ItemStack carriedItem) Method parameters in net.minecraft.world.inventory with type arguments of type ItemStackModifier and TypeMethodDescriptiondefault voidRecipeCraftingHolder.awardUsedRecipes(Player player, List<ItemStack> items) voidAbstractContainerMenu.initializeContents(int stateId, List<ItemStack> items, ItemStack carried) voidContainerSynchronizer.sendInitialData(AbstractContainerMenu container, List<ItemStack> items, ItemStack carried, int[] remoteDataSlots) private voidAbstractContainerMenu.synchronizeSlotToRemote(int slotIndex, ItemStack stack, Supplier<ItemStack> supplier) private voidAbstractContainerMenu.triggerSlotListeners(int slotIndex, ItemStack stack, Supplier<ItemStack> supplier) ItemCombinerMenuSlotDefinition.Builder.withSlot(int slotIndex, int x, int y, Predicate<ItemStack> mayPlace) Constructor parameters in net.minecraft.world.inventory with type arguments of type ItemStackModifierConstructorDescriptionSlotDefinition(int slotIndex, int x, int y, Predicate<ItemStack> mayPlace) Creates an instance of aSlotDefinitionrecord class.privateTransientCraftingContainer(AbstractContainerMenu menu, int width, int height, NonNullList<ItemStack> items) -
Uses of ItemStack in net.minecraft.world.item
Fields in net.minecraft.world.item declared as ItemStackModifier and TypeFieldDescriptionstatic final ItemStackItemStack.EMPTYprivate ItemStackCreativeModeTab.iconItemStackFields in net.minecraft.world.item with type parameters of type ItemStackModifier and TypeFieldDescriptionProjectileWeaponItem.ARROW_ONLYProjectileWeaponItem.ARROW_OR_FIREWORKstatic final com.mojang.serialization.Codec<ItemStack> ItemStack.CODECprivate Collection<ItemStack> CreativeModeTab.displayItemsCreativeModeTab.displayItemsSearchTabCreativeModeTab.Builder.iconGeneratorCreativeModeTab.iconGeneratorstatic final com.mojang.serialization.MapCodec<ItemStack> ItemStack.MAP_CODECstatic final com.mojang.serialization.Codec<ItemStack> ItemStack.OPTIONAL_CODECstatic final StreamCodec<RegistryFriendlyByteBuf, List<ItemStack>> ItemStack.OPTIONAL_LIST_STREAM_CODECstatic final StreamCodec<RegistryFriendlyByteBuf, ItemStack> ItemStack.OPTIONAL_STREAM_CODECstatic final StreamCodec<RegistryFriendlyByteBuf, ItemStack> ItemStack.OPTIONAL_UNTRUSTED_STREAM_CODECCreativeModeTab.ItemDisplayBuilder.searchTabContentsstatic final com.mojang.serialization.Codec<ItemStack> ItemStack.SIMPLE_ITEM_CODECstatic final com.mojang.serialization.Codec<ItemStack> ItemStack.SINGLE_ITEM_CODECstatic final StreamCodec<RegistryFriendlyByteBuf, ItemStack> ItemStack.STREAM_CODECstatic final com.mojang.serialization.Codec<ItemStack> ItemStack.STRICT_CODECstatic final com.mojang.serialization.Codec<ItemStack> ItemStack.STRICT_SINGLE_ITEM_CODECfinal Collection<ItemStack> CreativeModeTab.ItemDisplayBuilder.tabContentsstatic final it.unimi.dsi.fastutil.Hash.Strategy<? super ItemStack> ItemStackLinkedSet.TYPE_AND_TAGMethods in net.minecraft.world.item that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackItemStack.applyAfterUseComponentSideEffects(LivingEntity entity, ItemStack stack) ItemStack.consumeAndReturn(int amount, LivingEntity entity) ItemStack.copy()ItemStack.copyAndClear()ItemStack.copyWithCount(int count) static ItemStackInstrumentItem.create(Item item, Holder<Instrument> instrument) static ItemStackMapItem.create(ServerLevel level, int x, int z, byte scale, boolean trackingPosition, boolean unlimitedTracking) static ItemStackItemUtils.createFilledResult(ItemStack emptyStack, Player player, ItemStack filledStack) static ItemStackItemUtils.createFilledResult(ItemStack emptyStack, Player player, ItemStack filledStack, boolean preventDuplicates) Item.finishUsingItem(ItemStack stack, Level level, LivingEntity livingEntity) Called when the player finishes using this Item (E.g. finishes eating.).ItemStack.finishUsingItem(Level level, LivingEntity livingEntity) Called when the item in use count reach 0, e.g. item food eaten.SpyglassItem.finishUsingItem(ItemStack stack, Level level, LivingEntity livingEntity) Called when the player finishes using this Item (E.g. finishes eating.).final ItemStackItem.getCraftingRemainder()Deprecated.ProjectileWeaponItem.getDefaultCreativeAmmo(Player player, ItemStack projectileWeaponItem) Neo: Controls what ammo ItemStack that Creative Mode should return if the player has no valid ammo in inventory.Item.getDefaultInstance()PotionItem.getDefaultInstance()TippedArrowItem.getDefaultInstance()static ItemStackBucketItem.getEmptySuccessItem(ItemStack bucketStack, Player player) static ItemStackProjectileWeaponItem.getHeldProjectile(LivingEntity shooter, Predicate<ItemStack> isAmmo) CreativeModeTab.getIconItem()static ItemStackBundleItem.getSelectedItemStack(ItemStack bundle) ItemStack.hurtAndConvertOnBreak(int amount, ItemLike item, LivingEntity entity, EquipmentSlot slot) ItemStack.split(int amount) Splits off a stack of the given amount of this stack and reduces this stack by the amount.ItemStack.transmuteCopy(ItemLike item) ItemStack.transmuteCopy(ItemLike item, int count) private ItemStackItemStack.transmuteCopyIgnoreEmpty(ItemLike item, int count) protected ItemStackBottleItem.turnBottleIntoItem(ItemStack bottleStack, Player player, ItemStack filledBottleStack) protected static ItemStackProjectileWeaponItem.useAmmo(ItemStack weapon, ItemStack ammo, LivingEntity shooter, boolean intangible) Methods in net.minecraft.world.item that return types with arguments of type ItemStackModifier and TypeMethodDescriptionprivate static StreamCodec<RegistryFriendlyByteBuf, ItemStack> ItemStack.createOptionalStreamCodec(StreamCodec<RegistryFriendlyByteBuf, DataComponentPatch> codec) ItemStackLinkedSet.createTypeAndComponentsSet()ProjectileWeaponItem.draw(ItemStack weapon, ItemStack ammo, LivingEntity shooter) BowItem.getAllSupportedProjectiles()CrossbowItem.getAllSupportedProjectiles()ProjectileWeaponItem.getAllSupportedProjectiles()Deprecated.Use ItemStack sensitive versionProjectileWeaponItem.getAllSupportedProjectiles(ItemStack)ProjectileWeaponItem.getAllSupportedProjectiles(ItemStack stack) Override this method if the allowed projectile is weapon stack dependent.CreativeModeTab.getDisplayItems()CreativeModeTab.getSearchTabDisplayItems()CrossbowItem.getSupportedHeldProjectiles()ProjectileWeaponItem.getSupportedHeldProjectiles()Deprecated.Use ItemStack sensitive versionProjectileWeaponItem.getSupportedHeldProjectiles(ItemStack)ProjectileWeaponItem.getSupportedHeldProjectiles(ItemStack stack) Override this method if the weapon stack allows special projectile that would only be used if it's in hand.static com.mojang.serialization.MapCodec<ItemStack> ItemStack.lenientOptionalFieldOf(String fieldName) BundleItem.removeOneItemFromBundle(ItemStack stack, Player player, BundleContents bundleContents) ItemStack.validatedStreamCodec(StreamCodec<RegistryFriendlyByteBuf, ItemStack> codec) static com.mojang.serialization.DataResult<ItemStack> ItemStack.validateStrict(ItemStack stack) Methods in net.minecraft.world.item with parameters of type ItemStackModifier and TypeMethodDescriptionvoidCreativeModeTab.ItemDisplayBuilder.accept(ItemStack stack, CreativeModeTab.TabVisibility tabVisibility) default voidvoidCreativeModeTab.Output.accept(ItemStack stack, CreativeModeTab.TabVisibility tabVisibility) voidItemCooldowns.addCooldown(ItemStack stack, int cooldown) voidDiscFragmentItem.appendHoverText(ItemStack p_220031_, Item.TooltipContext p_339652_, TooltipDisplay p_399746_, Consumer<Component> p_400199_, TooltipFlag p_220034_) voidHangingEntityItem.appendHoverText(ItemStack stack, Item.TooltipContext context, TooltipDisplay tooltipDisplay, Consumer<Component> tooltipAdder, TooltipFlag flag) voidItem.appendHoverText(ItemStack stack, Item.TooltipContext context, TooltipDisplay tooltipDisplay, Consumer<Component> tooltipAdder, TooltipFlag flag) Deprecated.voidSmithingTemplateItem.appendHoverText(ItemStack stack, Item.TooltipContext context, TooltipDisplay tooltipDisplay, Consumer<Component> tooltipAdder, TooltipFlag flag) private ItemStackItemStack.applyAfterUseComponentSideEffects(LivingEntity entity, ItemStack stack) static booleanBoneMealItem.applyBonemeal(ItemStack p_40628_, Level p_40629_, BlockPos p_40630_, Player player) ArrowItem.asProjectile(Level level, Position pos, ItemStack stack, Direction direction) EggItem.asProjectile(Level p_338884_, Position p_338312_, ItemStack p_338704_, Direction p_338366_) ExperienceBottleItem.asProjectile(Level p_338868_, Position p_338766_, ItemStack p_338321_, Direction p_338772_) FireChargeItem.asProjectile(Level level, Position pos, ItemStack stack, Direction direction) FireworkRocketItem.asProjectile(Level level, Position pos, ItemStack stack, Direction direction) ProjectileItem.asProjectile(Level level, Position pos, ItemStack stack, Direction direction) SnowballItem.asProjectile(Level p_338685_, Position p_338637_, ItemStack p_338820_, Direction p_338856_) SpectralArrowItem.asProjectile(Level p_338332_, Position p_338313_, ItemStack p_338304_, Direction p_338842_) ThrowablePotionItem.asProjectile(Level level, Position pos, ItemStack stack, Direction direction) TridentItem.asProjectile(Level p_338505_, Position p_338277_, ItemStack p_338353_, Direction p_338220_) WindChargeItem.asProjectile(Level p_338589_, Position p_338670_, ItemStack p_338308_, Direction p_338206_) booleanDebugStickItem.canDestroyBlock(ItemStack stack, BlockState state, Level level, BlockPos pos, LivingEntity entity) booleanItem.canDestroyBlock(ItemStack stack, BlockState state, Level level, BlockPos pos, LivingEntity entity) booleanAxeItem.canPerformAction(ItemStack stack, ItemAbility itemAbility) booleanBrushItem.canPerformAction(ItemStack stack, ItemAbility itemAbility) booleanFireChargeItem.canPerformAction(ItemStack stack, ItemAbility itemAbility) booleanFishingRodItem.canPerformAction(ItemStack stack, ItemAbility itemAbility) booleanFlintAndSteelItem.canPerformAction(ItemStack stack, ItemAbility itemAbility) booleanHoeItem.canPerformAction(ItemStack stack, ItemAbility itemAbility) booleanShearsItem.canPerformAction(ItemStack stack, ItemAbility itemAbility) booleanShovelItem.canPerformAction(ItemStack stack, ItemAbility itemAbility) booleanSpyglassItem.canPerformAction(ItemStack stack, ItemAbility itemAbility) booleanTridentItem.canPerformAction(ItemStack stack, ItemAbility itemAbility) voidBucketItem.checkExtraContent(LivingEntity entity, Level level, ItemStack stack, BlockPos pos) default voidDispensibleContainerItem.checkExtraContent(LivingEntity entity, Level level, ItemStack stack, BlockPos pos) voidMobBucketItem.checkExtraContent(LivingEntity entity, Level level, ItemStack stack, BlockPos pos) booleanArrowItem.createArrow(Level level, ItemStack ammo, LivingEntity shooter, ItemStack weapon) SpectralArrowItem.createArrow(Level p_43237_, ItemStack p_43238_, LivingEntity p_43239_, ItemStack p_345773_) static ItemStackItemUtils.createFilledResult(ItemStack emptyStack, Player player, ItemStack filledStack) static ItemStackItemUtils.createFilledResult(ItemStack emptyStack, Player player, ItemStack filledStack, boolean preventDuplicates) protected AbstractThrownPotionLingeringPotionItem.createPotion(ServerLevel p_400122_, LivingEntity p_400210_, ItemStack p_399574_) protected AbstractThrownPotionLingeringPotionItem.createPotion(Level p_399818_, Position p_399889_, ItemStack p_399694_) protected AbstractThrownPotionSplashPotionItem.createPotion(ServerLevel p_399816_, LivingEntity p_400003_, ItemStack p_399587_) protected AbstractThrownPotionSplashPotionItem.createPotion(Level p_400201_, Position p_399482_, ItemStack p_399625_) protected abstract AbstractThrownPotionThrowablePotionItem.createPotion(ServerLevel level, LivingEntity entity, ItemStack stack) protected abstract AbstractThrownPotionThrowablePotionItem.createPotion(Level level, Position position, ItemStack stack) protected ProjectileCrossbowItem.createProjectile(Level level, LivingEntity shooter, ItemStack weapon, ItemStack ammo, boolean isCrit) protected ProjectileProjectileWeaponItem.createProjectile(Level level, LivingEntity shooter, ItemStack weapon, ItemStack ammo, boolean isCrit) ProjectileWeaponItem.customArrow(AbstractArrow arrow, ItemStack projectileStack, ItemStack weaponStack) ProjectileWeaponItem.draw(ItemStack weapon, ItemStack ammo, LivingEntity shooter) private booleanBundleItem.dropContent(ItemStack stack, Player player) private voidBundleItem.dropContent(Level level, Player player, ItemStack stack) booleanBucketItem.emptyContents(LivingEntity entity, Level level, BlockPos pos, BlockHitResult hitResult, ItemStack container) Item.finishUsingItem(ItemStack stack, Level level, LivingEntity livingEntity) Called when the player finishes using this Item (E.g. finishes eating.).SpyglassItem.finishUsingItem(ItemStack stack, Level level, LivingEntity livingEntity) Called when the player finishes using this Item (E.g. finishes eating.).static Optional<Holder<JukeboxSong>> JukeboxSong.fromStack(HolderLookup.Provider registries, ItemStack stack) ProjectileWeaponItem.getAllSupportedProjectiles(ItemStack stack) Override this method if the allowed projectile is weapon stack dependent.intBundleItem.getBarColor(ItemStack stack) intItem.getBarColor(ItemStack stack) intBundleItem.getBarWidth(ItemStack stack) intItem.getBarWidth(ItemStack stack) private AbstractBoatstatic intCrossbowItem.getChargeDuration(ItemStack stack, LivingEntity shooter) (package private) CrossbowItem.ChargingSoundsCrossbowItem.getChargingSounds(ItemStack stack) static DyeColorItemCooldowns.getCooldownGroup(ItemStack stack) floatItemCooldowns.getCooldownPercent(ItemStack stack, float partialTick) protected MapItemSavedDataMapItem.getCustomMapData(ItemStack p_42854_, Level p_42855_) ProjectileWeaponItem.getDefaultCreativeAmmo(Player player, ItemStack projectileWeaponItem) Neo: Controls what ammo ItemStack that Creative Mode should return if the player has no valid ammo in inventory.floatItem.getDestroySpeed(ItemStack stack, BlockState state) protected intCrossbowItem.getDurabilityUse(ItemStack stack) protected intProjectileWeaponItem.getDurabilityUse(ItemStack stack) static ItemStackBucketItem.getEmptySuccessItem(ItemStack bucketStack, Player player) static floatBundleItem.getFullnessDisplay(ItemStack stack) private Optional<Holder<Instrument>> InstrumentItem.getInstrument(ItemStack stack, HolderLookup.Provider registries) static intBundleItem.getNumberOfItemsToShow(ItemStack bundle) private static floatCrossbowItem.getPowerForTime(int timeLeft, ItemStack stack, LivingEntity shooter) static MapItemSavedDataMapItem.getSavedData(ItemStack stack, Level level) static intBundleItem.getSelectedItem(ItemStack bundle) static ItemStackBundleItem.getSelectedItemStack(ItemStack bundle) ProjectileWeaponItem.getSupportedHeldProjectiles(ItemStack stack) Override this method if the weapon stack allows special projectile that would only be used if it's in hand.BundleItem.getTooltipImage(ItemStack stack) Item.getTooltipImage(ItemStack stack) EntityType<?> SpawnEggItem.getType(HolderLookup.Provider registries, ItemStack provider) BowItem.getUseAnimation(ItemStack stack) BrushItem.getUseAnimation(ItemStack stack) BundleItem.getUseAnimation(ItemStack stack) CrossbowItem.getUseAnimation(ItemStack stack) InstrumentItem.getUseAnimation(ItemStack stack) Item.getUseAnimation(ItemStack stack) SpyglassItem.getUseAnimation(ItemStack stack) TridentItem.getUseAnimation(ItemStack p_43417_) intBowItem.getUseDuration(ItemStack stack, LivingEntity entity) intBrushItem.getUseDuration(ItemStack stack, LivingEntity entity) intBundleItem.getUseDuration(ItemStack stack, LivingEntity entity) intCrossbowItem.getUseDuration(ItemStack stack, LivingEntity entity) intEnderEyeItem.getUseDuration(ItemStack stack, LivingEntity entity) intInstrumentItem.getUseDuration(ItemStack stack, LivingEntity entity) intItem.getUseDuration(ItemStack stack, LivingEntity entity) intSpyglassItem.getUseDuration(ItemStack stack, LivingEntity entity) intTridentItem.getUseDuration(ItemStack p_43419_, LivingEntity p_345001_) static booleanDeprecated.static booleanBoneMealItem.growWaterPlant(ItemStack stack, Level level, BlockPos pos, Direction clickedSide) private booleanDebugStickItem.handleInteraction(Player player, BlockState stateClicked, LevelAccessor accessor, BlockPos pos, boolean shouldCycleState, ItemStack debugStack) static intItemStack.hashItemAndComponents(ItemStack stack) static booleanBundleItem.hasSelectedItem(ItemStack bundle) voidItem.hurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) voidMaceItem.hurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) DyeItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity target, InteractionHand hand) Try interacting with given entity.Item.interactLivingEntity(ItemStack stack, Player player, LivingEntity interactionTarget, InteractionHand usedHand) Try interacting with given entity.NameTagItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity target, InteractionHand hand) Try interacting with given entity.ShearsItem.interactLivingEntity(ItemStack stack, Player player, LivingEntity entity, InteractionHand hand) Neo: Migrate shear behavior intoShearsItem.interactLivingEntity(net.minecraft.world.item.ItemStack, net.minecraft.world.entity.player.Player, net.minecraft.world.entity.LivingEntity, net.minecraft.world.InteractionHand)to call into IShearable instead of relying onMob.mobInteract(net.minecraft.world.entity.player.Player, net.minecraft.world.InteractionHand)voidCompassItem.inventoryTick(ItemStack stack, ServerLevel level, Entity entity, EquipmentSlot slot) voidItem.inventoryTick(ItemStack stack, ServerLevel level, Entity entity, EquipmentSlot slot) voidMapItem.inventoryTick(ItemStack stack, ServerLevel level, Entity entity, EquipmentSlot slot) booleanBundleItem.isBarVisible(ItemStack stack) booleanItem.isBarVisible(ItemStack stack) static booleanbooleanItem.isCombineRepairable(ItemStack stack) booleanItem.isCorrectToolForDrops(ItemStack stack, BlockState state) booleanReturnstrueif this item has an enchantment glint.booleanReturnstrueif this item has an enchantment glint.booleanArrowItem.isInfinite(ItemStack ammo, ItemStack bow, LivingEntity livingEntity) Called to determine if this arrow will be infinite when fired.booleanItemCooldowns.isOnCooldown(ItemStack stack) static booleanItemStack.isSameItem(ItemStack stack, ItemStack other) static booleanItemStack.isSameItemSameComponents(ItemStack stack, ItemStack other) booleanItemStack.isValidRepairItem(ItemStack item) private static voidMapItem.lockMap(ItemStack stack, ServerLevel level) static booleanCompares bothItemStacks, returnstrueif bothItemStacksare equal.protected booleanHangingEntityItem.mayPlace(Player player, Direction direction, ItemStack hangingEntityStack, BlockPos pos) protected booleanbooleanItem.mineBlock(ItemStack stack, Level level, BlockState state, BlockPos pos, LivingEntity miningEntity) Called when aBlockis destroyed using this Item.booleanShearsItem.mineBlock(ItemStack stack, Level level, BlockState state, BlockPos pos, LivingEntity entityLiving) Called when aBlockis destroyed using this Item.voidItem.onCraftedBy(ItemStack stack, Player player) voidItem.onCraftedPostProcess(ItemStack stack, Level level) voidMapItem.onCraftedPostProcess(ItemStack stack, Level level) voidBrushItem.onUseTick(Level level, LivingEntity livingEntity, ItemStack stack, int remainingUseDuration) Called as the item is being used by an entity.voidBundleItem.onUseTick(Level level, LivingEntity livingEntity, ItemStack stack, int remainingUseDuration) Called as the item is being used by an entity.voidCrossbowItem.onUseTick(Level level, LivingEntity livingEntity, ItemStack stack, int count) Called as the item is being used by an entity.voidItem.onUseTick(Level level, LivingEntity livingEntity, ItemStack stack, int remainingUseDuration) Called as the item is being used by an entity.booleanBundleItem.overrideOtherStackedOnMe(ItemStack stack, ItemStack other, Slot slot, ClickAction action, Player player, SlotAccess access) booleanItem.overrideOtherStackedOnMe(ItemStack stack, ItemStack other, Slot slot, ClickAction action, Player player, SlotAccess access) booleanItemStack.overrideOtherStackedOnMe(ItemStack stack, Slot slot, ClickAction action, Player player, SlotAccess access) booleanBundleItem.overrideStackedOnOther(ItemStack stack, Slot slot, ClickAction action, Player player) booleanItem.overrideStackedOnOther(ItemStack stack, Slot slot, ClickAction action, Player player) voidCrossbowItem.performShooting(Level level, LivingEntity shooter, InteractionHand hand, ItemStack weapon, float velocity, float inaccuracy, LivingEntity target) voidItem.postHurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) voidMaceItem.postHurtEnemy(ItemStack stack, LivingEntity target, LivingEntity attacker) booleanBowItem.releaseUsing(ItemStack stack, Level level, LivingEntity entity, int timeLeft) booleanCrossbowItem.releaseUsing(ItemStack stack, Level level, LivingEntity entity, int timeLeft) booleanItem.releaseUsing(ItemStack stack, Level level, LivingEntity entity, int timeLeft) booleanSpyglassItem.releaseUsing(ItemStack stack, Level level, LivingEntity entity, int timeLeft) booleanTridentItem.releaseUsing(ItemStack p_43394_, Level p_43395_, LivingEntity p_43396_, int p_43397_) BundleItem.removeOneItemFromBundle(ItemStack stack, Player player, BundleContents bundleContents) static voidMapItem.renderBiomePreviewMap(ServerLevel serverLevel, ItemStack stack) private static voidMapItem.scaleMap(ItemStack stack, ServerLevel level) static voidBlockItem.setBlockEntityData(ItemStack stack, BlockEntityType<?> blockEntityType, TagValueOutput output) protected voidProjectileWeaponItem.shoot(ServerLevel level, LivingEntity shooter, InteractionHand hand, ItemStack weapon, List<ItemStack> projectileItems, float velocity, float inaccuracy, boolean isCrit, LivingEntity target) booleanBlockItem.shouldPrintOpWarning(ItemStack stack, Player player) booleanItem.shouldPrintOpWarning(ItemStack stack, Player player) booleanSpawnEggItem.shouldPrintOpWarning(ItemStack stack, Player player) private voidMobBucketItem.spawn(ServerLevel serverLevel, ItemStack bucketedMobStack, BlockPos pos) SpawnEggItem.spawnOffspringFromSpawnEgg(Player player, Mob mob, EntityType<? extends Mob> entityType, ServerLevel serverLevel, Vec3 pos, ItemStack stack) booleanSpawnEggItem.spawnsEntity(HolderLookup.Provider registries, ItemStack stack, EntityType<?> entityType) static voidBundleItem.toggleSelectedItem(ItemStack bundle, int selectedItem) static InteractionResultJukeboxPlayable.tryInsertIntoJukebox(Level level, BlockPos pos, ItemStack stack, Player player) private static booleanCrossbowItem.tryLoadProjectiles(LivingEntity shooter, ItemStack crossbowStack) protected ItemStackBottleItem.turnBottleIntoItem(ItemStack bottleStack, Player player, ItemStack filledBottleStack) private static voidBlockItem.updateBlockEntityComponents(Level level, BlockPos poa, ItemStack stack) private BlockStateBlockItem.updateBlockStateFromTag(BlockPos pos, Level level, ItemStack stack, BlockState state) protected booleanBlockItem.updateCustomBlockEntityTag(BlockPos pos, Level level, Player player, ItemStack stack, BlockState state) static booleanBlockItem.updateCustomBlockEntityTag(Level level, Player player, BlockPos pos, ItemStack stack) protected booleanSignItem.updateCustomBlockEntityTag(BlockPos pos, Level level, Player player, ItemStack stack, BlockState state) protected static ItemStackProjectileWeaponItem.useAmmo(ItemStack weapon, ItemStack ammo, LivingEntity shooter, boolean intangible) booleanCrossbowItem.useOnRelease(ItemStack stack) If this stack's item is a crossbowbooleanItem.useOnRelease(ItemStack stack) If this stack's item is a crossbowstatic com.mojang.serialization.DataResult<ItemStack> ItemStack.validateStrict(ItemStack stack) voidItem.verifyComponentsAfterLoad(ItemStack stack) voidPlayerHeadItem.verifyComponentsAfterLoad(ItemStack stack) Method parameters in net.minecraft.world.item with type arguments of type ItemStackModifier and TypeMethodDescriptiondefault voidCreativeModeTab.Output.acceptAll(Collection<ItemStack> stacks) default voidCreativeModeTab.Output.acceptAll(Collection<ItemStack> stacks, CreativeModeTab.TabVisibility tabVisibility) static ItemStackProjectileWeaponItem.getHeldProjectile(LivingEntity shooter, Predicate<ItemStack> isAmmo) static intItemStack.hashStackList(List<ItemStack> list) Deprecated.static booleanItemStack.listMatches(List<ItemStack> list, List<ItemStack> other) Deprecated.static voidItemUtils.onContainerDestroyed(ItemEntity container, Iterable<ItemStack> contents) protected voidProjectileWeaponItem.shoot(ServerLevel level, LivingEntity shooter, InteractionHand hand, ItemStack weapon, List<ItemStack> projectileItems, float velocity, float inaccuracy, boolean isCrit, LivingEntity target) ItemStack.validatedStreamCodec(StreamCodec<RegistryFriendlyByteBuf, ItemStack> codec) Constructor parameters in net.minecraft.world.item with type arguments of type ItemStackModifierConstructorDescription(package private)CreativeModeTab(CreativeModeTab.Row row, int column, CreativeModeTab.Type type, Component displayName, Supplier<ItemStack> iconGenerator, CreativeModeTab.DisplayItemsGenerator displayItemGenerator, ResourceLocation scrollerSpriteLocation, boolean hasSearchBar, int searchBarWidth, ResourceLocation tabsImage, int labelColor, int slotColor, List<ResourceLocation> tabsBefore, List<ResourceLocation> tabsAfter) -
Uses of ItemStack in net.minecraft.world.item.alchemy
Methods in net.minecraft.world.item.alchemy that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackPotionContents.createItemStack(Item item, Holder<Potion> potion) Methods in net.minecraft.world.item.alchemy with parameters of type ItemStackModifier and TypeMethodDescriptionvoidPotionBrewing.Builder.addRecipe(Ingredient input, Ingredient ingredient, ItemStack output) Adds a new simple brewing recipe.booleanPotionBrewing.hasContainerMix(ItemStack reagent, ItemStack potionItem) booleanbooleanPotionBrewing.hasPotionMix(ItemStack reagent, ItemStack potionItem) private booleanPotionBrewing.isContainer(ItemStack stack) booleanPotionBrewing.isContainerIngredient(ItemStack stack) booleanPotionBrewing.isIngredient(ItemStack stack) booleanChecks if an item stack is a valid input for brewing, for use in the lower 3 slots where water bottles would normally go.booleanPotionBrewing.isPotionIngredient(ItemStack stack) voidPotionContents.onConsume(Level level, LivingEntity entity, ItemStack stack, Consumable consumable) -
Uses of ItemStack in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackUseRemainder.convertIntoThe field for theconvertIntorecord component.private final ItemStackItemContainerContents.Slot.itemThe field for theitemrecord component.Fields in net.minecraft.world.item.component with type parameters of type ItemStackModifier and TypeFieldDescriptionBundleContents.itemsBundleContents.Mutable.itemsChargedProjectiles.itemsprivate final NonNullList<ItemStack> ItemContainerContents.itemsMethods in net.minecraft.world.item.component that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackUseRemainder.convertInto()Returns the value of theconvertIntorecord component.UseRemainder.convertIntoRemainder(ItemStack stack, int count, boolean hasInfiniteMaterials, UseRemainder.OnExtraCreatedRemainder onExtraCreated) ItemContainerContents.copyOne()BundleContents.getItemUnsafe(int index) ItemContainerContents.getStackInSlot(int slot) Neo: Gets a copy of the stack at a particular slot.ItemContainerContents.Slot.item()Returns the value of theitemrecord component.Consumable.onConsume(Level level, LivingEntity entity, ItemStack stack) BundleContents.Mutable.removeOne()Methods in net.minecraft.world.item.component that return types with arguments of type ItemStackModifier and TypeMethodDescriptionChargedProjectiles.getItems()BundleContents.itemCopyStream()BundleContents.items()BundleContents.itemsCopy()ItemContainerContents.nonEmptyItems()ItemContainerContents.nonEmptyItemsCopy()ItemContainerContents.nonEmptyStream()ItemContainerContents.stream()Methods in net.minecraft.world.item.component with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static voidChargedProjectiles.addProjectileTooltip(Item.TooltipContext context, Consumer<Component> tooltipAdder, ItemStack stack, int count) voidUseCooldown.apply(ItemStack stack, LivingEntity entity) voidstatic ItemStackvoidDeathProtection.applyEffects(ItemStack stack, LivingEntity entity) booleanConsumable.canConsume(LivingEntity entity, ItemStack stack) static booleanBundleContents.canItemBeInBundle(ItemStack stack) UseRemainder.convertIntoRemainder(ItemStack stack, int count, boolean hasInfiniteMaterials, UseRemainder.OnExtraCreatedRemainder onExtraCreated) voidBlocksAttacks.disable(ServerLevel level, LivingEntity entity, float duration, ItemStack stack) voidConsumable.emitParticlesAndSounds(RandomSource random, LivingEntity entity, ItemStack stack, int amount) private intBundleContents.Mutable.findStackIndex(ItemStack stack) Consumable.OverrideConsumeSound.getConsumeSound(ItemStack stack) private intBundleContents.Mutable.getMaxAmountToAdd(ItemStack stack) static intDyedItemColor.getOrDefault(ItemStack stack, int defaultValue) (package private) static org.apache.commons.lang3.math.FractionvoidBlocksAttacks.hurtBlockingItem(Level level, ItemStack stack, LivingEntity entity, InteractionHand hand, float damage) voidBlocksAttacks.hurtBlockingItem(Level level, ItemStack stack, LivingEntity entity, InteractionHand hand, float damage, int fixedDamage) static ChargedProjectilesConsumable.onConsume(Level level, LivingEntity entity, ItemStack stack) voidConsumableListener.onConsume(Level level, LivingEntity entity, ItemStack stack, Consumable consumable) voidOminousBottleAmplifier.onConsume(Level p_366547_, LivingEntity p_366849_, ItemStack p_366530_, Consumable p_366459_) voidSuspiciousStewEffects.onConsume(Level level, LivingEntity entity, ItemStack stack, Consumable consumable) static booleanWrittenBookContent.resolveForItem(ItemStack stack, CommandSourceStack source, Player player) static voidCustomData.set(DataComponentType<CustomData> componentType, ItemStack stack, CompoundTag tag) Consumable.startConsuming(LivingEntity entity, ItemStack stack, InteractionHand hand) intstatic voidCustomData.update(DataComponentType<CustomData> componentType, ItemStack stack, Consumer<CompoundTag> updater) Method parameters in net.minecraft.world.item.component with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate static com.mojang.serialization.DataResult<BundleContents> BundleContents.checkAndCreate(List<ItemStack> items) private static org.apache.commons.lang3.math.FractionBundleContents.computeContentWeight(List<ItemStack> content) voidItemContainerContents.copyInto(NonNullList<ItemStack> list) private static intItemContainerContents.findLastNonEmptySlot(List<ItemStack> items) static ItemContainerContentsstatic ChargedProjectilesConstructors in net.minecraft.world.item.component with parameters of type ItemStackModifierConstructorDescription(package private)Creates an instance of aSlotrecord class.UseRemainder(ItemStack convertInto) Creates an instance of aUseRemainderrecord class.Constructor parameters in net.minecraft.world.item.component with type arguments of type ItemStackModifierConstructorDescriptionBundleContents(List<ItemStack> items) (package private)BundleContents(List<ItemStack> items, org.apache.commons.lang3.math.Fraction weight, int selectedItem) privateChargedProjectiles(List<ItemStack> items) privateItemContainerContents(List<ItemStack> items) private -
Uses of ItemStack in net.minecraft.world.item.consume_effects
Methods in net.minecraft.world.item.consume_effects with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanApplyStatusEffectsConsumeEffect.apply(Level level, ItemStack stack, LivingEntity entity) booleanClearAllStatusEffectsConsumeEffect.apply(Level p_366806_, ItemStack p_366692_, LivingEntity p_366699_) booleanConsumeEffect.apply(Level level, ItemStack stack, LivingEntity entity) booleanPlaySoundConsumeEffect.apply(Level level, ItemStack stack, LivingEntity entity) booleanRemoveStatusEffectsConsumeEffect.apply(Level level, ItemStack stack, LivingEntity entity) booleanTeleportRandomlyConsumeEffect.apply(Level level, ItemStack stack, LivingEntity entity) -
Uses of ItemStack in net.minecraft.world.item.context
Fields in net.minecraft.world.item.context declared as ItemStackMethods in net.minecraft.world.item.context that return ItemStackConstructors in net.minecraft.world.item.context with parameters of type ItemStackModifierConstructorDescriptionBlockPlaceContext(Player player, InteractionHand hand, ItemStack itemStack, BlockHitResult hitResult) BlockPlaceContext(Level level, Player player, InteractionHand hand, ItemStack itemStack, BlockHitResult hitResult) DirectionalPlaceContext(Level level, BlockPos pos, Direction direction, ItemStack itemStack, Direction face) UseOnContext(Level level, Player player, InteractionHand hand, ItemStack itemStack, BlockHitResult hitResult) -
Uses of ItemStack in net.minecraft.world.item.crafting
Fields in net.minecraft.world.item.crafting declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackSmithingRecipeInput.additionThe field for theadditionrecord component.private final ItemStackSmithingRecipeInput.baseThe field for thebaserecord component.private final ItemStackSingleRecipeInput.itemThe field for theitemrecord component.(package private) final ItemStackShapedRecipe.result(package private) final ItemStackShapelessRecipe.resultprivate final ItemStackSingleItemRecipe.resultprivate final ItemStackSmithingRecipeInput.templateThe field for thetemplaterecord component.Fields in net.minecraft.world.item.crafting with type parameters of type ItemStackModifier and TypeFieldDescriptionCraftingInput.itemsprivate final NonNullList<ItemStack> RecipeCache.Entry.keyThe field for thekeyrecord component.Methods in net.minecraft.world.item.crafting that return ItemStackModifier and TypeMethodDescriptionSmithingRecipeInput.addition()Returns the value of theadditionrecord component.static ItemStackSmithingTrimRecipe.applyTrim(HolderLookup.Provider registries, ItemStack base, ItemStack addition, Holder<TrimPattern> pattern) ArmorDyeRecipe.assemble(CraftingInput p_344909_, HolderLookup.Provider p_335722_) BannerDuplicateRecipe.assemble(CraftingInput p_346069_, HolderLookup.Provider p_335574_) BookCloningRecipe.assemble(CraftingInput p_345803_, HolderLookup.Provider p_335702_) DecoratedPotRecipe.assemble(CraftingInput input, HolderLookup.Provider registries) FireworkRocketRecipe.assemble(CraftingInput p_345921_, HolderLookup.Provider p_335560_) FireworkStarFadeRecipe.assemble(CraftingInput p_346017_, HolderLookup.Provider p_335705_) FireworkStarRecipe.assemble(CraftingInput p_346206_, HolderLookup.Provider p_335498_) MapCloningRecipe.assemble(CraftingInput p_344908_, HolderLookup.Provider p_335660_) MapExtendingRecipe.assemble(CraftingInput input, HolderLookup.Provider registries) Recipe.assemble(T input, HolderLookup.Provider registries) RepairItemRecipe.assemble(CraftingInput input, HolderLookup.Provider registries) ShapedRecipe.assemble(CraftingInput input, HolderLookup.Provider registries) ShapelessRecipe.assemble(CraftingInput input, HolderLookup.Provider registries) ShieldDecorationRecipe.assemble(CraftingInput p_345351_, HolderLookup.Provider p_335895_) SingleItemRecipe.assemble(SingleRecipeInput input, HolderLookup.Provider registries) SmithingTransformRecipe.assemble(SmithingRecipeInput input, HolderLookup.Provider registries) SmithingTrimRecipe.assemble(SmithingRecipeInput input, HolderLookup.Provider registries) TippedArrowRecipe.assemble(CraftingInput p_345174_, HolderLookup.Provider p_335792_) TransmuteRecipe.assemble(CraftingInput input, HolderLookup.Provider registries) private static ItemStackDecoratedPotRecipe.back(CraftingInput input) SmithingRecipeInput.base()Returns the value of thebaserecord component.private static ItemStackMapExtendingRecipe.findFilledMap(CraftingInput input) private static ItemStackDecoratedPotRecipe.front(CraftingInput input) CraftingInput.getItem(int index) CraftingInput.getItem(int row, int column) RecipeInput.getItem(int index) SingleRecipeInput.getItem(int p_345528_) SmithingRecipeInput.getItem(int p_346205_) SingleRecipeInput.item()Returns the value of theitemrecord component.private static ItemStackDecoratedPotRecipe.left(CraftingInput input) protected ItemStackSingleItemRecipe.result()private static ItemStackDecoratedPotRecipe.right(CraftingInput input) SmithingRecipeInput.template()Returns the value of thetemplaterecord component.Methods in net.minecraft.world.item.crafting that return types with arguments of type ItemStackModifier and TypeMethodDescriptionstatic NonNullList<ItemStack> CraftingRecipe.defaultCraftingReminder(CraftingInput input) RepairItemRecipe.getItemsToCombine(CraftingInput input) RepairItemRecipe.getItemsToCombine(CraftingInput input) BannerDuplicateRecipe.getRemainingItems(CraftingInput p_345377_) BookCloningRecipe.getRemainingItems(CraftingInput p_344763_) default NonNullList<ItemStack> CraftingRecipe.getRemainingItems(CraftingInput input) CraftingInput.items()RecipeCache.Entry.key()Returns the value of thekeyrecord component.Methods in net.minecraft.world.item.crafting with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanSelectableRecipe.SingleInputSet.acceptsInput(ItemStack stack) static ItemStackSmithingTrimRecipe.applyTrim(HolderLookup.Provider registries, ItemStack base, ItemStack addition, Holder<TrimPattern> pattern) private static booleanRepairItemRecipe.canCombine(ItemStack stack1, ItemStack stack2) AbstractCookingRecipe.Factory.create(String group, CookingBookCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) SingleItemRecipe.Factory.create(String group, Ingredient ingredient, ItemStack result) booleanTransmuteResult.isResultUnchanged(ItemStack stack) SelectableRecipe.SingleInputSet.selectByInput(ItemStack stack) booleanbooleanstatic booleanIngredient.testOptionalIngredient(Optional<Ingredient> ingredient, ItemStack stack) Method parameters in net.minecraft.world.item.crafting with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic CraftingInputstatic CraftingInput.PositionedCraftingInput.ofPositioned(int width, int height, List<ItemStack> items) Constructors in net.minecraft.world.item.crafting with parameters of type ItemStackModifierConstructorDescriptionAbstractCookingRecipe(String group, CookingBookCategory category, Ingredient input, ItemStack result, float experience, int cookingTime) BlastingRecipe(String group, CookingBookCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) CampfireCookingRecipe(String group, CookingBookCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) ShapedRecipe(String group, CraftingBookCategory category, ShapedRecipePattern pattern, ItemStack result) ShapedRecipe(String group, CraftingBookCategory category, ShapedRecipePattern pattern, ItemStack result, boolean showNotification) ShapelessRecipe(String group, CraftingBookCategory category, ItemStack result, List<Ingredient> ingredients) SingleItemRecipe(String group, Ingredient input, ItemStack result) SingleRecipeInput(ItemStack item) Creates an instance of aSingleRecipeInputrecord class.SmeltingRecipe(String group, CookingBookCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) SmithingRecipeInput(ItemStack template, ItemStack base, ItemStack addition) Creates an instance of aSmithingRecipeInputrecord class.SmokingRecipe(String group, CookingBookCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime) StonecutterRecipe(String group, Ingredient ingredient, ItemStack result) Constructor parameters in net.minecraft.world.item.crafting with type arguments of type ItemStackModifierConstructorDescriptionprivateCraftingInput(int width, int height, List<ItemStack> item) (package private)Entry(NonNullList<ItemStack> key, int width, int height, RecipeHolder<CraftingRecipe> value) Creates an instance of aEntryrecord class. -
Uses of ItemStack in net.minecraft.world.item.crafting.display
Fields in net.minecraft.world.item.crafting.display declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackSlotDisplay.ItemStackSlotDisplay.stackThe field for thestackrecord component.Methods in net.minecraft.world.item.crafting.display that return ItemStackModifier and TypeMethodDescriptiondefault ItemStackSlotDisplay.resolveForFirstStack(ContextMap context) SlotDisplay.ItemStackSlotDisplay.stack()Returns the value of thestackrecord component.Methods in net.minecraft.world.item.crafting.display that return types with arguments of type ItemStackModifier and TypeMethodDescriptionSlotDisplay.resolveForStacks(ContextMap context) RecipeDisplayEntry.resultItems(ContextMap context) Methods in net.minecraft.world.item.crafting.display with parameters of type ItemStackModifier and TypeMethodDescriptionConstructors in net.minecraft.world.item.crafting.display with parameters of type ItemStackModifierConstructorDescriptionItemStackSlotDisplay(ItemStack stack) Creates an instance of aItemStackSlotDisplayrecord class. -
Uses of ItemStack in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackEnchantedItemInUse.itemStackThe field for theitemStackrecord component.Methods in net.minecraft.world.item.enchantment that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackEnchantmentHelper.createBook(EnchantmentInstance enchantmant) static ItemStackEnchantmentHelper.enchantItem(RandomSource random, ItemStack stack, int level, Stream<Holder<Enchantment>> possibleEnchantments) static ItemStackEnchantmentHelper.enchantItem(RandomSource random, ItemStack stack, int level, RegistryAccess registryAccess, Optional<? extends HolderSet<Enchantment>> possibleEnchantments) EnchantedItemInUse.itemStack()Returns the value of theitemStackrecord component.Methods in net.minecraft.world.item.enchantment that return types with arguments of type ItemStackModifier and TypeMethodDescriptionEnchantment.getSlotItems(LivingEntity entity) Creates a new map containing all items equipped by an entity in.invalid reference
slots that the enchantment cares about
Methods in net.minecraft.world.item.enchantment with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanEnchantment.canEnchant(ItemStack stack) Deprecated.static booleanEnchantmentHelper.canStoreEnchantments(ItemStack stack) static voidEnchantmentHelper.doPostAttackEffectsWithItemSource(ServerLevel level, Entity entity, DamageSource damageSource, ItemStack itemSource) static voidEnchantmentHelper.doPostAttackEffectsWithItemSourceOnBreak(ServerLevel level, Entity entity, DamageSource damageSource, ItemStack itemSource, Consumer<Item> onBreak) static ItemStackEnchantmentHelper.enchantItem(RandomSource random, ItemStack stack, int level, Stream<Holder<Enchantment>> possibleEnchantments) static ItemStackEnchantmentHelper.enchantItem(RandomSource random, ItemStack stack, int level, RegistryAccess registryAccess, Optional<? extends HolderSet<Enchantment>> possibleEnchantments) static voidEnchantmentHelper.enchantItemFromProvider(ItemStack stack, RegistryAccess registries, ResourceKey<EnchantmentProvider> key, DifficultyInstance difficulty, RandomSource random) static voidEnchantmentHelper.forEachModifier(ItemStack stack, EquipmentSlotGroup slotGroup, BiConsumer<Holder<Attribute>, AttributeModifier> action) static voidEnchantmentHelper.forEachModifier(ItemStack stack, EquipmentSlot slot, BiConsumer<Holder<Attribute>, AttributeModifier> action) static List<EnchantmentInstance> EnchantmentHelper.getAvailableEnchantmentResults(int level, ItemStack stack, Stream<Holder<Enchantment>> possibleEnchantments) static DataComponentType<ItemEnchantments> EnchantmentHelper.getComponentType(ItemStack stack) static intEnchantmentHelper.getEnchantmentCost(RandomSource random, int enchantNum, int power, ItemStack stack) Returns the enchantability of itemstack, using a separate calculation for each enchantNum (0, 1 or 2), cutting to the max enchantability power of the table, which is locked to a max of 15.static ItemEnchantmentsEnchantmentHelper.getEnchantmentsForCrafting(ItemStack stack) static intEnchantmentHelper.getFishingLuckBonus(ServerLevel level, ItemStack stack, Entity entity) static floatEnchantmentHelper.getFishingTimeReduction(ServerLevel level, ItemStack stack, Entity entity) static <T> com.mojang.datafixers.util.Pair<T, Integer> EnchantmentHelper.getHighestLevel(ItemStack stack, DataComponentType<T> componentType) static intEnchantmentHelper.getItemEnchantmentLevel(Holder<Enchantment> enchantment, ItemStack stack) Deprecated.Neo: UseEnchantmentHelper.getTagEnchantmentLevel(Holder, ItemStack)for NBT enchantments, orIItemStackExtension.getEnchantmentLevel(Holder)for gameplay.static intEnchantmentHelper.getPiercingCount(ServerLevel level, ItemStack firedFromWeapon, ItemStack pickupItemStack) static intEnchantmentHelper.getTagEnchantmentLevel(Holder<Enchantment> p_346179_, ItemStack p_44845_) Gets the level of an enchantment from NBT.static intEnchantmentHelper.getTridentReturnToOwnerAcceleration(ServerLevel level, ItemStack stack, Entity entity) static floatEnchantmentHelper.getTridentSpinAttackStrength(ItemStack stack, LivingEntity entity) static booleanEnchantmentHelper.has(ItemStack stack, DataComponentType<?> componentType) static booleanEnchantmentHelper.hasAnyEnchantments(ItemStack stack) static booleanEnchantmentHelper.hasTag(ItemStack stack, TagKey<Enchantment> tag) booleanEnchantment.isPrimaryItem(ItemStack stack) Deprecated.Neo: UseIItemStackExtension.isPrimaryItemFor(Holder)This method does not respectIItemStackExtension.supportsEnchantment(Holder)since theHolderis not available, which makes the result of calling it invalid.booleanEnchantment.isSupportedItem(ItemStack item) Deprecated.booleanRepairable.isValidRepairItem(ItemStack stack) static LootContextEnchantment.itemContext(ServerLevel level, int enchantmentLevel, ItemStack tool) voidEnchantment.modifyAmmoCount(ServerLevel level, int enchantmentLevel, ItemStack tool, org.apache.commons.lang3.mutable.MutableFloat ammoCount) static floatEnchantmentHelper.modifyArmorEffectiveness(ServerLevel level, ItemStack tool, Entity entity, DamageSource damageSource, float armorEffectiveness) voidEnchantment.modifyArmorEffectivness(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat armorEffectiveness) voidEnchantment.modifyBlockExperience(ServerLevel level, int enchantmentLevel, ItemStack tool, org.apache.commons.lang3.mutable.MutableFloat blockExperience) static floatEnchantmentHelper.modifyCrossbowChargingTime(ItemStack stack, LivingEntity entity, float crossbowChargingTime) voidEnchantment.modifyDamage(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat damage) static floatEnchantmentHelper.modifyDamage(ServerLevel level, ItemStack tool, Entity entity, DamageSource damageSource, float damage) voidEnchantment.modifyDamageFilteredValue(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> componentType, ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat value) voidEnchantment.modifyDamageProtection(ServerLevel level, int enchantmentLevel, ItemStack stack, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat damageProtection) voidEnchantment.modifyDurabilityChange(ServerLevel level, int enchantmentLevel, ItemStack tool, org.apache.commons.lang3.mutable.MutableFloat durabilityChange) voidEnchantment.modifyDurabilityToRepairFromXp(ServerLevel level, int enchantmentLevel, ItemStack tool, org.apache.commons.lang3.mutable.MutableFloat durabilityToRepairFromXp) static intEnchantmentHelper.modifyDurabilityToRepairFromXp(ServerLevel level, ItemStack stack, int durabilityToRepairFromXp) voidEnchantment.modifyEntityFilteredValue(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> componentType, ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat value) voidEnchantment.modifyFallBasedDamage(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat fallBasedDamage) static floatEnchantmentHelper.modifyFallBasedDamage(ServerLevel level, ItemStack tool, Entity entity, DamageSource damageSource, float fallBasedDamage) voidEnchantment.modifyFishingLuckBonus(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat fishingLuckBonus) voidEnchantment.modifyFishingTimeReduction(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat fishingTimeReduction) voidEnchantment.modifyItemFilteredCount(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> componentType, ServerLevel level, int enchantmentLevel, ItemStack tool, org.apache.commons.lang3.mutable.MutableFloat value) voidEnchantment.modifyKnockback(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, DamageSource damageSource, org.apache.commons.lang3.mutable.MutableFloat knockback) static floatEnchantmentHelper.modifyKnockback(ServerLevel level, ItemStack tool, Entity entity, DamageSource damageSource, float knockback) voidEnchantment.modifyMobExperience(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat mobExperience) voidEnchantment.modifyPiercingCount(ServerLevel level, int enchantmentLevel, ItemStack tool, org.apache.commons.lang3.mutable.MutableFloat piercingCount) voidEnchantment.modifyProjectileCount(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat projectileCount) voidEnchantment.modifyProjectileSpread(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat projectileSpread) voidEnchantment.modifyTridentReturnToOwnerAcceleration(ServerLevel level, int enchantmentLevel, ItemStack tool, Entity entity, org.apache.commons.lang3.mutable.MutableFloat tridentReturnToOwnerAcceleration) static voidEnchantmentHelper.onHitBlock(ServerLevel level, ItemStack stack, LivingEntity owner, Entity entity, EquipmentSlot slot, Vec3 pos, BlockState state, Consumer<Item> onBreak) static voidEnchantmentHelper.onProjectileSpawned(ServerLevel level, ItemStack firedFromWeapon, Projectile projectile, Consumer<Item> onBreak) static <T> Optional<T> EnchantmentHelper.pickHighestLevel(ItemStack stack, DataComponentType<List<T>> componentType) static intEnchantmentHelper.processAmmoUse(ServerLevel level, ItemStack weapon, ItemStack ammo, int count) static intEnchantmentHelper.processBlockExperience(ServerLevel level, ItemStack stack, int experience) static intEnchantmentHelper.processDurabilityChange(ServerLevel level, ItemStack stack, int damage) static intEnchantmentHelper.processProjectileCount(ServerLevel level, ItemStack tool, Entity entity, int projectileCount) static floatEnchantmentHelper.processProjectileSpread(ServerLevel level, ItemStack tool, Entity entity, float projectileSpread) static voidEnchantmentHelper.runIterationOnItem(ItemStack stack, EquipmentSlot slot, LivingEntity entity, EnchantmentHelper.EnchantmentInSlotVisitor visitor) static voidEnchantmentHelper.runIterationOnItem(ItemStack stack, EnchantmentHelper.EnchantmentVisitor visitor) static voidEnchantmentHelper.runLocationChangedEffects(ServerLevel level, ItemStack stack, LivingEntity entity, EquipmentSlot slot) static List<EnchantmentInstance> EnchantmentHelper.selectEnchantment(RandomSource random, ItemStack stack, int level, Stream<Holder<Enchantment>> possibleEnchantments) static voidEnchantmentHelper.setEnchantments(ItemStack stack, ItemEnchantments enchantments) static voidEnchantmentHelper.stopLocationBasedEffects(ItemStack stack, LivingEntity entity, EquipmentSlot slot) static ItemEnchantmentsEnchantmentHelper.updateEnchantments(ItemStack stack, Consumer<ItemEnchantments.Mutable> updater) Method parameters in net.minecraft.world.item.enchantment with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic Optional<EnchantedItemInUse> EnchantmentHelper.getRandomItemWith(DataComponentType<?> componentType, LivingEntity entity, Predicate<ItemStack> filter) Constructors in net.minecraft.world.item.enchantment with parameters of type ItemStackModifierConstructorDescriptionEnchantedItemInUse(ItemStack p_344800_, EquipmentSlot p_344722_, LivingEntity p_345536_) EnchantedItemInUse(ItemStack itemStack, EquipmentSlot inSlot, LivingEntity owner, Consumer<Item> onBreak) Creates an instance of aEnchantedItemInUserecord class. -
Uses of ItemStack in net.minecraft.world.item.enchantment.providers
Methods in net.minecraft.world.item.enchantment.providers with parameters of type ItemStackModifier and TypeMethodDescriptionvoidEnchantmentProvider.enchant(ItemStack stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) voidEnchantmentsByCost.enchant(ItemStack stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) voidEnchantmentsByCostWithDifficulty.enchant(ItemStack stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) voidSingleEnchantment.enchant(ItemStack stack, ItemEnchantments.Mutable enchantments, RandomSource random, DifficultyInstance difficulty) -
Uses of ItemStack in net.minecraft.world.item.equipment
Methods in net.minecraft.world.item.equipment with parameters of type ItemStackModifier and TypeMethodDescriptionEquippable.equipOnTarget(Player player, LivingEntity entity, ItemStack stack) Equippable.swapWithEquipmentSlot(ItemStack stack, Player player) -
Uses of ItemStack in net.minecraft.world.item.equipment.trim
Methods in net.minecraft.world.item.equipment.trim with parameters of type ItemStackModifier and TypeMethodDescriptionstatic Optional<Holder<TrimMaterial>> TrimMaterials.getFromIngredient(HolderLookup.Provider registries, ItemStack ingredient) -
Uses of ItemStack in net.minecraft.world.item.trading
Fields in net.minecraft.world.item.trading declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackItemCost.itemStackThe field for theitemStackrecord component.private final ItemStackMerchantOffer.resultThe output of this offer.Methods in net.minecraft.world.item.trading that return ItemStackModifier and TypeMethodDescriptionMerchantOffer.assemble()private static ItemStackItemCost.createStack(Holder<Item> item, int count, DataComponentExactPredicate components) MerchantOffer.getBaseCostA()MerchantOffer.getCostA()MerchantOffer.getCostB()MerchantOffer.getResult()ItemCost.itemStack()Returns the value of theitemStackrecord component.Methods in net.minecraft.world.item.trading with parameters of type ItemStackModifier and TypeMethodDescriptionMerchantOffers.getRecipeFor(ItemStack stackA, ItemStack stackB, int index) voidMerchant.notifyTradeUpdated(ItemStack stack) Notifies the merchant of a possible merchant recipe being fulfilled or not.booleanMerchantOffer.satisfiedBy(ItemStack playerOfferA, ItemStack playerOfferB) booleanbooleanConstructors in net.minecraft.world.item.trading with parameters of type ItemStackModifierConstructorDescriptionItemCost(Holder<Item> item, int count, DataComponentExactPredicate components, ItemStack itemStack) Creates an instance of aItemCostrecord class.privateMerchantOffer(ItemCost baseCostA, Optional<ItemCost> costB, ItemStack result, int uses, int maxUses, boolean rewardExp, int specialPriceDiff, int demand, float priceMultiplier, int xp) MerchantOffer(ItemCost baseCostA, Optional<ItemCost> costB, ItemStack result, int maxUses, int xp, float priceMultiplier) MerchantOffer(ItemCost baseCostA, Optional<ItemCost> costB, ItemStack result, int uses, int maxUses, int xp, float priceMultiplier) MerchantOffer(ItemCost baseCostA, Optional<ItemCost> costB, ItemStack result, int uses, int maxUses, int xp, float priceMultiplier, int demand) MerchantOffer(ItemCost baseCostA, ItemStack result, int maxUses, int xp, float priceMultiplier) -
Uses of ItemStack in net.minecraft.world.level
Fields in net.minecraft.world.level declared as ItemStackModifier and TypeFieldDescription(package private) ItemStackServerExplosion.StackCollector.stackMethods in net.minecraft.world.level with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static voidServerExplosion.addOrAppendStack(List<ServerExplosion.StackCollector> stackCollectors, ItemStack stack, BlockPos pos) voidConstructors in net.minecraft.world.level with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackAbstractBannerBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackAttachedStemBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackBambooSaplingBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackBeehiveBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackBigDripleafStemBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackCandleCakeBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackCaveVinesBlock.getCloneItemStack(LevelReader p_304590_, BlockPos p_152967_, BlockState p_152968_, boolean p_386659_) protected ItemStackCaveVinesPlantBlock.getCloneItemStack(LevelReader p_304444_, BlockPos p_153008_, BlockState p_153009_, boolean p_387975_) protected ItemStackCropBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackDecoratedPotBlock.getCloneItemStack(LevelReader p_304622_, BlockPos p_294412_, BlockState p_294723_, boolean p_387769_) protected ItemStackEndGatewayBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackEndPortalBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackFlowerPotBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackFrostedIceBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackGrowingPlantBodyBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackLightBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackNetherPortalBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackNetherWartBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackStemBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackSweetBerryBushBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackTallSeagrassBlock.getCloneItemStack(LevelReader p_304988_, BlockPos p_154750_, BlockState p_154751_, boolean p_387662_) protected ItemStackTestBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) static ItemStackShulkerBoxBlock.getColoredItemStack(DyeColor color) BarrierBlock.pickupBlock(LivingEntity owner, LevelAccessor level, BlockPos pos, BlockState state) BubbleColumnBlock.pickupBlock(LivingEntity owner, LevelAccessor level, BlockPos pos, BlockState state) BucketPickup.pickupBlock(LivingEntity owner, LevelAccessor level, BlockPos pos, BlockState state) LiquidBlock.pickupBlock(LivingEntity owner, LevelAccessor level, BlockPos pos, BlockState state) PowderSnowBlock.pickupBlock(LivingEntity owner, LevelAccessor level, BlockPos pos, BlockState state) default ItemStackSimpleWaterloggedBlock.pickupBlock(LivingEntity owner, LevelAccessor level, BlockPos pos, BlockState state) static ItemStackLightBlock.setLightOnStack(ItemStack stack, int light) static ItemStackTestBlock.setModeOnStack(ItemStack stack, TestBlockMode mode) Methods in net.minecraft.world.level.block that return types with arguments of type ItemStackModifier and TypeMethodDescriptionBeehiveBlock.getDrops(BlockState state, LootParams.Builder params) Block.getDrops(BlockState state, ServerLevel level, BlockPos pos, BlockEntity blockEntity) Block.getDrops(BlockState state, ServerLevel level, BlockPos pos, BlockEntity blockEntity, Entity entity, ItemStack tool) DecoratedPotBlock.getDrops(BlockState p_287683_, LootParams.Builder p_287582_) LiquidBlock.getDrops(BlockState state, LootParams.Builder params) ShulkerBoxBlock.getDrops(BlockState state, LootParams.Builder params) Methods in net.minecraft.world.level.block with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static voidChiseledBookShelfBlock.addBook(Level level, BlockPos pos, Player player, ChiseledBookShelfBlockEntity blockEntity, ItemStack bookStack, int slot) (package private) static BlockStateComposterBlock.addItem(Entity entity, BlockState state, LevelAccessor level, BlockPos pos, ItemStack stack) booleanComposterBlock.EmptyContainer.canPlaceItemThroughFace(int index, ItemStack itemStack, Direction direction) Returnstrueif automation can insert the given item in the given slot from the given side.booleanComposterBlock.InputContainer.canPlaceItemThroughFace(int index, ItemStack itemStack, Direction direction) Returnstrueif automation can insert the given item in the given slot from the given side.booleanComposterBlock.OutputContainer.canPlaceItemThroughFace(int index, ItemStack itemStack, Direction direction) Returnstrueif automation can insert the given item in the given slot from the given side.static booleanWitherSkullBlock.canSpawnMob(Level level, BlockPos pos, ItemStack stack) booleanComposterBlock.EmptyContainer.canTakeItemThroughFace(int index, ItemStack stack, Direction direction) Returnstrueif automation can extract the given item in the given slot from the given side.booleanComposterBlock.InputContainer.canTakeItemThroughFace(int index, ItemStack stack, Direction direction) Returnstrueif automation can extract the given item in the given slot from the given side.booleanComposterBlock.OutputContainer.canTakeItemThroughFace(int index, ItemStack stack, Direction direction) Returnstrueif automation can extract the given item in the given slot from the given side.private voidCrafterBlock.dispenseItem(ServerLevel level, BlockPos pos, CrafterBlockEntity crafter, ItemStack stack, BlockState state, RecipeHolder<?> recipe) static voidBlock.dropResources(BlockState state, Level level, BlockPos pos, BlockEntity blockEntity, Entity entity, ItemStack tool) private static DispenseItemBehaviorDispenserBlock.getDefaultDispenseMethod(ItemStack stack) protected DispenseItemBehaviorDispenserBlock.getDispenseMethod(Level level, ItemStack item) protected DispenseItemBehaviorDropperBlock.getDispenseMethod(Level p_341227_, ItemStack p_52947_) Block.getDrops(BlockState state, ServerLevel level, BlockPos pos, BlockEntity blockEntity, Entity entity, ItemStack tool) intDropExperienceBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intRedStoneOreBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSculkCatalystBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSculkSensorBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSculkShriekerBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) intSpawnerBlock.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) static floatstatic BlockStateComposterBlock.insertItem(Entity entity, BlockState state, ServerLevel level, ItemStack stack, BlockPos pos) private static booleanRespawnAnchorBlock.isRespawnFuel(ItemStack stack) private static voidLecternBlock.placeBook(LivingEntity entity, Level level, BlockPos pos, BlockState state, ItemStack stack) voidBeehiveBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, BlockEntity te, ItemStack stack) Called after a player has successfully harvested this block.voidBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, BlockEntity blockEntity, ItemStack tool) Called after a player has successfully harvested this block.voidDoublePlantBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, BlockEntity te, ItemStack stack) Called after a player has successfully harvested this block.voidIceBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, BlockEntity te, ItemStack stack) Called after a player has successfully harvested this block.voidTurtleEggBlock.playerDestroy(Level level, Player player, BlockPos pos, BlockState state, BlockEntity te, ItemStack stack) Called after a player has successfully harvested this block.private static voidBlock.popResource(Level level, Supplier<ItemEntity> itemEntitySupplier, ItemStack stack) static voidBlock.popResource(Level level, BlockPos pos, ItemStack stack) Spawns the given stack into the Level at the given position, respecting the doTileDrops gamerulestatic voidBlock.popResourceFromFace(Level level, BlockPos pos, Direction direction, ItemStack stack) static ItemStackLightBlock.setLightOnStack(ItemStack stack, int light) static ItemStackTestBlock.setModeOnStack(ItemStack stack, TestBlockMode mode) voidBedBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidCommandBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidCrafterBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidDiodeBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidDoorBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidDoublePlantBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidDriedGhastBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidJukeboxBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidMossyCarpetBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidPitcherCropBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidSmallDripleafBlock.setPlacedBy(Level p_154599_, BlockPos p_154600_, BlockState p_154601_, LivingEntity p_154602_, ItemStack p_154603_) voidStructureBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidTripWireHookBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidWitherSkullBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed.voidWitherWallSkullBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by ItemBlocks after a block is set in the world, to allow post-place logicprivate booleanCeilingHangingSignBlock.shouldTryToChainAnotherHangingSign(Player player, BlockHitResult hitResult, SignBlockEntity sign, ItemStack stack) private booleanWallHangingSignBlock.shouldTryToChainAnotherHangingSign(BlockState state, Player player, BlockHitResult hitResult, SignBlockEntity sign, ItemStack stack) protected voidDropExperienceBlock.spawnAfterBreak(BlockState state, ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) Perform side-effects from block dropping, such as creating silverfishprotected voidInfestedBlock.spawnAfterBreak(BlockState state, ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) Perform side-effects from block dropping, such as creating silverfishprotected voidRedStoneOreBlock.spawnAfterBreak(BlockState state, ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) Perform side-effects from block dropping, such as creating silverfishprotected voidSculkCatalystBlock.spawnAfterBreak(BlockState p_222109_, ServerLevel p_222110_, BlockPos p_222111_, ItemStack p_222112_, boolean p_222113_) protected voidSculkSensorBlock.spawnAfterBreak(BlockState state, ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) Perform side-effects from block dropping, such as creating silverfishprotected voidSculkShriekerBlock.spawnAfterBreak(BlockState state, ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) Perform side-effects from block dropping, such as creating silverfishprotected voidSpawnerBlock.spawnAfterBreak(BlockState p_222477_, ServerLevel p_222478_, BlockPos p_222479_, ItemStack p_222480_, boolean p_222481_) protected voidBlock.tryDropExperience(ServerLevel level, BlockPos pos, ItemStack heldItem, IntProvider amount) static booleanLecternBlock.tryPlaceBook(LivingEntity entity, Level level, BlockPos pos, BlockState state, ItemStack stack) protected InteractionResultAbstractCauldronBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultBeehiveBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCakeBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCampfireBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCandleBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCandleCakeBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCeilingHangingSignBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultChiseledBookShelfBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultComposterBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultDecoratedPotBlock.useItemOn(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected InteractionResultFlowerPotBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultJukeboxBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultLecternBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultNoteBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultPumpkinBlock.useItemOn(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected InteractionResultRedStoneOreBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultRespawnAnchorBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultSignBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultSweetBerryBushBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultTntBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) VaultBlock.useItemOn(ItemStack p_324161_, BlockState p_323816_, Level p_324403_, BlockPos p_324623_, Player p_324219_, InteractionHand p_324416_, BlockHitResult p_324261_) protected InteractionResultWallHangingSignBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) Method parameters in net.minecraft.world.level.block with type arguments of type ItemStackModifier and TypeMethodDescriptionprotected voidAbstractCandleBlock.onExplosionHit(BlockState state, ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected voidBeehiveBlock.onExplosionHit(BlockState state, ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected voidBellBlock.onExplosionHit(BlockState state, ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected voidButtonBlock.onExplosionHit(BlockState state, ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected voidCreakingHeartBlock.onExplosionHit(BlockState state, ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected voidDoorBlock.onExplosionHit(BlockState state, ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected voidFenceGateBlock.onExplosionHit(BlockState state, ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected voidLeverBlock.onExplosionHit(BlockState state, ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected voidTrapDoorBlock.onExplosionHit(BlockState state, ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) Constructors in net.minecraft.world.level.block with parameters of type ItemStackModifierConstructorDescriptionOutputContainer(BlockState state, LevelAccessor level, BlockPos pos, ItemStack stack) -
Uses of ItemStack in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as ItemStackModifier and TypeFieldDescription(package private) ItemStackLecternBlockEntity.bookprivate ItemStackBrushableBlockEntity.itemprivate ItemStackDecoratedPotBlockEntity.itemprivate ItemStackJukeboxBlockEntity.itemFields in net.minecraft.world.level.block.entity with type parameters of type ItemStackModifier and TypeFieldDescriptionprotected NonNullList<ItemStack> AbstractFurnaceBlockEntity.itemsprivate NonNullList<ItemStack> BarrelBlockEntity.itemsprivate NonNullList<ItemStack> BrewingStandBlockEntity.itemsThe items currently placed in the slots of the brewing stand.private final NonNullList<ItemStack> CampfireBlockEntity.itemsprivate NonNullList<ItemStack> ChestBlockEntity.itemsprivate final NonNullList<ItemStack> ChiseledBookShelfBlockEntity.itemsprivate NonNullList<ItemStack> CrafterBlockEntity.itemsprivate NonNullList<ItemStack> DispenserBlockEntity.itemsprivate NonNullList<ItemStack> HopperBlockEntity.itemsprivate NonNullList<ItemStack> ShulkerBoxBlockEntity.itemStacksMethods in net.minecraft.world.level.block.entity that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackHopperBlockEntity.addItem(Container source, Container destination, ItemStack stack, Direction direction) Attempts to place the passed stack in the container, using as many slots as required.static ItemStackDecoratedPotBlockEntity.createDecoratedPotItem(PotDecorations decorations) LecternBlockEntity.getBook()BannerBlockEntity.getItem()BaseContainerBlockEntity.getItem(int slot) Returns the stack in the given slot.BrushableBlockEntity.getItem()ChiseledBookShelfBlockEntity.getItem(int slot) Returns the stack in the given slot.CrafterBlockEntity.getItem(int index) RandomizableContainerBlockEntity.getItem(int index) Returns the stack in the given slot.DecoratedPotBlockEntity.getTheItem()JukeboxBlockEntity.getTheItem()DispenserBlockEntity.insertItem(ItemStack stack) BaseContainerBlockEntity.removeItem(int slot, int amount) Removes up to a specified number of items from an inventory slot and returns them in a new stack.ChiseledBookShelfBlockEntity.removeItem(int slot, int amount) Removes up to a specified number of items from an inventory slot and returns them in a new stack.HopperBlockEntity.removeItem(int index, int count) RandomizableContainerBlockEntity.removeItem(int index, int count) Removes up to a specified number of items from an inventory slot and returns them in a new stack.BaseContainerBlockEntity.removeItemNoUpdate(int slot) Removes a stack from the given slot and returns it.ChiseledBookShelfBlockEntity.removeItemNoUpdate(int slot) Removes a stack from the given slot and returns it.RandomizableContainerBlockEntity.removeItemNoUpdate(int index) Removes a stack from the given slot and returns it.private ItemStackLecternBlockEntity.resolveBook(ItemStack stack, Player player) Resolves the contents of the passed ItemStack, if it is a bookDecoratedPotBlockEntity.splitTheItem(int amount) JukeboxBlockEntity.splitTheItem(int amount) private static ItemStackHopperBlockEntity.tryMoveInItem(Container source, Container destination, ItemStack stack, int slot, Direction direction) Methods in net.minecraft.world.level.block.entity that return types with arguments of type ItemStackModifier and TypeMethodDescriptionprotected NonNullList<ItemStack> AbstractFurnaceBlockEntity.getItems()protected NonNullList<ItemStack> BarrelBlockEntity.getItems()protected abstract NonNullList<ItemStack> BaseContainerBlockEntity.getItems()protected NonNullList<ItemStack> BrewingStandBlockEntity.getItems()CampfireBlockEntity.getItems()protected NonNullList<ItemStack> ChestBlockEntity.getItems()CrafterBlockEntity.getItems()protected NonNullList<ItemStack> DispenserBlockEntity.getItems()protected NonNullList<ItemStack> HopperBlockEntity.getItems()protected NonNullList<ItemStack> ShulkerBoxBlockEntity.getItems()Methods in net.minecraft.world.level.block.entity with parameters of type ItemStackModifier and TypeMethodDescriptionstatic ItemStackHopperBlockEntity.addItem(Container source, Container destination, ItemStack stack, Direction direction) Attempts to place the passed stack in the container, using as many slots as required.final voidBlockEntity.applyComponentsFromItemStack(ItemStack stack) booleanBrushableBlockEntity.brush(long startTick, ServerLevel level, LivingEntity brusher, Direction hitDirection, ItemStack stack) private voidBrushableBlockEntity.brushingCompleted(ServerLevel level, LivingEntity brusher, ItemStack stack) intFuelValues.burnDuration(ItemStack stack) Deprecated.private static booleanHopperBlockEntity.canMergeItems(ItemStack stack1, ItemStack stack2) booleanAbstractFurnaceBlockEntity.canPlaceItem(int index, ItemStack stack) Returnstrueif automation is allowed to insert the given stack (ignoring stack size) into the given slot.booleanBrewingStandBlockEntity.canPlaceItem(int index, ItemStack stack) Returnstrueif automation is allowed to insert the given stack (ignoring stack size) into the given slot.booleanChiseledBookShelfBlockEntity.canPlaceItem(int slot, ItemStack stack) Returnstrueif automation is allowed to insert the given stack (ignoring stack size) into the given slot.booleanCrafterBlockEntity.canPlaceItem(int slot, ItemStack stack) Returnstrueif automation is allowed to insert the given stack (ignoring stack size) into the given slot.booleanJukeboxBlockEntity.canPlaceItem(int slot, ItemStack stack) Returnstrueif automation is allowed to insert the given stack (ignoring stack size) into the given slot.private static booleanHopperBlockEntity.canPlaceItemInContainer(Container container, ItemStack stack, int slot, Direction direction) booleanAbstractFurnaceBlockEntity.canPlaceItemThroughFace(int index, ItemStack itemStack, Direction direction) Returnstrueif automation can insert the given item in the given slot from the given side.booleanBrewingStandBlockEntity.canPlaceItemThroughFace(int index, ItemStack itemStack, Direction direction) Returnstrueif automation can insert the given item in the given slot from the given side.booleanShulkerBoxBlockEntity.canPlaceItemThroughFace(int index, ItemStack itemStack, Direction direction) Returnstrueif automation can insert the given item in the given slot from the given side.booleanChiseledBookShelfBlockEntity.canTakeItem(Container target, int slot, ItemStack stack) Returnstrueif the given stack can be extracted into the target inventory.booleanJukeboxBlockEntity.canTakeItem(Container target, int slot, ItemStack stack) Returnstrueif the given stack can be extracted into the target inventory.private static booleanHopperBlockEntity.canTakeItemFromContainer(Container source, Container destination, ItemStack stack, int slot, Direction direction) booleanAbstractFurnaceBlockEntity.canTakeItemThroughFace(int index, ItemStack stack, Direction direction) Returnstrueif automation can extract the given item in the given slot from the given side.booleanBrewingStandBlockEntity.canTakeItemThroughFace(int index, ItemStack stack, Direction direction) Returnstrueif automation can extract the given item in the given slot from the given side.booleanShulkerBoxBlockEntity.canTakeItemThroughFace(int index, ItemStack stack, Direction direction) Returnstrueif automation can extract the given item in the given slot from the given side.private voidBrushableBlockEntity.dropContent(ServerLevel level, LivingEntity brusher, ItemStack stack) protected intAbstractFurnaceBlockEntity.getBurnDuration(FuelValues fuelValues, ItemStack stack) protected intBlastFurnaceBlockEntity.getBurnDuration(FuelValues fuelValues, ItemStack stack) protected intSmokerBlockEntity.getBurnDuration(FuelValues fuelValues, ItemStack stack) private static intLecternBlockEntity.getPageCount(ItemStack stack) DispenserBlockEntity.insertItem(ItemStack stack) booleanbooleanCampfireBlockEntity.placeFood(ServerLevel level, LivingEntity entity, ItemStack stack) private ItemStackLecternBlockEntity.resolveBook(ItemStack stack, Player player) Resolves the contents of the passed ItemStack, if it is a bookvoidSets the ItemStack in this lectern.voidSets the ItemStack in this lectern.voidSets the given item stack to the specified slot in the inventory (can be crafting or armor sections).voidSets the given item stack to the specified slot in the inventory (can be crafting or armor sections).voidSets the given item stack to the specified slot in the inventory (can be crafting or armor sections).voidvoidvoidSets the given item stack to the specified slot in the inventory (can be crafting or armor sections).voidJukeboxBlockEntity.setSongItemWithoutPlaying(ItemStack stack) voidDecoratedPotBlockEntity.setTheItem(ItemStack item) voidJukeboxBlockEntity.setTheItem(ItemStack item) private booleanCrafterBlockEntity.smallerStackExist(int currentSize, ItemStack stack, int slot) private static ItemStackHopperBlockEntity.tryMoveInItem(Container source, Container destination, ItemStack stack, int slot, Direction direction) private voidBrushableBlockEntity.unpackLootTable(ServerLevel level, LivingEntity brusher, ItemStack stack) Method parameters in net.minecraft.world.level.block.entity with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidAbstractFurnaceBlockEntity.awardUsedRecipes(Player player, List<ItemStack> items) private static booleanAbstractFurnaceBlockEntity.burn(RegistryAccess registryAccess, RecipeHolder<? extends AbstractCookingRecipe> recipe, SingleRecipeInput recipeInput, NonNullList<ItemStack> items, int maxStackSize) private static booleanAbstractFurnaceBlockEntity.canBurn(RegistryAccess registryAccess, RecipeHolder<? extends AbstractCookingRecipe> recipe, SingleRecipeInput recipeInput, NonNullList<ItemStack> items, int maxStackSize) private static voidBrewingStandBlockEntity.doBrew(Level level, BlockPos pos, NonNullList<ItemStack> items) private static booleanBrewingStandBlockEntity.isBrewable(PotionBrewing potionBrewing, NonNullList<ItemStack> items) protected voidAbstractFurnaceBlockEntity.setItems(NonNullList<ItemStack> items) protected voidBarrelBlockEntity.setItems(NonNullList<ItemStack> items) protected abstract voidBaseContainerBlockEntity.setItems(NonNullList<ItemStack> items) protected voidBrewingStandBlockEntity.setItems(NonNullList<ItemStack> items) protected voidChestBlockEntity.setItems(NonNullList<ItemStack> items) protected voidCrafterBlockEntity.setItems(NonNullList<ItemStack> items) protected voidDispenserBlockEntity.setItems(NonNullList<ItemStack> items) protected voidHopperBlockEntity.setItems(NonNullList<ItemStack> items) protected voidShulkerBoxBlockEntity.setItems(NonNullList<ItemStack> items) -
Uses of ItemStack in net.minecraft.world.level.block.entity.trialspawner
Fields in net.minecraft.world.level.block.entity.trialspawner with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate WeightedList<ItemStack> TrialSpawnerStateData.dispensingMethods in net.minecraft.world.level.block.entity.trialspawner that return types with arguments of type ItemStackModifier and TypeMethodDescription(package private) WeightedList<ItemStack> TrialSpawnerStateData.getDispensingItems(ServerLevel level, TrialSpawnerConfig config, BlockPos pos) -
Uses of ItemStack in net.minecraft.world.level.block.entity.vault
Fields in net.minecraft.world.level.block.entity.vault declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackVaultSharedData.displayItemprivate final ItemStackVaultConfig.keyItemThe field for thekeyItemrecord component.Fields in net.minecraft.world.level.block.entity.vault with type parameters of type ItemStackMethods in net.minecraft.world.level.block.entity.vault that return ItemStackModifier and TypeMethodDescriptionVaultSharedData.getDisplayItem()(package private) ItemStackVaultServerData.getNextItemToEject()private static ItemStackVaultBlockEntity.Server.getRandomDisplayItemFromLootTable(ServerLevel level, BlockPos pos, ResourceKey<LootTable> lootTable) VaultConfig.keyItem()Returns the value of thekeyItemrecord component.(package private) ItemStackVaultServerData.popNextItemToEject()Methods in net.minecraft.world.level.block.entity.vault that return types with arguments of type ItemStackModifier and TypeMethodDescriptionVaultServerData.getItemsToEject()VaultBlockEntity.Server.resolveItemsToEject(ServerLevel level, VaultConfig config, BlockPos pos, Player player, ItemStack key) Methods in net.minecraft.world.level.block.entity.vault with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidVaultState.ejectResultItem(ServerLevel level, BlockPos pos, ItemStack stack, float ejectionProgress) private static booleanVaultBlockEntity.Server.isValidToInsert(VaultConfig config, ItemStack stack) VaultBlockEntity.Server.resolveItemsToEject(ServerLevel level, VaultConfig config, BlockPos pos, Player player, ItemStack key) voidVaultSharedData.setDisplayItem(ItemStack displayItem) static voidVaultBlockEntity.Server.tryInsertKey(ServerLevel level, BlockPos pos, BlockState state, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, Player player, ItemStack stack) Method parameters in net.minecraft.world.level.block.entity.vault with type arguments of type ItemStackModifier and TypeMethodDescription(package private) voidVaultServerData.setItemsToEject(List<ItemStack> itemsToEject) private static voidVaultBlockEntity.Server.unlock(ServerLevel level, BlockState state, BlockPos pos, VaultConfig config, VaultServerData serverData, VaultSharedData sharedData, List<ItemStack> itemsToEject) Constructors in net.minecraft.world.level.block.entity.vault with parameters of type ItemStackModifierConstructorDescriptionVaultConfig(ResourceKey<LootTable> p_335999_, double p_323704_, double p_323499_, ItemStack p_323661_, Optional<ResourceKey<LootTable>> p_323481_) VaultConfig(ResourceKey<LootTable> lootTable, double activationRange, double deactivationRange, ItemStack keyItem, Optional<ResourceKey<LootTable>> overrideLootTableToDisplay, PlayerDetector playerDetector, PlayerDetector.EntitySelector entitySelector) Creates an instance of aVaultConfigrecord class.(package private)VaultSharedData(ItemStack displayItem, Set<UUID> connectedPlayers, double connectedParticlesRange) Constructor parameters in net.minecraft.world.level.block.entity.vault with type arguments of type ItemStackModifierConstructorDescription(package private)VaultServerData(Set<UUID> rewardedPlayers, long stateUpdatingResumesAt, List<ItemStack> itemsToEject, int totalEjectionsNeeded) -
Uses of ItemStack in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackMovingPistonBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) protected ItemStackPistonHeadBlock.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) Methods in net.minecraft.world.level.block.piston that return types with arguments of type ItemStackModifier and TypeMethodDescriptionMovingPistonBlock.getDrops(BlockState state, LootParams.Builder params) Methods in net.minecraft.world.level.block.piston with parameters of type ItemStackModifier and TypeMethodDescriptionvoidPistonBaseBlock.setPlacedBy(Level level, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack) Called by BlockItem after this block has been placed. -
Uses of ItemStack in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state that return ItemStackModifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.getCloneItemStack(LevelReader level, BlockPos pos, boolean includeData) protected ItemStackBlockBehaviour.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData) Deprecated.Methods in net.minecraft.world.level.block.state that return types with arguments of type ItemStackModifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.getDrops(LootParams.Builder lootParams) BlockBehaviour.getDrops(BlockState state, LootParams.Builder params) Methods in net.minecraft.world.level.block.state with parameters of type ItemStackModifier and TypeMethodDescriptionvoidBlockBehaviour.BlockStateBase.spawnAfterBreak(ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) protected voidBlockBehaviour.spawnAfterBreak(BlockState state, ServerLevel level, BlockPos pos, ItemStack stack, boolean dropExperience) Perform side-effects from block dropping, such as creating silverfishBlockBehaviour.BlockStateBase.useItemOn(ItemStack stack, Level level, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultBlockBehaviour.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) Method parameters in net.minecraft.world.level.block.state with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidBlockBehaviour.BlockStateBase.onExplosionHit(ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) protected voidBlockBehaviour.onExplosionHit(BlockState state, ServerLevel level, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> dropConsumer) -
Uses of ItemStack in net.minecraft.world.level.saveddata.maps
Methods in net.minecraft.world.level.saveddata.maps that return types with arguments of type ItemStackMethods in net.minecraft.world.level.saveddata.maps with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidMapItemSavedData.addTargetDecoration(ItemStack stack, BlockPos pos, String type, Holder<MapDecorationType> mapDecorationType) MapItemSavedData.mapMatcher(ItemStack stack) voidMapItemSavedData.tickCarriedBy(Player player, ItemStack mapStack) Adds the player passed to the list of visible players and checks to see which players are visible -
Uses of ItemStack in net.minecraft.world.level.storage.loot
Fields in net.minecraft.world.level.storage.loot with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final BiFunction<ItemStack, LootContext, ItemStack> LootPool.compositeFunctionprivate final BiFunction<ItemStack, LootContext, ItemStack> LootPool.compositeFunctionprivate final BiFunction<ItemStack, LootContext, ItemStack> LootTable.compositeFunctionprivate final BiFunction<ItemStack, LootContext, ItemStack> LootTable.compositeFunctionMethods in net.minecraft.world.level.storage.loot that return types with arguments of type ItemStackModifier and TypeMethodDescriptionLootTable.createStackSplitter(ServerLevel level, Consumer<ItemStack> output) ContainerComponentManipulator.getContents(T contents) private it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> LootTable.getRandomItems(LootContext context) Generate random items to a List.it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> LootTable.getRandomItems(LootParams params) it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> LootTable.getRandomItems(LootParams params, long seed) it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> LootTable.getRandomItems(LootParams params, RandomSource random) Methods in net.minecraft.world.level.storage.loot with parameters of type ItemStackModifier and TypeMethodDescriptiondefault voidContainerComponentManipulator.modifyItems(ItemStack stack, UnaryOperator<ItemStack> modifier) default voidContainerComponentManipulator.setContents(ItemStack stack, Stream<ItemStack> items) default voidContainerComponentManipulator.setContents(ItemStack stack, T contents, Stream<ItemStack> items) Method parameters in net.minecraft.world.level.storage.loot with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidvoidLootContext.addDynamicDrops(ResourceLocation name, Consumer<ItemStack> consumer) Add the dynamic drops for the given dynamic drops name to the given consumer.voidLootParams.addDynamicDrops(ResourceLocation location, Consumer<ItemStack> consumer) private voidLootPool.addRandomItem(Consumer<ItemStack> stackConsumer, LootContext context) voidLootPool.addRandomItems(Consumer<ItemStack> stackConsumer, LootContext lootContext) Generate the random items from this LootPool to the givenstackConsumer.LootTable.createStackSplitter(ServerLevel level, Consumer<ItemStack> output) voidLootTable.getRandomItems(LootContext contextData, Consumer<ItemStack> output) Generate random items to the given Consumer, ensuring they do not exceed their maximum stack size.voidLootTable.getRandomItems(LootParams params, long seed, Consumer<ItemStack> output) voidLootTable.getRandomItems(LootParams params, Consumer<ItemStack> output) voidLootTable.getRandomItemsRaw(LootContext context, Consumer<ItemStack> output) Deprecated.voidLootTable.getRandomItemsRaw(LootParams params, Consumer<ItemStack> output) Deprecated.default voidContainerComponentManipulator.modifyItems(ItemStack stack, UnaryOperator<ItemStack> modifier) default voidContainerComponentManipulator.setContents(ItemStack stack, Stream<ItemStack> items) default voidContainerComponentManipulator.setContents(ItemStack stack, T contents, Stream<ItemStack> items) ContainerComponentManipulator.setContents(T contents, Stream<ItemStack> items) private voidLootTable.shuffleAndSplitItems(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> stacks, int emptySlotsCount, RandomSource random) Shuffles items by changing their order and splitting stacks -
Uses of ItemStack in net.minecraft.world.level.storage.loot.entries
Fields in net.minecraft.world.level.storage.loot.entries with type parameters of type ItemStackModifier and TypeFieldDescription(package private) final BiFunction<ItemStack, LootContext, ItemStack> LootPoolSingletonContainer.compositeFunction(package private) final BiFunction<ItemStack, LootContext, ItemStack> LootPoolSingletonContainer.compositeFunctionMethod parameters in net.minecraft.world.level.storage.loot.entries with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidDynamicLoot.createItemStack(Consumer<ItemStack> stackConsumer, LootContext lootContext) Generate the loot stacks of this entry.voidEmptyLootItem.createItemStack(Consumer<ItemStack> stackConsumer, LootContext lootContext) Generate the loot stacks of this entry.voidLootItem.createItemStack(Consumer<ItemStack> stackConsumer, LootContext lootContext) Generate the loot stacks of this entry.voidLootPoolEntry.createItemStack(Consumer<ItemStack> stackConsumer, LootContext lootContext) Generate the loot stacks of this entry.protected abstract voidLootPoolSingletonContainer.createItemStack(Consumer<ItemStack> stackConsumer, LootContext lootContext) Generate the loot stacks of this entry.voidNestedLootTable.createItemStack(Consumer<ItemStack> stackConsumer, LootContext lootContext) Generate the loot stacks of this entry.voidTagEntry.createItemStack(Consumer<ItemStack> stackConsumer, LootContext lootContext) Generate the loot stacks of this entry. -
Uses of ItemStack in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final BiFunction<ItemStack, LootContext, ItemStack> SequenceFunction.compositeFunctionprivate final BiFunction<ItemStack, LootContext, ItemStack> SequenceFunction.compositeFunctionstatic final BiFunction<ItemStack, LootContext, ItemStack> LootItemFunctions.IDENTITYstatic final BiFunction<ItemStack, LootContext, ItemStack> LootItemFunctions.IDENTITYMethods in net.minecraft.world.level.storage.loot.functions that return ItemStackModifier and TypeMethodDescriptionfinal ItemStackLootItemConditionalFunction.apply(ItemStack stack, LootContext context) SequenceFunction.apply(ItemStack stack, LootContext context) private static ItemStackEnchantRandomlyFunction.enchantItem(ItemStack stack, Holder<Enchantment> enchantment, RandomSource random) ApplyBonusCount.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.ApplyExplosionDecay.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackCopyBlockState.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.CopyComponentsFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.CopyCustomDataFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.CopyNameFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.EnchantedCountIncreaseFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.EnchantRandomlyFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.EnchantWithLevelsFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.ExplorationMapFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.FillPlayerHead.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.FilteredFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackFunctionReference.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.LimitCount.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected abstract ItemStackLootItemConditionalFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.ModifyContainerContents.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetAttributesFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackSetBannerPatternFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackSetBookCoverFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetComponentsFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetContainerContents.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetContainerLootTable.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetCustomDataFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetCustomModelDataFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetEnchantmentsFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackSetFireworkExplosionFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackSetFireworksFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetInstrumentFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetItemCountFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetItemDamageFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetItemFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetLoreFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetNameFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetOminousBottleAmplifierFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetPotionFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetStewEffectFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackSetWritableBookPagesFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackSetWrittenBookPagesFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SmeltItemFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackToggleTooltips.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.Methods in net.minecraft.world.level.storage.loot.functions that return types with arguments of type ItemStackModifier and TypeMethodDescriptionstatic BiFunction<ItemStack, LootContext, ItemStack> LootItemFunctions.compose(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> functions) static BiFunction<ItemStack, LootContext, ItemStack> LootItemFunctions.compose(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> functions) LootItemFunction.decorate(BiFunction<ItemStack, LootContext, ItemStack> stackModification, Consumer<ItemStack> originalConsumer, LootContext lootContext) Create a decorated Consumer.Methods in net.minecraft.world.level.storage.loot.functions with parameters of type ItemStackModifier and TypeMethodDescriptionfinal ItemStackLootItemConditionalFunction.apply(ItemStack stack, LootContext context) SequenceFunction.apply(ItemStack stack, LootContext context) private static ItemStackEnchantRandomlyFunction.enchantItem(ItemStack stack, Holder<Enchantment> enchantment, RandomSource random) ApplyBonusCount.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.ApplyExplosionDecay.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackCopyBlockState.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.CopyComponentsFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.CopyCustomDataFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.CopyNameFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.EnchantedCountIncreaseFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.EnchantRandomlyFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.EnchantWithLevelsFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.ExplorationMapFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.FillPlayerHead.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.FilteredFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackFunctionReference.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.LimitCount.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected abstract ItemStackLootItemConditionalFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.ModifyContainerContents.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetAttributesFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackSetBannerPatternFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackSetBookCoverFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetComponentsFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetContainerContents.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetContainerLootTable.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetCustomDataFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetCustomModelDataFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetEnchantmentsFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackSetFireworkExplosionFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackSetFireworksFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetInstrumentFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetItemCountFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetItemDamageFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetItemFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetLoreFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetNameFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetOminousBottleAmplifierFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetPotionFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SetStewEffectFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackSetWritableBookPagesFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackSetWrittenBookPagesFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.SmeltItemFunction.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.protected ItemStackToggleTooltips.run(ItemStack stack, LootContext context) Called to perform the actual action of this function, after conditions have been checked.Method parameters in net.minecraft.world.level.storage.loot.functions with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic BiFunction<ItemStack, LootContext, ItemStack> LootItemFunctions.compose(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> functions) static BiFunction<ItemStack, LootContext, ItemStack> LootItemFunctions.compose(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> functions) LootItemFunction.decorate(BiFunction<ItemStack, LootContext, ItemStack> stackModification, Consumer<ItemStack> originalConsumer, LootContext lootContext) Create a decorated Consumer.LootItemFunction.decorate(BiFunction<ItemStack, LootContext, ItemStack> stackModification, Consumer<ItemStack> originalConsumer, LootContext lootContext) Create a decorated Consumer.LootItemFunction.decorate(BiFunction<ItemStack, LootContext, ItemStack> stackModification, Consumer<ItemStack> originalConsumer, LootContext lootContext) Create a decorated Consumer. -
Uses of ItemStack in net.minecraft.world.level.storage.loot.parameters
Fields in net.minecraft.world.level.storage.loot.parameters with type parameters of type ItemStack -
Uses of ItemStack in net.minecraft.world.phys.shapes
Fields in net.minecraft.world.phys.shapes declared as ItemStackConstructors in net.minecraft.world.phys.shapes with parameters of type ItemStackModifierConstructorDescriptionprotectedEntityCollisionContext(boolean descending, boolean placement, double entityBottom, ItemStack heldItem, Predicate<FluidState> canStandOnFluid, Entity entity) -
Uses of ItemStack in net.minecraft.world.ticks
Methods in net.minecraft.world.ticks that return ItemStackModifier and TypeMethodDescriptiondefault ItemStackContainerSingleItem.getItem(int slot) Returns the stack in the given slot.ContainerSingleItem.getTheItem()default ItemStackContainerSingleItem.removeItem(int slot, int amount) Removes up to a specified number of items from an inventory slot and returns them in a new stack.default ItemStackContainerSingleItem.removeItemNoUpdate(int slot) Removes a stack from the given slot and returns it.default ItemStackContainerSingleItem.removeTheItem()default ItemStackContainerSingleItem.splitTheItem(int amount) Methods in net.minecraft.world.ticks with parameters of type ItemStackModifier and TypeMethodDescriptiondefault voidSets the given item stack to the specified slot in the inventory (can be crafting or armor sections).voidContainerSingleItem.setTheItem(ItemStack item) -
Uses of ItemStack in net.neoforged.neoforge.capabilities
Fields in net.neoforged.neoforge.capabilities with type parameters of type ItemStackMethods in net.neoforged.neoforge.capabilities with parameters of type ItemStackMethod parameters in net.neoforged.neoforge.capabilities with type arguments of type ItemStackModifier and TypeMethodDescription<T,C extends @Nullable Object>
voidRegisterCapabilitiesEvent.registerItem(ItemCapability<T, C> capability, ICapabilityProvider<ItemStack, C, T> provider, ItemLike... items) Register a capability provider for some items. -
Uses of ItemStack in net.neoforged.neoforge.client
Fields in net.neoforged.neoforge.client with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final CompletableFuture<SearchTree<ItemStack>> CreativeModeTabSearchRegistry.DEFAULT_SEARCHprivate static final Map<SessionSearchTrees.Key, CompletableFuture<SearchTree<ItemStack>>> CreativeModeTabSearchRegistry.NAME_SEARCH_TREESprivate static final Map<SessionSearchTrees.Key, CompletableFuture<SearchTree<ItemStack>>> CreativeModeTabSearchRegistry.TAG_SEARCH_TREESMethods in net.neoforged.neoforge.client that return types with arguments of type ItemStackModifier and TypeMethodDescriptionstatic CompletableFuture<SearchTree<ItemStack>> CreativeModeTabSearchRegistry.getNameSearchTree(SessionSearchTrees.Key key) static CompletableFuture<SearchTree<ItemStack>> CreativeModeTabSearchRegistry.getTagSearchTree(SessionSearchTrees.Key key) Methods in net.neoforged.neoforge.client with parameters of type ItemStackModifier and TypeMethodDescriptionstatic List<ClientTooltipComponent> ClientHooks.gatherTooltipComponents(ItemStack stack, List<? extends FormattedText> textElements, int mouseX, int screenWidth, int screenHeight, Font fallbackFont) static List<ClientTooltipComponent> ClientHooks.gatherTooltipComponents(ItemStack stack, List<? extends FormattedText> textElements, Optional<TooltipComponent> itemComponent, int mouseX, int screenWidth, int screenHeight, Font fallbackFont) static List<ClientTooltipComponent> ClientHooks.gatherTooltipComponentsFromElements(ItemStack stack, List<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> elements, int mouseX, int screenWidth, int screenHeight, Font fallbackFont) static ResourceLocationClientHooks.getArmorTexture(ItemStack armor, EquipmentClientInfo.LayerType type, EquipmentClientInfo.Layer layer, ResourceLocation _default) static FontClientHooks.getTooltipFont(ItemStack stack, Font fallbackFont) static ItemDecoratorHandlerstatic RenderTooltipEvent.PreClientHooks.onRenderTooltipPre(ItemStack stack, GuiGraphics graphics, int x, int y, int screenWidth, int screenHeight, List<ClientTooltipComponent> components, Font fallbackFont, ClientTooltipPositioner positioner) static RenderTooltipEvent.TextureClientHooks.onRenderTooltipTexture(ItemStack stack, GuiGraphics graphics, int x, int y, Font font, List<ClientTooltipComponent> components, @Nullable ResourceLocation texture) booleanIItemDecorator.render(GuiGraphics guiGraphics, Font font, ItemStack stack, int xOffset, int yOffset) Is called after GuiGraphics.renderItemDecorations(Font, ItemStack, int, int, String) is done rendering.voidItemDecoratorHandler.render(GuiGraphics guiGraphics, Font font, ItemStack stack, int xOffset, int yOffset) static booleanClientHooks.renderSpecificFirstPersonHand(InteractionHand hand, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, float partialTick, float interpPitch, float swingProgress, float equipProgress, ItemStack stack) static booleanClientHooks.shouldCauseReequipAnimation(ItemStack from, ItemStack to, int slot) Method parameters in net.neoforged.neoforge.client with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic voidCreativeModeTabSearchRegistry.putNameSearchTree(SessionSearchTrees.Key key, CompletableFuture<SearchTree<ItemStack>> future) static voidCreativeModeTabSearchRegistry.putTagSearchTree(SessionSearchTrees.Key key, CompletableFuture<SearchTree<ItemStack>> future) -
Uses of ItemStack in net.neoforged.neoforge.client.color.item
Methods in net.neoforged.neoforge.client.color.item with parameters of type ItemStackModifier and TypeMethodDescriptionintFluidContentsTint.calculate(ItemStack stack, @Nullable ClientLevel level, @Nullable LivingEntity entity) -
Uses of ItemStack in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackRenderTooltipEvent.GatherComponents.itemStackprotected final ItemStackRenderTooltipEvent.itemStackprivate final ItemStackRenderHandEvent.stackMethods in net.neoforged.neoforge.client.event that return ItemStackModifier and TypeMethodDescriptionRenderHandEvent.getItemStack()Returns the item stack to be rendered.RenderTooltipEvent.GatherComponents.getItemStack()Returns the item stack which the tooltip is being rendered for, or an empty item stack if there is no associated item stack.RenderTooltipEvent.getItemStack()Returns the item stack which the tooltip is being rendered for, or an empty item stack if there is no associated item stack.Constructors in net.neoforged.neoforge.client.event with parameters of type ItemStackModifierConstructorDescriptionGatherComponents(ItemStack itemStack, int screenWidth, int screenHeight, List<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> tooltipElements, int maxWidth) Pre(ItemStack stack, GuiGraphics graphics, int x, int y, int screenWidth, int screenHeight, Font font, List<ClientTooltipComponent> components, ClientTooltipPositioner positioner) RenderHandEvent(InteractionHand hand, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, float partialTick, float interpolatedPitch, float swingProgress, float equipProgress, ItemStack stack) protectedRenderTooltipEvent(ItemStack itemStack, GuiGraphics graphics, int x, int y, Font font, List<ClientTooltipComponent> components) Texture(ItemStack stack, GuiGraphics graphics, int x, int y, Font font, List<ClientTooltipComponent> components, @Nullable ResourceLocation texture) -
Uses of ItemStack in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type ItemStackModifier and TypeMethodDescriptiondefault booleanIClientItemExtensions.applyForgeHandTransform(PoseStack poseStack, LocalPlayer player, HumanoidArm arm, ItemStack itemInHand, float partialTick, float equipProcess, float swingProcess) Called right before when client applies transformations to item in hand and render it.default intIClientItemExtensions.getArmorLayerTintColor(ItemStack stack, EquipmentClientInfo.Layer layer, int layerIdx, int fallbackColor) Called when armor layers are rendered byEquipmentLayerRenderer.default @Nullable ResourceLocationIClientItemExtensions.getArmorTexture(ItemStack stack, EquipmentClientInfo.LayerType type, EquipmentClientInfo.Layer layer, ResourceLocation _default) Called by RenderBiped and RenderPlayer to determine the armor texture that should be used for the currently equipped item.default HumanoidModel.ArmPoseIClientItemExtensions.getArmPose(LivingEntity entityLiving, InteractionHand hand, ItemStack itemStack) This method returns an ArmPose that can be defined using themethod.invalid reference
net.minecraft.client.model.HumanoidModel.ArmPose#create(String, boolean, IArmPoseTransformer)default intIClientItemExtensions.getDefaultDyeColor(ItemStack stack) Called once per render pass of equipped armor items, regardless of the number of layers; the return value of this method is passed toIClientItemExtensions.getArmorLayerTintColor(ItemStack, EquipmentClientInfo.Layer, int, int)as thefallbackColorparameter.default @Nullable FontIClientItemExtensions.getFont(ItemStack stack, IClientItemExtensions.FontContext context) Returns the font used to render data related to this item as specified in thecontext.default ModelIClientItemExtensions.getGenericArmorModel(ItemStack itemStack, EquipmentClientInfo.LayerType layerType, Model original) Queries the armor model for this item when it's equipped.default ModelIClientItemExtensions.getHumanoidArmorModel(ItemStack itemStack, EquipmentClientInfo.LayerType layerType, Model original) Queries the humanoid armor model for this item when it's equipped.default ResourceLocationIClientItemExtensions.getScopeOverlayTexture(ItemStack stack) Returns the texture to use for scoping with the item.static IClientItemExtensionsdefault voidIClientItemExtensions.renderFirstPersonOverlay(ItemStack stack, EquipmentSlot equipmentSlot, Player player, GuiGraphics guiGraphics, DeltaTracker deltaTracker) Called to render an overlay on the first-person camera.default voidIClientItemExtensions.setupModelAnimations(LivingEntity livingEntity, ItemStack itemStack, EquipmentSlot equipmentSlot, Model model, float limbSwing, float limbSwingAmount, float partialTick, float ageInTicks, float netHeadYaw, float headPitch) Called when an armor piece is about to be rendered, allowing parts of the model to be animated or changed.default booleanIClientItemExtensions.shouldBobAsEntity(ItemStack stack) Returns Whether the item should bob when rendered in the world as an entity.default booleanIClientItemExtensions.shouldSpreadAsEntity(ItemStack stack) Returns Whether the item should be spread out when rendered in the world as an entity. -
Uses of ItemStack in net.neoforged.neoforge.client.model.item
Methods in net.neoforged.neoforge.client.model.item with parameters of type ItemStackModifier and TypeMethodDescriptionvoidDynamicFluidContainerModel.update(ItemStackRenderState renderState, ItemStack stack, ItemModelResolver modelResolver, ItemDisplayContext displayContext, @Nullable ClientLevel level, @Nullable LivingEntity entity, int p_387820_) -
Uses of ItemStack in net.neoforged.neoforge.common
Fields in net.neoforged.neoforge.common declared as ItemStackModifier and TypeFieldDescriptionprotected final ItemStackBasicItemListing.forSaleprotected final ItemStackBasicItemListing.priceprotected final ItemStackBasicItemListing.price2Methods in net.neoforged.neoforge.common that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackCommonHooks.getCraftingRemainder(ItemStack stack) static ItemStackCommonHooks.getProjectile(LivingEntity entity, ItemStack projectileWeaponItem, ItemStack projectile) Hook to fireLivingGetProjectileEvent.Methods in net.neoforged.neoforge.common that return types with arguments of type ItemStackModifier and TypeMethodDescriptionCommonHooks.modifyLoot(List<ItemStack> list, LootContext context) Deprecated.static it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> CommonHooks.modifyLoot(ResourceLocation lootTableId, it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) Handles the modification of loot table drops via the registered Global Loot Modifiers, so that custom effects can be processed.Shears this object.Methods in net.neoforged.neoforge.common with parameters of type ItemStackModifier and TypeMethodDescriptionstatic booleanCommonHooks.canContinueUsing(ItemStack from, ItemStack to) booleanSpecialPlantable.canPlacePlantAtPosition(ItemStack itemStack, LevelReader level, BlockPos pos, @Nullable Direction direction) Checks location if this item can spawn a plant with the given direction attachment point.static ItemAttributeModifiersCommonHooks.computeModifiedAttributes(ItemStack stack, ItemAttributeModifiers defaultModifiers) Hook to fireItemAttributeModifierEvent.static UseOnContextCommonHooks.dispenseUseOnContext(BlockSource source, ItemStack stack) Creates aUseOnContextfordispense behavior.static voidCommonHooks.fireAnvilCraftPost(AnvilMenu menu, Player player, ItemStack output, ItemStack left, ItemStack right) Fires theAnvilCraftEvent.Postwhen the anvil is used to craft an item.static AnvilCraftEvent.PreCommonHooks.fireAnvilCraftPre(AnvilMenu menu, Player player, ItemStack output, ItemStack left, ItemStack right) Fires theAnvilCraftEvent.Prewhen the anvil is used to craft an item.static ItemStackCommonHooks.getCraftingRemainder(ItemStack stack) static @Nullable StringCommonHooks.getDefaultCreatorModId(HolderLookup.Provider registries, ItemStack itemStack) Used as the default implementation ofIItemExtension.getCreatorModId(net.minecraft.core.HolderLookup.Provider, net.minecraft.world.item.ItemStack).static ItemStackCommonHooks.getProjectile(LivingEntity entity, ItemStack projectileWeaponItem, ItemStack projectile) Hook to fireLivingGetProjectileEvent.static voidCommonHooks.handleBlockDrops(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Fires theBlockDropsEventwhen block drops (items and experience) are determined.default booleanIShearable.isShearable(@Nullable Player player, ItemStack item, Level level, BlockPos pos) Checks if this object can be sheared.static voidCommonHooks.onAnvilUpdate(AnvilMenu menu, ItemStack leftInput, ItemStack rightInput, Container resultSlot, @Nullable String name, Player player) Called fromAnvilMenu.createResult()after the vanilla result has been computed.static intCommonHooks.onGrindstoneChange(ItemStack top, ItemStack bottom, Container outputSlot, int xp) static booleanCommonHooks.onItemStackedOn(ItemStack carriedItem, ItemStack stackedOnItem, Slot slot, ClickAction action, Player player, SlotAccess carriedSlotAccess) Fires theItemStackedOnOtherEvent, allowing items to handle custom behavior relating to being stacked together (i.e. how the bundle operates).static booleanCommonHooks.onLivingUseTotem(LivingEntity entity, DamageSource damageSource, ItemStack totem, InteractionHand hand) static voidCommonHooks.onPlayerEnchantItem(Player player, ItemStack stack, List<EnchantmentInstance> instances) FiresPlayerEnchantItemEventinEnchantmentMenu.clickMenuButton(Player, int)after the enchants are applied to the item.static @Nullable ItemEntityCommonHooks.onPlayerTossEvent(Player player, ItemStack item, boolean includeName) Shears this object.voidSpecialPlantable.spawnPlantAtPosition(ItemStack itemStack, LevelAccessor level, BlockPos pos, @Nullable Direction direction) Spawns the plant with the given direction attachment point at location.default voidIShearable.spawnShearedDrop(ServerLevel level, BlockPos pos, ItemStack drop) Performs the logic used to drop a shear result into the world at the correct position and with the proper movement.static booleanCommonHooks.tryDispenseShearsHarvestBlock(BlockSource source, ItemStack stack, ServerLevel level, BlockPos pos) Attempts to modify target block usingItemAbilities.SHEARS_HARVESTinShearsDispenseItemBehavior, consistent with vanilla beehive harvest behavior (also controlled byItemAbilities.SHEARS_HARVEST).Method parameters in net.neoforged.neoforge.common with type arguments of type ItemStackModifier and TypeMethodDescriptionCommonHooks.modifyLoot(List<ItemStack> list, LootContext context) Deprecated.static it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> CommonHooks.modifyLoot(ResourceLocation lootTableId, it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) Handles the modification of loot table drops via the registered Global Loot Modifiers, so that custom effects can be processed.Constructors in net.neoforged.neoforge.common with parameters of type ItemStackModifierConstructorDescriptionBasicItemListing(int emeralds, ItemStack forSale, int maxTrades, int xp) BasicItemListing(int emeralds, ItemStack forSale, int maxTrades, int xp, float mult) BasicItemListing(ItemStack price, ItemStack forSale, int maxTrades, int xp, float priceMult) BasicItemListing(ItemStack price, ItemStack price2, ItemStack forSale, int maxTrades, int xp, float priceMult) -
Uses of ItemStack in net.neoforged.neoforge.common.brewing
Fields in net.neoforged.neoforge.common.brewing declared as ItemStackMethods in net.neoforged.neoforge.common.brewing that return ItemStackModifier and TypeMethodDescriptionBrewingRecipe.getOutput()Returns the output ItemStack obtained by brewing the passed input and ingredient.Returns the output when the passed input is brewed with the passed ingredient.Methods in net.neoforged.neoforge.common.brewing with parameters of type ItemStackModifier and TypeMethodDescriptionReturns the output ItemStack obtained by brewing the passed input and ingredient.Returns the output when the passed input is brewed with the passed ingredient.booleanReturns true if the passed input and ingredient have an outputbooleanBrewingRecipe.isIngredient(ItemStack ingredient) booleanIBrewingRecipe.isIngredient(ItemStack ingredient) Returns true if the passed ItemStack is an ingredient for this recipe.booleanbooleanReturns true is the passed ItemStack is an input for this recipe.booleanBrewingRecipeRegistry.isValidIngredient(ItemStack stack) Returns true if the passed ItemStack is a valid ingredient for any of the recipes in the registry.booleanBrewingRecipeRegistry.isValidInput(ItemStack stack) Returns true if the passed ItemStack is a valid input for any of the recipes in the registry.Constructors in net.neoforged.neoforge.common.brewing with parameters of type ItemStackModifierConstructorDescriptionBrewingRecipe(Ingredient input, Ingredient ingredient, ItemStack output) -
Uses of ItemStack in net.neoforged.neoforge.common.crafting
Fields in net.neoforged.neoforge.common.crafting declared as ItemStackMethods in net.neoforged.neoforge.common.crafting with parameters of type ItemStackModifier and TypeMethodDescriptionstatic IngredientCreates a new ingredient matching the given item, containing the given componentsbooleanbooleanbooleanbooleanbooleanbooleanChecks if a stack matches this ingredient.booleanbooleanPerforms a size-sensitive test on the given stack. -
Uses of ItemStack in net.neoforged.neoforge.common.data
Methods in net.neoforged.neoforge.common.data with parameters of type ItemStackMethod parameters in net.neoforged.neoforge.common.data with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidLanguageProvider.addItemStack(Supplier<ItemStack> key, String name) -
Uses of ItemStack in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return ItemStackModifier and TypeMethodDescriptiondefault ItemStackIItemExtension.applyEnchantments(ItemStack stack, List<EnchantmentInstance> enchantments) Handles enchanting an item (i.e. in the enchanting table), potentially transforming it to a new item in the process.default ItemStackIBlockExtension.getCloneItemStack(LevelReader level, BlockPos pos, BlockState state, boolean includeData, Player player) Called when A user uses the creative pick block button on this blockdefault ItemStackIBlockStateExtension.getCloneItemStack(BlockPos pos, LevelReader level, boolean includeData, Player player) Called when A user uses the creative pick block button on this blockdefault ItemStackIItemExtension.getCraftingRemainder(ItemStack itemStack) ItemStack sensitive version ofItem.getCraftingRemainder()()}.default ItemStackIItemStackExtension.getCraftingRemainder()ItemStack sensitive version ofItem.getCraftingRemainder().private ItemStackIItemStackExtension.self()Methods in net.neoforged.neoforge.common.extensions with parameters of type ItemStackModifier and TypeMethodDescriptiondefault ItemStackIItemExtension.applyEnchantments(ItemStack stack, List<EnchantmentInstance> enchantments) Handles enchanting an item (i.e. in the enchanting table), potentially transforming it to a new item in the process.default booleanIItemExtension.canBeHurtBy(ItemStack stack, DamageSource source) Returns false to make item entity immune to the damage..default booleanIItemExtension.canContinueUsing(ItemStack oldStack, ItemStack newStack) Called while an item is in 'active' use to determine if usage should continue.default booleanIItemExtension.canEquip(ItemStack stack, EquipmentSlot armorType, LivingEntity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default booleanIItemExtension.canFitInsideContainerItems(ItemStack stack) Determines whether this item can be safely stored inside another container item, optionally taking the provided stack's data into account.default booleanIItemExtension.canGrindstoneRepair(ItemStack stack) Returns true if the given ItemStack can be put into a grindstone to be repaired and/or stripped of its enchantments.default booleanIItemExtension.canPerformAction(ItemStack stack, ItemAbility itemAbility) Queries if an item can perform the given action.default booleanIItemExtension.canWalkOnPowderedSnow(ItemStack stack, LivingEntity wearer) Called by the powdered snow block to check if a living entity wearing this can walk on the snow, granting the same behavior as leather boots.default @Nullable EntityIItemExtension.createEntity(Level level, Entity location, ItemStack stack) This function should return a new entity to replace the dropped item.default <T extends LivingEntity>
intIItemExtension.damageItem(ItemStack stack, int amount, T entity, Consumer<Item> onBroken) Reduce the durability of this item by the amount given.default booleanIItemExtension.doesSneakBypassUse(ItemStack stack, LevelReader level, BlockPos pos, Player player) Should this item, when held, allow sneak-clicks to pass through to the underlying block?default booleanIDispensibleContainerItemExtension.emptyContents(@Nullable LivingEntity entity, Level level, BlockPos pos, @Nullable BlockHitResult hitResult, @Nullable ItemStack container) Empties the contents of the container and returns whether it was successful.default ItemEnchantmentsIItemExtension.getAllEnchantments(ItemStack stack, HolderLookup.RegistryLookup<Enchantment> lookup) Gets a map of all enchantments present on the stack.default intIItemExtension.getBurnTime(ItemStack itemStack, @Nullable RecipeType<?> recipeType, FuelValues fuelValues) default ItemStackIItemExtension.getCraftingRemainder(ItemStack itemStack) ItemStack sensitive version ofItem.getCraftingRemainder()()}.default @Nullable StringIItemExtension.getCreatorModId(HolderLookup.Provider registries, ItemStack itemStack) Called to get the Mod ID of the mod that *created* the ItemStack, instead of the real Mod ID that *registered* it.default intReturn the itemDamage represented by this ItemStack.default ItemAttributeModifiersIItemExtension.getDefaultAttributeModifiers(ItemStack stack) ItemStack sensitive version of getDefaultAttributeModifiers.default intIItemExtension.getEnchantmentLevel(ItemStack stack, Holder<Enchantment> enchantment) Gets the level of the enchantment currently present on the stack.default intIItemExtension.getEntityLifespan(ItemStack itemStack, Level level) Retrieves the normal 'lifespan' of this item when it is dropped on the ground as a EntityItem.default @Nullable EquipmentSlotIItemExtension.getEquipmentSlot(ItemStack stack) Override this to set a non-default armor slot for an ItemStack, but do not use this to get the armor slot of said stack; for that, useLivingEntity.getEquipmentSlotForItem(ItemStack)..default intIBlockExtension.getExpDrop(BlockState state, LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) Returns how many experience points this block drops when broken, before application of enchantments.default intIBlockStateExtension.getExpDrop(LevelAccessor level, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity breaker, ItemStack tool) Returns how many experience points this block drops when broken, before application of enchantments.default ComponentIItemExtension.getHighlightTip(ItemStack item, Component displayName) Allow the item one last chance to modify its name used for the tool highlight useful for adding something extra that can't be removed by a user in the displayed name, such as a mode of operation.default intIItemExtension.getMaxDamage(ItemStack stack) Return the maxDamage for this ItemStack.default intIItemExtension.getMaxStackSize(ItemStack stack) Gets the maximum number of items that this stack should be able to hold.default AABBIItemExtension.getSweepHitBox(ItemStack stack, Player player, Entity target) Get a bounding box (AABB) of a sweep attack.default floatIItemExtension.getXpRepairRatio(ItemStack stack) Determines the amount of durability the mending enchantment will repair, on average, per 0.5 points of experience.default booleanIItemExtension.hasCustomEntity(ItemStack stack) Determines if this Item has a special entity for when they are in the world.booleanIItemExtension.isCombineRepairable(ItemStack stack) Determines if an item is repairable by combining, used by Repair recipes and Grindstone.default booleanIItemExtension.isDamageable(ItemStack stack) Used to test if this item can be damaged, but with the ItemStack in question.default booleanReturn if this itemstack is damaged.default booleanIItemExtension.isGazeDisguise(ItemStack stack, Player player, @Nullable LivingEntity entity) Whether thisItemcan be used to hide player's gaze from Endermen and Creakings.default booleanIItemExtension.isNotReplaceableByPickAction(ItemStack stack, Player player, int inventorySlot) Whether the given ItemStack should be excluded (if possible) when selecting the target hotbar slot of a "pick" action.default booleanIItemExtension.isPiglinCurrency(ItemStack stack) Called by Piglins when checking to see if they will give an item or something in exchange for this item.default booleanIItemExtension.isPrimaryItemFor(ItemStack stack, Holder<Enchantment> enchantment) Checks if an item should be treated as a primary item for a given enchantment.default booleanIItemExtension.makesPiglinsNeutral(ItemStack stack, LivingEntity wearer) Called by Piglins to check if a given item prevents hostility on sight.default voidIItemExtension.onAnimalArmorTick(ItemStack stack, Level level, Mob horse) Called every tick when this item is equipped as an armor item by an animal.default booleanIItemExtension.onDroppedByPlayer(ItemStack item, Player player) Called when a player drops the item into the world, returning false from this will prevent the item from being removed from the players inventory and spawning in the worlddefault booleanIItemExtension.onEntityItemUpdate(ItemStack stack, ItemEntity entity) Called by the default implemetation of EntityItem's onUpdate method, allowing for cleaner control over the update of the item without having to write a subclass.default booleanIItemExtension.onEntitySwing(ItemStack stack, LivingEntity entity, InteractionHand hand) Called when a entity tries to play the 'swing' animation.default InteractionResultIItemExtension.onItemUseFirst(ItemStack stack, UseOnContext context) This is called when the item is used, before the block is activated.default booleanIItemExtension.onLeftClickEntity(ItemStack stack, Player player, Entity entity) Called when the player Left Clicks (attacks) an entity.default voidIItemExtension.onStopUsing(ItemStack stack, LivingEntity entity, int count) Called when an entity stops using an item for any reason, notably when selecting another item without releasing or finishing.default voidSet the damage for this itemstack.default booleanIItemExtension.shouldCauseBlockBreakReset(ItemStack oldStack, ItemStack newStack) Called when the player is mining a block and the item in his hand changes.default booleanIItemStackExtension.shouldCauseBlockBreakReset(ItemStack newStack) Called when the player is mining a block and the item in his hand changes.default booleanIItemExtension.shouldCauseReequipAnimation(ItemStack oldStack, ItemStack newStack, boolean slotChanged) Determine if the player switching between these two item stacksdefault booleanIItemExtension.supportsEnchantment(ItemStack stack, Holder<Enchantment> enchantment) Checks if the provided enchantment is applicable to the passed item stack. -
Uses of ItemStack in net.neoforged.neoforge.common.loot
Methods in net.neoforged.neoforge.common.loot that return types with arguments of type ItemStackModifier and TypeMethodDescriptionit.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> IGlobalLootModifier.apply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) Applies the modifier to the list of generated loot.final it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> LootModifier.apply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) protected it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> AddTableLootModifier.doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) protected abstract it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> LootModifier.doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) Applies the modifier to the generated loot (all loot conditions have already been checked and have returned true).Method parameters in net.neoforged.neoforge.common.loot with type arguments of type ItemStackModifier and TypeMethodDescriptionit.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> IGlobalLootModifier.apply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) Applies the modifier to the list of generated loot.final it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> LootModifier.apply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) protected it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> AddTableLootModifier.doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) protected abstract it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> LootModifier.doApply(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> generatedLoot, LootContext context) Applies the modifier to the generated loot (all loot conditions have already been checked and have returned true). -
Uses of ItemStack in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util that return types with arguments of type ItemStackModifier and TypeMethodDescriptionItemStackMap.createTypeAndTagLinkedMap()ItemStackMap.createTypeAndTagMap()Methods in net.neoforged.neoforge.common.util with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidAttributeUtil.addAttributeTooltips(ItemStack stack, Consumer<Component> tooltip, TooltipDisplay tooltipDisplay, AttributeTooltipContext ctx) Checks if attribute modifier tooltips should show, and if they should, adds tooltips for all attribute modifiers present on an item stack to the stack's tooltip lines.static voidAttributeUtil.applyModifierTooltips(ItemStack stack, Consumer<Component> tooltip, AttributeTooltipContext ctx) Applies the attribute modifier tooltips for all attribute modifiers present on the item stack.static voidAttributeUtil.applyTextFor(ItemStack stack, Consumer<Component> tooltip, Multimap<Holder<Attribute>, AttributeModifier> modifierMap, AttributeTooltipContext ctx) Applies the text for the provided attribute modifiers to the tooltip for a given item stack.static Multimap<Holder<Attribute>, AttributeModifier> AttributeUtil.getSortedModifiers(ItemStack stack, EquipmentSlotGroup slot) Returns a sorted, mutableMultimapcontaining all the attribute modifiers on an item stack for the given group. -
Uses of ItemStack in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackGrindstoneEvent.bottomprivate final ItemStackItemStackedOnOtherEvent.carriedItemprivate final ItemStackAnvilUpdateEvent.leftprivate ItemStackGrindstoneEvent.OnTakeItem.newBottomprivate ItemStackGrindstoneEvent.OnTakeItem.newTopprivate ItemStackAnvilUpdateEvent.outputprivate final ItemStackAnvilUpdateEvent.VanillaResult.outputThe field for theoutputrecord component.private ItemStackGrindstoneEvent.OnPlaceItem.outputprivate final ItemStackAnvilUpdateEvent.rightprotected final ItemStackAddAttributeTooltipsEvent.stackprotected final ItemStackGatherSkippedAttributeTooltipsEvent.stackprivate final ItemStackItemAttributeModifierEvent.stackprivate final ItemStackItemStackedOnOtherEvent.stackedOnItemprivate final ItemStackGrindstoneEvent.topFields in net.neoforged.neoforge.event with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final InsertableLinkedOpenCustomHashSet<ItemStack> BuildCreativeModeTabContentsEvent.parentEntriesprivate final InsertableLinkedOpenCustomHashSet<ItemStack> BuildCreativeModeTabContentsEvent.searchEntriesMethods in net.neoforged.neoforge.event that return ItemStackModifier and TypeMethodDescriptionGrindstoneEvent.getBottomItem()ItemStackedOnOtherEvent.getCarriedItem()Returns the stack being carried by the mouse.ItemAttributeModifierEvent.getItemStack()Returns the item stack whose attribute modifiers are being computed.AnvilUpdateEvent.getLeft()Returns a copy of the item in the left input slot.GrindstoneEvent.OnTakeItem.getNewBottomItem()GrindstoneEvent.OnTakeItem.getNewTopItem()AnvilUpdateEvent.getOutput()Returns a mutable reference to the current output stack, defaulting to the vanilla output.GrindstoneEvent.OnPlaceItem.getOutput()This is the output as determined by the event, not by the vanilla behavior between these two items.AnvilUpdateEvent.getRight()Returns a copy of the item in the right input slot.AddAttributeTooltipsEvent.getStack()TheItemStackwith the tooltip.GatherSkippedAttributeTooltipsEvent.getStack()TheItemStackwith the tooltip.ItemStackedOnOtherEvent.getStackedOnItem()Returns the stack currently in the slot being clicked on.GrindstoneEvent.getTopItem()static ItemStackEventHooks.onItemUseFinish(LivingEntity entity, ItemStack item, int duration, ItemStack result) AnvilUpdateEvent.VanillaResult.output()Returns the value of theoutputrecord component.Methods in net.neoforged.neoforge.event that return types with arguments of type ItemStackModifier and TypeMethodDescriptionit.unimi.dsi.fastutil.objects.ObjectSortedSet<ItemStack> BuildCreativeModeTabContentsEvent.getParentEntries()The current immutable ordered set of the parent tab entries in the order to be added to the Creative Menu.it.unimi.dsi.fastutil.objects.ObjectSortedSet<ItemStack> BuildCreativeModeTabContentsEvent.getSearchEntries()The current immutable ordered set of the search tab entries in the order to be added to the Creative Menu.Methods in net.neoforged.neoforge.event with parameters of type ItemStackModifier and TypeMethodDescriptionvoidBuildCreativeModeTabContentsEvent.accept(ItemStack newEntry, CreativeModeTab.TabVisibility visibility) Inserts the new stack at the end of the given tab at this point in time.private voidBuildCreativeModeTabContentsEvent.assertNewEntryDoesNotAlreadyExists(InsertableLinkedOpenCustomHashSet<ItemStack> setToCheck, ItemStack newEntry) private static voidBuildCreativeModeTabContentsEvent.assertStackCount(ItemStack newEntry) private voidBuildCreativeModeTabContentsEvent.assertTargetExists(InsertableLinkedOpenCustomHashSet<ItemStack> setToCheck, ItemStack existingEntry) static BonemealEventEventHooks.fireBonemealEvent(@Nullable Player player, Level level, BlockPos pos, BlockState state, ItemStack stack) Called when bone meal (or equivalent) is used on a block.static voidEventHooks.fireItemPickupPost(ItemEntity itemEntity, Player player, ItemStack copy) Called inItemEntity.playerTouch(Player)after an item was successfully picked up.static voidEventHooks.firePlayerCraftingEvent(Player player, ItemStack crafted, Container craftMatrix) static voidEventHooks.firePlayerSmeltedEvent(Player player, ItemStack smelted, int amountRemoved) static ItemEnchantmentsEventHooks.getAllEnchantmentLevels(ItemEnchantments enchantments, ItemStack stack, HolderLookup.RegistryLookup<Enchantment> lookup) FiresGetEnchantmentLevelEventand for all enchantments, returning the (possibly event-modified) enchantment map.static intEventHooks.getEnchantmentLevelSpecific(int level, ItemStack stack, Holder<Enchantment> ench) FiresGetEnchantmentLevelEventand for a single enchantment, returning the (possibly event-modified) level.static intEventHooks.getItemBurnTime(ItemStack itemStack, int burnTime, @Nullable RecipeType<?> recipeType, FuelValues fuelValues) voidBuildCreativeModeTabContentsEvent.insertAfter(ItemStack existingEntry, ItemStack newEntry, CreativeModeTab.TabVisibility visibility) Inserts the new entry after the specified existing entry.voidBuildCreativeModeTabContentsEvent.insertBefore(ItemStack existingEntry, ItemStack newEntry, CreativeModeTab.TabVisibility visibility) Inserts the new entry before the specified existing entry.voidBuildCreativeModeTabContentsEvent.insertFirst(ItemStack newEntry, CreativeModeTab.TabVisibility visibility) Inserts the new entry in the front of the tab's content.static intEventHooks.onArrowLoose(ItemStack stack, Level level, Player player, int charge, boolean hasAmmo) static InteractionResultEventHooks.onArrowNock(ItemStack item, Level level, Player player, InteractionHand hand, boolean hasAmmo) static intEventHooks.onEnchantmentLevelSet(Level level, BlockPos pos, int enchantRow, int power, ItemStack itemStack, int enchantmentLevel) EventHooks.onItemConsumptionTeleport(LivingEntity entity, ItemStack itemStack, double targetX, double targetY, double targetZ) static ItemTooltipEventEventHooks.onItemTooltip(ItemStack itemStack, @Nullable Player entityPlayer, List<Component> list, TooltipFlag flags, Item.TooltipContext context) static ItemStackEventHooks.onItemUseFinish(LivingEntity entity, ItemStack item, int duration, ItemStack result) static intEventHooks.onItemUseStart(LivingEntity entity, ItemStack item, int duration) Deprecated, for removal: This API element is subject to removal in a future version.Usethe hand sensitive versionas this version provides wrong hand informationstatic intEventHooks.onItemUseStart(LivingEntity entity, ItemStack item, InteractionHand hand, int duration) static intEventHooks.onItemUseTick(LivingEntity entity, ItemStack item, int duration) static voidEventHooks.onPlayerBrewedPotion(Player player, ItemStack stack) static voidEventHooks.onPlayerDestroyItem(Player player, ItemStack stack, @Nullable InteractionHand hand) static booleanEventHooks.onUseItemStop(LivingEntity entity, ItemStack item, int duration) voidBuildCreativeModeTabContentsEvent.remove(ItemStack existingEntry, CreativeModeTab.TabVisibility visibility) Removes an entry from the tab's content.voidGrindstoneEvent.OnTakeItem.setNewBottomItem(ItemStack newBottom) Sets the itemstack in the bottom slot.voidGrindstoneEvent.OnTakeItem.setNewTopItem(ItemStack newTop) Sets the itemstack in the top slot.voidSets the output to the given item stack.voidSets the output slot to a specific itemstack.Method parameters in net.neoforged.neoforge.event with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate voidBuildCreativeModeTabContentsEvent.assertNewEntryDoesNotAlreadyExists(InsertableLinkedOpenCustomHashSet<ItemStack> setToCheck, ItemStack newEntry) private voidBuildCreativeModeTabContentsEvent.assertTargetExists(InsertableLinkedOpenCustomHashSet<ItemStack> setToCheck, ItemStack existingEntry) static booleanEventHooks.onPotionAttemptBrew(NonNullList<ItemStack> stacks) static voidEventHooks.onPotionBrewed(NonNullList<ItemStack> brewingItemStacks) Constructors in net.neoforged.neoforge.event with parameters of type ItemStackModifierConstructorDescriptionAddAttributeTooltipsEvent(ItemStack stack, Consumer<Component> tooltip, AttributeTooltipContext ctx) AnvilUpdateEvent(ItemStack left, ItemStack right, @Nullable String name, ItemStack result, int xpCost, int materialCost, Player player) protectedGrindstoneEvent(ItemStack top, ItemStack bottom, int xp) ItemAttributeModifierEvent(ItemStack stack, ItemAttributeModifiers defaultModifiers) ItemStackedOnOtherEvent(ItemStack carriedItem, ItemStack stackedOnItem, Slot slot, ClickAction action, Player player, SlotAccess carriedSlotAccess) OnPlaceItem(ItemStack top, ItemStack bottom, int xp) OnTakeItem(ContainerLevelAccess access, @Nullable Player player, ItemStack top, ItemStack bottom, int xp) OnTakeItem(ItemStack top, ItemStack bottom, int xp) Deprecated, for removal: This API element is subject to removal in a future version.Usethe context-aware versioninsteadVanillaResult(ItemStack output, int xpCost, int materialCost) Creates an instance of aVanillaResultrecord class.Constructor parameters in net.neoforged.neoforge.event with type arguments of type ItemStackModifierConstructorDescriptionBuildCreativeModeTabContentsEvent(CreativeModeTab tab, ResourceKey<CreativeModeTab> tabKey, CreativeModeTab.ItemDisplayParameters parameters, InsertableLinkedOpenCustomHashSet<ItemStack> parentEntries, InsertableLinkedOpenCustomHashSet<ItemStack> searchEntries) -
Uses of ItemStack in net.neoforged.neoforge.event.brewing
Fields in net.neoforged.neoforge.event.brewing declared as ItemStackFields in net.neoforged.neoforge.event.brewing with type parameters of type ItemStackMethods in net.neoforged.neoforge.event.brewing that return ItemStackModifier and TypeMethodDescriptionPotionBrewEvent.getItem(int index) PlayerBrewedPotionEvent.getStack()The ItemStack of the potion.Methods in net.neoforged.neoforge.event.brewing with parameters of type ItemStackConstructors in net.neoforged.neoforge.event.brewing with parameters of type ItemStackConstructor parameters in net.neoforged.neoforge.event.brewing with type arguments of type ItemStackModifierConstructorDescriptionPost(NonNullList<ItemStack> stacks) protectedPotionBrewEvent(NonNullList<ItemStack> stacks) Pre(NonNullList<ItemStack> stacks) -
Uses of ItemStack in net.neoforged.neoforge.event.enchanting
Fields in net.neoforged.neoforge.event.enchanting declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackEnchantmentLevelSetEvent.itemStackprotected final ItemStackGetEnchantmentLevelEvent.stackMethods in net.neoforged.neoforge.event.enchanting that return ItemStackModifier and TypeMethodDescriptionEnchantmentLevelSetEvent.getItem()Get the item being enchantedGetEnchantmentLevelEvent.getStack()Returns the item stack that is being queried against.Constructors in net.neoforged.neoforge.event.enchanting with parameters of type ItemStackModifierConstructorDescriptionEnchantmentLevelSetEvent(Level level, BlockPos pos, int enchantRow, int power, ItemStack itemStack, int enchantLevel) GetEnchantmentLevelEvent(ItemStack stack, ItemEnchantments.Mutable enchantments, @Nullable Holder<Enchantment> targetEnchant, HolderLookup.RegistryLookup<Enchantment> lookup) -
Uses of ItemStack in net.neoforged.neoforge.event.entity
Fields in net.neoforged.neoforge.event.entity declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackEntityTeleportEvent.ItemConsumption.itemStackMethods in net.neoforged.neoforge.event.entity that return ItemStackConstructors in net.neoforged.neoforge.event.entity with parameters of type ItemStackModifierConstructorDescriptionItemConsumption(LivingEntity entity, ItemStack itemStack, double targetX, double targetY, double targetZ) -
Uses of ItemStack in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as ItemStackModifier and TypeFieldDescriptionArmorHurtEvent.ArmorEntry.armorItemStackprivate final ItemStackLivingEquipmentChangeEvent.fromprivate final ItemStackLivingEntityUseItemEvent.itemprivate ItemStackLivingGetProjectileEvent.projectileItemStackprivate final ItemStackLivingGetProjectileEvent.projectileWeaponItemStackprivate ItemStackLivingEntityUseItemEvent.Finish.resultprivate final ItemStackLivingEquipmentChangeEvent.toprivate ItemStackLivingSwapItemsEvent.Hands.toMainHandprivate ItemStackLivingSwapItemsEvent.Hands.toOffHandprivate final ItemStackLivingUseTotemEvent.totemMethods in net.neoforged.neoforge.event.entity.living that return ItemStackModifier and TypeMethodDescriptionArmorHurtEvent.getArmorItemStack(EquipmentSlot slot) Provides the Itemstack for the given slot.LivingEquipmentChangeEvent.getFrom()LivingEntityUseItemEvent.getItem()LivingSwapItemsEvent.Hands.getItemSwappedToMainHand()Gets the item that will be swapped to the main hand of the entity.LivingSwapItemsEvent.Hands.getItemSwappedToOffHand()Gets the item that will be swapped to the offhand of the entity.LivingGetProjectileEvent.getProjectileItemStack()LivingGetProjectileEvent.getProjectileWeaponItemStack()LivingEntityUseItemEvent.Finish.getResultStack()LivingEquipmentChangeEvent.getTo()LivingUseTotemEvent.getTotem()Returns the totem of undying being used from the entity's inventory.Methods in net.neoforged.neoforge.event.entity.living with parameters of type ItemStackModifier and TypeMethodDescriptionvoidLivingSwapItemsEvent.Hands.setItemSwappedToMainHand(ItemStack item) Sets the item that will be swapped to the main hand of the entity.voidLivingSwapItemsEvent.Hands.setItemSwappedToOffHand(ItemStack item) Sets the item that will be swapped to the offhand of the entity.voidLivingGetProjectileEvent.setProjectileItemStack(ItemStack projectileItemStack) Sets the projectile itemstack to be used.voidLivingEntityUseItemEvent.Finish.setResultStack(ItemStack result) Constructors in net.neoforged.neoforge.event.entity.living with parameters of type ItemStackModifierConstructorDescriptionArmorEntry(ItemStack armorStack, float damageIn) Finish(LivingEntity entity, ItemStack item, int duration, ItemStack result) privateLivingEntityUseItemEvent(LivingEntity entity, ItemStack item, int duration) privateLivingEntityUseItemEvent(LivingEntity entity, ItemStack item, InteractionHand hand, int duration) LivingEquipmentChangeEvent(LivingEntity entity, EquipmentSlot slot, ItemStack from, ItemStack to) LivingGetProjectileEvent(LivingEntity livingEntity, ItemStack projectileWeaponItemStack, ItemStack ammo) LivingUseTotemEvent(LivingEntity entity, DamageSource source, ItemStack totem, InteractionHand hand) Start(LivingEntity entity, ItemStack item, int duration) Deprecated, for removal: This API element is subject to removal in a future version.Usethe hand sensitive versionas this version provides wrong hand informationStart(LivingEntity entity, ItemStack item, InteractionHand hand, int duration) Stop(LivingEntity entity, ItemStack item, int duration) Tick(LivingEntity entity, ItemStack item, int duration) -
Uses of ItemStack in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackArrowLooseEvent.bowprivate final ItemStackArrowNockEvent.bowprivate final ItemStackPlayerEvent.ItemCraftedEvent.craftingprivate final ItemStackPlayerEnchantItemEvent.enchantedItemprivate final ItemStackUseItemOnBlockEvent.heldItemprivate final ItemStackItemTooltipEvent.itemStackprivate final ItemStackAnvilCraftEvent.leftprivate final ItemStackPlayerDestroyItemEvent.originalprivate final ItemStackItemEntityPickupEvent.Post.originalStackprivate final ItemStackAnvilCraftEvent.outputprivate final ItemStackAnvilCraftEvent.rightprivate final ItemStackPlayerEvent.ItemSmeltedEvent.smeltingprivate final ItemStackBonemealEvent.stackFields in net.neoforged.neoforge.event.entity.player with type parameters of type ItemStackMethods in net.neoforged.neoforge.event.entity.player that return ItemStackModifier and TypeMethodDescriptionArrowLooseEvent.getBow()ArrowNockEvent.getBow()PlayerEvent.ItemCraftedEvent.getCrafting()ItemEntityPickupEvent.Post.getCurrentStack()Returns a live reference to the remaining stack held by theItemEntity.PlayerEnchantItemEvent.getEnchantedItem()ItemTooltipEvent.getItemStack()TheItemStackwith the tooltip.PlayerInteractEvent.getItemStack()UseItemOnBlockEvent.getItemStack()AnvilCraftEvent.getLeft()Returns a copy of the item stack that was in the left input slot (before the crafting operation).PlayerDestroyItemEvent.getOriginal()ItemEntityPickupEvent.Post.getOriginalStack()Returns a copy of the original stack, before it was added to the player's inventory.AnvilCraftEvent.getOutput()Returns a copy of the item stack that was picked up from the anvil output slot.AnvilCraftEvent.getRight()Returns a copy of the item stack that was in the right input slot (before the crafting operation).PlayerEvent.ItemSmeltedEvent.getSmelting()BonemealEvent.getStack()Returns the bone meal item stack.Methods in net.neoforged.neoforge.event.entity.player that return types with arguments of type ItemStackModifier and TypeMethodDescriptionItemFishedEvent.getDrops()Use this to get the items the player will receive.Constructors in net.neoforged.neoforge.event.entity.player with parameters of type ItemStackModifierConstructorDescriptionArrowLooseEvent(Player player, ItemStack bow, Level level, int charge, boolean hasAmmo) ArrowNockEvent(Player player, ItemStack item, InteractionHand hand, Level level, boolean hasAmmo) BonemealEvent(@Nullable Player player, Level level, BlockPos pos, BlockState state, ItemStack stack) ItemCraftedEvent(Player player, ItemStack crafting, Container craftMatrix) ItemSmeltedEvent(Player player, ItemStack crafting, int amountRemoved) ItemTooltipEvent(ItemStack itemStack, @Nullable Player player, List<Component> list, TooltipFlag flags, Item.TooltipContext context) This event is fired ingetTooltipLines(TooltipContext, Player, TooltipFlag), which in turn is called from its respective GUIContainer.PlayerDestroyItemEvent(Player player, ItemStack original, @Nullable InteractionHand hand) PlayerEnchantItemEvent(Player player, ItemStack enchantedItem, List<EnchantmentInstance> enchantments) Post(Player player, ItemEntity item, ItemStack originalStack) Constructor parameters in net.neoforged.neoforge.event.entity.player with type arguments of type ItemStackModifierConstructorDescriptionItemFishedEvent(List<ItemStack> stacks, int rodDamage, FishingHook hook) -
Uses of ItemStack in net.neoforged.neoforge.event.furnace
Fields in net.neoforged.neoforge.event.furnace declared as ItemStackMethods in net.neoforged.neoforge.event.furnace that return ItemStackModifier and TypeMethodDescriptionFurnaceFuelBurnTimeEvent.getItemStack()Get the ItemStack "fuel" in question.Constructors in net.neoforged.neoforge.event.furnace with parameters of type ItemStackModifierConstructorDescriptionFurnaceFuelBurnTimeEvent(ItemStack itemStack, int burnTime, @Nullable RecipeType<?> recipeType, FuelValues fuelValues) -
Uses of ItemStack in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as ItemStackMethods in net.neoforged.neoforge.event.level that return ItemStackModifier and TypeMethodDescriptionBlockEvent.BlockToolModificationEvent.getHeldItemStack()BlockDropsEvent.getTool()Returns the tool used when breaking this block; may be empty.Constructors in net.neoforged.neoforge.event.level with parameters of type ItemStackModifierConstructorDescriptionBlockDropsEvent(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Constructs a new BlockDropsEvent -
Uses of ItemStack in net.neoforged.neoforge.fluids
Fields in net.neoforged.neoforge.fluids declared as ItemStackMethods in net.neoforged.neoforge.fluids that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackDispenseFluidContainer.dumpContainer(BlockSource source, ItemStack stack) Drains a filled container and places the fluid in front of the Dispenser.DispenseFluidContainer.execute(BlockSource source, ItemStack stack) private ItemStackDispenseFluidContainer.fillContainer(BlockSource source, ItemStack stack) Picks up fluid in front of a Dispenser and fills a container with it.FluidType.getBucket(FluidStack stack) Returns the bucket containing the fluid.static ItemStackFluidUtil.getFilledBucket(FluidStack fluidStack) FluidActionResult.getResult()Methods in net.neoforged.neoforge.fluids with parameters of type ItemStackModifier and TypeMethodDescriptionprivate ItemStackDispenseFluidContainer.dumpContainer(BlockSource source, ItemStack stack) Drains a filled container and places the fluid in front of the Dispenser.DispenseFluidContainer.execute(BlockSource source, ItemStack stack) private ItemStackDispenseFluidContainer.fillContainer(BlockSource source, ItemStack stack) Picks up fluid in front of a Dispenser and fills a container with it.static Optional<FluidStack> FluidUtil.getFluidContained(ItemStack container) Helper method to get the fluid contained in an itemStackstatic Optional<IFluidHandlerItem> FluidUtil.getFluidHandler(ItemStack itemStack) Helper method to get anIFluidHandlerItemfor an itemStack.static FluidActionResultFluidUtil.tryEmptyContainer(ItemStack container, IFluidHandler fluidDestination, int maxAmount, @Nullable Player player, boolean doDrain) Takes a filled container and tries to empty it into the given tank.static FluidActionResultFluidUtil.tryEmptyContainerAndStow(ItemStack container, IFluidHandler fluidDestination, IItemHandler inventory, int maxAmount, @Nullable Player player, boolean doDrain) Takes an Fluid Container Item, tries to empty it into the fluid handler, and stows it in the given inventory.static FluidActionResultFluidUtil.tryFillContainer(ItemStack container, IFluidHandler fluidSource, int maxAmount, @Nullable Player player, boolean doFill) Fill a container from the given fluidSource.static FluidActionResultFluidUtil.tryFillContainerAndStow(ItemStack container, IFluidHandler fluidSource, IItemHandler inventory, int maxAmount, @Nullable Player player, boolean doFill) Takes an Fluid Container Item and tries to fill it from the given tank.static FluidActionResultFluidUtil.tryPickUpFluid(ItemStack emptyContainer, @Nullable Player playerIn, Level level, BlockPos pos, Direction side) Attempts to pick up a fluid in the level and put it in an empty container item.static FluidActionResultFluidUtil.tryPlaceFluid(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, ItemStack container, FluidStack resource) Constructors in net.neoforged.neoforge.fluids with parameters of type ItemStackModifierConstructorDescriptionprivateFluidActionResult(boolean success, ItemStack result) FluidActionResult(ItemStack result) -
Uses of ItemStack in net.neoforged.neoforge.fluids.capability
Methods in net.neoforged.neoforge.fluids.capability that return ItemStackModifier and TypeMethodDescriptionIFluidHandlerItem.getContainer()Get the container currently acted on by this fluid handler. -
Uses of ItemStack in net.neoforged.neoforge.fluids.capability.templates
Fields in net.neoforged.neoforge.fluids.capability.templates declared as ItemStackModifier and TypeFieldDescriptionprotected ItemStackFluidHandlerItemStack.containerprotected ItemStackFluidHandlerItemStackSimple.containerprotected final ItemStackFluidHandlerItemStack.SwapEmpty.emptyContainerprotected final ItemStackFluidHandlerItemStackSimple.SwapEmpty.emptyContainerMethods in net.neoforged.neoforge.fluids.capability.templates that return ItemStackModifier and TypeMethodDescriptionFluidHandlerItemStack.getContainer()FluidHandlerItemStackSimple.getContainer()Constructors in net.neoforged.neoforge.fluids.capability.templates with parameters of type ItemStackModifierConstructorDescriptionConsumable(Supplier<DataComponentType<SimpleFluidContent>> componentType, ItemStack container, int capacity) Consumable(Supplier<DataComponentType<SimpleFluidContent>> componentType, ItemStack container, int capacity) FluidHandlerItemStack(Supplier<DataComponentType<SimpleFluidContent>> componentType, ItemStack container, int capacity) FluidHandlerItemStackSimple(Supplier<DataComponentType<SimpleFluidContent>> componentType, ItemStack container, int capacity) SwapEmpty(Supplier<DataComponentType<SimpleFluidContent>> componentType, ItemStack container, ItemStack emptyContainer, int capacity) SwapEmpty(Supplier<DataComponentType<SimpleFluidContent>> componentType, ItemStack container, ItemStack emptyContainer, int capacity) -
Uses of ItemStack in net.neoforged.neoforge.fluids.capability.wrappers
Fields in net.neoforged.neoforge.fluids.capability.wrappers declared as ItemStackMethods in net.neoforged.neoforge.fluids.capability.wrappers that return ItemStackConstructors in net.neoforged.neoforge.fluids.capability.wrappers with parameters of type ItemStack -
Uses of ItemStack in net.neoforged.neoforge.items
Fields in net.neoforged.neoforge.items declared as ItemStackFields in net.neoforged.neoforge.items with type parameters of type ItemStackMethods in net.neoforged.neoforge.items that return ItemStackModifier and TypeMethodDescriptionComponentItemHandler.extractItem(int slot, int amount, boolean simulate) IItemHandler.extractItem(int slot, int amount, boolean simulate) Extracts an ItemStack from the given slot.ItemStackHandler.extractItem(int slot, int amount, boolean simulate) SlotItemHandler.getItem()final ItemStackStackCopySlot.getItem()protected ItemStackItemHandlerCopySlot.getStackCopy()protected abstract ItemStackStackCopySlot.getStackCopy()Gets the itemstack from the storage.protected ItemStackComponentItemHandler.getStackFromContents(ItemContainerContents contents, int slot) Retrieves a copy of a single stack from the underlying data component, returningEMPTYif the component does not have a slot present.ComponentItemHandler.getStackInSlot(int slot) IItemHandler.getStackInSlot(int slot) Returns the ItemStack in a given slot.ItemStackHandler.getStackInSlot(int slot) ComponentItemHandler.insertItem(int slot, ItemStack toInsert, boolean simulate) IItemHandler.insertItem(int slot, ItemStack stack, boolean simulate) Inserts an ItemStack into the given slot and return the remainder.static ItemStackItemHandlerHelper.insertItem(IItemHandler dest, ItemStack stack, boolean simulate) ItemStackHandler.insertItem(int slot, ItemStack stack, boolean simulate) VanillaHopperItemHandler.insertItem(int slot, ItemStack stack, boolean simulate) static ItemStackItemHandlerHelper.insertItemStacked(IItemHandler inventory, ItemStack stack, boolean simulate) Inserts the ItemStack into the inventory, filling up already present stacks first.SlotItemHandler.remove(int amount) final ItemStackStackCopySlot.remove(int amount) Methods in net.neoforged.neoforge.items with parameters of type ItemStackModifier and TypeMethodDescriptionintItemHandlerCopySlot.getMaxStackSize(ItemStack stack) intSlotItemHandler.getMaxStackSize(ItemStack stack) protected intItemStackHandler.getStackLimit(int slot, ItemStack stack) static voidItemHandlerHelper.giveItemToPlayer(Player player, ItemStack stack) giveItemToPlayer without preferred slotstatic voidItemHandlerHelper.giveItemToPlayer(Player player, ItemStack stack, int preferredSlot) Inserts the given itemstack into the players inventory.voidSlotItemHandler.initialize(ItemStack stack) ComponentItemHandler.insertItem(int slot, ItemStack toInsert, boolean simulate) IItemHandler.insertItem(int slot, ItemStack stack, boolean simulate) Inserts an ItemStack into the given slot and return the remainder.static ItemStackItemHandlerHelper.insertItem(IItemHandler dest, ItemStack stack, boolean simulate) ItemStackHandler.insertItem(int slot, ItemStack stack, boolean simulate) VanillaHopperItemHandler.insertItem(int slot, ItemStack stack, boolean simulate) static ItemStackItemHandlerHelper.insertItemStacked(IItemHandler inventory, ItemStack stack, boolean simulate) Inserts the ItemStack into the inventory, filling up already present stacks first.booleanComponentItemHandler.isItemValid(int slot, ItemStack stack) booleanIItemHandler.isItemValid(int slot, ItemStack stack) This function re-implements the vanilla functionContainer.canPlaceItem(int, ItemStack).booleanItemStackHandler.isItemValid(int slot, ItemStack stack) booleanbooleanprotected voidComponentItemHandler.onContentsChanged(int slot, ItemStack oldStack, ItemStack newStack) Called fromComponentItemHandler.updateContents(net.minecraft.world.item.component.ItemContainerContents, net.minecraft.world.item.ItemStack, int)after the stack stored in a slot has been updated.voidItemHandlerCopySlot.onQuickCraft(ItemStack oldStackIn, ItemStack newStackIn) voidSlotItemHandler.onQuickCraft(ItemStack oldStackIn, ItemStack newStackIn) voidfinal voidprotected voidItemHandlerCopySlot.setStackCopy(ItemStack stack) protected abstract voidStackCopySlot.setStackCopy(ItemStack stack) Sets the itemstack from the storage.voidComponentItemHandler.setStackInSlot(int slot, ItemStack stack) voidIItemHandlerModifiable.setStackInSlot(int slot, ItemStack stack) Overrides the stack in the given slot.voidItemStackHandler.setStackInSlot(int slot, ItemStack stack) protected voidComponentItemHandler.updateContents(ItemContainerContents contents, ItemStack stack, int slot) Performs a copy and write operation on the underlying data component, changing the stack in the target slot.Constructor parameters in net.neoforged.neoforge.items with type arguments of type ItemStack -
Uses of ItemStack in net.neoforged.neoforge.items.wrapper
Methods in net.neoforged.neoforge.items.wrapper that return ItemStackModifier and TypeMethodDescriptionCombinedInvWrapper.extractItem(int slot, int amount, boolean simulate) EmptyItemHandler.extractItem(int slot, int amount, boolean simulate) EntityEquipmentInvWrapper.extractItem(int slot, int amount, boolean simulate) ForwardingItemHandler.extractItem(int slot, int amount, boolean simulate) InvWrapper.extractItem(int slot, int amount, boolean simulate) RangedWrapper.extractItem(int slot, int amount, boolean simulate) SidedInvWrapper.extractItem(int slot, int amount, boolean simulate) RecipeWrapper.getItem(int slot) Returns the stack in this slot.CombinedInvWrapper.getStackInSlot(int slot) EmptyItemHandler.getStackInSlot(int slot) EntityEquipmentInvWrapper.getStackInSlot(int slot) ForwardingItemHandler.getStackInSlot(int slot) InvWrapper.getStackInSlot(int slot) RangedWrapper.getStackInSlot(int slot) SidedInvWrapper.getStackInSlot(int slot) CombinedInvWrapper.insertItem(int slot, ItemStack stack, boolean simulate) EmptyItemHandler.insertItem(int slot, ItemStack stack, boolean simulate) EntityEquipmentInvWrapper.insertItem(int slot, ItemStack stack, boolean simulate) ForwardingItemHandler.insertItem(int slot, ItemStack stack, boolean simulate) InvWrapper.insertItem(int slot, ItemStack stack, boolean simulate) PlayerArmorInvWrapper.insertItem(int slot, ItemStack stack, boolean simulate) PlayerMainInvWrapper.insertItem(int slot, ItemStack stack, boolean simulate) RangedWrapper.insertItem(int slot, ItemStack stack, boolean simulate) SidedInvWrapper.insertItem(int slot, ItemStack stack, boolean simulate) Methods in net.neoforged.neoforge.items.wrapper with parameters of type ItemStackModifier and TypeMethodDescriptionprotected intEntityEquipmentInvWrapper.getStackLimit(int slot, ItemStack stack) CombinedInvWrapper.insertItem(int slot, ItemStack stack, boolean simulate) EmptyItemHandler.insertItem(int slot, ItemStack stack, boolean simulate) EntityEquipmentInvWrapper.insertItem(int slot, ItemStack stack, boolean simulate) ForwardingItemHandler.insertItem(int slot, ItemStack stack, boolean simulate) InvWrapper.insertItem(int slot, ItemStack stack, boolean simulate) PlayerArmorInvWrapper.insertItem(int slot, ItemStack stack, boolean simulate) PlayerMainInvWrapper.insertItem(int slot, ItemStack stack, boolean simulate) RangedWrapper.insertItem(int slot, ItemStack stack, boolean simulate) SidedInvWrapper.insertItem(int slot, ItemStack stack, boolean simulate) booleanCombinedInvWrapper.isItemValid(int slot, ItemStack stack) booleanEmptyItemHandler.isItemValid(int slot, ItemStack stack) booleanEntityEquipmentInvWrapper.isItemValid(int slot, ItemStack stack) booleanForwardingItemHandler.isItemValid(int slot, ItemStack stack) booleanInvWrapper.isItemValid(int slot, ItemStack stack) booleanRangedWrapper.isItemValid(int slot, ItemStack stack) booleanSidedInvWrapper.isItemValid(int slot, ItemStack stack) intSidedInvWrapper.InsertLimit.limitInsert(int wrapperSlot, int invSlot, ItemStack stack) private voidSidedInvWrapper.setInventorySlotContents(int slot, ItemStack stack) voidCombinedInvWrapper.setStackInSlot(int slot, ItemStack stack) voidEmptyItemHandler.setStackInSlot(int slot, ItemStack stack) voidEntityEquipmentInvWrapper.setStackInSlot(int slot, ItemStack stack) voidInvWrapper.setStackInSlot(int slot, ItemStack stack) voidRangedWrapper.setStackInSlot(int slot, ItemStack stack) voidSidedInvWrapper.setStackInSlot(int slot, ItemStack stack) -
Uses of ItemStack in net.neoforged.neoforge.registries
Methods in net.neoforged.neoforge.registries that return ItemStack
BlockModelWrapper.renderType.