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 p_312724_, Component p_138373_, Component p_138374_, ResourceLocation p_138375_, AdvancementType p_312711_, boolean p_138377_, boolean p_138378_, boolean p_138379_) Constructors in net.minecraft.advancements with parameters of type ItemStackModifierConstructorDescriptionDisplayInfo
(ItemStack p_14969_, Component p_14970_, Component p_14971_, Optional<ClientAsset> p_312452_, AdvancementType p_312497_, boolean p_14974_, boolean p_14975_, boolean p_14976_) -
Uses of ItemStack in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon with parameters of type ItemStackModifier and TypeMethodDescriptionboolean
BeeNestDestroyedTrigger.TriggerInstance.matches
(BlockState p_146662_, ItemStack p_146663_, int p_146664_) boolean
boolean
boolean
boolean
FishingRodHookedTrigger.TriggerInstance.matches
(ItemStack p_40444_, LootContext p_40445_, Collection<ItemStack> p_40446_) boolean
InventoryChangeTrigger.TriggerInstance.matches
(Inventory p_43187_, ItemStack p_43188_, int p_43189_, int p_43190_, int p_43191_) boolean
boolean
KilledByArrowTrigger.TriggerInstance.matches
(Collection<LootContext> p_372887_, int p_372892_, ItemStack p_372931_) boolean
PickedUpItemTrigger.TriggerInstance.matches
(ServerPlayer p_221323_, ItemStack p_221324_, LootContext p_221325_) boolean
PlayerInteractTrigger.TriggerInstance.matches
(ItemStack p_61522_, LootContext p_61523_) boolean
boolean
TradeTrigger.TriggerInstance.matches
(LootContext p_70985_, ItemStack p_70986_) boolean
boolean
boolean
void
AnyBlockInteractionTrigger.trigger
(ServerPlayer p_319979_, BlockPos p_320093_, ItemStack p_320553_) void
BeeNestDestroyedTrigger.trigger
(ServerPlayer p_146652_, BlockState p_146653_, ItemStack p_146654_, int p_146655_) void
ConsumeItemTrigger.trigger
(ServerPlayer p_23683_, ItemStack p_23684_) void
EnchantedItemTrigger.trigger
(ServerPlayer p_27669_, ItemStack p_27670_, int p_27671_) void
FilledBucketTrigger.trigger
(ServerPlayer p_38773_, ItemStack p_38774_) void
FishingRodHookedTrigger.trigger
(ServerPlayer p_40417_, ItemStack p_40418_, FishingHook p_40419_, Collection<ItemStack> p_40420_) void
InventoryChangeTrigger.trigger
(ServerPlayer p_43150_, Inventory p_43151_, ItemStack p_43152_) private void
InventoryChangeTrigger.trigger
(ServerPlayer p_43154_, Inventory p_43155_, ItemStack p_43156_, int p_43157_, int p_43158_, int p_43159_) void
ItemDurabilityTrigger.trigger
(ServerPlayer p_43670_, ItemStack p_43671_, int p_43672_) void
ItemUsedOnLocationTrigger.trigger
(ServerPlayer p_286813_, BlockPos p_286625_, ItemStack p_286620_) void
KilledByArrowTrigger.trigger
(ServerPlayer p_373039_, Collection<Entity> p_373041_, ItemStack p_373082_) void
PickedUpItemTrigger.trigger
(ServerPlayer p_221299_, ItemStack p_221300_, Entity p_221301_) void
PlayerInteractTrigger.trigger
(ServerPlayer p_61495_, ItemStack p_61496_, Entity p_61497_) void
ShotCrossbowTrigger.trigger
(ServerPlayer p_65463_, ItemStack p_65464_) void
TradeTrigger.trigger
(ServerPlayer p_70960_, AbstractVillager p_70961_, ItemStack p_70962_) void
UsedTotemTrigger.trigger
(ServerPlayer p_74432_, ItemStack p_74433_) void
UsingItemTrigger.trigger
(ServerPlayer p_163866_, ItemStack p_163867_) Method parameters in net.minecraft.advancements.critereon with type arguments of type ItemStackModifier and TypeMethodDescriptionboolean
FishingRodHookedTrigger.TriggerInstance.matches
(ItemStack p_40444_, LootContext p_40445_, Collection<ItemStack> p_40446_) (package private) boolean
RecipeCraftedTrigger.TriggerInstance.matches
(ResourceKey<Recipe<?>> p_379981_, List<ItemStack> p_283698_) void
FishingRodHookedTrigger.trigger
(ServerPlayer p_40417_, ItemStack p_40418_, FishingHook p_40419_, Collection<ItemStack> p_40420_) void
RecipeCraftedTrigger.trigger
(ServerPlayer p_281468_, ResourceKey<Recipe<?>> p_380143_, List<ItemStack> p_282070_) -
Uses of ItemStack in net.minecraft.client.color.item
Methods in net.minecraft.client.color.item with parameters of type ItemStackModifier and TypeMethodDescriptionint
Constant.calculate
(ItemStack p_387612_, ClientLevel p_390387_, LivingEntity p_390469_) int
CustomModelDataSource.calculate
(ItemStack p_387541_, ClientLevel p_390516_, LivingEntity p_390366_) int
Dye.calculate
(ItemStack p_387455_, ClientLevel p_390508_, LivingEntity p_390428_) int
Firework.calculate
(ItemStack p_387104_, ClientLevel p_390445_, LivingEntity p_390517_) int
GrassColorSource.calculate
(ItemStack p_388684_, ClientLevel p_390380_, LivingEntity p_390527_) int
ItemTintSource.calculate
(ItemStack p_388652_, ClientLevel p_390356_, LivingEntity p_390510_) int
MapColor.calculate
(ItemStack p_388784_, ClientLevel p_390518_, LivingEntity p_390370_) int
Potion.calculate
(ItemStack p_387621_, ClientLevel p_390426_, LivingEntity p_390389_) int
TeamColor.calculate
(ItemStack p_390385_, ClientLevel p_390462_, LivingEntity p_390429_) -
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 TypeMethodDescriptionboolean
BundleMouseActions.onMouseScrolled
(double p_360390_, double p_362650_, int p_363161_, ItemStack p_364763_) boolean
ItemSlotMouseAction.onMouseScrolled
(double p_360659_, double p_365477_, int p_363499_, ItemStack p_365261_) void
GuiGraphics.renderComponentTooltip
(Font font, List<? extends FormattedText> tooltips, int mouseX, int mouseY, ItemStack stack) void
GuiGraphics.renderComponentTooltip
(Font font, List<? extends FormattedText> tooltips, int mouseX, int mouseY, ItemStack stack, ResourceLocation backgroundTexture) void
GuiGraphics.renderComponentTooltipFromElements
(Font font, List<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> elements, int mouseX, int mouseY, ItemStack stack) void
GuiGraphics.renderComponentTooltipFromElements
(Font font, List<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> elements, int mouseX, int mouseY, ItemStack stack, ResourceLocation backgroundTexture) void
GuiGraphics.renderFakeItem
(ItemStack p_281946_, int p_283299_, int p_283674_) void
GuiGraphics.renderFakeItem
(ItemStack p_312904_, int p_312257_, int p_312674_, int p_312138_) void
GuiGraphics.renderItem
(LivingEntity p_282154_, ItemStack p_282777_, int p_282110_, int p_281371_, int p_283572_) private void
GuiGraphics.renderItem
(LivingEntity p_283524_, Level p_282461_, ItemStack p_283653_, int p_283141_, int p_282560_, int p_282425_) private void
GuiGraphics.renderItem
(LivingEntity p_282619_, Level p_281754_, ItemStack p_281675_, int p_281271_, int p_282210_, int p_283260_, int p_281995_) void
GuiGraphics.renderItem
(ItemStack p_281978_, int p_282647_, int p_281944_) void
GuiGraphics.renderItem
(ItemStack p_282262_, int p_283221_, int p_283496_, int p_283435_) void
GuiGraphics.renderItem
(ItemStack p_282786_, int p_282502_, int p_282976_, int p_281592_, int p_282314_) private void
GuiGraphics.renderItemBar
(ItemStack p_380278_, int p_379972_, int p_379916_) private void
GuiGraphics.renderItemCooldown
(ItemStack p_380199_, int p_380397_, int p_379741_) private void
GuiGraphics.renderItemCount
(Font p_380115_, ItemStack p_379291_, int p_379544_, int p_380291_, String p_380189_) void
GuiGraphics.renderItemDecorations
(Font p_281721_, ItemStack p_281514_, int p_282056_, int p_282683_) void
GuiGraphics.renderItemDecorations
(Font p_282005_, ItemStack p_283349_, int p_282641_, int p_282146_, String p_282803_) private void
Gui.renderSlot
(GuiGraphics p_283283_, int p_283213_, int p_281301_, DeltaTracker p_348541_, Player p_283644_, ItemStack p_283317_, int p_283261_) void
GuiGraphics.renderTooltip
(Font font, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, ItemStack stack, int mouseX, int mouseY) void
GuiGraphics.renderTooltip
(Font font, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, ItemStack stack, int mouseX, int mouseY, ResourceLocation backgroundTexture) void
GuiGraphics.renderTooltip
(Font p_282308_, ItemStack p_282781_, int p_282687_, int p_282292_) private void
BundleMouseActions.toggleSelectedBundleItem
(ItemStack p_364573_, int p_364078_, int p_365257_) void
BundleMouseActions.unselectedBundleItem
(ItemStack p_365339_, int p_363847_) -
Uses of ItemStack in net.minecraft.client.gui.components.toasts
Fields in net.minecraft.client.gui.components.toasts declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStack
RecipeToast.Entry.categoryItem
The field for thecategoryItem
record component.private final ItemStack
RecipeToast.Entry.unlockedItem
The field for theunlockedItem
record component.Methods in net.minecraft.client.gui.components.toasts that return ItemStackModifier and TypeMethodDescriptionRecipeToast.Entry.categoryItem()
Returns the value of thecategoryItem
record component.RecipeToast.Entry.unlockedItem()
Returns the value of theunlockedItem
record component.Methods in net.minecraft.client.gui.components.toasts with parameters of type ItemStackModifier and TypeMethodDescriptionprivate void
Constructors 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 ItemStack
CreateFlatWorldScreen.DetailsList.Entry.getDisplayItem
(BlockState p_169294_) Methods in net.minecraft.client.gui.screens with parameters of type ItemStackModifier and TypeMethodDescriptionprivate void
CreateFlatWorldScreen.DetailsList.Entry.blitSlot
(GuiGraphics p_281733_, int p_282373_, int p_282844_, ItemStack p_281263_) Screen.getTooltipFromItem
(Minecraft p_281881_, ItemStack p_282833_) -
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 TypeMethodDescriptionvoid
AdvancementTabType.drawIcon
(GuiGraphics p_281370_, int p_283209_, int p_282807_, int p_282968_, ItemStack p_283383_) -
Uses of ItemStack in net.minecraft.client.gui.screens.debug
Fields in net.minecraft.client.gui.screens.debug declared as ItemStackModifier and TypeFieldDescription(package private) final ItemStack
GameModeSwitcherScreen.GameModeIcon.renderStack
Constructors in net.minecraft.client.gui.screens.debug with parameters of type ItemStackModifierConstructorDescriptionprivate
GameModeIcon
(Component p_97594_, String p_97595_, ItemStack p_97596_) -
Uses of ItemStack in net.minecraft.client.gui.screens.inventory
Fields in net.minecraft.client.gui.screens.inventory declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStack
LoomScreen.bannerStack
private final ItemStack
BookEditScreen.book
private ItemStack
AbstractContainerScreen.draggingItem
private ItemStack
LoomScreen.dyeStack
private ItemStack
EnchantmentScreen.last
private ItemStack
AbstractContainerScreen.lastQuickMoved
private ItemStack
LoomScreen.patternStack
private ItemStack
AbstractContainerScreen.snapbackItem
Fields in net.minecraft.client.gui.screens.inventory with type parameters of type ItemStackModifier and TypeFieldDescriptionfinal NonNullList
<ItemStack> CreativeModeInventoryScreen.ItemPickerMenu.items
Methods in net.minecraft.client.gui.screens.inventory that return ItemStackModifier and TypeMethodDescriptionCreativeModeInventoryScreen.ItemPickerMenu.getCarried()
CreativeModeInventoryScreen.SlotWrapper.getItem()
CreativeModeInventoryScreen.ItemPickerMenu.quickMoveStack
(Player p_98650_, int p_98651_) CreativeModeInventoryScreen.SlotWrapper.remove
(int p_98663_) Methods in net.minecraft.client.gui.screens.inventory with parameters of type ItemStackModifier and TypeMethodDescriptionboolean
CreativeModeInventoryScreen.ItemPickerMenu.canTakeItemForPickAll
(ItemStack p_98647_, Slot p_98648_) static BookViewScreen.BookAccess
int
CreativeModeInventoryScreen.SlotWrapper.getMaxStackSize
(ItemStack p_98675_) AbstractContainerScreen.getTooltipFromContainerItem
(ItemStack p_283689_) CreativeModeInventoryScreen.getTooltipFromContainerItem
(ItemStack p_281769_) boolean
void
private void
MerchantScreen.renderAndDecorateCostA
(GuiGraphics p_281357_, ItemStack p_283466_, ItemStack p_282046_, int p_282403_, int p_283601_) private void
AbstractContainerScreen.renderFloatingItem
(GuiGraphics p_282567_, ItemStack p_281330_, int p_281772_, int p_281689_, String p_282568_) protected void
AbstractContainerScreen.renderSlotContents
(GuiGraphics guiGraphics, ItemStack itemstack, Slot slot, String countString) void
void
CreativeModeInventoryScreen.SlotWrapper.setByPlayer
(ItemStack p_271008_, ItemStack p_299868_) void
CreativeModeInventoryScreen.ItemPickerMenu.setCarried
(ItemStack p_169751_) private boolean
AbstractContainerScreen.showTooltipWithItemInHand
(ItemStack p_360638_) void
AnvilScreen.slotChanged
(AbstractContainerMenu p_97882_, int p_97883_, ItemStack p_97884_) void
CreativeInventoryListener.slotChanged
(AbstractContainerMenu p_98498_, int p_98499_, ItemStack p_98500_) void
ItemCombinerScreen.slotChanged
(AbstractContainerMenu p_98910_, int p_98911_, ItemStack p_98912_) void
SmithingScreen.slotChanged
(AbstractContainerMenu p_267217_, int p_266842_, ItemStack p_267208_) private void
SmithingScreen.updateArmorStandPreview
(ItemStack p_268225_) Method parameters in net.minecraft.client.gui.screens.inventory with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate void
CreativeModeInventoryScreen.refreshCurrentTabContents
(Collection<ItemStack> p_261591_) Constructors in net.minecraft.client.gui.screens.inventory with parameters of type ItemStackModifierConstructorDescriptionBookEditScreen
(Player p_98076_, ItemStack p_98077_, InteractionHand p_98078_, WritableBookContent p_372879_) -
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 int
ClientBundleTooltip.getAmountOfHiddenItems
(List<ItemStack> p_362700_) private void
ClientBundleTooltip.renderSlot
(int p_283180_, int p_282972_, int p_282547_, List<ItemStack> p_361523_, int p_360587_, Font p_281863_, GuiGraphics p_283625_) private static boolean
ClientBundleTooltip.shouldRenderItemSlot
(List<ItemStack> p_362150_, int p_364466_) -
Uses of ItemStack in net.minecraft.client.gui.screens.recipebook
Fields in net.minecraft.client.gui.screens.recipebook declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStack
RecipeBookComponent.TabInfo.primaryIcon
The field for theprimaryIcon
record component.Fields in net.minecraft.client.gui.screens.recipebook with type parameters of type ItemStackModifier and TypeFieldDescriptionRecipeButton.ResolvedEntry.displayItems
The field for thedisplayItems
record component.OverlayRecipeComponent.OverlayRecipeButton.Pos.ingredients
The field for theingredients
record component.GhostSlots.GhostSlot.items
The field for theitems
record component.RecipeBookComponent.TabInfo.secondaryIcon
The field for thesecondaryIcon
record component.Methods in net.minecraft.client.gui.screens.recipebook that return ItemStackModifier and TypeMethodDescriptionRecipeButton.getDisplayStack()
GhostSlots.GhostSlot.getItem
(int p_361727_) RecipeBookComponent.TabInfo.primaryIcon()
Returns the value of theprimaryIcon
record component.OverlayRecipeComponent.OverlayRecipeButton.Pos.selectIngredient
(int p_361926_) RecipeButton.ResolvedEntry.selectItem
(int p_380035_) Methods in net.minecraft.client.gui.screens.recipebook that return types with arguments of type ItemStackModifier and TypeMethodDescriptionRecipeButton.ResolvedEntry.displayItems()
Returns the value of thedisplayItems
record component.OverlayRecipeComponent.OverlayRecipeButton.Pos.ingredients()
Returns the value of theingredients
record component.GhostSlots.GhostSlot.items()
Returns the value of theitems
record component.RecipeBookComponent.TabInfo.secondaryIcon()
Returns the value of thesecondaryIcon
record 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.Pos
OverlayRecipeComponent.OverlayRecipeButton.createGridPos
(int p_364955_, int p_365288_, List<ItemStack> p_362300_) Constructors in net.minecraft.client.gui.screens.recipebook with parameters of type ItemStackModifierConstructorDescriptionTabInfo
(ItemStack primaryIcon, Optional<ItemStack> secondaryIcon, ExtendedRecipeBookCategory category) Creates an instance of aTabInfo
record class.Constructor parameters in net.minecraft.client.gui.screens.recipebook with type arguments of type ItemStackModifierConstructorDescription(package private)
Creates an instance of aGhostSlot
record class.Creates an instance of aPos
record class.(package private)
ResolvedEntry
(RecipeDisplayId id, List<ItemStack> displayItems) Creates an instance of aResolvedEntry
record class.TabInfo
(ItemStack primaryIcon, Optional<ItemStack> secondaryIcon, ExtendedRecipeBookCategory category) Creates an instance of aTabInfo
record 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.creativeByNameSearch
private CompletableFuture
<SearchTree<ItemStack>> SessionSearchTrees.creativeByTagSearch
Methods 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 TypeMethodDescriptionvoid
MultiPlayerGameMode.handleCreativeModeItemAdd
(ItemStack p_105242_, int p_105243_) void
MultiPlayerGameMode.handleCreativeModeItemDrop
(ItemStack p_105240_) Method parameters in net.minecraft.client.multiplayer with type arguments of type ItemStackModifier and TypeMethodDescriptionSessionSearchTrees.getTooltipLines
(Stream<ItemStack> p_344879_, Item.TooltipContext p_345662_, TooltipFlag p_345262_) void
SessionSearchTrees.updateCreativeTags
(List<ItemStack> p_346121_) void
SessionSearchTrees.updateCreativeTags
(List<ItemStack> p_346121_, SessionSearchTrees.Key key) void
SessionSearchTrees.updateCreativeTooltips
(HolderLookup.Provider p_345391_, List<ItemStack> p_346357_) void
SessionSearchTrees.updateCreativeTooltips
(HolderLookup.Provider p_345391_, List<ItemStack> p_346357_, SessionSearchTrees.Key key) -
Uses of ItemStack in net.minecraft.client.particle
Methods in net.minecraft.client.particle with parameters of type ItemStackModifier and TypeMethodDescriptionprotected ItemStackRenderState
BreakingItemParticle.ItemParticleProvider.calculateState
(ItemStack p_387481_, ClientLevel p_388432_) -
Uses of ItemStack in net.minecraft.client.player
Methods in net.minecraft.client.player with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
LocalPlayer.handleCreativeModeItemDrop
(ItemStack p_365052_) void
LocalPlayer.openItemGui
(ItemStack p_108673_, InteractionHand p_108674_) void
LocalPlayer.updateTutorialInventoryAction
(ItemStack p_172532_, ItemStack p_172533_, ClickAction p_172534_) -
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 ItemStack
GameRenderer.itemActivationItem
private ItemStack
ItemInHandRenderer.mainHandItem
private ItemStack
ItemInHandRenderer.offHandItem
Methods in net.minecraft.client.renderer with parameters of type ItemStackModifier and TypeMethodDescriptionprivate void
ItemInHandRenderer.applyBrushTransform
(PoseStack p_273513_, float p_273245_, HumanoidArm p_273726_, ItemStack p_272809_, Player p_345294_, float p_273333_) private void
ItemInHandRenderer.applyEatTransform
(PoseStack p_109331_, float p_109332_, HumanoidArm p_109333_, ItemStack p_109334_, Player p_346361_) void
GameRenderer.displayItemActivation
(ItemStack p_109114_) static RenderType
ItemBlockRenderTypes.getRenderType
(ItemStack p_366701_) Deprecated.private static boolean
ItemInHandRenderer.isChargedCrossbow
(ItemStack p_172913_) private void
ItemInHandRenderer.renderArmWithItem
(AbstractClientPlayer p_109372_, float p_109373_, float p_109374_, InteractionHand p_109375_, float p_109376_, ItemStack p_109377_, float p_109378_, PoseStack p_109379_, MultiBufferSource p_109380_, int p_109381_) void
ItemInHandRenderer.renderItem
(LivingEntity p_270072_, ItemStack p_270793_, ItemDisplayContext p_270837_, PoseStack p_270974_, MultiBufferSource p_270686_, int p_270103_) private void
ItemInHandRenderer.renderMap
(PoseStack p_109367_, MultiBufferSource p_109368_, int p_109369_, ItemStack p_109370_) private void
ItemInHandRenderer.renderOneHandedMap
(PoseStack p_109354_, MultiBufferSource p_109355_, int p_109356_, float p_109357_, HumanoidArm p_109358_, float p_109359_, ItemStack p_109360_) private boolean
ItemInHandRenderer.shouldInstantlyReplaceVisibleItem
(ItemStack p_390460_, ItemStack p_390457_) -
Uses of ItemStack in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStack
HumanoidMobRenderer.getEquipmentIfRenderable
(LivingEntity p_386637_, EquipmentSlot p_386956_) Methods in net.minecraft.client.renderer.entity with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
ItemRenderer.renderStatic
(LivingEntity p_270101_, ItemStack p_270637_, ItemDisplayContext p_270437_, PoseStack p_270230_, MultiBufferSource p_270411_, Level p_270641_, int p_270595_, int p_270927_, int p_270845_) void
ItemRenderer.renderStatic
(ItemStack p_270761_, ItemDisplayContext p_270648_, int p_270410_, int p_270894_, PoseStack p_270430_, MultiBufferSource p_270457_, Level p_270149_, int p_270509_) -
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 boolean
CapeLayer.hasLayer
(ItemStack p_372809_, EquipmentClientInfo.LayerType p_388089_) private void
WolfArmorLayer.maybeRenderCracks
(PoseStack p_331222_, MultiBufferSource p_331637_, int p_330931_, ItemStack p_331187_, Model p_364428_) private void
HumanoidArmorLayer.renderArmorPiece
(PoseStack p_117119_, MultiBufferSource p_117120_, ItemStack p_362532_, EquipmentSlot p_117122_, int p_117123_, A p_117124_) private void
LlamaDecorLayer.renderEquipment
(PoseStack p_371183_, MultiBufferSource p_371243_, LlamaRenderState p_371331_, ItemStack p_371708_, ResourceKey<EquipmentAsset> p_387965_, int p_371469_) void
EquipmentLayerRenderer.renderLayers
(EquipmentClientInfo.LayerType p_388694_, ResourceKey<EquipmentAsset> p_386937_, Model p_371498_, ItemStack p_371902_, PoseStack p_371937_, MultiBufferSource p_371457_, int p_371495_) void
EquipmentLayerRenderer.renderLayers
(EquipmentClientInfo.LayerType p_387484_, ResourceKey<EquipmentAsset> p_387603_, Model p_371731_, ItemStack p_371670_, PoseStack p_371767_, MultiBufferSource p_371286_, int p_371309_, ResourceLocation p_371639_) static boolean
HumanoidArmorLayer.shouldRender
(ItemStack p_371911_, EquipmentSlot p_371669_) Constructor parameters in net.minecraft.client.renderer.entity.layers with type arguments of type ItemStackModifierConstructorDescriptionSimpleEquipmentLayer
(RenderLayerParent<S, RM> p_397277_, EquipmentLayerRenderer p_398036_, EM p_397856_, EquipmentClientInfo.LayerType p_397312_, Function<S, ItemStack> p_397526_) SimpleEquipmentLayer
(RenderLayerParent<S, RM> p_397685_, EquipmentLayerRenderer p_397797_, EquipmentClientInfo.LayerType p_397371_, Function<S, ItemStack> p_397740_, EM p_397462_, EM p_397451_) -
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.ArmPose
PlayerRenderer.getArmPose
(Player p_386775_, ItemStack p_388403_, InteractionHand p_117796_) -
Uses of ItemStack in net.minecraft.client.renderer.entity.state
Fields in net.minecraft.client.renderer.entity.state declared as ItemStackModifier and TypeFieldDescriptionHorseRenderState.bodyArmorItem
WolfRenderState.bodyArmorItem
LlamaRenderState.bodyItem
HumanoidRenderState.chestEquipment
HumanoidRenderState.feetEquipment
HumanoidRenderState.headEquipment
HumanoidRenderState.legsEquipment
CamelRenderState.saddle
EquineRenderState.saddle
PigRenderState.saddle
StriderRenderState.saddle
Methods in net.minecraft.client.renderer.entity.state with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
ItemClusterRenderState.extractItemGroupRenderState
(Entity p_386526_, ItemStack p_386486_, ItemModelResolver p_387036_) static int
ItemClusterRenderState.getSeedForItemStack
(ItemStack p_387411_) -
Uses of ItemStack in net.minecraft.client.renderer.item
Methods in net.minecraft.client.renderer.item with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
ItemModelResolver.appendItemLayers
(ItemStackRenderState p_387962_, ItemStack p_388009_, ItemDisplayContext p_387722_, Level p_388449_, LivingEntity p_388907_, int p_388206_) private static void
ItemModelResolver.fixupSkullProfile
(ItemStack p_387791_) private static boolean
BlockModelWrapper.hasSpecialAnimatedTexture
(ItemStack p_387217_) boolean
ItemModelResolver.shouldPlaySwapAnimation
(ItemStack p_390529_) void
BlockModelWrapper.update
(ItemStackRenderState p_386488_, ItemStack p_386443_, ItemModelResolver p_388726_, ItemDisplayContext p_388231_, ClientLevel p_387522_, LivingEntity p_387263_, int p_388300_) void
BundleSelectedItemSpecialRenderer.update
(ItemStackRenderState p_387618_, ItemStack p_386990_, ItemModelResolver p_386923_, ItemDisplayContext p_387805_, ClientLevel p_387156_, LivingEntity p_388838_, int p_386711_) void
CompositeModel.update
(ItemStackRenderState p_386893_, ItemStack p_387281_, ItemModelResolver p_388412_, ItemDisplayContext p_388059_, ClientLevel p_388484_, LivingEntity p_388840_, int p_387330_) void
ConditionalItemModel.update
(ItemStackRenderState p_387756_, ItemStack p_387286_, ItemModelResolver p_386644_, ItemDisplayContext p_387754_, ClientLevel p_388301_, LivingEntity p_387078_, int p_387025_) void
EmptyModel.update
(ItemStackRenderState p_390492_, ItemStack p_390354_, ItemModelResolver p_390507_, ItemDisplayContext p_390501_, ClientLevel p_390403_, LivingEntity p_390475_, int p_390493_) void
ItemModel.update
(ItemStackRenderState p_388724_, ItemStack p_387772_, ItemModelResolver p_387767_, ItemDisplayContext p_388857_, ClientLevel p_387982_, LivingEntity p_386606_, int p_387820_) void
MissingItemModel.update
(ItemStackRenderState p_386627_, ItemStack p_388292_, ItemModelResolver p_388302_, ItemDisplayContext p_388518_, ClientLevel p_387367_, LivingEntity p_388182_, int p_388913_) void
RangeSelectItemModel.update
(ItemStackRenderState p_387732_, ItemStack p_386891_, ItemModelResolver p_388786_, ItemDisplayContext p_387570_, ClientLevel p_388512_, LivingEntity p_388280_, int p_388577_) void
SelectItemModel.update
(ItemStackRenderState p_387349_, ItemStack p_386764_, ItemModelResolver p_388842_, ItemDisplayContext p_386961_, ClientLevel p_386907_, LivingEntity p_387755_, int p_386608_) void
SpecialModelWrapper.update
(ItemStackRenderState p_388134_, ItemStack p_387781_, ItemModelResolver p_387931_, ItemDisplayContext p_388057_, ClientLevel p_388213_, LivingEntity p_388020_, int p_387759_) void
ItemModelResolver.updateForLiving
(ItemStackRenderState p_387100_, ItemStack p_387635_, ItemDisplayContext p_388107_, LivingEntity p_388201_) void
ItemModelResolver.updateForNonLiving
(ItemStackRenderState p_386914_, ItemStack p_388286_, ItemDisplayContext p_387479_, Entity p_386766_) void
ItemModelResolver.updateForTopItem
(ItemStackRenderState p_387014_, ItemStack p_388693_, ItemDisplayContext p_388835_, Level p_388064_, LivingEntity p_388047_, int p_388137_) -
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 TypeMethodDescriptionboolean
Broken.get
(ItemStack p_386887_, ClientLevel p_388949_, LivingEntity p_386628_, int p_387040_, ItemDisplayContext p_389458_) boolean
BundleHasSelectedItem.get
(ItemStack p_387343_, ClientLevel p_386467_, LivingEntity p_387284_, int p_388377_, ItemDisplayContext p_389630_) boolean
ComponentMatches.get
(ItemStack p_399920_, ClientLevel p_399844_, LivingEntity p_399573_, int p_400095_, ItemDisplayContext p_400208_) boolean
CustomModelDataProperty.get
(ItemStack p_387675_, ClientLevel p_387669_, LivingEntity p_388044_, int p_388257_, ItemDisplayContext p_389481_) boolean
Damaged.get
(ItemStack p_388323_, ClientLevel p_388659_, LivingEntity p_386950_, int p_387664_, ItemDisplayContext p_389573_) boolean
ExtendedView.get
(ItemStack p_389501_, ClientLevel p_389409_, LivingEntity p_389583_, int p_389502_, ItemDisplayContext p_389679_) boolean
FishingRodCast.get
(ItemStack p_388347_, ClientLevel p_388341_, LivingEntity p_386847_, int p_386531_, ItemDisplayContext p_389619_) boolean
HasComponent.get
(ItemStack p_388222_, ClientLevel p_386715_, LivingEntity p_386871_, int p_387461_, ItemDisplayContext p_389562_) boolean
IsCarried.get
(ItemStack p_387247_, ClientLevel p_387933_, LivingEntity p_388427_, int p_386998_, ItemDisplayContext p_389534_) boolean
IsKeybindDown.get
(ItemStack p_389550_, ClientLevel p_389440_, LivingEntity p_389703_, int p_389439_, ItemDisplayContext p_389599_) boolean
IsSelected.get
(ItemStack p_387724_, ClientLevel p_387118_, LivingEntity p_387251_, int p_388905_, ItemDisplayContext p_389631_) boolean
IsUsingItem.get
(ItemStack p_386538_, ClientLevel p_386504_, LivingEntity p_388492_, int p_387916_, ItemDisplayContext p_389393_) boolean
IsViewEntity.get
(ItemStack p_390357_, ClientLevel p_390458_, LivingEntity p_390497_, int p_390451_, ItemDisplayContext p_390466_) boolean
ItemModelPropertyTest.get
(ItemStack p_399831_, ClientLevel p_399506_, LivingEntity p_399675_, int p_400089_, ItemDisplayContext p_400225_) -
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 float
CompassAngleState.calculate
(ItemStack p_388108_, ClientLevel p_387750_, int p_388073_, Entity p_388489_) protected abstract float
NeedleDirectionHelper.calculate
(ItemStack p_386601_, ClientLevel p_387798_, int p_387568_, Entity p_388687_) protected float
Time.calculate
(ItemStack p_387493_, ClientLevel p_387362_, int p_388783_, Entity p_388056_) float
BundleFullness.get
(ItemStack p_388015_, ClientLevel p_386753_, LivingEntity p_386760_, int p_386639_) float
CompassAngle.get
(ItemStack p_387228_, ClientLevel p_386952_, LivingEntity p_386971_, int p_387210_) (package private) abstract GlobalPos
CompassAngleState.CompassTarget.get
(ClientLevel p_387000_, ItemStack p_387505_, Entity p_387524_) float
Cooldown.get
(ItemStack p_387823_, ClientLevel p_386825_, LivingEntity p_387191_, int p_387909_) float
Count.get
(ItemStack p_388019_, ClientLevel p_386708_, LivingEntity p_387940_, int p_388179_) float
CrossbowPull.get
(ItemStack p_387470_, ClientLevel p_387947_, LivingEntity p_388564_, int p_388371_) float
CustomModelDataProperty.get
(ItemStack p_386883_, ClientLevel p_387867_, LivingEntity p_388117_, int p_388040_) float
Damage.get
(ItemStack p_386977_, ClientLevel p_386768_, LivingEntity p_387971_, int p_386955_) float
NeedleDirectionHelper.get
(ItemStack p_386635_, ClientLevel p_387256_, LivingEntity p_388745_, int p_387873_) float
RangeSelectItemModelProperty.get
(ItemStack p_388695_, ClientLevel p_388363_, LivingEntity p_387282_, int p_386614_) (package private) abstract float
Time.TimeSource.get
(ClientLevel p_390505_, ItemStack p_390478_, Entity p_390420_, RandomSource p_390390_) float
UseCycle.get
(ItemStack p_387347_, ClientLevel p_388372_, LivingEntity p_387048_, int p_388681_) float
UseDuration.get
(ItemStack p_388572_, ClientLevel p_387106_, LivingEntity p_387276_, int p_386612_) static int
UseDuration.useDuration
(ItemStack p_387488_, LivingEntity p_388304_) -
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 p_389482_, ClientLevel p_389609_, LivingEntity p_389651_, int p_389546_, ItemDisplayContext p_389556_) MainHand.get
(ItemStack p_387406_, ClientLevel p_387423_, LivingEntity p_388453_, int p_388098_, ItemDisplayContext p_386609_) SelectItemModelProperty.get
(ItemStack p_387845_, ClientLevel p_387945_, LivingEntity p_388349_, int p_388630_, ItemDisplayContext p_388902_) 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 p_387879_) DecoratedPotSpecialRenderer.extractArgument
(ItemStack p_386678_) default Void
NoDataSpecialModelRenderer.extractArgument
(ItemStack p_386451_) ShieldSpecialRenderer.extractArgument
(ItemStack p_387204_) SkullSpecialRenderer.extractArgument
(ItemStack p_386712_) SpecialModelRenderer.extractArgument
(ItemStack p_387212_) -
Uses of ItemStack in net.minecraft.client.tutorial
Methods in net.minecraft.client.tutorial with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
void
void
void
default void
void
Tutorial.onInventoryAction
(ItemStack p_175025_, ItemStack p_175026_, ClickAction p_175027_) -
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.presenceChecker
The field for thepresenceChecker
record component.ItemPredicateArgument.PredicateWrapper.type
The field for thetype
record component.ItemPredicateArgument.ComponentWrapper.valueChecker
The field for thevalueChecker
record component.Methods in net.minecraft.commands.arguments.item that return ItemStackMethods in net.minecraft.commands.arguments.item that return types with arguments of type ItemStackModifier and TypeMethodDescriptionItemPredicateArgument.Context.createComponentTest
(com.mojang.brigadier.ImmutableStringReader p_335602_, ItemPredicateArgument.ComponentWrapper p_335607_) ItemPredicateArgument.Context.createComponentTest
(com.mojang.brigadier.ImmutableStringReader p_335953_, ItemPredicateArgument.ComponentWrapper p_335824_, com.mojang.serialization.Dynamic<?> p_399995_) ItemPredicateArgument.Context.createPredicateTest
(com.mojang.brigadier.ImmutableStringReader p_335414_, ItemPredicateArgument.PredicateWrapper p_335561_, com.mojang.serialization.Dynamic<?> p_400185_) ItemPredicateArgument.ComponentWrapper.decode
(com.mojang.brigadier.ImmutableStringReader p_335970_, com.mojang.serialization.Dynamic<?> p_400012_) ItemPredicateArgument.PredicateWrapper.decode
(com.mojang.brigadier.ImmutableStringReader p_335497_, com.mojang.serialization.Dynamic<?> p_399895_) ItemPredicateArgument.Context.forElementType
(com.mojang.brigadier.ImmutableStringReader p_335407_, ResourceLocation p_335837_) ItemPredicateArgument.Context.forTagType
(com.mojang.brigadier.ImmutableStringReader p_335801_, ResourceLocation p_336117_) ItemPredicateArgument.ComponentWrapper.presenceChecker()
Returns the value of thepresenceChecker
record component.ItemPredicateArgument.PredicateWrapper.type()
Returns the value of thetype
record component.ItemPredicateArgument.ComponentWrapper.valueChecker()
Returns the value of thevalueChecker
record 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 aComponentWrapper
record class.(package private)
ComponentWrapper
(ResourceLocation id, Predicate<ItemStack> presenceChecker, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> valueChecker) Creates an instance of aComponentWrapper
record class.(package private)
PredicateWrapper
(ResourceLocation id, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> type) Creates an instance of aPredicateWrapper
record class. -
Uses of ItemStack in net.minecraft.core.cauldron
Methods in net.minecraft.core.cauldron with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static InteractionResult
CauldronInteraction.bannerInteraction
(BlockState p_365039_, Level p_360792_, BlockPos p_364354_, Player p_362948_, InteractionHand p_363589_, ItemStack p_365256_) private static InteractionResult
CauldronInteraction.dyedItemIteration
(BlockState p_364488_, Level p_363832_, BlockPos p_363503_, Player p_362213_, InteractionHand p_360757_, ItemStack p_360363_) static InteractionResult
CauldronInteraction.emptyBucket
(Level p_175619_, BlockPos p_175620_, Player p_175621_, InteractionHand p_175622_, ItemStack p_175623_, BlockState p_175624_, SoundEvent p_175625_) static InteractionResult
CauldronInteraction.fillBucket
(BlockState p_175636_, Level p_175637_, BlockPos p_175638_, Player p_175639_, InteractionHand p_175640_, ItemStack p_175641_, ItemStack p_175642_, Predicate<BlockState> p_175643_, SoundEvent p_175644_) private static InteractionResult
CauldronInteraction.fillLavaInteraction
(BlockState p_360382_, Level p_365170_, BlockPos p_361603_, Player p_365069_, InteractionHand p_360292_, ItemStack p_364835_) private static InteractionResult
CauldronInteraction.fillPowderSnowInteraction
(BlockState p_361682_, Level p_362979_, BlockPos p_361996_, Player p_361273_, InteractionHand p_361726_, ItemStack p_361338_) private static InteractionResult
CauldronInteraction.fillWaterInteraction
(BlockState p_362955_, Level p_363378_, BlockPos p_363149_, Player p_364905_, InteractionHand p_361406_, ItemStack p_361413_) CauldronInteraction.interact
(BlockState p_175711_, Level p_175712_, BlockPos p_175713_, Player p_175714_, InteractionHand p_175715_, ItemStack p_175716_) private static InteractionResult
CauldronInteraction.shulkerBoxInteraction
(BlockState p_360793_, Level p_365272_, BlockPos p_361319_, Player p_365441_, InteractionHand p_361085_, ItemStack p_365174_) -
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.items
The field for theitems
record component.private final Optional
<CollectionPredicate<ItemStack, ItemPredicate>> ContainerPredicate.items
The field for theitems
record component.Methods in net.minecraft.core.component.predicates that return types with arguments of type ItemStackModifier and TypeMethodDescriptionBundlePredicate.items()
Returns the value of theitems
record component.ContainerPredicate.items()
Returns the value of theitems
record component.Constructor parameters in net.minecraft.core.component.predicates with type arguments of type ItemStackModifierConstructorDescriptionCreates an instance of aBundlePredicate
record class.Creates an instance of aContainerPredicate
record class. -
Uses of ItemStack in net.minecraft.core.dispenser
Methods in net.minecraft.core.dispenser that return ItemStackModifier and TypeMethodDescriptionprotected ItemStack
DefaultDispenseItemBehavior.consumeWithRemainder
(BlockSource p_347658_, ItemStack p_347682_, ItemStack p_347670_) final ItemStack
DefaultDispenseItemBehavior.dispense
(BlockSource p_302432_, ItemStack p_123392_) DispenseItemBehavior.dispense
(BlockSource p_302445_, ItemStack p_123404_) BoatDispenseItemBehavior.execute
(BlockSource p_302460_, ItemStack p_123376_) protected ItemStack
DefaultDispenseItemBehavior.execute
(BlockSource p_302420_, ItemStack p_123386_) protected ItemStack
EquipmentDispenseItemBehavior.execute
(BlockSource p_371344_, ItemStack p_371463_) MinecartDispenseItemBehavior.execute
(BlockSource p_374045_, ItemStack p_374580_) ProjectileDispenseBehavior.execute
(BlockSource p_338635_, ItemStack p_338423_) protected ItemStack
ShearsDispenseItemBehavior.execute
(BlockSource p_302443_, ItemStack p_123581_) protected ItemStack
ShulkerBoxDispenseBehavior.execute
(BlockSource p_302426_, ItemStack p_123588_) Methods in net.minecraft.core.dispenser with parameters of type ItemStackModifier and TypeMethodDescriptionprivate void
DefaultDispenseItemBehavior.addToInventoryOrDispense
(BlockSource p_347634_, ItemStack p_347604_) protected ItemStack
DefaultDispenseItemBehavior.consumeWithRemainder
(BlockSource p_347658_, ItemStack p_347682_, ItemStack p_347670_) final ItemStack
DefaultDispenseItemBehavior.dispense
(BlockSource p_302432_, ItemStack p_123392_) DispenseItemBehavior.dispense
(BlockSource p_302445_, ItemStack p_123404_) static boolean
EquipmentDispenseItemBehavior.dispenseEquipment
(BlockSource p_371324_, ItemStack p_371227_) BoatDispenseItemBehavior.execute
(BlockSource p_302460_, ItemStack p_123376_) protected ItemStack
DefaultDispenseItemBehavior.execute
(BlockSource p_302420_, ItemStack p_123386_) protected ItemStack
EquipmentDispenseItemBehavior.execute
(BlockSource p_371344_, ItemStack p_371463_) MinecartDispenseItemBehavior.execute
(BlockSource p_374045_, ItemStack p_374580_) ProjectileDispenseBehavior.execute
(BlockSource p_338635_, ItemStack p_338423_) protected ItemStack
ShearsDispenseItemBehavior.execute
(BlockSource p_302443_, ItemStack p_123581_) protected ItemStack
ShulkerBoxDispenseBehavior.execute
(BlockSource p_302426_, ItemStack p_123588_) static void
DefaultDispenseItemBehavior.spawnItem
(Level p_123379_, ItemStack p_123380_, int p_123381_, Direction p_123382_, Position p_123383_) private static boolean
ShearsDispenseItemBehavior.tryShearLivingEntity
(ServerLevel p_123583_, BlockPos p_123584_, ItemStack p_372883_) -
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_CODEC
Methods in net.minecraft.core.particles that return ItemStackConstructors in net.minecraft.core.particles with parameters of type ItemStackModifierConstructorDescriptionItemParticleOption
(ParticleType<ItemParticleOption> p_123705_, ItemStack p_123706_) -
Uses of ItemStack in net.minecraft.data.recipes
Fields in net.minecraft.data.recipes declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStack
ShapelessRecipeBuilder.result
private final ItemStack
ShapedRecipeBuilder.resultStack
private final ItemStack
SimpleCookingRecipeBuilder.stackResult
Methods in net.minecraft.data.recipes with parameters of type ItemStackModifier and TypeMethodDescriptionstatic SimpleCookingRecipeBuilder
SimpleCookingRecipeBuilder.blasting
(Ingredient p_252115_, RecipeCategory p_249421_, ItemStack result, float p_250383_, int p_250476_) static SimpleCookingRecipeBuilder
SimpleCookingRecipeBuilder.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 ShapedRecipeBuilder
ShapedRecipeBuilder.shaped
(HolderGetter<Item> p_365019_, RecipeCategory p_251325_, ItemStack result) protected ShapelessRecipeBuilder
RecipeProvider.shapeless
(RecipeCategory p_364602_, ItemStack p_361999_) static ShapelessRecipeBuilder
ShapelessRecipeBuilder.shapeless
(HolderGetter<Item> p_364294_, RecipeCategory p_361887_, ItemStack p_364359_) static SimpleCookingRecipeBuilder
SimpleCookingRecipeBuilder.smelting
(Ingredient p_249223_, RecipeCategory p_251240_, ItemStack result, float p_249452_, int p_250496_) static SimpleCookingRecipeBuilder
SimpleCookingRecipeBuilder.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 ItemStackModifierConstructorDescriptionprivate
ShapedRecipeBuilder
(HolderGetter<Item> p_365072_, RecipeCategory p_249996_, ItemStack result) private
ShapelessRecipeBuilder
(HolderGetter<Item> p_363417_, RecipeCategory p_250837_, ItemStack p_363612_) private
SimpleCookingRecipeBuilder
(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 HashedStack
HashedStack.create
(ItemStack p_412136_, HashedPatchMap.HashGenerator p_412663_) boolean
HashedStack.ActualItem.matches
(ItemStack p_412763_, HashedPatchMap.HashGenerator p_412137_) boolean
HashedStack.matches
(ItemStack p_412709_, HashedPatchMap.HashGenerator p_412057_) -
Uses of ItemStack in net.minecraft.network.chat
Fields in net.minecraft.network.chat declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStack
HoverEvent.ShowItem.item
The field for theitem
record component.Methods in net.minecraft.network.chat that return ItemStackModifier and TypeMethodDescriptionHoverEvent.ShowItem.item()
Returns the value of theitem
record 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 ItemStack
ClientboundContainerSetContentPacket.carriedItem
The field for thecarriedItem
record component.private final ItemStack
ClientboundSetCursorItemPacket.contents
The field for thecontents
record component.private final ItemStack
ClientboundSetPlayerInventoryPacket.contents
The field for thecontents
record component.private final ItemStack
ClientboundContainerSetSlotPacket.itemStack
private final ItemStack
ServerboundSetCreativeModeSlotPacket.itemStack
The field for theitemStack
record component.Fields in net.minecraft.network.protocol.game with type parameters of type ItemStackModifier and TypeFieldDescriptionClientboundContainerSetContentPacket.items
The field for theitems
record component.private final List
<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> ClientboundSetEquipmentPacket.slots
Methods in net.minecraft.network.protocol.game that return ItemStackModifier and TypeMethodDescriptionClientboundContainerSetContentPacket.carriedItem()
Returns the value of thecarriedItem
record component.ClientboundSetCursorItemPacket.contents()
Returns the value of thecontents
record component.ClientboundSetPlayerInventoryPacket.contents()
Returns the value of thecontents
record component.ClientboundContainerSetSlotPacket.getItem()
ServerboundSetCreativeModeSlotPacket.itemStack()
Returns the value of theitemStack
record 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 theitems
record 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 aClientboundContainerSetContentPacket
record class.ClientboundContainerSetSlotPacket
(int p_131982_, int p_182713_, int p_131983_, ItemStack p_131984_) ClientboundSetCursorItemPacket
(ItemStack contents) Creates an instance of aClientboundSetCursorItemPacket
record class.ClientboundSetPlayerInventoryPacket
(int slot, ItemStack contents) Creates an instance of aClientboundSetPlayerInventoryPacket
record class.ServerboundSetCreativeModeSlotPacket
(int p_134553_, ItemStack p_134554_) ServerboundSetCreativeModeSlotPacket
(short slotNum, ItemStack itemStack) Creates an instance of aServerboundSetCreativeModeSlotPacket
record 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 aClientboundContainerSetContentPacket
record class.ClientboundSetEquipmentPacket
(int p_133202_, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> p_133203_) -
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 ItemStack
ItemCommands.applyModifier
(CommandSourceStack p_180284_, Holder<LootItemFunction> p_335682_, ItemStack p_180286_) private static ItemStack
ItemCommands.getBlockItem
(CommandSourceStack p_180288_, BlockPos p_180289_, int p_180290_) private static ItemStack
ItemCommands.getEntityItem
(Entity p_180246_, int p_180247_) private static ItemStack
LootCommand.getSourceHandItem
(CommandSourceStack p_137939_, EquipmentSlot p_137940_) Methods in net.minecraft.server.commands with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static ItemStack
ItemCommands.applyModifier
(CommandSourceStack p_180284_, Holder<LootItemFunction> p_335682_, ItemStack p_180286_) private static boolean
LootCommand.canMergeItems
(ItemStack p_137895_, ItemStack p_137896_) private static boolean
LootCommand.distributeToContainer
(Container p_137886_, ItemStack p_137887_) private static int
LootCommand.dropBlockLoot
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137913_, BlockPos p_137914_, ItemStack p_137915_, LootCommand.DropConsumer p_137916_) private static int
LootCommand.dropFishingLoot
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137927_, Holder<LootTable> p_335944_, BlockPos p_137929_, ItemStack p_137930_, LootCommand.DropConsumer p_137931_) private static int
ItemCommands.setBlockItem
(CommandSourceStack p_180292_, BlockPos p_180293_, int p_180294_, ItemStack p_180295_) private static int
ItemCommands.setEntityItem
(CommandSourceStack p_180332_, Collection<? extends Entity> p_180333_, int p_180334_, ItemStack p_180335_) Method parameters in net.minecraft.server.commands with type arguments of type ItemStackModifier and TypeMethodDescriptionvoid
int
LootCommand.DropConsumer.accept
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_138050_, List<ItemStack> p_138051_, LootCommand.Callback p_138052_) private static int
LootCommand.blockDistribute
(CommandSourceStack p_137961_, BlockPos p_137962_, List<ItemStack> p_137963_, LootCommand.Callback p_137964_) private static int
LootCommand.blockReplace
(CommandSourceStack p_137954_, BlockPos p_137955_, int p_137956_, int p_137957_, List<ItemStack> p_137958_, LootCommand.Callback p_137959_) private static void
LootCommand.callback
(CommandSourceStack p_137966_, List<ItemStack> p_137967_) private static void
LootCommand.callback
(CommandSourceStack p_137969_, List<ItemStack> p_137970_, ResourceKey<LootTable> p_336191_) private static int
ClearInventoryCommands.clearInventory
(CommandSourceStack p_136706_, Collection<ServerPlayer> p_136707_, Predicate<ItemStack> p_136708_, int p_136709_) private static int
ClearInventoryCommands.clearUnlimited
(CommandSourceStack p_332708_, Collection<ServerPlayer> p_332807_, Predicate<ItemStack> p_332684_) private static int
ExecuteCommand.countItems
(Iterable<? extends Entity> p_332642_, SlotRange p_332729_, Predicate<ItemStack> p_332803_) private static int
ExecuteCommand.countItems
(CommandSourceStack p_332730_, BlockPos p_332679_, SlotRange p_332656_, Predicate<ItemStack> p_332801_) private static int
LootCommand.dropInWorld
(CommandSourceStack p_137946_, Vec3 p_137947_, List<ItemStack> p_137948_, LootCommand.Callback p_137949_) private static int
LootCommand.entityReplace
(Collection<? extends Entity> p_137979_, int p_137980_, int p_137981_, List<ItemStack> p_137982_, LootCommand.Callback p_137983_) private static int
LootCommand.playerGive
(Collection<ServerPlayer> p_137985_, List<ItemStack> p_137986_, LootCommand.Callback p_137987_) private static void
LootCommand.setSlots
(Entity p_137889_, List<ItemStack> p_137890_, int p_137891_, int p_137892_, List<ItemStack> p_137893_) -
Uses of ItemStack in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
ServerPlayer.handleExtraItemsCreatedOnUse
(ItemStack p_376376_) void
ServerPlayer.onEnchantmentPerformed
(ItemStack p_9079_, int p_9080_) void
ServerPlayer.openItemGui
(ItemStack p_9082_, InteractionHand p_9083_) private void
ServerPlayer.synchronizeSpecialItemUpdates
(ItemStack p_372884_) protected void
ServerPlayer.updateUsingItem
(ItemStack p_143402_) DemoMode.useItem
(ServerPlayer p_140742_, Level p_140743_, ItemStack p_140744_, InteractionHand p_140745_) ServerPlayerGameMode.useItem
(ServerPlayer p_9262_, Level p_9263_, ItemStack p_9264_, InteractionHand p_9265_) DemoMode.useItemOn
(ServerPlayer p_140747_, Level p_140748_, ItemStack p_140749_, InteractionHand p_140750_, BlockHitResult p_140751_) ServerPlayerGameMode.useItemOn
(ServerPlayer p_9266_, Level p_9267_, ItemStack p_9268_, InteractionHand p_9269_, BlockHitResult p_9270_) Method parameters in net.minecraft.server.level with type arguments of type ItemStackModifier and TypeMethodDescriptionvoid
ServerPlayer.triggerRecipeCrafted
(RecipeHolder<?> p_301156_, List<ItemStack> p_282336_) -
Uses of ItemStack in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static void
ServerGamePacketListenerImpl.addBlockDataToItem
(BlockState p_382984_, ServerLevel p_382978_, BlockPos p_383156_, ItemStack p_382873_) private void
ServerGamePacketListenerImpl.tryPickItem
(ItemStack p_382921_) private static boolean
ServerGamePacketListenerImpl.wasBlockPlacementAttempt
(ServerPlayer p_9791_, ItemStack p_9792_) -
Uses of ItemStack in net.minecraft.world
Fields in net.minecraft.world declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStack
InteractionResult.ItemContext.heldItemTransformedTo
The field for theheldItemTransformedTo
record component.Fields in net.minecraft.world with type parameters of type ItemStackMethods in net.minecraft.world that return ItemStackModifier and TypeMethodDescriptionCompoundContainer.getItem
(int p_18920_) Container.getItem
(int p_18941_) SimpleContainer.getItem
(int p_19157_) InteractionResult.ItemContext.heldItemTransformedTo()
Returns the value of theheldItemTransformedTo
record component.InteractionResult.Success.heldItemTransformedTo()
Container.ContainerIterator.next()
CompoundContainer.removeItem
(int p_18922_, int p_18923_) Container.removeItem
(int p_18942_, int p_18943_) static ItemStack
ContainerHelper.removeItem
(List<ItemStack> p_18970_, int p_18971_, int p_18972_) SimpleContainer.removeItem
(int p_19159_, int p_19160_) CompoundContainer.removeItemNoUpdate
(int p_18932_) Container.removeItemNoUpdate
(int p_18951_) SimpleContainer.removeItemNoUpdate
(int p_19180_) SimpleContainer.removeItemType
(Item p_19171_, int p_19172_) static ItemStack
Methods 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 TypeMethodDescriptionboolean
SimpleContainer.canAddItem
(ItemStack p_19184_) boolean
CompoundContainer.canPlaceItem
(int p_18934_, ItemStack p_18935_) default boolean
Container.canPlaceItem
(int p_18952_, ItemStack p_18953_) boolean
WorldlyContainer.canPlaceItemThroughFace
(int p_19235_, ItemStack p_19236_, Direction p_19237_) default boolean
Container.canTakeItem
(Container p_273520_, int p_272681_, ItemStack p_273702_) boolean
WorldlyContainer.canTakeItemThroughFace
(int p_19239_, ItemStack p_19240_, Direction p_19241_) static int
ContainerHelper.clearOrCountMatchingItems
(ItemStack p_18962_, Predicate<ItemStack> p_18963_, int p_18964_, boolean p_18965_) static void
Containers.dropItemStack
(Level p_18993_, double p_18994_, double p_18995_, double p_18996_, ItemStack p_18997_) default int
Container.getMaxStackSize
(ItemStack p_335963_) InteractionResult.Success.heldItemTransformedTo
(ItemStack p_364687_) private void
SimpleContainer.moveItemsBetweenStacks
(ItemStack p_19186_, ItemStack p_19187_) private void
SimpleContainer.moveItemToEmptySlots
(ItemStack p_19190_) private void
SimpleContainer.moveItemToOccupiedSlotsWithSameType
(ItemStack p_19192_) void
void
void
boolean
LockCode.unlocksWith
(ItemStack p_19108_) Method parameters in net.minecraft.world with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic int
ContainerHelper.clearOrCountMatchingItems
(Container p_18957_, Predicate<ItemStack> p_18958_, int p_18959_, boolean p_18960_) static int
ContainerHelper.clearOrCountMatchingItems
(ItemStack p_18962_, Predicate<ItemStack> p_18963_, int p_18964_, boolean p_18965_) static void
Containers.dropContents
(Level p_19011_, BlockPos p_19012_, NonNullList<ItemStack> p_19013_) default boolean
Container.hasAnyMatching
(Predicate<ItemStack> p_216875_) static void
ContainerHelper.loadAllItems
(CompoundTag p_18981_, NonNullList<ItemStack> p_18982_, HolderLookup.Provider p_332027_) static ItemStack
ContainerHelper.removeItem
(List<ItemStack> p_18970_, int p_18971_, int p_18972_) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag p_18977_, NonNullList<ItemStack> p_18978_, boolean p_18979_, HolderLookup.Provider p_330957_) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag p_18974_, NonNullList<ItemStack> p_18975_, HolderLookup.Provider p_331375_) static ItemStack
Constructors in net.minecraft.world with parameters of type ItemStackModifierConstructorDescriptionItemContext
(boolean wasItemInteraction, ItemStack heldItemTransformedTo) Creates an instance of aItemContext
record class.SimpleContainer
(ItemStack... p_19152_) -
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 ItemStack
LivingEntity.autoSpinAttackItemStack
private final ItemStack
Display.ItemDisplay.ItemRenderState.itemStack
The field for theitemStack
record component.protected ItemStack
LivingEntity.useItem
Fields in net.minecraft.world.entity with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final EntityDataAccessor
<ItemStack> OminousItemSpawner.DATA_ITEM
private static final EntityDataAccessor
<ItemStack> Display.ItemDisplay.DATA_ITEM_STACK_ID
private final EnumMap
<EquipmentSlot, ItemStack> EntityEquipment.items
private final Map
<EquipmentSlot, ItemStack> LivingEntity.lastEquipmentItems
Methods in net.minecraft.world.entity that return ItemStackModifier and TypeMethodDescriptionMob.equipItemIfPossible
(ServerLevel p_376644_, ItemStack p_255842_) EntityEquipment.get
(EquipmentSlot p_397366_) SlotAccess.get()
Mob.getBodyArmorItem()
OminousItemSpawner.getItem()
LivingEntity.getItemBlockingWith()
EquipmentUser.getItemBySlot
(EquipmentSlot p_338597_) LivingEntity.getItemBySlot
(EquipmentSlot p_21127_) LivingEntity.getItemHeldByArm
(HumanoidArm p_362643_) LivingEntity.getItemInHand
(InteractionHand p_21121_) private ItemStack
Display.ItemDisplay.getItemStack()
LivingEntity.getMainHandItem()
LivingEntity.getOffhandItem()
Entity.getPickResult()
Mob.getPickResult()
LivingEntity.getProjectile
(ItemStack p_21272_) LivingEntity.getUseItem()
Entity.getWeaponItem()
LivingEntity.getWeaponItem()
Display.ItemDisplay.ItemRenderState.itemStack()
Returns the value of theitemStack
record component.EntityEquipment.set
(EquipmentSlot p_397821_, ItemStack p_397647_) 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> p_398007_, ItemStack p_397263_) EntityType.appendCustomEntityStackConfig
(Consumer<T> p_263579_, Level p_366735_, ItemStack p_263582_, LivingEntity p_394266_) EntityType.appendDefaultStackConfig
(Consumer<T> p_265154_, Level p_366809_, ItemStack p_265598_, LivingEntity p_393979_) final void
Entity.applyComponentsFromItemStack
(ItemStack p_397915_) private void
final boolean
LivingEntity.canEquipWithDispenser
(ItemStack p_371334_) static boolean
LivingEntity.canGlideUsing
(ItemStack p_371257_, EquipmentSlot p_371482_) boolean
Mob.canHoldItem
(ItemStack p_21545_) protected boolean
Mob.canReplaceCurrentItem
(ItemStack p_21428_, ItemStack p_21429_, EquipmentSlot p_371540_) boolean
Mob.canReplaceEqualItem
(ItemStack p_21478_, ItemStack p_21479_) private boolean
Mob.compareArmor
(ItemStack p_388622_, ItemStack p_388471_, EquipmentSlot p_386926_) private boolean
Mob.compareWeapons
(ItemStack p_386619_, ItemStack p_387764_, EquipmentSlot p_387859_) static OminousItemSpawner
EntityType.createDefaultStackConfig
(Level p_366618_, ItemStack p_263568_, LivingEntity p_393794_) private ItemEntity
LivingEntity.createItemStackToDrop
(ItemStack p_401823_, boolean p_401912_, boolean p_401812_) protected void
LivingEntity.dropFromShearingLootTable
(ServerLevel p_376282_, ResourceKey<LootTable> p_360865_, ItemStack p_373036_, BiConsumer<ServerLevel, ItemStack> p_376518_) Mob.equipItemIfPossible
(ServerLevel p_376644_, ItemStack p_255842_) boolean
LivingEntity.equipmentHasChanged
(ItemStack p_252265_, ItemStack p_251043_) private double
Mob.getApproximateAttributeWith
(ItemStack p_371461_, Holder<Attribute> p_371421_, EquipmentSlot p_371891_) final EquipmentSlot
LivingEntity.getEquipmentSlotForItem
(ItemStack p_147234_) protected Holder
<SoundEvent> LivingEntity.getEquipSound
(EquipmentSlot p_397727_, ItemStack p_397629_, Equippable p_397917_) LivingEntity.getProjectile
(ItemStack p_21272_) void
LivingEntity.handleExtraItemsCreatedOnUse
(ItemStack p_376248_) final boolean
LivingEntity.isEquippableInSlot
(ItemStack p_371603_, EquipmentSlot p_371841_) void
LivingEntity.onEquipItem
(EquipmentSlot p_238393_, ItemStack p_238394_, ItemStack p_238395_) default EquipmentSlot
EquipmentUser.resolveSlot
(ItemStack p_338225_, List<EquipmentSlot> p_338547_) EntityEquipment.set
(EquipmentSlot p_397821_, ItemStack p_397647_) boolean
void
Mob.setBodyArmorItem
(ItemStack p_323721_) private void
void
LivingEntity.setItemInHand
(InteractionHand p_21009_, ItemStack p_21010_) void
EquipmentUser.setItemSlot
(EquipmentSlot p_338576_, ItemStack p_338519_) void
LivingEntity.setItemSlot
(EquipmentSlot p_21036_, ItemStack p_21037_) protected void
Mob.setItemSlotAndDropWhenKilled
(EquipmentSlot p_21469_, ItemStack p_21470_) private void
Display.ItemDisplay.setItemStack
(ItemStack p_270310_) void
Shearable.shear
(ServerLevel p_376429_, SoundSource p_21749_, ItemStack p_372963_) EntityType.spawn
(ServerLevel p_20593_, ItemStack p_20594_, LivingEntity p_393729_, BlockPos p_20596_, EntitySpawnReason p_361023_, boolean p_20598_, boolean p_20599_) Entity.spawnAtLocation
(ServerLevel p_376705_, ItemStack p_376226_) Entity.spawnAtLocation
(ServerLevel p_376141_, ItemStack p_376472_, float p_376881_) void
LivingEntity.spawnItemParticles
(ItemStack p_21061_, int p_21062_) private Entity
OminousItemSpawner.spawnProjectile
(ServerLevel p_362299_, ProjectileItem p_363839_, ItemStack p_361074_) private void
LivingEntity.stopLocationBasedEffects
(ItemStack p_364246_, EquipmentSlot p_360503_, AttributeMap p_363426_) protected void
LivingEntity.updateUsingItem
(ItemStack p_147201_) boolean
Mob.wantsToPickUp
(ServerLevel p_376139_, ItemStack p_21546_) Method parameters in net.minecraft.world.entity with type arguments of type ItemStackModifier and TypeMethodDescriptionboolean
LivingEntity.dropFromGiftLootTable
(ServerLevel p_376609_, ResourceKey<LootTable> p_373086_, BiConsumer<ServerLevel, ItemStack> p_376939_) protected boolean
LivingEntity.dropFromLootTable
(ServerLevel p_376815_, ResourceKey<LootTable> p_372918_, Function<LootParams.Builder, LootParams> p_372865_, BiConsumer<ServerLevel, ItemStack> p_376817_) protected void
LivingEntity.dropFromShearingLootTable
(ServerLevel p_376282_, ResourceKey<LootTable> p_360865_, ItemStack p_373036_, BiConsumer<ServerLevel, ItemStack> p_376518_) Mob.dropPreservedEquipment
(ServerLevel p_376128_, Predicate<ItemStack> p_352191_) static SlotAccess
SlotAccess.forContainer
(Container p_147296_, int p_147297_, Predicate<ItemStack> p_147298_) static SlotAccess
SlotAccess.forEquipmentSlot
(LivingEntity p_147303_, EquipmentSlot p_147304_, Predicate<ItemStack> p_147305_) private void
LivingEntity.handleEquipmentChanges
(Map<EquipmentSlot, ItemStack> p_21143_) private void
LivingEntity.handleHandSwap
(Map<EquipmentSlot, ItemStack> p_21092_) boolean
static SlotAccess
static SlotAccess
Constructors in net.minecraft.world.entity with parameters of type ItemStackModifierConstructorDescriptionItemRenderState
(ItemStack itemStack, ItemDisplayContext itemTransform) Creates an instance of aItemRenderState
record class.Constructor parameters in net.minecraft.world.entity with type arguments of type ItemStackModifierConstructorDescriptionprivate
EntityEquipment
(EnumMap<EquipmentSlot, ItemStack> p_397767_) -
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 ItemStack
CelebrateVillagersSurvivedRaid.getFirework
(DyeColor p_22697_, int p_22698_) Methods in net.minecraft.world.entity.ai.behavior with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static void
ShowTradesToPlayer.displayAsHeldItem
(Villager p_182371_, ItemStack p_182372_) static void
BehaviorUtils.throwItem
(LivingEntity p_22614_, ItemStack p_22615_, Vec3 p_22616_) static void
BehaviorUtils.throwItem
(LivingEntity p_217134_, ItemStack p_217135_, Vec3 p_217136_, Vec3 p_217137_, float p_217138_) static void
GoAndGiveItemsToTarget.throwItem
(LivingEntity p_217208_, ItemStack p_217209_, Vec3 p_217210_) private void
GoAndGiveItemsToTarget.triggerDropItemOnBlock
(PositionTracker p_217214_, ItemStack p_217215_, ServerPlayer p_217216_) -
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 p_25972_, ItemStack p_25973_, SoundEvent p_25974_, Predicate<? super T> p_25975_) Constructor parameters in net.minecraft.world.entity.ai.goal with type arguments of type ItemStackModifierConstructorDescriptionTemptGoal
(PathfinderMob p_25939_, double p_25940_, Predicate<ItemStack> p_335901_, boolean p_25942_) -
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 ItemStackModifier and TypeMethodDescriptionprivate boolean
TemptingSensor.isTemptation
(ItemStack p_148339_) Constructor parameters in net.minecraft.world.entity.ai.sensing with type arguments of type ItemStack -
Uses of ItemStack in net.minecraft.world.entity.animal
Methods 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 boolean
boolean
Fox.canHoldItem
(ItemStack p_28578_) private void
private void
Fox.dropItemStack
(ItemStack p_28606_) private Optional
<SuspiciousStewEffects> MushroomCow.getEffectsFromItemStack
(ItemStack p_298333_) protected Holder
<SoundEvent> Pig.getEquipSound
(EquipmentSlot p_397377_, ItemStack p_397787_, Equippable p_397153_) boolean
abstract boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
static void
Bucketable.saveDefaultDataToBucketTag
(Mob p_148823_, ItemStack p_148824_) Deprecated.void
AbstractFish.saveToBucketTag
(ItemStack p_27494_) void
Bucketable.saveToBucketTag
(ItemStack p_148833_) void
Salmon.saveToBucketTag
(ItemStack p_368592_) void
TropicalFish.saveToBucketTag
(ItemStack p_30049_) void
MushroomCow.shear
(ServerLevel p_376375_, SoundSource p_28924_, ItemStack p_373092_) void
SnowGolem.shear
(ServerLevel p_376257_, SoundSource p_29907_, ItemStack p_373004_) private void
Fox.spitOutItem
(ItemStack p_28602_) protected void
Animal.usePlayerItem
(Player p_148715_, InteractionHand p_148716_, ItemStack p_148717_) Constructor parameters in net.minecraft.world.entity.animal with type arguments of type ItemStackModifierConstructorDescriptionCatTemptGoal
(Cat p_28219_, double p_28220_, Predicate<ItemStack> p_335450_, boolean p_28222_) OcelotTemptGoal
(Ocelot p_29060_, double p_29061_, Predicate<ItemStack> p_335948_, boolean p_29063_) -
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 boolean
Allay.allayConsidersItemEqual
(ItemStack p_252278_, ItemStack p_250405_) boolean
Allay.equipmentHasChanged
(ItemStack p_249825_, ItemStack p_251595_) private boolean
Allay.hasNonMatchingPotion
(ItemStack p_248762_, ItemStack p_250839_) private void
Allay.removeInteractionItem
(Player p_239359_, ItemStack p_239360_) boolean
Allay.wantsToPickUp
(ServerLevel p_376111_, ItemStack p_218387_) -
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 TypeMethodDescriptionboolean
void
Axolotl.saveToBucketTag
(ItemStack p_149187_) protected void
Axolotl.usePlayerItem
(Player p_149124_, InteractionHand p_149125_, ItemStack p_149126_) -
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 p_397855_, ItemStack p_397494_, Equippable p_397094_) protected boolean
Camel.handleEating
(Player p_249923_, ItemStack p_248995_) boolean
-
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 void
boolean
private boolean
void
Tadpole.saveToBucketTag
(ItemStack p_218725_) private void
Tadpole.usePlayerItem
(Player p_218706_, ItemStack p_218707_) -
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 TypeMethodDescriptionvoid
AbstractHorse.equipBodyArmor
(Player p_324210_, ItemStack p_323522_) private void
AbstractChestedHorse.equipChest
(Player p_250937_, ItemStack p_251558_) protected Holder
<SoundEvent> AbstractHorse.getEquipSound
(EquipmentSlot p_397157_, ItemStack p_397978_, Equippable p_397221_) protected boolean
AbstractHorse.handleEating
(Player p_30593_, ItemStack p_30594_) protected boolean
Llama.handleEating
(Player p_30796_, ItemStack p_30797_) boolean
boolean
-
Uses of ItemStack in net.minecraft.world.entity.animal.sheep
Methods in net.minecraft.world.entity.animal.sheep with parameters of type ItemStackModifier and TypeMethodDescriptionboolean
void
Sheep.shear
(ServerLevel p_405075_, SoundSource p_405077_, ItemStack p_405709_) -
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_ITEM
Methods in net.minecraft.world.entity.decoration that return ItemStackModifier and TypeMethodDescriptionprotected ItemStack
GlowItemFrame.getFrameItemStack()
protected ItemStack
ItemFrame.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 p_353029_) private void
ItemFrame.onItemChanged
(ItemStack p_218866_) private void
ItemFrame.removeFramedMap
(ItemStack p_31811_) void
void
HangingEntity.spawnAtLocation
(ServerLevel p_376865_, ItemStack p_31722_, float p_31723_) private boolean
ArmorStand.swapItem
(Player p_31589_, EquipmentSlot p_31590_, ItemStack p_31591_, InteractionHand p_31592_) -
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_ITEM
Methods in net.minecraft.world.entity.item that return ItemStackMethods in net.minecraft.world.entity.item with parameters of type ItemStackModifier and TypeMethodDescriptionstatic boolean
ItemEntity.areMergable
(ItemStack p_32027_, ItemStack p_32028_) private static void
ItemEntity.merge
(ItemEntity p_32018_, ItemStack p_32019_, ItemEntity p_32020_, ItemStack p_32021_) private static void
ItemEntity.merge
(ItemEntity p_32023_, ItemStack p_32024_, ItemStack p_32025_) static ItemStack
void
Constructors in net.minecraft.world.entity.item with parameters of type ItemStackModifierConstructorDescriptionItemEntity
(Level p_32001_, double p_32002_, double p_32003_, double p_32004_, ItemStack p_32005_) ItemEntity
(Level p_149663_, double p_149664_, double p_149665_, double p_149666_, ItemStack p_149667_, double p_149668_, double p_149669_, double p_149670_) -
Uses of ItemStack in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster that return ItemStackModifier and TypeMethodDescriptionMonster.getProjectile
(ItemStack p_33038_) protected ItemStack
Drowned.getSkull()
protected ItemStack
Husk.getSkull()
protected ItemStack
Zombie.getSkull()
protected ItemStack
ZombieVillager.getSkull()
protected ItemStack
ZombifiedPiglin.getSkull()
Methods in net.minecraft.world.entity.monster with parameters of type ItemStackModifier and TypeMethodDescriptionboolean
WitherSkeleton.canHoldItem
(ItemStack p_389570_) boolean
Zombie.canHoldItem
(ItemStack p_34332_) protected boolean
Drowned.canReplaceCurrentItem
(ItemStack p_32364_, ItemStack p_32365_, EquipmentSlot p_371339_) protected AbstractArrow
protected AbstractArrow
protected AbstractArrow
protected AbstractArrow
protected Holder
<SoundEvent> Strider.getEquipSound
(EquipmentSlot p_397775_, ItemStack p_397723_, Equippable p_397102_) Monster.getProjectile
(ItemStack p_33038_) boolean
void
AbstractSkeleton.onEquipItem
(EquipmentSlot p_401835_, ItemStack p_401917_, ItemStack p_401943_) void
Bogged.shear
(ServerLevel p_376748_, SoundSource p_331493_, ItemStack p_373125_) private void
Bogged.spawnShearedMushrooms
(ServerLevel p_376846_, ItemStack p_372900_) private boolean
boolean
Zombie.wantsToPickUp
(ServerLevel p_376535_, ItemStack p_182400_) boolean
ZombifiedPiglin.wantsToPickUp
(ServerLevel p_376260_, ItemStack p_182402_) -
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 ItemStack
Piglin.addToInventory
(ItemStack p_34779_) private ItemStack
Piglin.createSpawnWeapon()
private static ItemStack
PiglinAi.removeOneItemFromItemEntity
(ItemEntity p_34823_) 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 ItemStack
Piglin.addToInventory
(ItemStack p_34779_) protected boolean
Piglin.canAddToInventory
(ItemStack p_34781_) protected static boolean
protected boolean
Piglin.canReplaceCurrentItem
(ItemStack p_34788_) protected boolean
Piglin.canReplaceCurrentItem
(ItemStack p_34712_, ItemStack p_34713_, EquipmentSlot p_371356_) protected void
Piglin.holdInMainHand
(ItemStack p_34784_) private static void
PiglinAi.holdInOffhand
(ServerLevel p_376251_, Piglin p_34933_, ItemStack p_34934_) protected void
Piglin.holdInOffHand
(ItemStack p_34786_) private static boolean
PiglinAi.isBarterCurrency
(ItemStack p_149968_) private static boolean
protected static boolean
PiglinAi.isLovedItem
(ItemStack p_149966_) private void
Piglin.maybeWearArmor
(EquipmentSlot p_219192_, ItemStack p_219193_, RandomSource p_219194_) private static void
PiglinAi.putInInventory
(Piglin p_34953_, ItemStack p_34954_) protected static boolean
PiglinAi.wantsToPickup
(Piglin p_34858_, ItemStack p_34859_) boolean
Piglin.wantsToPickUp
(ServerLevel p_376232_, ItemStack p_34777_) boolean
PiglinBrute.wantsToPickUp
(ServerLevel p_376577_, ItemStack p_35078_) Method parameters in net.minecraft.world.entity.monster.piglin with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate static void
PiglinAi.throwItems
(Piglin p_34861_, List<ItemStack> p_34862_) private static void
PiglinAi.throwItemsTowardPlayer
(Piglin p_34851_, Player p_34852_, List<ItemStack> p_34853_) private static void
PiglinAi.throwItemsTowardPos
(Piglin p_34864_, List<ItemStack> p_34865_, Vec3 p_34866_) private static void
PiglinAi.throwItemsTowardRandomPos
(Piglin p_34913_, List<ItemStack> p_34914_) -
Uses of ItemStack in net.minecraft.world.entity.npc
Fields in net.minecraft.world.entity.npc declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStack
VillagerTrades.EnchantedItemForEmeralds.itemStack
private final ItemStack
VillagerTrades.ItemsForEmeralds.itemStack
private final ItemStack
VillagerTrades.ItemsAndEmeraldsToItems.toItem
private final ItemStack
VillagerTrades.TippedArrowForItemsAndEmeralds.toItem
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 p_35865_) void
AbstractVillager.notifyTradeUpdated
(ItemStack p_35316_) void
ClientSideMerchant.notifyTradeUpdated
(ItemStack p_35358_) boolean
Villager.wantsToPickUp
(ServerLevel p_376823_, ItemStack p_35543_) Constructors in net.minecraft.world.entity.npc with parameters of type ItemStackModifierConstructorDescriptionItemsAndEmeraldsToItems
(ItemCost p_345481_, int p_345494_, ItemStack p_345223_, int p_345894_, int p_344894_, float p_345457_, Optional<ResourceKey<EnchantmentProvider>> p_346401_) ItemsAndEmeraldsToItems
(ItemLike p_35725_, int p_35726_, int p_35728_, ItemStack p_302012_, int p_35729_, int p_35730_, int p_302002_, float p_302039_) ItemsForEmeralds
(ItemStack p_35752_, int p_35753_, int p_35754_, int p_35755_, int p_35756_) ItemsForEmeralds
(ItemStack p_35758_, int p_35759_, int p_35760_, int p_35761_, int p_35762_, float p_35763_) ItemsForEmeralds
(ItemStack p_344989_, int p_345411_, int p_345770_, int p_344818_, int p_345507_, float p_344802_, Optional<ResourceKey<EnchantmentProvider>> p_345806_) -
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 p_401776_) Inventory.getItem
(int p_35991_) Player.getProjectile
(ItemStack p_36349_) Inventory.getSelectedItem()
Player.getWeaponItem()
Inventory.removeFromSelected
(boolean p_182404_) Inventory.removeItem
(int p_35993_, int p_35994_) Inventory.removeItemNoUpdate
(int p_36029_) PlayerEquipment.set
(EquipmentSlot p_401903_, ItemStack p_401882_) Inventory.setSelectedItem
(ItemStack p_401838_) 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 TypeMethodDescriptionvoid
StackedItemContents.accountSimpleStack
(ItemStack p_363120_) void
StackedItemContents.accountStack
(ItemStack p_364939_) void
StackedItemContents.accountStack
(ItemStack p_365466_, int p_365492_) boolean
boolean
void
Inventory.addAndPickItem
(ItemStack p_383009_) boolean
private int
Inventory.addResource
(int p_36048_, ItemStack p_36049_) private int
Inventory.addResource
(ItemStack p_36067_) boolean
int
Inventory.findSlotMatchingCraftingIngredient
(Holder<Item> p_363103_, ItemStack p_390604_) int
Inventory.findSlotMatchingItem
(ItemStack p_36031_) Player.getProjectile
(ItemStack p_36349_) int
Inventory.getSlotWithRemainingSpace
(ItemStack p_36051_) void
Player.handleCreativeModeItemDrop
(ItemStack p_361427_) private boolean
Inventory.hasRemainingSpaceForItem
(ItemStack p_36015_, ItemStack p_36016_) static boolean
Inventory.isUsableForCrafting
(ItemStack p_365004_) boolean
Player.mayUseItemAt
(BlockPos p_36205_, Direction p_36206_, ItemStack p_36207_) void
Player.onEnchantmentPerformed
(ItemStack p_36172_, int p_36173_) void
Player.openItemGui
(ItemStack p_36174_, InteractionHand p_36175_) void
Inventory.placeItemBackInInventory
(ItemStack p_150080_) void
Inventory.placeItemBackInInventory
(ItemStack p_150077_, boolean p_150078_) void
Inventory.removeItem
(ItemStack p_36058_) PlayerEquipment.set
(EquipmentSlot p_401903_, ItemStack p_401882_) void
Inventory.setSelectedItem
(ItemStack p_401838_) void
Player.startAutoSpinAttack
(int p_204080_, float p_346316_, ItemStack p_345401_) void
Player.updateTutorialInventoryAction
(ItemStack p_150098_, ItemStack p_150099_, ClickAction p_150100_) Method parameters in net.minecraft.world.entity.player with type arguments of type ItemStackModifier and TypeMethodDescriptionint
Inventory.clearOrCountMatchingItems
(Predicate<ItemStack> p_36023_, int p_36024_, Container p_36025_) boolean
void
Player.triggerRecipeCrafted
(RecipeHolder<?> p_301080_, List<ItemStack> p_283609_) -
Uses of ItemStack in net.minecraft.world.entity.projectile
Fields in net.minecraft.world.entity.projectile declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStack
AbstractArrow.firedFromWeapon
private ItemStack
AbstractArrow.pickupItemStack
Fields in net.minecraft.world.entity.projectile with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final EntityDataAccessor
<ItemStack> FireworkRocketEntity.DATA_ID_FIREWORKS_ITEM
private static final EntityDataAccessor
<ItemStack> EyeOfEnder.DATA_ITEM_STACK
private static final EntityDataAccessor
<ItemStack> Fireball.DATA_ITEM_STACK
private static final EntityDataAccessor
<ItemStack> ThrowableItemProjectile.DATA_ITEM_STACK
Methods in net.minecraft.world.entity.projectile that return ItemStackModifier and TypeMethodDescriptionprivate ItemStack
EyeOfEnder.getDefaultItem()
private ItemStack
Fireball.getDefaultItem()
private static ItemStack
FireworkRocketEntity.getDefaultItem()
protected abstract ItemStack
AbstractArrow.getDefaultPickupItem()
protected ItemStack
Arrow.getDefaultPickupItem()
protected ItemStack
SpectralArrow.getDefaultPickupItem()
protected ItemStack
ThrownTrident.getDefaultPickupItem()
EyeOfEnder.getItem()
Fireball.getItem()
FireworkRocketEntity.getItem()
ItemSupplier.getItem()
ThrowableItemProjectile.getItem()
protected ItemStack
AbstractArrow.getPickupItem()
AbstractArrow.getPickupItemStackOrigin()
AbstractArrow.getWeaponItem()
ThrownTrident.getWeaponItem()
Methods in net.minecraft.world.entity.projectile with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
Projectile.applyOnProjectileSpawned
(ServerLevel p_361488_, ItemStack p_360952_) Projectile.ProjectileFactory.create
(ServerLevel p_362263_, LivingEntity p_363113_, ItemStack p_364268_) private byte
ThrownTrident.getLoyaltyFromItem
(ItemStack p_345571_) static AbstractArrow
ProjectileUtil.getMobArrow
(LivingEntity p_37301_, ItemStack p_37302_, float p_37303_, ItemStack p_345078_) protected void
AbstractArrow.hitBlockEnchantmentEffects
(ServerLevel p_345462_, BlockHitResult p_345204_, ItemStack p_345083_) protected void
ThrownTrident.hitBlockEnchantmentEffects
(ServerLevel p_344953_, BlockHitResult p_346320_, ItemStack p_344999_) protected abstract void
AbstractThrownPotion.onHitAsPotion
(ServerLevel p_400133_, ItemStack p_399490_, Entity p_399650_) void
ThrownLingeringPotion.onHitAsPotion
(ServerLevel p_399902_, ItemStack p_400168_, Entity p_399551_) void
ThrownSplashPotion.onHitAsPotion
(ServerLevel p_399483_, ItemStack p_400156_, Entity p_400094_) int
void
void
void
protected void
AbstractArrow.setPickupItemStack
(ItemStack p_331486_) protected void
Arrow.setPickupItemStack
(ItemStack p_331667_) static <T extends Projectile>
TProjectile.spawnProjectile
(T p_363460_, ServerLevel p_362469_, ItemStack p_364790_) static <T extends Projectile>
TProjectile.spawnProjectile
(T p_360642_, ServerLevel p_360523_, ItemStack p_364956_, Consumer<T> p_364362_) static <T extends Projectile>
TProjectile.spawnProjectileFromRotation
(Projectile.ProjectileFactory<T> p_364847_, ServerLevel p_364917_, ItemStack p_361900_, LivingEntity p_364717_, float p_360563_, float p_361014_, float p_365444_) static <T extends Projectile>
TProjectile.spawnProjectileUsingShoot
(Projectile.ProjectileFactory<T> p_363835_, ServerLevel p_361870_, ItemStack p_365211_, LivingEntity p_361058_, double p_362249_, double p_362086_, double p_360421_, float p_363492_, float p_363425_) static <T extends Projectile>
TProjectile.spawnProjectileUsingShoot
(T p_363444_, ServerLevel p_365046_, ItemStack p_365439_, double p_364920_, double p_362460_, double p_365302_, float p_364445_, float p_360615_) Constructors in net.minecraft.world.entity.projectile with parameters of type ItemStackModifierConstructorDescriptionprotected
AbstractArrow
(EntityType<? extends AbstractArrow> p_36717_, double p_346045_, double p_344855_, double p_345999_, Level p_36719_, ItemStack p_309031_, ItemStack p_345487_) protected
AbstractArrow
(EntityType<? extends AbstractArrow> p_36721_, LivingEntity p_345310_, Level p_36722_, ItemStack p_309145_, ItemStack p_345000_) AbstractThrownPotion
(EntityType<? extends AbstractThrownPotion> p_399500_, Level p_399980_, double p_399961_, double p_399539_, double p_399938_, ItemStack p_399737_) AbstractThrownPotion
(EntityType<? extends AbstractThrownPotion> p_399755_, Level p_399661_, LivingEntity p_399813_, ItemStack p_400023_) Arrow
(Level p_36861_, double p_345459_, double p_346135_, double p_345618_, ItemStack p_309188_, ItemStack p_345233_) Arrow
(Level p_36866_, LivingEntity p_345746_, ItemStack p_309200_, ItemStack p_345461_) FireworkRocketEntity
(Level p_37030_, double p_37031_, double p_37032_, double p_37033_, ItemStack p_37034_) FireworkRocketEntity
(Level p_37036_, Entity p_37037_, double p_37038_, double p_37039_, double p_37040_, ItemStack p_37041_) FireworkRocketEntity
(Level p_37043_, ItemStack p_37044_, double p_37045_, double p_37046_, double p_37047_, boolean p_37048_) FireworkRocketEntity
(Level p_37050_, ItemStack p_37051_, Entity p_37052_, double p_37053_, double p_37054_, double p_37055_, boolean p_37056_) FireworkRocketEntity
(Level p_37058_, ItemStack p_37059_, LivingEntity p_37060_) Snowball
(Level p_37394_, LivingEntity p_363644_, ItemStack p_361895_) SpectralArrow
(Level p_37419_, double p_309044_, double p_309099_, double p_308873_, ItemStack p_308959_, ItemStack p_345907_) SpectralArrow
(Level p_37414_, LivingEntity p_309162_, ItemStack p_309167_, ItemStack p_346408_) ThrowableItemProjectile
(EntityType<? extends ThrowableItemProjectile> p_37432_, double p_37433_, double p_37434_, double p_37435_, Level p_37436_, ItemStack p_365049_) ThrowableItemProjectile
(EntityType<? extends ThrowableItemProjectile> p_37438_, LivingEntity p_37439_, Level p_37440_, ItemStack p_363259_) ThrownEgg
(Level p_37481_, double p_362518_, double p_363859_, double p_364605_, ItemStack p_362063_) ThrownEgg
(Level p_37476_, LivingEntity p_363925_, ItemStack p_363058_) ThrownEnderpearl
(Level p_37499_, LivingEntity p_37500_, ItemStack p_360657_) ThrownExperienceBottle
(Level p_37513_, double p_37514_, double p_37515_, double p_37516_, ItemStack p_362911_) ThrownExperienceBottle
(Level p_37518_, LivingEntity p_37519_, ItemStack p_364032_) ThrownLingeringPotion
(Level p_399495_, double p_399947_, double p_400038_, double p_400027_, ItemStack p_399471_) ThrownLingeringPotion
(Level p_400111_, LivingEntity p_400085_, ItemStack p_399851_) ThrownSplashPotion
(Level p_400144_, double p_400061_, double p_400032_, double p_399549_, ItemStack p_400218_) ThrownSplashPotion
(Level p_399777_, LivingEntity p_400264_, ItemStack p_400186_) ThrownTrident
(Level p_338686_, double p_338771_, double p_338674_, double p_338477_, ItemStack p_338255_) ThrownTrident
(Level p_37569_, LivingEntity p_37570_, ItemStack p_37571_) -
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 ItemStack
Raid.getOminousBannerInstance
(HolderGetter<BannerPattern> p_361191_) -
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.itemStacks
private NonNullList
<ItemStack> AbstractMinecartContainer.itemStacks
Methods in net.minecraft.world.entity.vehicle that return ItemStackModifier and TypeMethodDescriptiondefault ItemStack
ContainerEntity.getChestVehicleItem
(int p_219948_) AbstractChestBoat.getItem
(int p_376545_) AbstractMinecartContainer.getItem
(int p_38218_) final ItemStack
AbstractBoat.getPickResult()
abstract ItemStack
AbstractMinecart.getPickResult()
Minecart.getPickResult()
MinecartChest.getPickResult()
MinecartCommandBlock.getPickResult()
MinecartFurnace.getPickResult()
MinecartHopper.getPickResult()
MinecartSpawner.getPickResult()
MinecartTNT.getPickResult()
default ItemStack
ContainerEntity.removeChestVehicleItem
(int p_219937_, int p_219938_) default ItemStack
ContainerEntity.removeChestVehicleItemNoUpdate
(int p_219946_) AbstractChestBoat.removeItem
(int p_376479_, int p_376802_) AbstractMinecartContainer.removeItem
(int p_38220_, int p_38221_) AbstractChestBoat.removeItemNoUpdate
(int p_376287_) AbstractMinecartContainer.removeItemNoUpdate
(int p_38244_) 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 p_366408_, double p_38121_, double p_38122_, double p_38123_, EntityType<T> p_374583_, EntitySpawnReason p_374412_, ItemStack p_305892_, Player p_306203_) default void
ContainerEntity.setChestVehicleItem
(int p_219941_, ItemStack p_219942_) void
void
-
Uses of ItemStack in net.minecraft.world.food
Methods in net.minecraft.world.food with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
FoodProperties.onConsume
(Level p_366676_, LivingEntity p_366505_, ItemStack p_366556_, Consumable p_366719_) -
Uses of ItemStack in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStack
AbstractContainerMenu.carried
private ItemStack
StonecutterMenu.input
private ItemStack
RemoteSlot.Synchronized.remoteStack
Fields in net.minecraft.world.inventory with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final NonNullList
<ItemStack> TransientCraftingContainer.items
private final NonNullList
<ItemStack> MerchantContainer.itemStacks
private final NonNullList
<ItemStack> ResultContainer.itemStacks
private final NonNullList
<ItemStack> AbstractContainerMenu.lastSlots
ItemCombinerMenuSlotDefinition.SlotDefinition.mayPlace
The field for themayPlace
record component.Methods in net.minecraft.world.inventory that return ItemStackModifier and TypeMethodDescriptionprivate ItemStack
GrindstoneMenu.computeResult
(ItemStack p_332654_, ItemStack p_332736_) LecternMenu.getBook()
AbstractContainerMenu.getCarried()
MerchantContainer.getItem
(int p_40008_) ResultContainer.getItem
(int p_40147_) Slot.getItem()
TransientCraftingContainer.getItem
(int p_287712_) private ItemStack
GrindstoneMenu.mergeItems
(ItemStack p_332723_, ItemStack p_332686_) abstract ItemStack
AbstractContainerMenu.quickMoveStack
(Player p_38941_, int p_38942_) AbstractFurnaceMenu.quickMoveStack
(Player p_38986_, int p_38987_) BeaconMenu.quickMoveStack
(Player p_39051_, int p_39052_) BrewingStandMenu.quickMoveStack
(Player p_39100_, int p_39101_) CartographyTableMenu.quickMoveStack
(Player p_39175_, int p_39176_) ChestMenu.quickMoveStack
(Player p_39253_, int p_39254_) CrafterMenu.quickMoveStack
(Player p_307459_, int p_307204_) CraftingMenu.quickMoveStack
(Player p_39391_, int p_39392_) DispenserMenu.quickMoveStack
(Player p_39444_, int p_39445_) EnchantmentMenu.quickMoveStack
(Player p_39490_, int p_39491_) GrindstoneMenu.quickMoveStack
(Player p_39588_, int p_39589_) HopperMenu.quickMoveStack
(Player p_39651_, int p_39652_) HorseInventoryMenu.quickMoveStack
(Player p_39665_, int p_39666_) InventoryMenu.quickMoveStack
(Player p_39723_, int p_39724_) ItemCombinerMenu.quickMoveStack
(Player p_39792_, int p_39793_) LecternMenu.quickMoveStack
(Player p_219987_, int p_219988_) LoomMenu.quickMoveStack
(Player p_39883_, int p_39884_) MerchantMenu.quickMoveStack
(Player p_40053_, int p_40054_) ShulkerBoxMenu.quickMoveStack
(Player p_40199_, int p_40200_) StonecutterMenu.quickMoveStack
(Player p_40328_, int p_40329_) FurnaceResultSlot.remove
(int p_39548_) MerchantResultSlot.remove
(int p_40090_) NonInteractiveResultSlot.remove
(int p_307370_) ResultSlot.remove
(int p_40173_) Slot.remove
(int p_40227_) MerchantContainer.removeItem
(int p_40010_, int p_40011_) ResultContainer.removeItem
(int p_40149_, int p_40150_) TransientCraftingContainer.removeItem
(int p_287682_, int p_287576_) MerchantContainer.removeItemNoUpdate
(int p_40018_) ResultContainer.removeItemNoUpdate
(int p_40160_) TransientCraftingContainer.removeItemNoUpdate
(int p_287637_) private ItemStack
GrindstoneMenu.removeNonCursesFrom
(ItemStack p_332709_) NonInteractiveResultSlot.safeInsert
(ItemStack p_307685_) NonInteractiveResultSlot.safeInsert
(ItemStack p_307656_, int p_307278_) Slot.safeInsert
(ItemStack p_150660_) Slot.safeInsert
(ItemStack p_150657_, int p_150658_) Methods in net.minecraft.world.inventory that return types with arguments of type ItemStackModifier and TypeMethodDescriptionprivate static NonNullList
<ItemStack> ResultSlot.copyAllInputItems
(CraftingInput p_379867_) AbstractContainerMenu.getItems()
CraftingContainer.getItems()
TransientCraftingContainer.getItems()
SmithingMenu.getRelevantItems()
private NonNullList
<ItemStack> ResultSlot.getRemainingItems
(CraftingInput p_379501_, Level p_380183_) ItemCombinerMenuSlotDefinition.SlotDefinition.mayPlace()
Returns the value of themayPlace
record component.Methods in net.minecraft.world.inventory with parameters of type ItemStackModifier and TypeMethodDescriptionstatic boolean
AbstractContainerMenu.canItemQuickReplace
(Slot p_38900_, ItemStack p_38901_, boolean p_38902_) protected boolean
ItemCombinerMenu.canMoveIntoInputSlots
(ItemStack p_39787_) boolean
SmithingMenu.canMoveIntoInputSlots
(ItemStack p_266846_) protected boolean
boolean
AbstractContainerMenu.canTakeItemForPickAll
(ItemStack p_38908_, Slot p_38909_) boolean
CartographyTableMenu.canTakeItemForPickAll
(ItemStack p_39160_, Slot p_39161_) boolean
CraftingMenu.canTakeItemForPickAll
(ItemStack p_39381_, Slot p_39382_) boolean
InventoryMenu.canTakeItemForPickAll
(ItemStack p_39716_, Slot p_39717_) boolean
MerchantMenu.canTakeItemForPickAll
(ItemStack p_40044_, Slot p_40045_) boolean
SmithingMenu.canTakeItemForPickAll
(ItemStack p_40257_, Slot p_40258_) boolean
StonecutterMenu.canTakeItemForPickAll
(ItemStack p_40321_, Slot p_40322_) protected void
FurnaceResultSlot.checkTakeAchievements
(ItemStack p_39558_) protected void
MerchantResultSlot.checkTakeAchievements
(ItemStack p_40100_) protected void
ResultSlot.checkTakeAchievements
(ItemStack p_40185_) protected void
Slot.checkTakeAchievements
(ItemStack p_40239_) private ItemStack
GrindstoneMenu.computeResult
(ItemStack p_332654_, ItemStack p_332736_) private static void
AbstractContainerMenu.dropOrPlaceInInventory
(Player p_372867_, ItemStack p_372930_) void
void
private List
<EnchantmentInstance> EnchantmentMenu.getEnchantmentList
(RegistryAccess p_345264_, ItemStack p_39472_, int p_39473_, int p_39474_) int
FurnaceFuelSlot.getMaxStackSize
(ItemStack p_39528_) int
Slot.getMaxStackSize
(ItemStack p_40238_) static int
AbstractContainerMenu.getQuickCraftPlaceCount
(Set<Slot> p_279393_, int p_279288_, ItemStack p_279172_) private List
<Holder<BannerPattern>> LoomMenu.getSelectablePatterns
(ItemStack p_219994_) void
AbstractContainerMenu.initializeContents
(int p_182411_, List<ItemStack> p_182412_, ItemStack p_182413_) static boolean
protected boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
static boolean
BrewingStandMenu.FuelSlot.mayPlaceItem
(ItemStack p_39113_) static boolean
BrewingStandMenu.PotionSlot.mayPlaceItem
(PotionBrewing potionBrewing, ItemStack p_39134_) static boolean
BrewingStandMenu.PotionSlot.mayPlaceItem
(ItemStack p_39134_) Deprecated.private void
GrindstoneMenu.mergeEnchantsFrom
(ItemStack p_332680_, ItemStack p_332800_) private ItemStack
GrindstoneMenu.mergeItems
(ItemStack p_332723_, ItemStack p_332686_) protected boolean
AbstractContainerMenu.moveItemStackTo
(ItemStack p_38904_, int p_38905_, int p_38906_, boolean p_38907_) protected void
FurnaceResultSlot.onQuickCraft
(ItemStack p_39555_, int p_39556_) protected void
MerchantResultSlot.onQuickCraft
(ItemStack p_40097_, int p_40098_) void
NonInteractiveResultSlot.onQuickCraft
(ItemStack p_307668_, ItemStack p_307399_) protected void
ResultSlot.onQuickCraft
(ItemStack p_40180_, int p_40181_) protected void
Slot.onQuickCraft
(ItemStack p_40232_, int p_40233_) void
Slot.onQuickCraft
(ItemStack p_40235_, ItemStack p_40236_) protected void
void
void
protected abstract void
void
void
void
void
protected void
private ItemStack
GrindstoneMenu.removeNonCursesFrom
(ItemStack p_332709_) NonInteractiveResultSlot.safeInsert
(ItemStack p_307685_) NonInteractiveResultSlot.safeInsert
(ItemStack p_307656_, int p_307278_) Slot.safeInsert
(ItemStack p_150660_) Slot.safeInsert
(ItemStack p_150657_, int p_150658_) void
ContainerSynchronizer.sendCarriedChange
(AbstractContainerMenu p_150533_, ItemStack p_150534_) void
ContainerSynchronizer.sendInitialData
(AbstractContainerMenu p_150535_, List<ItemStack> p_412173_, ItemStack p_150537_, int[] p_150538_) void
ContainerSynchronizer.sendSlotChange
(AbstractContainerMenu p_150530_, int p_150531_, ItemStack p_150532_) void
void
ArmorSlot.setByPlayer
(ItemStack p_345031_, ItemStack p_344961_) void
Slot.setByPlayer
(ItemStack p_270152_) void
Slot.setByPlayer
(ItemStack p_299990_, ItemStack p_299965_) void
AbstractContainerMenu.setCarried
(ItemStack p_150439_) void
void
void
void
void
AbstractContainerMenu.setRemoteSlot
(int p_150405_, ItemStack p_150406_) private void
StonecutterMenu.setupRecipeList
(ItemStack p_40305_) private void
CartographyTableMenu.setupResultSlot
(ItemStack p_39163_, ItemStack p_39164_, ItemStack p_39165_) void
ContainerListener.slotChanged
(AbstractContainerMenu p_39315_, int p_39316_, ItemStack p_39317_) void
CrafterMenu.slotChanged
(AbstractContainerMenu p_307332_, int p_307437_, ItemStack p_307233_) private void
AbstractContainerMenu.synchronizeSlotToRemote
(int p_150436_, ItemStack p_150437_, Supplier<ItemStack> p_150438_) private void
AbstractContainerMenu.triggerSlotListeners
(int p_150408_, ItemStack p_150409_, Supplier<ItemStack> p_150410_) private boolean
AbstractContainerMenu.tryItemClickBehaviourOverride
(Player p_249615_, ClickAction p_250300_, Slot p_249384_, ItemStack p_251073_, ItemStack p_252026_) Method parameters in net.minecraft.world.inventory with type arguments of type ItemStackModifier and TypeMethodDescriptiondefault void
RecipeCraftingHolder.awardUsedRecipes
(Player p_300892_, List<ItemStack> p_301308_) void
AbstractContainerMenu.initializeContents
(int p_182411_, List<ItemStack> p_182412_, ItemStack p_182413_) void
ContainerSynchronizer.sendInitialData
(AbstractContainerMenu p_150535_, List<ItemStack> p_412173_, ItemStack p_150537_, int[] p_150538_) private void
AbstractContainerMenu.synchronizeSlotToRemote
(int p_150436_, ItemStack p_150437_, Supplier<ItemStack> p_150438_) private void
AbstractContainerMenu.triggerSlotListeners
(int p_150408_, ItemStack p_150409_, Supplier<ItemStack> p_150410_) ItemCombinerMenuSlotDefinition.Builder.withSlot
(int p_267315_, int p_267028_, int p_266815_, Predicate<ItemStack> p_267120_) 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 aSlotDefinition
record class.private
TransientCraftingContainer
(AbstractContainerMenu p_287708_, int p_287591_, int p_287609_, NonNullList<ItemStack> p_287695_) -
Uses of ItemStack in net.minecraft.world.item
Fields in net.minecraft.world.item declared as ItemStackModifier and TypeFieldDescriptionstatic final ItemStack
ItemStack.EMPTY
private ItemStack
CreativeModeTab.iconItemStack
Fields in net.minecraft.world.item with type parameters of type ItemStackModifier and TypeFieldDescriptionProjectileWeaponItem.ARROW_ONLY
ProjectileWeaponItem.ARROW_OR_FIREWORK
static final com.mojang.serialization.Codec
<ItemStack> ItemStack.CODEC
private Collection
<ItemStack> CreativeModeTab.displayItems
CreativeModeTab.displayItemsSearchTab
CreativeModeTab.Builder.iconGenerator
CreativeModeTab.iconGenerator
static final com.mojang.serialization.MapCodec
<ItemStack> ItemStack.MAP_CODEC
static final com.mojang.serialization.Codec
<ItemStack> ItemStack.OPTIONAL_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, List<ItemStack>> ItemStack.OPTIONAL_LIST_STREAM_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, ItemStack> ItemStack.OPTIONAL_STREAM_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, ItemStack> ItemStack.OPTIONAL_UNTRUSTED_STREAM_CODEC
CreativeModeTab.ItemDisplayBuilder.searchTabContents
static final com.mojang.serialization.Codec
<ItemStack> ItemStack.SIMPLE_ITEM_CODEC
static final com.mojang.serialization.Codec
<ItemStack> ItemStack.SINGLE_ITEM_CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, ItemStack> ItemStack.STREAM_CODEC
static final com.mojang.serialization.Codec
<ItemStack> ItemStack.STRICT_CODEC
static final com.mojang.serialization.Codec
<ItemStack> ItemStack.STRICT_SINGLE_ITEM_CODEC
final Collection
<ItemStack> CreativeModeTab.ItemDisplayBuilder.tabContents
static final it.unimi.dsi.fastutil.Hash.Strategy
<? super ItemStack> ItemStackLinkedSet.TYPE_AND_TAG
Methods in net.minecraft.world.item that return ItemStackModifier and TypeMethodDescriptionprivate ItemStack
ItemStack.applyAfterUseComponentSideEffects
(LivingEntity p_366464_, ItemStack p_366810_) ItemStack.consumeAndReturn
(int p_347624_, LivingEntity p_347710_) ItemStack.copy()
ItemStack.copyAndClear()
ItemStack.copyWithCount
(int p_256354_) static ItemStack
InstrumentItem.create
(Item p_220108_, Holder<Instrument> p_220109_) static ItemStack
MapItem.create
(ServerLevel p_412948_, int p_42888_, int p_42889_, byte p_42890_, boolean p_42891_, boolean p_42892_) static ItemStack
ItemUtils.createFilledResult
(ItemStack p_41814_, Player p_41815_, ItemStack p_41816_) static ItemStack
ItemUtils.createFilledResult
(ItemStack p_41818_, Player p_41819_, ItemStack p_41820_, boolean p_41821_) Item.finishUsingItem
(ItemStack p_41409_, Level p_41410_, LivingEntity p_41411_) ItemStack.finishUsingItem
(Level p_41672_, LivingEntity p_41673_) SpyglassItem.finishUsingItem
(ItemStack p_151209_, Level p_151210_, LivingEntity p_151211_) final ItemStack
Item.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 ItemStack
BucketItem.getEmptySuccessItem
(ItemStack p_40700_, Player p_40701_) static ItemStack
ProjectileWeaponItem.getHeldProjectile
(LivingEntity p_43011_, Predicate<ItemStack> p_43012_) CreativeModeTab.getIconItem()
static ItemStack
BundleItem.getSelectedItemStack
(ItemStack p_361689_) ItemStack.hurtAndConvertOnBreak
(int p_352405_, ItemLike p_352337_, LivingEntity p_352175_, EquipmentSlot p_352058_) ItemStack.split
(int p_41621_) ItemStack.transmuteCopy
(ItemLike p_347550_) ItemStack.transmuteCopy
(ItemLike p_323864_, int p_323647_) private ItemStack
ItemStack.transmuteCopyIgnoreEmpty
(ItemLike p_323811_, int p_323856_) protected ItemStack
BottleItem.turnBottleIntoItem
(ItemStack p_40652_, Player p_40653_, ItemStack p_40654_) protected static ItemStack
ProjectileWeaponItem.useAmmo
(ItemStack p_331207_, ItemStack p_331434_, LivingEntity p_330302_, boolean p_330934_) 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> p_412358_) ItemStackLinkedSet.createTypeAndComponentsSet()
ProjectileWeaponItem.draw
(ItemStack p_331565_, ItemStack p_330406_, LivingEntity p_330823_) 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 p_338501_) ItemStack.parse
(HolderLookup.Provider p_331096_, Tag p_330238_) BundleItem.removeOneItemFromBundle
(ItemStack p_371385_, Player p_371941_, BundleContents p_371197_) ItemStack.validatedStreamCodec
(StreamCodec<RegistryFriendlyByteBuf, ItemStack> p_340962_) static com.mojang.serialization.DataResult
<ItemStack> ItemStack.validateStrict
(ItemStack p_340966_) Methods in net.minecraft.world.item with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
CreativeModeTab.ItemDisplayBuilder.accept
(ItemStack p_250391_, CreativeModeTab.TabVisibility p_251472_) default void
void
CreativeModeTab.Output.accept
(ItemStack p_251806_, CreativeModeTab.TabVisibility p_249603_) void
ItemCooldowns.addCooldown
(ItemStack p_366762_, int p_41526_) void
DiscFragmentItem.appendHoverText
(ItemStack p_220031_, Item.TooltipContext p_339652_, TooltipDisplay p_399746_, Consumer<Component> p_400199_, TooltipFlag p_220034_) void
HangingEntityItem.appendHoverText
(ItemStack p_270235_, Item.TooltipContext p_339644_, TooltipDisplay p_400204_, Consumer<Component> p_400127_, TooltipFlag p_270170_) void
Item.appendHoverText
(ItemStack p_41421_, Item.TooltipContext p_339594_, TooltipDisplay p_399753_, Consumer<Component> p_399884_, TooltipFlag p_41424_) Deprecated.void
SmithingTemplateItem.appendHoverText
(ItemStack p_267313_, Item.TooltipContext p_339591_, TooltipDisplay p_399688_, Consumer<Component> p_400130_, TooltipFlag p_266857_) private ItemStack
ItemStack.applyAfterUseComponentSideEffects
(LivingEntity p_366464_, ItemStack p_366810_) static boolean
BoneMealItem.applyBonemeal
(ItemStack p_40628_, Level p_40629_, BlockPos p_40630_, Player player) ArrowItem.asProjectile
(Level p_338330_, Position p_338329_, ItemStack p_338197_, Direction p_338469_) 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 p_338826_, Position p_338780_, ItemStack p_338320_, Direction p_338841_) FireworkRocketItem.asProjectile
(Level p_338390_, Position p_338574_, ItemStack p_338487_, Direction p_338368_) ProjectileItem.asProjectile
(Level p_338867_, Position p_338379_, ItemStack p_338543_, Direction p_338380_) 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 p_338465_, Position p_338661_, ItemStack p_338506_, Direction p_338517_) 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_) boolean
DebugStickItem.canDestroyBlock
(ItemStack p_393705_, BlockState p_393781_, Level p_393500_, BlockPos p_394185_, LivingEntity p_394515_) boolean
Item.canDestroyBlock
(ItemStack p_394530_, BlockState p_394066_, Level p_394541_, BlockPos p_394506_, LivingEntity p_394296_) boolean
AxeItem.canPerformAction
(ItemStack stack, ItemAbility itemAbility) boolean
BrushItem.canPerformAction
(ItemStack stack, ItemAbility itemAbility) boolean
FireChargeItem.canPerformAction
(ItemStack stack, ItemAbility itemAbility) boolean
FishingRodItem.canPerformAction
(ItemStack stack, ItemAbility itemAbility) boolean
FlintAndSteelItem.canPerformAction
(ItemStack stack, ItemAbility itemAbility) boolean
HoeItem.canPerformAction
(ItemStack stack, ItemAbility itemAbility) boolean
ShearsItem.canPerformAction
(ItemStack stack, ItemAbility itemAbility) boolean
ShovelItem.canPerformAction
(ItemStack stack, ItemAbility itemAbility) boolean
TridentItem.canPerformAction
(ItemStack stack, ItemAbility itemAbility) void
BucketItem.checkExtraContent
(LivingEntity p_394527_, Level p_150712_, ItemStack p_150713_, BlockPos p_150714_) default void
DispensibleContainerItem.checkExtraContent
(LivingEntity p_394463_, Level p_150818_, ItemStack p_150819_, BlockPos p_150820_) void
MobBucketItem.checkExtraContent
(LivingEntity p_394402_, Level p_151147_, ItemStack p_151148_, BlockPos p_151149_) boolean
ArrowItem.createArrow
(Level p_40513_, ItemStack p_40514_, LivingEntity p_40515_, ItemStack p_344832_) SpectralArrowItem.createArrow
(Level p_43237_, ItemStack p_43238_, LivingEntity p_43239_, ItemStack p_345773_) static ItemStack
ItemUtils.createFilledResult
(ItemStack p_41814_, Player p_41815_, ItemStack p_41816_) static ItemStack
ItemUtils.createFilledResult
(ItemStack p_41818_, Player p_41819_, ItemStack p_41820_, boolean p_41821_) protected AbstractThrownPotion
LingeringPotionItem.createPotion
(ServerLevel p_400122_, LivingEntity p_400210_, ItemStack p_399574_) protected AbstractThrownPotion
LingeringPotionItem.createPotion
(Level p_399818_, Position p_399889_, ItemStack p_399694_) protected AbstractThrownPotion
SplashPotionItem.createPotion
(ServerLevel p_399816_, LivingEntity p_400003_, ItemStack p_399587_) protected AbstractThrownPotion
SplashPotionItem.createPotion
(Level p_400201_, Position p_399482_, ItemStack p_399625_) protected abstract AbstractThrownPotion
ThrowablePotionItem.createPotion
(ServerLevel p_400124_, LivingEntity p_399487_, ItemStack p_400222_) protected abstract AbstractThrownPotion
ThrowablePotionItem.createPotion
(Level p_400034_, Position p_399547_, ItemStack p_400259_) protected Projectile
CrossbowItem.createProjectile
(Level p_331583_, LivingEntity p_40863_, ItemStack p_40864_, ItemStack p_40865_, boolean p_40866_) protected Projectile
ProjectileWeaponItem.createProjectile
(Level p_331008_, LivingEntity p_330781_, ItemStack p_330846_, ItemStack p_331497_, boolean p_331305_) ProjectileWeaponItem.customArrow
(AbstractArrow arrow, ItemStack projectileStack, ItemStack weaponStack) ProjectileWeaponItem.draw
(ItemStack p_331565_, ItemStack p_330406_, LivingEntity p_330823_) private boolean
BundleItem.dropContent
(ItemStack p_371437_, Player p_371809_) private void
BundleItem.dropContent
(Level p_380196_, Player p_371609_, ItemStack p_371542_) boolean
BucketItem.emptyContents
(LivingEntity p_394627_, Level p_150717_, BlockPos p_150718_, BlockHitResult p_150719_, ItemStack container) Item.finishUsingItem
(ItemStack p_41409_, Level p_41410_, LivingEntity p_41411_) SpyglassItem.finishUsingItem
(ItemStack p_151209_, Level p_151210_, LivingEntity p_151211_) static Optional
<Holder<JukeboxSong>> JukeboxSong.fromStack
(HolderLookup.Provider p_350602_, ItemStack p_350870_) ProjectileWeaponItem.getAllSupportedProjectiles
(ItemStack stack) Override this method if the allowed projectile is weapon stack dependent.int
BundleItem.getBarColor
(ItemStack p_150773_) int
Item.getBarColor
(ItemStack p_150901_) int
BundleItem.getBarWidth
(ItemStack p_150771_) int
Item.getBarWidth
(ItemStack p_150900_) private AbstractBoat
static int
CrossbowItem.getChargeDuration
(ItemStack p_352255_, LivingEntity p_345687_) (package private) CrossbowItem.ChargingSounds
CrossbowItem.getChargingSounds
(ItemStack p_345050_) static DyeColor
ItemCooldowns.getCooldownGroup
(ItemStack p_366444_) float
ItemCooldowns.getCooldownPercent
(ItemStack p_366443_, float p_41523_) protected MapItemSavedData
MapItem.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.float
Item.getDestroySpeed
(ItemStack p_41425_, BlockState p_41426_) protected int
CrossbowItem.getDurabilityUse
(ItemStack p_331489_) protected int
ProjectileWeaponItem.getDurabilityUse
(ItemStack p_331003_) static ItemStack
BucketItem.getEmptySuccessItem
(ItemStack p_40700_, Player p_40701_) static float
BundleItem.getFullnessDisplay
(ItemStack p_150767_) private Optional
<Holder<Instrument>> InstrumentItem.getInstrument
(ItemStack p_220135_, HolderLookup.Provider p_365136_) static int
BundleItem.getNumberOfItemsToShow
(ItemStack p_361742_) private static float
CrossbowItem.getPowerForTime
(int p_40854_, ItemStack p_40855_, LivingEntity p_344803_) static MapItemSavedData
MapItem.getSavedData
(ItemStack p_42854_, Level p_42855_) static int
BundleItem.getSelectedItem
(ItemStack p_362900_) static ItemStack
BundleItem.getSelectedItemStack
(ItemStack p_361689_) 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 p_150775_) Item.getTooltipImage
(ItemStack p_150902_) EntityType
<?> SpawnEggItem.getType
(HolderLookup.Provider p_390418_, ItemStack p_330335_) BowItem.getUseAnimation
(ItemStack p_40678_) BrushItem.getUseAnimation
(ItemStack p_273490_) BundleItem.getUseAnimation
(ItemStack p_389672_) CrossbowItem.getUseAnimation
(ItemStack p_40935_) InstrumentItem.getUseAnimation
(ItemStack p_220133_) Item.getUseAnimation
(ItemStack p_41452_) SpyglassItem.getUseAnimation
(ItemStack p_151224_) TridentItem.getUseAnimation
(ItemStack p_43417_) int
BowItem.getUseDuration
(ItemStack p_40680_, LivingEntity p_345962_) int
BrushItem.getUseDuration
(ItemStack p_272765_, LivingEntity p_344739_) int
BundleItem.getUseDuration
(ItemStack p_371683_, LivingEntity p_371530_) int
CrossbowItem.getUseDuration
(ItemStack p_40938_, LivingEntity p_344898_) int
EnderEyeItem.getUseDuration
(ItemStack p_326954_, LivingEntity p_346241_) int
InstrumentItem.getUseDuration
(ItemStack p_220131_, LivingEntity p_345916_) int
Item.getUseDuration
(ItemStack p_41454_, LivingEntity p_344979_) int
SpyglassItem.getUseDuration
(ItemStack p_151222_, LivingEntity p_345399_) int
TridentItem.getUseDuration
(ItemStack p_43419_, LivingEntity p_345001_) static boolean
Deprecated.static boolean
BoneMealItem.growWaterPlant
(ItemStack p_40632_, Level p_40633_, BlockPos p_40634_, Direction p_40635_) private boolean
DebugStickItem.handleInteraction
(Player p_150803_, BlockState p_150804_, LevelAccessor p_150805_, BlockPos p_150806_, boolean p_150807_, ItemStack p_150808_) static int
ItemStack.hashItemAndComponents
(ItemStack p_331961_) static boolean
BundleItem.hasSelectedItem
(ItemStack p_362328_) void
Item.hurtEnemy
(ItemStack p_41395_, LivingEntity p_41396_, LivingEntity p_41397_) void
MaceItem.hurtEnemy
(ItemStack p_334046_, LivingEntity p_333712_, LivingEntity p_333812_) DyeItem.interactLivingEntity
(ItemStack p_41085_, Player p_41086_, LivingEntity p_41087_, InteractionHand p_41088_) Item.interactLivingEntity
(ItemStack p_41398_, Player p_41399_, LivingEntity p_41400_, InteractionHand p_41401_) NameTagItem.interactLivingEntity
(ItemStack p_42954_, Player p_42955_, LivingEntity p_42956_, InteractionHand p_42957_) 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)
void
CompassItem.inventoryTick
(ItemStack p_40720_, ServerLevel p_401770_, Entity p_40722_, EquipmentSlot p_401781_) void
Item.inventoryTick
(ItemStack p_41404_, ServerLevel p_401805_, Entity p_41406_, EquipmentSlot p_401900_) void
MapItem.inventoryTick
(ItemStack p_42870_, ServerLevel p_401792_, Entity p_42872_, EquipmentSlot p_401885_) boolean
BundleItem.isBarVisible
(ItemStack p_150769_) boolean
Item.isBarVisible
(ItemStack p_150899_) static boolean
boolean
Item.isCombineRepairable
(ItemStack stack) boolean
Item.isCorrectToolForDrops
(ItemStack p_336002_, BlockState p_41450_) boolean
boolean
boolean
ArrowItem.isInfinite
(ItemStack ammo, ItemStack bow, LivingEntity livingEntity) Called to determine if this arrow will be infinite when fired.boolean
ItemCooldowns.isOnCooldown
(ItemStack p_366432_) static boolean
ItemStack.isSameItem
(ItemStack p_287761_, ItemStack p_287676_) static boolean
ItemStack.isSameItemSameComponents
(ItemStack p_150943_, ItemStack p_150944_) boolean
ItemStack.isValidRepairItem
(ItemStack p_362836_) private static void
MapItem.lockMap
(ItemStack p_42899_, ServerLevel p_412943_) static boolean
protected boolean
HangingEntityItem.mayPlace
(Player p_41326_, Direction p_41327_, ItemStack p_41328_, BlockPos p_41329_) protected boolean
boolean
Item.mineBlock
(ItemStack p_41416_, Level p_41417_, BlockState p_41418_, BlockPos p_41419_, LivingEntity p_41420_) boolean
ShearsItem.mineBlock
(ItemStack p_411066_, Level p_411074_, BlockState p_411062_, BlockPos p_411048_, LivingEntity p_411065_) void
Item.onCraftedBy
(ItemStack p_41447_, Player p_41449_) void
Item.onCraftedPostProcess
(ItemStack p_307483_, Level p_307537_) void
MapItem.onCraftedPostProcess
(ItemStack p_42913_, Level p_42914_) void
BrushItem.onUseTick
(Level p_273467_, LivingEntity p_273619_, ItemStack p_273316_, int p_273101_) void
BundleItem.onUseTick
(Level p_371661_, LivingEntity p_371559_, ItemStack p_371431_, int p_371432_) void
CrossbowItem.onUseTick
(Level p_40910_, LivingEntity p_40911_, ItemStack p_40912_, int p_40913_) void
Item.onUseTick
(Level p_41428_, LivingEntity p_41429_, ItemStack p_41430_, int p_41431_) boolean
BundleItem.overrideOtherStackedOnMe
(ItemStack p_150742_, ItemStack p_150743_, Slot p_150744_, ClickAction p_150745_, Player p_150746_, SlotAccess p_150747_) boolean
Item.overrideOtherStackedOnMe
(ItemStack p_150892_, ItemStack p_150893_, Slot p_150894_, ClickAction p_150895_, Player p_150896_, SlotAccess p_150897_) boolean
ItemStack.overrideOtherStackedOnMe
(ItemStack p_150933_, Slot p_150934_, ClickAction p_150935_, Player p_150936_, SlotAccess p_150937_) boolean
BundleItem.overrideStackedOnOther
(ItemStack p_150733_, Slot p_150734_, ClickAction p_150735_, Player p_150736_) boolean
Item.overrideStackedOnOther
(ItemStack p_150888_, Slot p_150889_, ClickAction p_150890_, Player p_150891_) void
CrossbowItem.performShooting
(Level p_40888_, LivingEntity p_40889_, InteractionHand p_40890_, ItemStack p_40891_, float p_40892_, float p_40893_, LivingEntity p_331602_) void
Item.postHurtEnemy
(ItemStack p_346136_, LivingEntity p_346250_, LivingEntity p_346014_) void
MaceItem.postHurtEnemy
(ItemStack p_345716_, LivingEntity p_345817_, LivingEntity p_346003_) boolean
BowItem.releaseUsing
(ItemStack p_40667_, Level p_40668_, LivingEntity p_40669_, int p_40670_) boolean
CrossbowItem.releaseUsing
(ItemStack p_40875_, Level p_40876_, LivingEntity p_40877_, int p_40878_) boolean
Item.releaseUsing
(ItemStack p_41412_, Level p_41413_, LivingEntity p_41414_, int p_41415_) boolean
SpyglassItem.releaseUsing
(ItemStack p_151213_, Level p_151214_, LivingEntity p_151215_, int p_151216_) boolean
TridentItem.releaseUsing
(ItemStack p_43394_, Level p_43395_, LivingEntity p_43396_, int p_43397_) BundleItem.removeOneItemFromBundle
(ItemStack p_371385_, Player p_371941_, BundleContents p_371197_) static void
MapItem.renderBiomePreviewMap
(ServerLevel p_42851_, ItemStack p_42852_) private static void
MapItem.scaleMap
(ItemStack p_42857_, ServerLevel p_412941_) static void
BlockItem.setBlockEntityData
(ItemStack p_186339_, BlockEntityType<?> p_186340_, CompoundTag p_186341_) protected void
ProjectileWeaponItem.shoot
(ServerLevel p_346125_, LivingEntity p_330728_, InteractionHand p_331152_, ItemStack p_330646_, List<ItemStack> p_331726_, float p_331007_, float p_331445_, boolean p_331107_, LivingEntity p_331167_) boolean
BlockItem.shouldPrintOpWarning
(ItemStack p_387255_, Player p_387661_) boolean
Item.shouldPrintOpWarning
(ItemStack p_390446_, Player p_390503_) boolean
SpawnEggItem.shouldPrintOpWarning
(ItemStack p_390471_, Player p_390407_) private void
MobBucketItem.spawn
(ServerLevel p_151142_, ItemStack p_151143_, BlockPos p_151144_) SpawnEggItem.spawnOffspringFromSpawnEgg
(Player p_43216_, Mob p_43217_, EntityType<? extends Mob> p_43218_, ServerLevel p_43219_, Vec3 p_43220_, ItemStack p_43221_) boolean
SpawnEggItem.spawnsEntity
(HolderLookup.Provider p_390481_, ItemStack p_330965_, EntityType<?> p_43232_) static void
BundleItem.toggleSelectedItem
(ItemStack p_363912_, int p_363836_) static InteractionResult
JukeboxPlayable.tryInsertIntoJukebox
(Level p_350560_, BlockPos p_350567_, ItemStack p_350531_, Player p_350807_) private static boolean
CrossbowItem.tryLoadProjectiles
(LivingEntity p_40860_, ItemStack p_40861_) protected ItemStack
BottleItem.turnBottleIntoItem
(ItemStack p_40652_, Player p_40653_, ItemStack p_40654_) private static void
BlockItem.updateBlockEntityComponents
(Level p_331559_, BlockPos p_331993_, ItemStack p_332021_) private BlockState
BlockItem.updateBlockStateFromTag
(BlockPos p_40603_, Level p_40604_, ItemStack p_40605_, BlockState p_40606_) protected boolean
BlockItem.updateCustomBlockEntityTag
(BlockPos p_40597_, Level p_40598_, Player p_40599_, ItemStack p_40600_, BlockState p_40601_) static boolean
BlockItem.updateCustomBlockEntityTag
(Level p_40583_, Player p_40584_, BlockPos p_40585_, ItemStack p_40586_) protected boolean
SignItem.updateCustomBlockEntityTag
(BlockPos p_43130_, Level p_43131_, Player p_43132_, ItemStack p_43133_, BlockState p_43134_) protected static ItemStack
ProjectileWeaponItem.useAmmo
(ItemStack p_331207_, ItemStack p_331434_, LivingEntity p_330302_, boolean p_330934_) boolean
CrossbowItem.useOnRelease
(ItemStack p_150801_) boolean
Item.useOnRelease
(ItemStack p_41464_) static com.mojang.serialization.DataResult
<ItemStack> ItemStack.validateStrict
(ItemStack p_340966_) void
Item.verifyComponentsAfterLoad
(ItemStack p_331627_) void
PlayerHeadItem.verifyComponentsAfterLoad
(ItemStack p_331032_) Method parameters in net.minecraft.world.item with type arguments of type ItemStackModifier and TypeMethodDescriptiondefault void
CreativeModeTab.Output.acceptAll
(Collection<ItemStack> p_250244_) default void
CreativeModeTab.Output.acceptAll
(Collection<ItemStack> p_251548_, CreativeModeTab.TabVisibility p_252285_) static ItemStack
ProjectileWeaponItem.getHeldProjectile
(LivingEntity p_43011_, Predicate<ItemStack> p_43012_) static int
ItemStack.hashStackList
(List<ItemStack> p_332135_) Deprecated.static boolean
ItemStack.listMatches
(List<ItemStack> p_331725_, List<ItemStack> p_331113_) Deprecated.static void
ItemUtils.onContainerDestroyed
(ItemEntity p_150953_, Iterable<ItemStack> p_340959_) protected void
ProjectileWeaponItem.shoot
(ServerLevel p_346125_, LivingEntity p_330728_, InteractionHand p_331152_, ItemStack p_330646_, List<ItemStack> p_331726_, float p_331007_, float p_331445_, boolean p_331107_, LivingEntity p_331167_) ItemStack.validatedStreamCodec
(StreamCodec<RegistryFriendlyByteBuf, ItemStack> p_340962_) Constructor parameters in net.minecraft.world.item with type arguments of type ItemStackModifierConstructorDescription(package private)
CreativeModeTab
(CreativeModeTab.Row p_260217_, int p_259557_, CreativeModeTab.Type p_260176_, Component p_260100_, Supplier<ItemStack> p_259543_, CreativeModeTab.DisplayItemsGenerator p_259085_, 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 ItemStack
PotionContents.createItemStack
(Item p_330388_, Holder<Potion> p_331030_) Methods in net.minecraft.world.item.alchemy with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
PotionBrewing.Builder.addRecipe
(Ingredient input, Ingredient ingredient, ItemStack output) Adds a new simple brewing recipe.boolean
PotionBrewing.hasContainerMix
(ItemStack p_43520_, ItemStack p_43521_) boolean
boolean
PotionBrewing.hasPotionMix
(ItemStack p_43525_, ItemStack p_43526_) private boolean
PotionBrewing.isContainer
(ItemStack p_341168_) boolean
PotionBrewing.isContainerIngredient
(ItemStack p_43518_) boolean
PotionBrewing.isIngredient
(ItemStack p_43507_) boolean
Checks if an item stack is a valid input for brewing, for use in the lower 3 slots where water bottles would normally go.boolean
PotionBrewing.isPotionIngredient
(ItemStack p_43523_) void
PotionContents.onConsume
(Level p_366836_, LivingEntity p_366750_, ItemStack p_366399_, Consumable p_366541_) -
Uses of ItemStack in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStack
UseRemainder.convertInto
The field for theconvertInto
record component.private final ItemStack
ItemContainerContents.Slot.item
The field for theitem
record component.Fields in net.minecraft.world.item.component with type parameters of type ItemStackModifier and TypeFieldDescriptionBundleContents.items
BundleContents.Mutable.items
ChargedProjectiles.items
private final NonNullList
<ItemStack> ItemContainerContents.items
Methods in net.minecraft.world.item.component that return ItemStackModifier and TypeMethodDescriptionstatic ItemStack
UseRemainder.convertInto()
Returns the value of theconvertInto
record component.UseRemainder.convertIntoRemainder
(ItemStack p_366873_, int p_366665_, boolean p_376140_, UseRemainder.OnExtraCreatedRemainder p_376106_) ItemContainerContents.copyOne()
BundleContents.getItemUnsafe
(int p_330802_) ItemContainerContents.getStackInSlot
(int slot) Neo: Gets a copy of the stack at a particular slot.ItemContainerContents.Slot.item()
Returns the value of theitem
record component.Consumable.onConsume
(Level p_366638_, LivingEntity p_366573_, ItemStack p_366688_) 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 void
ChargedProjectiles.addProjectileTooltip
(Item.TooltipContext p_401796_, Consumer<Component> p_401811_, ItemStack p_401841_, int p_401911_) void
UseCooldown.apply
(ItemStack p_366427_, LivingEntity p_366834_) void
static ItemStack
void
DeathProtection.applyEffects
(ItemStack p_372914_, LivingEntity p_373008_) boolean
Consumable.canConsume
(LivingEntity p_366522_, ItemStack p_366908_) static boolean
BundleContents.canItemBeInBundle
(ItemStack p_362945_) UseRemainder.convertIntoRemainder
(ItemStack p_366873_, int p_366665_, boolean p_376140_, UseRemainder.OnExtraCreatedRemainder p_376106_) void
BlocksAttacks.disable
(ServerLevel p_400187_, LivingEntity p_399747_, float p_399988_, ItemStack p_399719_) void
Consumable.emitParticlesAndSounds
(RandomSource p_366511_, LivingEntity p_366794_, ItemStack p_366479_, int p_366619_) private int
BundleContents.Mutable.findStackIndex
(ItemStack p_331941_) Consumable.OverrideConsumeSound.getConsumeSound
(ItemStack p_366670_) private int
BundleContents.Mutable.getMaxAmountToAdd
(ItemStack p_330527_) static int
DyedItemColor.getOrDefault
(ItemStack p_330661_, int p_331869_) (package private) static org.apache.commons.lang3.math.Fraction
void
BlocksAttacks.hurtBlockingItem
(Level p_400285_, ItemStack p_399533_, LivingEntity p_400149_, InteractionHand p_400151_, float p_399754_) void
BlocksAttacks.hurtBlockingItem
(Level p_400285_, ItemStack p_399533_, LivingEntity p_400149_, InteractionHand p_400151_, float p_399754_, int fixedDamage) static ChargedProjectiles
Consumable.onConsume
(Level p_366638_, LivingEntity p_366573_, ItemStack p_366688_) void
ConsumableListener.onConsume
(Level p_366714_, LivingEntity p_366581_, ItemStack p_366512_, Consumable p_366630_) void
OminousBottleAmplifier.onConsume
(Level p_366547_, LivingEntity p_366849_, ItemStack p_366530_, Consumable p_366459_) void
SuspiciousStewEffects.onConsume
(Level p_366904_, LivingEntity p_366405_, ItemStack p_366604_, Consumable p_366817_) static boolean
WrittenBookContent.resolveForItem
(ItemStack p_394373_, CommandSourceStack p_393899_, Player p_393825_) static void
CustomData.set
(DataComponentType<CustomData> p_330462_, ItemStack p_332015_, CompoundTag p_331019_) Consumable.startConsuming
(LivingEntity p_366412_, ItemStack p_366449_, InteractionHand p_366742_) int
static void
CustomData.update
(DataComponentType<CustomData> p_331895_, ItemStack p_332185_, Consumer<CompoundTag> p_331274_) 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> p_381706_) private static org.apache.commons.lang3.math.Fraction
BundleContents.computeContentWeight
(List<ItemStack> p_331148_) void
ItemContainerContents.copyInto
(NonNullList<ItemStack> p_330513_) private static int
ItemContainerContents.findLastNonEmptySlot
(List<ItemStack> p_340916_) static ItemContainerContents
static ChargedProjectiles
Constructors in net.minecraft.world.item.component with parameters of type ItemStackModifierConstructorDescription(package private)
Creates an instance of aSlot
record class.UseRemainder
(ItemStack convertInto) Creates an instance of aUseRemainder
record class.Constructor parameters in net.minecraft.world.item.component with type arguments of type ItemStackModifierConstructorDescriptionBundleContents
(List<ItemStack> p_331417_) (package private)
BundleContents
(List<ItemStack> p_331277_, org.apache.commons.lang3.math.Fraction p_339622_, int p_361490_) private
ChargedProjectiles
(List<ItemStack> p_331523_) private
ItemContainerContents
(List<ItemStack> p_331046_) private
ItemContainerContents
(NonNullList<ItemStack> p_332193_) -
Uses of ItemStack in net.minecraft.world.item.consume_effects
Methods in net.minecraft.world.item.consume_effects with parameters of type ItemStackModifier and TypeMethodDescriptionboolean
ApplyStatusEffectsConsumeEffect.apply
(Level p_366679_, ItemStack p_366517_, LivingEntity p_366435_) boolean
ClearAllStatusEffectsConsumeEffect.apply
(Level p_366806_, ItemStack p_366692_, LivingEntity p_366699_) boolean
ConsumeEffect.apply
(Level p_366583_, ItemStack p_366466_, LivingEntity p_366759_) boolean
PlaySoundConsumeEffect.apply
(Level p_366628_, ItemStack p_366717_, LivingEntity p_366700_) boolean
RemoveStatusEffectsConsumeEffect.apply
(Level p_366881_, ItemStack p_366460_, LivingEntity p_366649_) boolean
TeleportRandomlyConsumeEffect.apply
(Level p_366648_, ItemStack p_366476_, LivingEntity p_366884_) -
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 p_43631_, InteractionHand p_43632_, ItemStack p_43633_, BlockHitResult p_43634_) BlockPlaceContext
(Level p_43638_, Player p_43639_, InteractionHand p_43640_, ItemStack p_43641_, BlockHitResult p_43642_) DirectionalPlaceContext
(Level p_43650_, BlockPos p_43651_, Direction p_43652_, ItemStack p_43653_, Direction p_43654_) UseOnContext
(Level p_43713_, Player p_43714_, InteractionHand p_43715_, ItemStack p_43716_, BlockHitResult p_43717_) -
Uses of ItemStack in net.minecraft.world.item.crafting
Fields in net.minecraft.world.item.crafting declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStack
SmithingRecipeInput.addition
The field for theaddition
record component.private final ItemStack
SmithingRecipeInput.base
The field for thebase
record component.private final ItemStack
SingleRecipeInput.item
The field for theitem
record component.(package private) final ItemStack
ShapedRecipe.result
(package private) final ItemStack
ShapelessRecipe.result
private final ItemStack
SingleItemRecipe.result
private final ItemStack
SmithingRecipeInput.template
The field for thetemplate
record component.Fields in net.minecraft.world.item.crafting with type parameters of type ItemStackModifier and TypeFieldDescriptionCraftingInput.items
private final NonNullList
<ItemStack> RecipeCache.Entry.key
The field for thekey
record component.Methods in net.minecraft.world.item.crafting that return ItemStackModifier and TypeMethodDescriptionSmithingRecipeInput.addition()
Returns the value of theaddition
record component.static ItemStack
SmithingTrimRecipe.applyTrim
(HolderLookup.Provider p_381047_, ItemStack p_381169_, ItemStack p_381102_, Holder<TrimPattern> p_399470_) 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 p_345761_, HolderLookup.Provider p_335840_) 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 p_345831_, HolderLookup.Provider p_335387_) Recipe.assemble
(T p_345149_, HolderLookup.Provider p_346030_) RepairItemRecipe.assemble
(CraftingInput p_346224_, HolderLookup.Provider p_335610_) ShapedRecipe.assemble
(CraftingInput p_345201_, HolderLookup.Provider p_335688_) ShapelessRecipe.assemble
(CraftingInput p_345555_, HolderLookup.Provider p_335725_) ShieldDecorationRecipe.assemble
(CraftingInput p_345351_, HolderLookup.Provider p_335895_) SingleItemRecipe.assemble
(SingleRecipeInput p_345857_, HolderLookup.Provider p_335463_) SmithingTransformRecipe.assemble
(SmithingRecipeInput p_345093_, HolderLookup.Provider p_345488_) SmithingTrimRecipe.assemble
(SmithingRecipeInput p_345750_, HolderLookup.Provider p_335536_) TippedArrowRecipe.assemble
(CraftingInput p_345174_, HolderLookup.Provider p_335792_) TransmuteRecipe.assemble
(CraftingInput p_374148_, HolderLookup.Provider p_374579_) private static ItemStack
DecoratedPotRecipe.back
(CraftingInput p_381134_) SmithingRecipeInput.base()
Returns the value of thebase
record component.private static ItemStack
MapExtendingRecipe.findFilledMap
(CraftingInput p_344732_) private static ItemStack
DecoratedPotRecipe.front
(CraftingInput p_381145_) CraftingInput.getItem
(int p_345667_) CraftingInput.getItem
(int p_346237_, int p_345556_) RecipeInput.getItem
(int p_346128_) SingleRecipeInput.getItem
(int p_345528_) SmithingRecipeInput.getItem
(int p_346205_) SingleRecipeInput.item()
Returns the value of theitem
record component.private static ItemStack
DecoratedPotRecipe.left
(CraftingInput p_380977_) protected ItemStack
SingleItemRecipe.result()
private static ItemStack
DecoratedPotRecipe.right
(CraftingInput p_380949_) SmithingRecipeInput.template()
Returns the value of thetemplate
record component.Methods in net.minecraft.world.item.crafting that return types with arguments of type ItemStackModifier and TypeMethodDescriptionstatic NonNullList
<ItemStack> CraftingRecipe.defaultCraftingReminder
(CraftingInput p_380223_) RepairItemRecipe.getItemsToCombine
(CraftingInput p_345543_) RepairItemRecipe.getItemsToCombine
(CraftingInput p_345543_) BannerDuplicateRecipe.getRemainingItems
(CraftingInput p_345377_) BookCloningRecipe.getRemainingItems
(CraftingInput p_344763_) default NonNullList
<ItemStack> CraftingRecipe.getRemainingItems
(CraftingInput p_380110_) CraftingInput.items()
RecipeCache.Entry.key()
Returns the value of thekey
record component.Methods in net.minecraft.world.item.crafting with parameters of type ItemStackModifier and TypeMethodDescriptionboolean
SelectableRecipe.SingleInputSet.acceptsInput
(ItemStack p_379311_) static ItemStack
SmithingTrimRecipe.applyTrim
(HolderLookup.Provider p_381047_, ItemStack p_381169_, ItemStack p_381102_, Holder<TrimPattern> p_399470_) private static boolean
RepairItemRecipe.canCombine
(ItemStack p_336139_, ItemStack p_335795_) AbstractCookingRecipe.Factory.create
(String p_312581_, CookingBookCategory p_312220_, Ingredient p_312282_, ItemStack p_311868_, float p_312803_, int p_312165_) SingleItemRecipe.Factory.create
(String p_311769_, Ingredient p_312083_, ItemStack p_312063_) boolean
TransmuteResult.isResultUnchanged
(ItemStack p_401263_) SelectableRecipe.SingleInputSet.selectByInput
(ItemStack p_379956_) boolean
boolean
static boolean
Ingredient.testOptionalIngredient
(Optional<Ingredient> p_362504_, ItemStack p_363604_) Method parameters in net.minecraft.world.item.crafting with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic CraftingInput
static CraftingInput.Positioned
CraftingInput.ofPositioned
(int p_347479_, int p_347466_, List<ItemStack> p_347585_) Constructors in net.minecraft.world.item.crafting with parameters of type ItemStackModifierConstructorDescriptionAbstractCookingRecipe
(String p_249518_, CookingBookCategory p_250891_, Ingredient p_251354_, ItemStack p_252185_, float p_252165_, int p_250256_) BlastingRecipe
(String p_251053_, CookingBookCategory p_249936_, Ingredient p_251550_, ItemStack p_251027_, float p_250843_, int p_249841_) CampfireCookingRecipe
(String p_250140_, CookingBookCategory p_251808_, Ingredient p_249826_, ItemStack p_251839_, float p_251432_, int p_251471_) ShapedRecipe
(String p_250221_, CraftingBookCategory p_250716_, ShapedRecipePattern p_312814_, ItemStack p_248581_) ShapedRecipe
(String p_272759_, CraftingBookCategory p_273506_, ShapedRecipePattern p_312827_, ItemStack p_272852_, boolean p_312010_) ShapelessRecipe
(String p_249640_, CraftingBookCategory p_249390_, ItemStack p_252071_, List<Ingredient> p_361103_) SingleItemRecipe
(String p_44419_, Ingredient p_44420_, ItemStack p_44421_) SingleRecipeInput
(ItemStack item) Creates an instance of aSingleRecipeInput
record class.SmeltingRecipe
(String p_250200_, CookingBookCategory p_251114_, Ingredient p_250340_, ItemStack p_250306_, float p_249577_, int p_250030_) SmithingRecipeInput
(ItemStack template, ItemStack base, ItemStack addition) Creates an instance of aSmithingRecipeInput
record class.SmokingRecipe
(String p_249312_, CookingBookCategory p_251017_, Ingredient p_252345_, ItemStack p_250002_, float p_250535_, int p_251222_) StonecutterRecipe
(String p_44479_, Ingredient p_44480_, ItemStack p_302318_) Constructor parameters in net.minecraft.world.item.crafting with type arguments of type ItemStackModifierConstructorDescriptionprivate
CraftingInput
(int p_346099_, int p_344783_, List<ItemStack> p_345241_) (package private)
Entry
(NonNullList<ItemStack> key, int width, int height, RecipeHolder<CraftingRecipe> value) Creates an instance of aEntry
record 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 ItemStack
SlotDisplay.ItemStackSlotDisplay.stack
The field for thestack
record component.Methods in net.minecraft.world.item.crafting.display that return ItemStackModifier and TypeMethodDescriptiondefault ItemStack
SlotDisplay.resolveForFirstStack
(ContextMap p_381094_) SlotDisplay.ItemStackSlotDisplay.stack()
Returns the value of thestack
record component.Methods in net.minecraft.world.item.crafting.display that return types with arguments of type ItemStackModifier and TypeMethodDescriptionSlotDisplay.resolveForStacks
(ContextMap p_380953_) RecipeDisplayEntry.resultItems
(ContextMap p_381045_) 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 aItemStackSlotDisplay
record class. -
Uses of ItemStack in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStack
EnchantedItemInUse.itemStack
The field for theitemStack
record component.Methods in net.minecraft.world.item.enchantment that return ItemStackModifier and TypeMethodDescriptionstatic ItemStack
EnchantmentHelper.createBook
(EnchantmentInstance p_363915_) static ItemStack
EnchantmentHelper.enchantItem
(RandomSource p_220293_, ItemStack p_220294_, int p_220295_, Stream<Holder<Enchantment>> p_345380_) static ItemStack
EnchantmentHelper.enchantItem
(RandomSource p_346328_, ItemStack p_346267_, int p_345272_, RegistryAccess p_345660_, Optional<? extends HolderSet<Enchantment>> p_345161_) EnchantedItemInUse.itemStack()
Returns the value of theitemStack
record component.Methods in net.minecraft.world.item.enchantment that return types with arguments of type ItemStackMethods in net.minecraft.world.item.enchantment with parameters of type ItemStackModifier and TypeMethodDescriptionboolean
Enchantment.canEnchant
(ItemStack p_44689_) Deprecated.static boolean
EnchantmentHelper.canStoreEnchantments
(ItemStack p_330666_) static void
EnchantmentHelper.doPostAttackEffectsWithItemSource
(ServerLevel p_348463_, Entity p_348545_, DamageSource p_348552_, ItemStack p_348507_) static void
EnchantmentHelper.doPostAttackEffectsWithItemSourceOnBreak
(ServerLevel p_368753_, Entity p_368710_, DamageSource p_368514_, ItemStack p_368731_, Consumer<Item> p_368558_) static ItemStack
EnchantmentHelper.enchantItem
(RandomSource p_220293_, ItemStack p_220294_, int p_220295_, Stream<Holder<Enchantment>> p_345380_) static ItemStack
EnchantmentHelper.enchantItem
(RandomSource p_346328_, ItemStack p_346267_, int p_345272_, RegistryAccess p_345660_, Optional<? extends HolderSet<Enchantment>> p_345161_) static void
EnchantmentHelper.enchantItemFromProvider
(ItemStack p_345172_, RegistryAccess p_348593_, ResourceKey<EnchantmentProvider> p_345876_, DifficultyInstance p_348599_, RandomSource p_345717_) static void
EnchantmentHelper.forEachModifier
(ItemStack p_348634_, EquipmentSlotGroup p_348528_, BiConsumer<Holder<Attribute>, AttributeModifier> p_348554_) static void
EnchantmentHelper.forEachModifier
(ItemStack p_345685_, EquipmentSlot p_345123_, BiConsumer<Holder<Attribute>, AttributeModifier> p_345061_) static List
<EnchantmentInstance> EnchantmentHelper.getAvailableEnchantmentResults
(int p_44818_, ItemStack p_44819_, Stream<Holder<Enchantment>> p_345348_) static DataComponentType
<ItemEnchantments> EnchantmentHelper.getComponentType
(ItemStack p_331909_) static int
EnchantmentHelper.getEnchantmentCost
(RandomSource p_220288_, int p_220289_, int p_220290_, ItemStack p_220291_) static ItemEnchantments
EnchantmentHelper.getEnchantmentsForCrafting
(ItemStack p_330538_) static int
EnchantmentHelper.getFishingLuckBonus
(ServerLevel p_346163_, ItemStack p_44905_, Entity p_345772_) static float
EnchantmentHelper.getFishingTimeReduction
(ServerLevel p_345589_, ItemStack p_344902_, Entity p_346054_) static <T> com.mojang.datafixers.util.Pair
<T, Integer> EnchantmentHelper.getHighestLevel
(ItemStack p_346269_, DataComponentType<T> p_345899_) static int
EnchantmentHelper.getItemEnchantmentLevel
(Holder<Enchantment> p_346179_, ItemStack p_44845_) Deprecated.Neo: UseEnchantmentHelper.getTagEnchantmentLevel(Holder, ItemStack)
for NBT enchantments, orIItemStackExtension.getEnchantmentLevel(Holder)
for gameplay.static int
EnchantmentHelper.getPiercingCount
(ServerLevel p_345735_, ItemStack p_344942_, ItemStack p_345766_) static int
EnchantmentHelper.getTagEnchantmentLevel
(Holder<Enchantment> p_346179_, ItemStack p_44845_) Gets the level of an enchantment from NBT.static int
EnchantmentHelper.getTridentReturnToOwnerAcceleration
(ServerLevel p_344814_, ItemStack p_346255_, Entity p_346332_) static float
EnchantmentHelper.getTridentSpinAttackStrength
(ItemStack p_352129_, LivingEntity p_345705_) static boolean
EnchantmentHelper.has
(ItemStack p_345474_, DataComponentType<?> p_344897_) static boolean
EnchantmentHelper.hasAnyEnchantments
(ItemStack p_332657_) static boolean
EnchantmentHelper.hasTag
(ItemStack p_345665_, TagKey<Enchantment> p_345928_) boolean
Enchantment.isPrimaryItem
(ItemStack p_336088_) Deprecated.Neo: UseIItemStackExtension.isPrimaryItemFor(Holder)
This method does not respectIItemStackExtension.supportsEnchantment(Holder)
since theHolder
is not available, which makes the result of calling it invalid.boolean
Enchantment.isSupportedItem
(ItemStack p_344865_) Deprecated.boolean
Repairable.isValidRepairItem
(ItemStack p_361644_) static LootContext
Enchantment.itemContext
(ServerLevel p_345514_, int p_345186_, ItemStack p_344997_) void
Enchantment.modifyAmmoCount
(ServerLevel p_346007_, int p_345438_, ItemStack p_345581_, org.apache.commons.lang3.mutable.MutableFloat p_345594_) static float
EnchantmentHelper.modifyArmorEffectiveness
(ServerLevel p_345426_, ItemStack p_345454_, Entity p_345834_, DamageSource p_345082_, float p_344790_) void
Enchantment.modifyArmorEffectivness
(ServerLevel p_345449_, int p_346129_, ItemStack p_345436_, Entity p_345815_, DamageSource p_346172_, org.apache.commons.lang3.mutable.MutableFloat p_345265_) void
Enchantment.modifyBlockExperience
(ServerLevel p_344830_, int p_345513_, ItemStack p_344939_, org.apache.commons.lang3.mutable.MutableFloat p_344754_) static float
EnchantmentHelper.modifyCrossbowChargingTime
(ItemStack p_352460_, LivingEntity p_347534_, float p_345633_) void
Enchantment.modifyDamage
(ServerLevel p_345743_, int p_345544_, ItemStack p_345269_, Entity p_346011_, DamageSource p_344755_, org.apache.commons.lang3.mutable.MutableFloat p_345551_) static float
EnchantmentHelper.modifyDamage
(ServerLevel p_345523_, ItemStack p_345856_, Entity p_344995_, DamageSource p_345216_, float p_346025_) void
Enchantment.modifyDamageFilteredValue
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> p_345367_, ServerLevel p_345784_, int p_344796_, ItemStack p_345410_, Entity p_345673_, DamageSource p_345768_, org.apache.commons.lang3.mutable.MutableFloat p_345664_) void
Enchantment.modifyDamageProtection
(ServerLevel p_345336_, int p_345347_, ItemStack p_346270_, Entity p_346395_, DamageSource p_345595_, org.apache.commons.lang3.mutable.MutableFloat p_345579_) void
Enchantment.modifyDurabilityChange
(ServerLevel p_345412_, int p_344937_, ItemStack p_345854_, org.apache.commons.lang3.mutable.MutableFloat p_345948_) void
Enchantment.modifyDurabilityToRepairFromXp
(ServerLevel p_346275_, int p_346253_, ItemStack p_346008_, org.apache.commons.lang3.mutable.MutableFloat p_344922_) static int
EnchantmentHelper.modifyDurabilityToRepairFromXp
(ServerLevel p_345119_, ItemStack p_345686_, int p_344847_) void
Enchantment.modifyEntityFilteredValue
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> p_345986_, ServerLevel p_345473_, int p_345352_, ItemStack p_345076_, Entity p_345170_, org.apache.commons.lang3.mutable.MutableFloat p_345910_) void
Enchantment.modifyFallBasedDamage
(ServerLevel p_345164_, int p_344793_, ItemStack p_345159_, Entity p_345653_, DamageSource p_344870_, org.apache.commons.lang3.mutable.MutableFloat p_346329_) static float
EnchantmentHelper.modifyFallBasedDamage
(ServerLevel p_345433_, ItemStack p_345368_, Entity p_345047_, DamageSource p_345711_, float p_346245_) void
Enchantment.modifyFishingLuckBonus
(ServerLevel p_344932_, int p_346280_, ItemStack p_344733_, Entity p_346035_, org.apache.commons.lang3.mutable.MutableFloat p_345897_) void
Enchantment.modifyFishingTimeReduction
(ServerLevel p_344910_, int p_345466_, ItemStack p_345847_, Entity p_346092_, org.apache.commons.lang3.mutable.MutableFloat p_346295_) void
Enchantment.modifyItemFilteredCount
(DataComponentType<List<ConditionalEffect<EnchantmentValueEffect>>> p_345794_, ServerLevel p_345992_, int p_345038_, ItemStack p_345886_, org.apache.commons.lang3.mutable.MutableFloat p_345188_) void
Enchantment.modifyKnockback
(ServerLevel p_346266_, int p_344905_, ItemStack p_345602_, Entity p_346190_, DamageSource p_345911_, org.apache.commons.lang3.mutable.MutableFloat p_345127_) static float
EnchantmentHelper.modifyKnockback
(ServerLevel p_346221_, ItemStack p_344862_, Entity p_345720_, DamageSource p_345322_, float p_345116_) void
Enchantment.modifyMobExperience
(ServerLevel p_346393_, int p_345762_, ItemStack p_345945_, Entity p_345849_, org.apache.commons.lang3.mutable.MutableFloat p_345252_) void
Enchantment.modifyPiercingCount
(ServerLevel p_346422_, int p_344854_, ItemStack p_345503_, org.apache.commons.lang3.mutable.MutableFloat p_345370_) void
Enchantment.modifyProjectileCount
(ServerLevel p_345353_, int p_344837_, ItemStack p_346382_, Entity p_345611_, org.apache.commons.lang3.mutable.MutableFloat p_344765_) void
Enchantment.modifyProjectileSpread
(ServerLevel p_346170_, int p_345846_, ItemStack p_346147_, Entity p_345832_, org.apache.commons.lang3.mutable.MutableFloat p_345361_) void
Enchantment.modifyTridentReturnToOwnerAcceleration
(ServerLevel p_345534_, int p_345845_, ItemStack p_345558_, Entity p_345333_, org.apache.commons.lang3.mutable.MutableFloat p_344912_) static void
EnchantmentHelper.onHitBlock
(ServerLevel p_346213_, ItemStack p_344826_, LivingEntity p_345015_, Entity p_345210_, EquipmentSlot p_345889_, Vec3 p_345922_, BlockState p_350787_, Consumer<Item> p_348575_) static void
EnchantmentHelper.onProjectileSpawned
(ServerLevel p_345062_, ItemStack p_345805_, Projectile p_364066_, Consumer<Item> p_348544_) static <T> Optional
<T> EnchantmentHelper.pickHighestLevel
(ItemStack p_345398_, DataComponentType<List<T>> p_346022_) static int
EnchantmentHelper.processAmmoUse
(ServerLevel p_344848_, ItemStack p_345072_, ItemStack p_345407_, int p_346289_) static int
EnchantmentHelper.processBlockExperience
(ServerLevel p_344948_, ItemStack p_345630_, int p_345026_) static int
EnchantmentHelper.processDurabilityChange
(ServerLevel p_345153_, ItemStack p_344889_, int p_345787_) static int
EnchantmentHelper.processProjectileCount
(ServerLevel p_345598_, ItemStack p_346421_, Entity p_346006_, int p_346388_) static float
EnchantmentHelper.processProjectileSpread
(ServerLevel p_346048_, ItemStack p_345702_, Entity p_346314_, float p_346070_) static void
EnchantmentHelper.runIterationOnItem
(ItemStack p_44852_, EquipmentSlot p_345566_, LivingEntity p_345792_, EnchantmentHelper.EnchantmentInSlotVisitor p_345683_) static void
EnchantmentHelper.runIterationOnItem
(ItemStack p_345425_, EnchantmentHelper.EnchantmentVisitor p_345023_) static void
EnchantmentHelper.runLocationChangedEffects
(ServerLevel p_345755_, ItemStack p_345291_, LivingEntity p_346348_, EquipmentSlot p_345919_) static List
<EnchantmentInstance> EnchantmentHelper.selectEnchantment
(RandomSource p_220298_, ItemStack p_220299_, int p_220300_, Stream<Holder<Enchantment>> p_346061_) static void
EnchantmentHelper.setEnchantments
(ItemStack p_44867_, ItemEnchantments p_332148_) static void
EnchantmentHelper.stopLocationBasedEffects
(ItemStack p_344726_, LivingEntity p_346085_, EquipmentSlot p_345691_) static ItemEnchantments
EnchantmentHelper.updateEnchantments
(ItemStack p_331034_, Consumer<ItemEnchantments.Mutable> p_332031_) Method parameters in net.minecraft.world.item.enchantment with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic Optional
<EnchantedItemInUse> EnchantmentHelper.getRandomItemWith
(DataComponentType<?> p_345509_, LivingEntity p_44841_, Predicate<ItemStack> p_44842_) 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 aEnchantedItemInUse
record 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 TypeMethodDescriptionvoid
EnchantmentProvider.enchant
(ItemStack p_345974_, ItemEnchantments.Mutable p_344824_, RandomSource p_346040_, DifficultyInstance p_348672_) void
EnchantmentsByCost.enchant
(ItemStack p_345483_, ItemEnchantments.Mutable p_346331_, RandomSource p_344794_, DifficultyInstance p_348577_) void
EnchantmentsByCostWithDifficulty.enchant
(ItemStack p_344777_, ItemEnchantments.Mutable p_344895_, RandomSource p_346012_, DifficultyInstance p_348635_) void
SingleEnchantment.enchant
(ItemStack p_346218_, ItemEnchantments.Mutable p_345570_, RandomSource p_345742_, DifficultyInstance p_348562_) -
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 p_397505_, LivingEntity p_397083_, ItemStack p_397903_) Equippable.swapWithEquipmentSlot
(ItemStack p_371218_, Player p_371907_) -
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 p_371665_, ItemStack p_371700_) -
Uses of ItemStack in net.minecraft.world.item.trading
Fields in net.minecraft.world.item.trading declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStack
ItemCost.itemStack
The field for theitemStack
record component.private final ItemStack
MerchantOffer.result
Methods in net.minecraft.world.item.trading that return ItemStackModifier and TypeMethodDescriptionMerchantOffer.assemble()
private static ItemStack
ItemCost.createStack
(Holder<Item> p_331040_, int p_330313_, DataComponentExactPredicate p_399953_) MerchantOffer.getBaseCostA()
MerchantOffer.getCostA()
MerchantOffer.getCostB()
MerchantOffer.getResult()
ItemCost.itemStack()
Returns the value of theitemStack
record component.Methods in net.minecraft.world.item.trading with parameters of type ItemStackModifier and TypeMethodDescriptionMerchantOffers.getRecipeFor
(ItemStack p_45390_, ItemStack p_45391_, int p_45392_) void
Merchant.notifyTradeUpdated
(ItemStack p_45308_) boolean
MerchantOffer.satisfiedBy
(ItemStack p_45356_, ItemStack p_45357_) boolean
boolean
Constructors in net.minecraft.world.item.trading with parameters of type ItemStackModifierConstructorDescriptionItemCost
(Holder<Item> item, int count, DataComponentExactPredicate components, ItemStack itemStack) Creates an instance of aItemCost
record class.private
MerchantOffer
(ItemCost p_330734_, Optional<ItemCost> p_331500_, ItemStack p_45327_, int p_45330_, int p_45331_, boolean p_330754_, int p_332006_, int p_330432_, float p_45332_, int p_330282_) MerchantOffer
(ItemCost p_331596_, Optional<ItemCost> p_330410_, ItemStack p_45334_, int p_45337_, int p_45338_, float p_45340_) MerchantOffer
(ItemCost p_331409_, Optional<ItemCost> p_331614_, ItemStack p_45321_, int p_45323_, int p_45324_, int p_330951_, float p_45325_) MerchantOffer
(ItemCost p_331744_, Optional<ItemCost> p_330460_, ItemStack p_324239_, int p_324562_, int p_324493_, int p_323558_, float p_323528_, int p_324484_) MerchantOffer
(ItemCost p_332077_, ItemStack p_320418_, int p_320071_, int p_320069_, float p_320947_) -
Uses of ItemStack in net.minecraft.world.level
Fields in net.minecraft.world.level declared as ItemStackModifier and TypeFieldDescription(package private) ItemStack
ServerExplosion.StackCollector.stack
Methods in net.minecraft.world.level with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static void
ServerExplosion.addOrAppendStack
(List<ServerExplosion.StackCollector> p_363272_, ItemStack p_362153_, BlockPos p_361248_) void
Constructors in net.minecraft.world.level with parameters of type ItemStackModifierConstructorDescription(package private)
StackCollector
(BlockPos p_361929_, ItemStack p_365092_) -
Uses of ItemStack in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block that return ItemStackModifier and TypeMethodDescriptionprotected ItemStack
AbstractBannerBlock.getCloneItemStack
(LevelReader p_304796_, BlockPos p_48665_, BlockState p_48666_, boolean p_386769_) protected ItemStack
AttachedStemBlock.getCloneItemStack
(LevelReader p_304950_, BlockPos p_48839_, BlockState p_48840_, boolean p_388189_) protected ItemStack
BambooSaplingBlock.getCloneItemStack
(LevelReader p_304956_, BlockPos p_48965_, BlockState p_48966_, boolean p_387375_) protected ItemStack
BeehiveBlock.getCloneItemStack
(LevelReader p_386459_, BlockPos p_387055_, BlockState p_387788_, boolean p_387391_) protected ItemStack
BigDripleafStemBlock.getCloneItemStack
(LevelReader p_304938_, BlockPos p_152337_, BlockState p_152338_, boolean p_387224_) protected ItemStack
CandleCakeBlock.getCloneItemStack
(LevelReader p_304662_, BlockPos p_152863_, BlockState p_152864_, boolean p_387122_) protected ItemStack
CaveVinesBlock.getCloneItemStack
(LevelReader p_304590_, BlockPos p_152967_, BlockState p_152968_, boolean p_386659_) protected ItemStack
CaveVinesPlantBlock.getCloneItemStack
(LevelReader p_304444_, BlockPos p_153008_, BlockState p_153009_, boolean p_387975_) protected ItemStack
CropBlock.getCloneItemStack
(LevelReader p_304482_, BlockPos p_52255_, BlockState p_52256_, boolean p_387989_) protected ItemStack
DecoratedPotBlock.getCloneItemStack
(LevelReader p_304622_, BlockPos p_294412_, BlockState p_294723_, boolean p_387769_) protected ItemStack
EndGatewayBlock.getCloneItemStack
(LevelReader p_304768_, BlockPos p_53004_, BlockState p_53005_, boolean p_387386_) protected ItemStack
EndPortalBlock.getCloneItemStack
(LevelReader p_304508_, BlockPos p_53022_, BlockState p_53023_, boolean p_388548_) protected ItemStack
FlowerPotBlock.getCloneItemStack
(LevelReader p_304505_, BlockPos p_53532_, BlockState p_53533_, boolean p_388306_) protected ItemStack
FrostedIceBlock.getCloneItemStack
(LevelReader p_304729_, BlockPos p_53571_, BlockState p_53572_, boolean p_386722_) protected ItemStack
GrowingPlantBodyBlock.getCloneItemStack
(LevelReader p_304650_, BlockPos p_53897_, BlockState p_53898_, boolean p_388787_) protected ItemStack
LightBlock.getCloneItemStack
(LevelReader p_304798_, BlockPos p_153665_, BlockState p_153666_, boolean p_387561_) protected ItemStack
NetherPortalBlock.getCloneItemStack
(LevelReader p_304402_, BlockPos p_54912_, BlockState p_54913_, boolean p_386478_) protected ItemStack
NetherWartBlock.getCloneItemStack
(LevelReader p_304797_, BlockPos p_54974_, BlockState p_54975_, boolean p_387454_) protected ItemStack
StemBlock.getCloneItemStack
(LevelReader p_304982_, BlockPos p_57027_, BlockState p_57028_, boolean p_387824_) protected ItemStack
SweetBerryBushBlock.getCloneItemStack
(LevelReader p_304655_, BlockPos p_57257_, BlockState p_57258_, boolean p_388022_) protected ItemStack
TallSeagrassBlock.getCloneItemStack
(LevelReader p_304988_, BlockPos p_154750_, BlockState p_154751_, boolean p_387662_) protected ItemStack
TestBlock.getCloneItemStack
(LevelReader p_397697_, BlockPos p_397696_, BlockState p_397513_, boolean p_398035_) static ItemStack
ShulkerBoxBlock.getColoredItemStack
(DyeColor p_56251_) BarrierBlock.pickupBlock
(LivingEntity p_393874_, LevelAccessor p_295817_, BlockPos p_295857_, BlockState p_294189_) BubbleColumnBlock.pickupBlock
(LivingEntity p_394411_, LevelAccessor p_152712_, BlockPos p_152713_, BlockState p_152714_) BucketPickup.pickupBlock
(LivingEntity p_394251_, LevelAccessor p_152719_, BlockPos p_152720_, BlockState p_152721_) LiquidBlock.pickupBlock
(LivingEntity p_393591_, LevelAccessor p_153772_, BlockPos p_153773_, BlockState p_153774_) PowderSnowBlock.pickupBlock
(LivingEntity p_394634_, LevelAccessor p_154281_, BlockPos p_154282_, BlockState p_154283_) default ItemStack
SimpleWaterloggedBlock.pickupBlock
(LivingEntity p_394370_, LevelAccessor p_154560_, BlockPos p_154561_, BlockState p_154562_) static ItemStack
LightBlock.setLightOnStack
(ItemStack p_259339_, int p_259353_) static ItemStack
TestBlock.setModeOnStack
(ItemStack p_396991_, TestBlockMode p_397281_) Methods in net.minecraft.world.level.block that return types with arguments of type ItemStackModifier and TypeMethodDescriptionBeehiveBlock.getDrops
(BlockState p_49636_, LootParams.Builder p_287581_) Block.getDrops
(BlockState p_49870_, ServerLevel p_49871_, BlockPos p_49872_, BlockEntity p_49873_) Block.getDrops
(BlockState p_49875_, ServerLevel p_49876_, BlockPos p_49877_, BlockEntity p_49878_, Entity p_49879_, ItemStack p_49880_) DecoratedPotBlock.getDrops
(BlockState p_287683_, LootParams.Builder p_287582_) LiquidBlock.getDrops
(BlockState p_54720_, LootParams.Builder p_287727_) ShulkerBoxBlock.getDrops
(BlockState p_287632_, LootParams.Builder p_287691_) Methods in net.minecraft.world.level.block with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static void
ChiseledBookShelfBlock.addBook
(Level p_262592_, BlockPos p_262669_, Player p_262572_, ChiseledBookShelfBlockEntity p_262606_, ItemStack p_262587_, int p_262692_) (package private) static BlockState
ComposterBlock.addItem
(Entity p_270464_, BlockState p_270603_, LevelAccessor p_270151_, BlockPos p_270547_, ItemStack p_270354_) boolean
ComposterBlock.EmptyContainer.canPlaceItemThroughFace
(int p_52008_, ItemStack p_52009_, Direction p_52010_) boolean
ComposterBlock.InputContainer.canPlaceItemThroughFace
(int p_52028_, ItemStack p_52029_, Direction p_52030_) boolean
ComposterBlock.OutputContainer.canPlaceItemThroughFace
(int p_52049_, ItemStack p_52050_, Direction p_52051_) static boolean
WitherSkullBlock.canSpawnMob
(Level p_58268_, BlockPos p_58269_, ItemStack p_58270_) boolean
ComposterBlock.EmptyContainer.canTakeItemThroughFace
(int p_52014_, ItemStack p_52015_, Direction p_52016_) boolean
ComposterBlock.InputContainer.canTakeItemThroughFace
(int p_52034_, ItemStack p_52035_, Direction p_52036_) boolean
ComposterBlock.OutputContainer.canTakeItemThroughFace
(int p_52055_, ItemStack p_52056_, Direction p_52057_) private void
CrafterBlock.dispenseItem
(ServerLevel p_335887_, BlockPos p_307620_, CrafterBlockEntity p_307387_, ItemStack p_307296_, BlockState p_307501_, RecipeHolder<?> p_335494_) static void
Block.dropResources
(BlockState p_49882_, Level p_49883_, BlockPos p_49884_, BlockEntity p_49885_, Entity p_49886_, ItemStack p_49887_) private static DispenseItemBehavior
DispenserBlock.getDefaultDispenseMethod
(ItemStack p_371649_) protected DispenseItemBehavior
DispenserBlock.getDispenseMethod
(Level p_341306_, ItemStack p_52667_) protected DispenseItemBehavior
DropperBlock.getDispenseMethod
(Level p_341227_, ItemStack p_52947_) Block.getDrops
(BlockState p_49875_, ServerLevel p_49876_, BlockPos p_49877_, BlockEntity p_49878_, Entity p_49879_, ItemStack p_49880_) int
DropExperienceBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
RedStoneOreBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkCatalystBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkSensorBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SculkShriekerBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) int
SpawnerBlock.getExpDrop
(BlockState state, LevelAccessor level, BlockPos pos, BlockEntity blockEntity, Entity breaker, ItemStack tool) static float
static BlockState
ComposterBlock.insertItem
(Entity p_270919_, BlockState p_270087_, ServerLevel p_270284_, ItemStack p_270253_, BlockPos p_270678_) private static boolean
RespawnAnchorBlock.isRespawnFuel
(ItemStack p_55849_) private static void
LecternBlock.placeBook
(LivingEntity p_347484_, Level p_270065_, BlockPos p_270155_, BlockState p_270753_, ItemStack p_270173_) void
BeehiveBlock.playerDestroy
(Level p_49584_, Player p_49585_, BlockPos p_49586_, BlockState p_49587_, BlockEntity p_49588_, ItemStack p_49589_) void
Block.playerDestroy
(Level p_49827_, Player p_49828_, BlockPos p_49829_, BlockState p_49830_, BlockEntity p_49831_, ItemStack p_49832_) void
DoublePlantBlock.playerDestroy
(Level p_52865_, Player p_52866_, BlockPos p_52867_, BlockState p_52868_, BlockEntity p_52869_, ItemStack p_52870_) void
IceBlock.playerDestroy
(Level p_54157_, Player p_54158_, BlockPos p_54159_, BlockState p_54160_, BlockEntity p_54161_, ItemStack p_54162_) void
TurtleEggBlock.playerDestroy
(Level p_57771_, Player p_57772_, BlockPos p_57773_, BlockState p_57774_, BlockEntity p_57775_, ItemStack p_57776_) private static void
Block.popResource
(Level p_152441_, Supplier<ItemEntity> p_152442_, ItemStack p_152443_) static void
Block.popResource
(Level p_49841_, BlockPos p_49842_, ItemStack p_49843_) static void
Block.popResourceFromFace
(Level p_152436_, BlockPos p_152437_, Direction p_152438_, ItemStack p_152439_) static ItemStack
LightBlock.setLightOnStack
(ItemStack p_259339_, int p_259353_) static ItemStack
TestBlock.setModeOnStack
(ItemStack p_396991_, TestBlockMode p_397281_) void
BedBlock.setPlacedBy
(Level p_49499_, BlockPos p_49500_, BlockState p_49501_, LivingEntity p_49502_, ItemStack p_49503_) void
Block.setPlacedBy
(Level p_49847_, BlockPos p_49848_, BlockState p_49849_, LivingEntity p_49850_, ItemStack p_49851_) void
CommandBlock.setPlacedBy
(Level p_51804_, BlockPos p_51805_, BlockState p_51806_, LivingEntity p_51807_, ItemStack p_51808_) void
CrafterBlock.setPlacedBy
(Level p_307219_, BlockPos p_307681_, BlockState p_307383_, LivingEntity p_307647_, ItemStack p_307190_) void
DiodeBlock.setPlacedBy
(Level p_52506_, BlockPos p_52507_, BlockState p_52508_, LivingEntity p_52509_, ItemStack p_52510_) void
DoorBlock.setPlacedBy
(Level p_52749_, BlockPos p_52750_, BlockState p_52751_, LivingEntity p_52752_, ItemStack p_52753_) void
DoublePlantBlock.setPlacedBy
(Level p_52872_, BlockPos p_52873_, BlockState p_52874_, LivingEntity p_52875_, ItemStack p_52876_) void
JukeboxBlock.setPlacedBy
(Level p_54264_, BlockPos p_54265_, BlockState p_54266_, LivingEntity p_54267_, ItemStack p_54268_) void
MossyCarpetBlock.setPlacedBy
(Level p_380310_, BlockPos p_380202_, BlockState p_379659_, LivingEntity p_379877_, ItemStack p_380344_) void
PitcherCropBlock.setPlacedBy
(Level p_277432_, BlockPos p_277632_, BlockState p_277479_, LivingEntity p_277805_, ItemStack p_277663_) void
SmallDripleafBlock.setPlacedBy
(Level p_154599_, BlockPos p_154600_, BlockState p_154601_, LivingEntity p_154602_, ItemStack p_154603_) void
StructureBlock.setPlacedBy
(Level p_57122_, BlockPos p_57123_, BlockState p_57124_, LivingEntity p_57125_, ItemStack p_57126_) void
TripWireHookBlock.setPlacedBy
(Level p_57680_, BlockPos p_57681_, BlockState p_57682_, LivingEntity p_57683_, ItemStack p_57684_) void
WitherSkullBlock.setPlacedBy
(Level p_58260_, BlockPos p_58261_, BlockState p_58262_, LivingEntity p_58263_, ItemStack p_58264_) void
WitherWallSkullBlock.setPlacedBy
(Level p_58278_, BlockPos p_58279_, BlockState p_58280_, LivingEntity p_58281_, ItemStack p_58282_) private boolean
CeilingHangingSignBlock.shouldTryToChainAnotherHangingSign
(Player p_278279_, BlockHitResult p_278273_, SignBlockEntity p_278236_, ItemStack p_278343_) private boolean
WallHangingSignBlock.shouldTryToChainAnotherHangingSign
(BlockState p_278346_, Player p_278263_, BlockHitResult p_278269_, SignBlockEntity p_278290_, ItemStack p_278238_) protected void
DropExperienceBlock.spawnAfterBreak
(BlockState p_221086_, ServerLevel p_221087_, BlockPos p_221088_, ItemStack p_221089_, boolean p_221090_) protected void
InfestedBlock.spawnAfterBreak
(BlockState p_221360_, ServerLevel p_221361_, BlockPos p_221362_, ItemStack p_221363_, boolean p_221364_) protected void
RedStoneOreBlock.spawnAfterBreak
(BlockState p_221907_, ServerLevel p_221908_, BlockPos p_221909_, ItemStack p_221910_, boolean p_221911_) protected void
SculkCatalystBlock.spawnAfterBreak
(BlockState p_222109_, ServerLevel p_222110_, BlockPos p_222111_, ItemStack p_222112_, boolean p_222113_) protected void
SculkSensorBlock.spawnAfterBreak
(BlockState p_222142_, ServerLevel p_222143_, BlockPos p_222144_, ItemStack p_222145_, boolean p_222146_) protected void
SculkShriekerBlock.spawnAfterBreak
(BlockState p_222192_, ServerLevel p_222193_, BlockPos p_222194_, ItemStack p_222195_, boolean p_222196_) protected void
SpawnerBlock.spawnAfterBreak
(BlockState p_222477_, ServerLevel p_222478_, BlockPos p_222479_, ItemStack p_222480_, boolean p_222481_) protected void
Block.tryDropExperience
(ServerLevel p_220823_, BlockPos p_220824_, ItemStack p_220825_, IntProvider p_220826_) static boolean
LecternBlock.tryPlaceBook
(LivingEntity p_347473_, Level p_270604_, BlockPos p_270276_, BlockState p_270445_, ItemStack p_270458_) protected InteractionResult
AbstractCauldronBlock.useItemOn
(ItemStack p_316791_, BlockState p_316287_, Level p_316530_, BlockPos p_316585_, Player p_316671_, InteractionHand p_316186_, BlockHitResult p_316294_) protected InteractionResult
BeehiveBlock.useItemOn
(ItemStack p_316844_, BlockState p_316365_, Level p_316306_, BlockPos p_316497_, Player p_316824_, InteractionHand p_316436_, BlockHitResult p_316125_) protected InteractionResult
CakeBlock.useItemOn
(ItemStack p_316238_, BlockState p_316837_, Level p_316766_, BlockPos p_316227_, Player p_316853_, InteractionHand p_316422_, BlockHitResult p_316869_) protected InteractionResult
CampfireBlock.useItemOn
(ItemStack p_316347_, BlockState p_51274_, Level p_51275_, BlockPos p_51276_, Player p_51277_, InteractionHand p_51278_, BlockHitResult p_51279_) protected InteractionResult
CandleBlock.useItemOn
(ItemStack p_316279_, BlockState p_316163_, Level p_316881_, BlockPos p_316480_, Player p_316191_, InteractionHand p_316669_, BlockHitResult p_316641_) protected InteractionResult
CandleCakeBlock.useItemOn
(ItemStack p_316571_, BlockState p_316514_, Level p_316171_, BlockPos p_316112_, Player p_316172_, InteractionHand p_316257_, BlockHitResult p_316286_) protected InteractionResult
CeilingHangingSignBlock.useItemOn
(ItemStack p_316602_, BlockState p_316839_, Level p_316805_, BlockPos p_316894_, Player p_316202_, InteractionHand p_316538_, BlockHitResult p_316895_) protected InteractionResult
ChiseledBookShelfBlock.useItemOn
(ItemStack p_316457_, BlockState p_316201_, Level p_316747_, BlockPos p_316462_, Player p_316228_, InteractionHand p_316721_, BlockHitResult p_316464_) protected InteractionResult
ComposterBlock.useItemOn
(ItemStack p_316332_, BlockState p_316118_, Level p_316624_, BlockPos p_316660_, Player p_316715_, InteractionHand p_316472_, BlockHitResult p_316606_) protected InteractionResult
DecoratedPotBlock.useItemOn
(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected InteractionResult
FlowerPotBlock.useItemOn
(ItemStack p_316610_, BlockState p_316240_, Level p_316456_, BlockPos p_316502_, Player p_316491_, InteractionHand p_316444_, BlockHitResult p_316826_) protected InteractionResult
JukeboxBlock.useItemOn
(ItemStack p_350348_, BlockState p_351033_, Level p_350995_, BlockPos p_350838_, Player p_350684_, InteractionHand p_350461_, BlockHitResult p_351025_) protected InteractionResult
LecternBlock.useItemOn
(ItemStack p_316392_, BlockState p_316600_, Level p_316640_, BlockPos p_316673_, Player p_316670_, InteractionHand p_316384_, BlockHitResult p_316419_) protected InteractionResult
NoteBlock.useItemOn
(ItemStack p_316716_, BlockState p_316688_, Level p_316672_, BlockPos p_316355_, Player p_316822_, InteractionHand p_316505_, BlockHitResult p_316667_) protected InteractionResult
PumpkinBlock.useItemOn
(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected InteractionResult
RedStoneOreBlock.useItemOn
(ItemStack p_316235_, BlockState p_316208_, Level p_316432_, BlockPos p_316592_, Player p_316564_, InteractionHand p_316389_, BlockHitResult p_316390_) protected InteractionResult
RespawnAnchorBlock.useItemOn
(ItemStack p_316531_, BlockState p_316665_, Level p_316165_, BlockPos p_316402_, Player p_316556_, InteractionHand p_316586_, BlockHitResult p_316326_) protected InteractionResult
SignBlock.useItemOn
(ItemStack p_316116_, BlockState p_316899_, Level p_316692_, BlockPos p_316578_, Player p_316244_, InteractionHand p_316196_, BlockHitResult p_316744_) protected InteractionResult
SweetBerryBushBlock.useItemOn
(ItemStack p_316636_, BlockState p_316295_, Level p_316812_, BlockPos p_316380_, Player p_316731_, InteractionHand p_316188_, BlockHitResult p_316626_) protected InteractionResult
TntBlock.useItemOn
(ItemStack p_316149_, BlockState p_316217_, Level p_316520_, BlockPos p_316601_, Player p_316770_, InteractionHand p_316393_, BlockHitResult p_316532_) VaultBlock.useItemOn
(ItemStack p_324161_, BlockState p_323816_, Level p_324403_, BlockPos p_324623_, Player p_324219_, InteractionHand p_324416_, BlockHitResult p_324261_) protected InteractionResult
WallHangingSignBlock.useItemOn
(ItemStack p_316420_, BlockState p_316885_, Level p_316114_, BlockPos p_316297_, Player p_316609_, InteractionHand p_316187_, BlockHitResult p_316223_) Method parameters in net.minecraft.world.level.block with type arguments of type ItemStackModifier and TypeMethodDescriptionprotected void
AbstractCandleBlock.onExplosionHit
(BlockState p_311992_, ServerLevel p_361872_, BlockPos p_312387_, Explosion p_312661_, BiConsumer<ItemStack, BlockPos> p_312093_) protected void
BeehiveBlock.onExplosionHit
(BlockState p_364770_, ServerLevel p_364089_, BlockPos p_363677_, Explosion p_365390_, BiConsumer<ItemStack, BlockPos> p_360830_) protected void
BellBlock.onExplosionHit
(BlockState p_311884_, ServerLevel p_362869_, BlockPos p_312717_, Explosion p_312800_, BiConsumer<ItemStack, BlockPos> p_312339_) protected void
ButtonBlock.onExplosionHit
(BlockState p_312395_, ServerLevel p_364251_, BlockPos p_311817_, Explosion p_312150_, BiConsumer<ItemStack, BlockPos> p_311898_) protected void
CreakingHeartBlock.onExplosionHit
(BlockState p_382935_, ServerLevel p_382804_, BlockPos p_383050_, Explosion p_383064_, BiConsumer<ItemStack, BlockPos> p_383124_) protected void
DoorBlock.onExplosionHit
(BlockState p_312769_, ServerLevel p_363080_, BlockPos p_311900_, Explosion p_312544_, BiConsumer<ItemStack, BlockPos> p_312107_) protected void
FenceGateBlock.onExplosionHit
(BlockState p_312699_, ServerLevel p_361116_, BlockPos p_312680_, Explosion p_312186_, BiConsumer<ItemStack, BlockPos> p_312187_) protected void
LeverBlock.onExplosionHit
(BlockState p_312405_, ServerLevel p_361347_, BlockPos p_311795_, Explosion p_312090_, BiConsumer<ItemStack, BlockPos> p_312313_) protected void
TrapDoorBlock.onExplosionHit
(BlockState p_312371_, ServerLevel p_360483_, BlockPos p_312879_, Explosion p_312330_, BiConsumer<ItemStack, BlockPos> p_312161_) Constructors in net.minecraft.world.level.block with parameters of type ItemStackModifierConstructorDescriptionOutputContainer
(BlockState p_52042_, LevelAccessor p_52043_, BlockPos p_52044_, ItemStack p_52045_) -
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) ItemStack
LecternBlockEntity.book
private ItemStack
BrushableBlockEntity.item
private ItemStack
DecoratedPotBlockEntity.item
private ItemStack
JukeboxBlockEntity.item
Fields in net.minecraft.world.level.block.entity with type parameters of type ItemStackModifier and TypeFieldDescriptionprotected NonNullList
<ItemStack> AbstractFurnaceBlockEntity.items
private NonNullList
<ItemStack> BarrelBlockEntity.items
private NonNullList
<ItemStack> BrewingStandBlockEntity.items
private final NonNullList
<ItemStack> CampfireBlockEntity.items
private NonNullList
<ItemStack> ChestBlockEntity.items
private final NonNullList
<ItemStack> ChiseledBookShelfBlockEntity.items
private NonNullList
<ItemStack> CrafterBlockEntity.items
private NonNullList
<ItemStack> DispenserBlockEntity.items
private NonNullList
<ItemStack> HopperBlockEntity.items
private NonNullList
<ItemStack> ShulkerBoxBlockEntity.itemStacks
Methods in net.minecraft.world.level.block.entity that return ItemStackModifier and TypeMethodDescriptionstatic ItemStack
HopperBlockEntity.addItem
(Container p_59327_, Container p_59328_, ItemStack p_59329_, Direction p_59330_) static ItemStack
DecoratedPotBlockEntity.createDecoratedPotItem
(PotDecorations p_330827_) LecternBlockEntity.getBook()
BannerBlockEntity.getItem()
BaseContainerBlockEntity.getItem
(int p_332727_) BrushableBlockEntity.getItem()
ChiseledBookShelfBlockEntity.getItem
(int p_256203_) CrafterBlockEntity.getItem
(int p_307189_) RandomizableContainerBlockEntity.getItem
(int p_59611_) DecoratedPotBlockEntity.getTheItem()
JukeboxBlockEntity.getTheItem()
DispenserBlockEntity.insertItem
(ItemStack p_347519_) BaseContainerBlockEntity.removeItem
(int p_332707_, int p_332672_) ChiseledBookShelfBlockEntity.removeItem
(int p_255828_, int p_255673_) HopperBlockEntity.removeItem
(int p_59309_, int p_59310_) RandomizableContainerBlockEntity.removeItem
(int p_59613_, int p_59614_) BaseContainerBlockEntity.removeItemNoUpdate
(int p_332812_) ChiseledBookShelfBlockEntity.removeItemNoUpdate
(int p_255874_) RandomizableContainerBlockEntity.removeItemNoUpdate
(int p_59630_) private ItemStack
LecternBlockEntity.resolveBook
(ItemStack p_59555_, Player p_59556_) DecoratedPotBlockEntity.splitTheItem
(int p_305991_) JukeboxBlockEntity.splitTheItem
(int p_304604_) private static ItemStack
HopperBlockEntity.tryMoveInItem
(Container p_59321_, Container p_59322_, ItemStack p_59323_, int p_59324_, Direction p_59325_) 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 ItemStack
HopperBlockEntity.addItem
(Container p_59327_, Container p_59328_, ItemStack p_59329_, Direction p_59330_) final void
BlockEntity.applyComponentsFromItemStack
(ItemStack p_338428_) boolean
BrushableBlockEntity.brush
(long p_277786_, ServerLevel p_373105_, LivingEntity p_393879_, Direction p_277424_, ItemStack p_372848_) private void
BrushableBlockEntity.brushingCompleted
(ServerLevel p_373046_, LivingEntity p_394011_, ItemStack p_373073_) int
FuelValues.burnDuration
(ItemStack p_362816_) Deprecated.private static boolean
HopperBlockEntity.canMergeItems
(ItemStack p_59345_, ItemStack p_59346_) boolean
AbstractFurnaceBlockEntity.canPlaceItem
(int p_58389_, ItemStack p_58390_) boolean
BrewingStandBlockEntity.canPlaceItem
(int p_59017_, ItemStack p_59018_) boolean
ChiseledBookShelfBlockEntity.canPlaceItem
(int p_256567_, ItemStack p_255922_) boolean
CrafterBlockEntity.canPlaceItem
(int p_307543_, ItemStack p_307267_) boolean
JukeboxBlockEntity.canPlaceItem
(int p_273369_, ItemStack p_273689_) private static boolean
HopperBlockEntity.canPlaceItemInContainer
(Container p_59335_, ItemStack p_59336_, int p_59337_, Direction p_59338_) boolean
AbstractFurnaceBlockEntity.canPlaceItemThroughFace
(int p_58336_, ItemStack p_58337_, Direction p_58338_) boolean
BrewingStandBlockEntity.canPlaceItemThroughFace
(int p_58996_, ItemStack p_58997_, Direction p_58998_) boolean
ShulkerBoxBlockEntity.canPlaceItemThroughFace
(int p_59663_, ItemStack p_59664_, Direction p_59665_) boolean
ChiseledBookShelfBlockEntity.canTakeItem
(Container p_282172_, int p_281387_, ItemStack p_283257_) boolean
JukeboxBlockEntity.canTakeItem
(Container p_273497_, int p_273168_, ItemStack p_273785_) private static boolean
HopperBlockEntity.canTakeItemFromContainer
(Container p_273433_, Container p_273542_, ItemStack p_273400_, int p_273519_, Direction p_273088_) boolean
AbstractFurnaceBlockEntity.canTakeItemThroughFace
(int p_58392_, ItemStack p_58393_, Direction p_58394_) boolean
BrewingStandBlockEntity.canTakeItemThroughFace
(int p_59020_, ItemStack p_59021_, Direction p_59022_) boolean
ShulkerBoxBlockEntity.canTakeItemThroughFace
(int p_59682_, ItemStack p_59683_, Direction p_59684_) private void
BrushableBlockEntity.dropContent
(ServerLevel p_373112_, LivingEntity p_393620_, ItemStack p_372836_) protected int
AbstractFurnaceBlockEntity.getBurnDuration
(FuelValues p_363501_, ItemStack p_58343_) protected int
BlastFurnaceBlockEntity.getBurnDuration
(FuelValues p_362551_, ItemStack p_58852_) protected int
SmokerBlockEntity.getBurnDuration
(FuelValues p_360506_, ItemStack p_59786_) private static int
LecternBlockEntity.getPageCount
(ItemStack p_331229_) DispenserBlockEntity.insertItem
(ItemStack p_347519_) boolean
boolean
CampfireBlockEntity.placeFood
(ServerLevel p_380019_, LivingEntity p_347582_, ItemStack p_238286_) private ItemStack
LecternBlockEntity.resolveBook
(ItemStack p_59555_, Player p_59556_) void
void
void
void
void
void
void
void
void
JukeboxBlockEntity.setSongItemWithoutPlaying
(ItemStack p_350615_) void
DecoratedPotBlockEntity.setTheItem
(ItemStack p_305817_) void
JukeboxBlockEntity.setTheItem
(ItemStack p_304781_) private boolean
CrafterBlockEntity.smallerStackExist
(int p_307396_, ItemStack p_307520_, int p_307348_) private static ItemStack
HopperBlockEntity.tryMoveInItem
(Container p_59321_, Container p_59322_, ItemStack p_59323_, int p_59324_, Direction p_59325_) private void
BrushableBlockEntity.unpackLootTable
(ServerLevel p_373015_, LivingEntity p_394489_, ItemStack p_372798_) Method parameters in net.minecraft.world.level.block.entity with type arguments of type ItemStackModifier and TypeMethodDescriptionvoid
AbstractFurnaceBlockEntity.awardUsedRecipes
(Player p_58396_, List<ItemStack> p_282202_) private static boolean
AbstractFurnaceBlockEntity.burn
(RegistryAccess p_266740_, RecipeHolder<? extends AbstractCookingRecipe> p_300910_, SingleRecipeInput p_380269_, NonNullList<ItemStack> p_267073_, int p_267157_) private static boolean
AbstractFurnaceBlockEntity.canBurn
(RegistryAccess p_266924_, RecipeHolder<? extends AbstractCookingRecipe> p_301107_, SingleRecipeInput p_380038_, NonNullList<ItemStack> p_155007_, int p_155008_) private static void
BrewingStandBlockEntity.doBrew
(Level p_155291_, BlockPos p_155292_, NonNullList<ItemStack> p_155293_) private static boolean
BrewingStandBlockEntity.isBrewable
(PotionBrewing p_341061_, NonNullList<ItemStack> p_155295_) protected void
AbstractFurnaceBlockEntity.setItems
(NonNullList<ItemStack> p_332808_) protected void
BarrelBlockEntity.setItems
(NonNullList<ItemStack> p_58610_) protected abstract void
BaseContainerBlockEntity.setItems
(NonNullList<ItemStack> p_332640_) protected void
BrewingStandBlockEntity.setItems
(NonNullList<ItemStack> p_332710_) protected void
ChestBlockEntity.setItems
(NonNullList<ItemStack> p_59110_) protected void
CrafterBlockEntity.setItems
(NonNullList<ItemStack> p_307392_) protected void
DispenserBlockEntity.setItems
(NonNullList<ItemStack> p_59243_) protected void
HopperBlockEntity.setItems
(NonNullList<ItemStack> p_59371_) protected void
ShulkerBoxBlockEntity.setItems
(NonNullList<ItemStack> p_59674_) -
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 ItemStackMethods in net.minecraft.world.level.block.entity.trialspawner that return types with arguments of type ItemStackModifier and TypeMethodDescription(package private) WeightedList
<ItemStack> TrialSpawnerData.getDispensingItems
(ServerLevel p_338857_, TrialSpawnerConfig p_338213_, BlockPos p_338577_) -
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 ItemStack
VaultSharedData.displayItem
private final ItemStack
VaultConfig.keyItem
The field for thekeyItem
record 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) ItemStack
VaultServerData.getNextItemToEject()
private static ItemStack
VaultBlockEntity.Server.getRandomDisplayItemFromLootTable
(ServerLevel p_323781_, BlockPos p_324109_, ResourceKey<LootTable> p_336119_) VaultConfig.keyItem()
Returns the value of thekeyItem
record component.(package private) ItemStack
VaultServerData.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 p_323877_, VaultConfig p_324041_, BlockPos p_324255_, Player p_324347_, ItemStack p_373066_) Methods in net.minecraft.world.level.block.entity.vault with parameters of type ItemStackModifier and TypeMethodDescriptionprivate void
VaultState.ejectResultItem
(ServerLevel p_324066_, BlockPos p_324594_, ItemStack p_324065_, float p_324283_) private static boolean
VaultBlockEntity.Server.isValidToInsert
(VaultConfig p_323488_, ItemStack p_324101_) VaultBlockEntity.Server.resolveItemsToEject
(ServerLevel p_323877_, VaultConfig p_324041_, BlockPos p_324255_, Player p_324347_, ItemStack p_373066_) void
VaultSharedData.setDisplayItem
(ItemStack p_324243_) static void
VaultBlockEntity.Server.tryInsertKey
(ServerLevel p_323533_, BlockPos p_323777_, BlockState p_324589_, VaultConfig p_323660_, VaultServerData p_323829_, VaultSharedData p_324341_, Player p_324373_, ItemStack p_324551_) Method parameters in net.minecraft.world.level.block.entity.vault with type arguments of type ItemStackModifier and TypeMethodDescription(package private) void
VaultServerData.setItemsToEject
(List<ItemStack> p_324402_) private static void
VaultBlockEntity.Server.unlock
(ServerLevel p_323501_, BlockState p_323758_, BlockPos p_323773_, VaultConfig p_324195_, VaultServerData p_324600_, VaultSharedData p_324277_, List<ItemStack> p_324574_) 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 aVaultConfig
record class.(package private)
VaultSharedData
(ItemStack p_324245_, Set<UUID> p_324007_, double p_324069_) Constructor parameters in net.minecraft.world.level.block.entity.vault with type arguments of type ItemStackModifierConstructorDescription(package private)
VaultServerData
(Set<UUID> p_324455_, long p_324396_, List<ItemStack> p_324515_, int p_324586_) -
Uses of ItemStack in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston that return ItemStackModifier and TypeMethodDescriptionprotected ItemStack
MovingPistonBlock.getCloneItemStack
(LevelReader p_304937_, BlockPos p_60058_, BlockState p_60059_, boolean p_386505_) protected ItemStack
PistonHeadBlock.getCloneItemStack
(LevelReader p_304638_, BlockPos p_60262_, BlockState p_60263_, boolean p_386559_) Methods in net.minecraft.world.level.block.piston that return types with arguments of type ItemStackModifier and TypeMethodDescriptionMovingPistonBlock.getDrops
(BlockState p_287650_, LootParams.Builder p_287754_) Methods in net.minecraft.world.level.block.piston with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
PistonBaseBlock.setPlacedBy
(Level p_60172_, BlockPos p_60173_, BlockState p_60174_, LivingEntity p_60175_, ItemStack p_60176_) -
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 p_382841_, BlockPos p_382980_, boolean p_387610_) protected ItemStack
BlockBehaviour.getCloneItemStack
(LevelReader p_382795_, BlockPos p_383120_, BlockState p_382830_, boolean p_388788_) Deprecated.Methods in net.minecraft.world.level.block.state that return types with arguments of type ItemStackModifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.getDrops
(LootParams.Builder p_287688_) BlockBehaviour.getDrops
(BlockState p_287732_, LootParams.Builder p_287596_) Methods in net.minecraft.world.level.block.state with parameters of type ItemStackModifier and TypeMethodDescriptionvoid
BlockBehaviour.BlockStateBase.spawnAfterBreak
(ServerLevel p_222968_, BlockPos p_222969_, ItemStack p_222970_, boolean p_222971_) protected void
BlockBehaviour.spawnAfterBreak
(BlockState p_222949_, ServerLevel p_222950_, BlockPos p_222951_, ItemStack p_222952_, boolean p_222953_) BlockBehaviour.BlockStateBase.useItemOn
(ItemStack p_316374_, Level p_316651_, Player p_316623_, InteractionHand p_316469_, BlockHitResult p_316877_) protected InteractionResult
BlockBehaviour.useItemOn
(ItemStack p_316304_, BlockState p_316362_, Level p_316459_, BlockPos p_316366_, Player p_316132_, InteractionHand p_316595_, BlockHitResult p_316140_) Method parameters in net.minecraft.world.level.block.state with type arguments of type ItemStackModifier and TypeMethodDescriptionvoid
BlockBehaviour.BlockStateBase.onExplosionHit
(ServerLevel p_361755_, BlockPos p_311872_, Explosion p_312863_, BiConsumer<ItemStack, BlockPos> p_312559_) protected void
BlockBehaviour.onExplosionHit
(BlockState p_311951_, ServerLevel p_365148_, BlockPos p_312489_, Explosion p_312925_, BiConsumer<ItemStack, BlockPos> p_312073_) -
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 void
MapItemSavedData.addTargetDecoration
(ItemStack p_77926_, BlockPos p_77927_, String p_77928_, Holder<MapDecorationType> p_335759_) MapItemSavedData.mapMatcher
(ItemStack p_316807_) void
MapItemSavedData.tickCarriedBy
(Player p_77919_, ItemStack p_77920_) -
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.compositeFunction
private final BiFunction
<ItemStack, LootContext, ItemStack> LootPool.compositeFunction
private final BiFunction
<ItemStack, LootContext, ItemStack> LootTable.compositeFunction
private final BiFunction
<ItemStack, LootContext, ItemStack> LootTable.compositeFunction
Methods in net.minecraft.world.level.storage.loot that return types with arguments of type ItemStackModifier and TypeMethodDescriptionLootTable.createStackSplitter
(ServerLevel p_287765_, Consumer<ItemStack> p_251308_) ContainerComponentManipulator.getContents
(T p_341229_) private it.unimi.dsi.fastutil.objects.ObjectArrayList
<ItemStack> LootTable.getRandomItems
(LootContext p_230923_) it.unimi.dsi.fastutil.objects.ObjectArrayList
<ItemStack> LootTable.getRandomItems
(LootParams p_287616_) it.unimi.dsi.fastutil.objects.ObjectArrayList
<ItemStack> LootTable.getRandomItems
(LootParams p_287574_, long p_287773_) it.unimi.dsi.fastutil.objects.ObjectArrayList
<ItemStack> LootTable.getRandomItems
(LootParams p_347545_, RandomSource p_347680_) Methods in net.minecraft.world.level.storage.loot with parameters of type ItemStackModifier and TypeMethodDescriptiondefault void
ContainerComponentManipulator.modifyItems
(ItemStack p_340919_, UnaryOperator<ItemStack> p_341245_) default void
ContainerComponentManipulator.setContents
(ItemStack p_340943_, Stream<ItemStack> p_340843_) default void
ContainerComponentManipulator.setContents
(ItemStack p_340824_, T p_341046_, Stream<ItemStack> p_341372_) Method parameters in net.minecraft.world.level.storage.loot with type arguments of type ItemStackModifier and TypeMethodDescriptionvoid
void
LootContext.addDynamicDrops
(ResourceLocation p_78943_, Consumer<ItemStack> p_78944_) void
LootParams.addDynamicDrops
(ResourceLocation p_287768_, Consumer<ItemStack> p_287711_) private void
LootPool.addRandomItem
(Consumer<ItemStack> p_79059_, LootContext p_79060_) void
LootPool.addRandomItems
(Consumer<ItemStack> p_79054_, LootContext p_79055_) LootTable.createStackSplitter
(ServerLevel p_287765_, Consumer<ItemStack> p_251308_) void
LootTable.getRandomItems
(LootContext p_79149_, Consumer<ItemStack> p_79150_) void
LootTable.getRandomItems
(LootParams p_287748_, long p_287729_, Consumer<ItemStack> p_287583_) void
LootTable.getRandomItems
(LootParams p_287704_, Consumer<ItemStack> p_287617_) void
LootTable.getRandomItemsRaw
(LootContext p_79132_, Consumer<ItemStack> p_79133_) Deprecated.void
LootTable.getRandomItemsRaw
(LootParams p_287669_, Consumer<ItemStack> p_287781_) Deprecated.default void
ContainerComponentManipulator.modifyItems
(ItemStack p_340919_, UnaryOperator<ItemStack> p_341245_) default void
ContainerComponentManipulator.setContents
(ItemStack p_340943_, Stream<ItemStack> p_340843_) default void
ContainerComponentManipulator.setContents
(ItemStack p_340824_, T p_341046_, Stream<ItemStack> p_341372_) ContainerComponentManipulator.setContents
(T p_341056_, Stream<ItemStack> p_341252_) private void
LootTable.shuffleAndSplitItems
(it.unimi.dsi.fastutil.objects.ObjectArrayList<ItemStack> p_230925_, int p_230926_, RandomSource p_230927_) -
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.compositeFunction
Method parameters in net.minecraft.world.level.storage.loot.entries with type arguments of type ItemStackModifier and TypeMethodDescriptionvoid
DynamicLoot.createItemStack
(Consumer<ItemStack> p_79481_, LootContext p_79482_) void
EmptyLootItem.createItemStack
(Consumer<ItemStack> p_79531_, LootContext p_79532_) void
LootItem.createItemStack
(Consumer<ItemStack> p_79590_, LootContext p_79591_) void
LootPoolEntry.createItemStack
(Consumer<ItemStack> p_79633_, LootContext p_79634_) protected abstract void
LootPoolSingletonContainer.createItemStack
(Consumer<ItemStack> p_79691_, LootContext p_79692_) void
NestedLootTable.createItemStack
(Consumer<ItemStack> p_331038_, LootContext p_331648_) void
TagEntry.createItemStack
(Consumer<ItemStack> p_79854_, LootContext p_79855_) -
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.compositeFunction
private final BiFunction
<ItemStack, LootContext, ItemStack> SequenceFunction.compositeFunction
static final BiFunction
<ItemStack, LootContext, ItemStack> LootItemFunctions.IDENTITY
static final BiFunction
<ItemStack, LootContext, ItemStack> LootItemFunctions.IDENTITY
Methods in net.minecraft.world.level.storage.loot.functions that return ItemStackModifier and TypeMethodDescriptionfinal ItemStack
LootItemConditionalFunction.apply
(ItemStack p_80689_, LootContext p_80690_) SequenceFunction.apply
(ItemStack p_299268_, LootContext p_298221_) private static ItemStack
EnchantRandomlyFunction.enchantItem
(ItemStack p_230980_, Holder<Enchantment> p_346257_, RandomSource p_230982_) ApplyBonusCount.run
(ItemStack p_79913_, LootContext p_79914_) ApplyExplosionDecay.run
(ItemStack p_80034_, LootContext p_80035_) protected ItemStack
CopyBlockState.run
(ItemStack p_80060_, LootContext p_80061_) CopyComponentsFunction.run
(ItemStack p_330563_, LootContext p_331220_) CopyCustomDataFunction.run
(ItemStack p_330210_, LootContext p_330315_) CopyNameFunction.run
(ItemStack p_80185_, LootContext p_80186_) EnchantedCountIncreaseFunction.run
(ItemStack p_345285_, LootContext p_345560_) EnchantRandomlyFunction.run
(ItemStack p_80429_, LootContext p_80430_) EnchantWithLevelsFunction.run
(ItemStack p_80483_, LootContext p_80484_) ExplorationMapFunction.run
(ItemStack p_80547_, LootContext p_80548_) FillPlayerHead.run
(ItemStack p_80608_, LootContext p_80609_) FilteredFunction.run
(ItemStack p_340845_, LootContext p_341349_) protected ItemStack
FunctionReference.run
(ItemStack p_279458_, LootContext p_279370_) LimitCount.run
(ItemStack p_80644_, LootContext p_80645_) protected abstract ItemStack
LootItemConditionalFunction.run
(ItemStack p_80679_, LootContext p_80680_) ModifyContainerContents.run
(ItemStack p_341267_, LootContext p_341214_) SetAttributesFunction.run
(ItemStack p_80840_, LootContext p_80841_) protected ItemStack
SetBannerPatternFunction.run
(ItemStack p_165280_, LootContext p_165281_) protected ItemStack
SetBookCoverFunction.run
(ItemStack p_334048_, LootContext p_334012_) SetComponentsFunction.run
(ItemStack p_330211_, LootContext p_331318_) SetContainerContents.run
(ItemStack p_80911_, LootContext p_80912_) SetContainerLootTable.run
(ItemStack p_80967_, LootContext p_80968_) SetCustomDataFunction.run
(ItemStack p_330737_, LootContext p_331310_) SetCustomModelDataFunction.run
(ItemStack p_341195_, LootContext p_341335_) SetEnchantmentsFunction.run
(ItemStack p_165346_, LootContext p_165347_) protected ItemStack
SetFireworkExplosionFunction.run
(ItemStack p_334066_, LootContext p_333987_) protected ItemStack
SetFireworksFunction.run
(ItemStack p_334053_, LootContext p_333744_) SetInstrumentFunction.run
(ItemStack p_231017_, LootContext p_231018_) SetItemCountFunction.run
(ItemStack p_81006_, LootContext p_81007_) SetItemDamageFunction.run
(ItemStack p_81048_, LootContext p_81049_) SetItemFunction.run
(ItemStack p_340909_, LootContext p_341298_) SetLoreFunction.run
(ItemStack p_81089_, LootContext p_81090_) SetNameFunction.run
(ItemStack p_81137_, LootContext p_81138_) SetOminousBottleAmplifierFunction.run
(ItemStack p_338554_, LootContext p_338336_) SetPotionFunction.run
(ItemStack p_193073_, LootContext p_193074_) SetStewEffectFunction.run
(ItemStack p_81223_, LootContext p_81224_) protected ItemStack
SetWritableBookPagesFunction.run
(ItemStack p_333832_, LootContext p_333929_) protected ItemStack
SetWrittenBookPagesFunction.run
(ItemStack p_333960_, LootContext p_333892_) SmeltItemFunction.run
(ItemStack p_81268_, LootContext p_81269_) protected ItemStack
ToggleTooltips.run
(ItemStack p_335844_, LootContext p_335764_) 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>> p_298851_) static BiFunction
<ItemStack, LootContext, ItemStack> LootItemFunctions.compose
(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> p_298851_) LootItemFunction.decorate
(BiFunction<ItemStack, LootContext, ItemStack> p_80725_, Consumer<ItemStack> p_80726_, LootContext p_80727_) Methods in net.minecraft.world.level.storage.loot.functions with parameters of type ItemStackModifier and TypeMethodDescriptionfinal ItemStack
LootItemConditionalFunction.apply
(ItemStack p_80689_, LootContext p_80690_) SequenceFunction.apply
(ItemStack p_299268_, LootContext p_298221_) private static ItemStack
EnchantRandomlyFunction.enchantItem
(ItemStack p_230980_, Holder<Enchantment> p_346257_, RandomSource p_230982_) ApplyBonusCount.run
(ItemStack p_79913_, LootContext p_79914_) ApplyExplosionDecay.run
(ItemStack p_80034_, LootContext p_80035_) protected ItemStack
CopyBlockState.run
(ItemStack p_80060_, LootContext p_80061_) CopyComponentsFunction.run
(ItemStack p_330563_, LootContext p_331220_) CopyCustomDataFunction.run
(ItemStack p_330210_, LootContext p_330315_) CopyNameFunction.run
(ItemStack p_80185_, LootContext p_80186_) EnchantedCountIncreaseFunction.run
(ItemStack p_345285_, LootContext p_345560_) EnchantRandomlyFunction.run
(ItemStack p_80429_, LootContext p_80430_) EnchantWithLevelsFunction.run
(ItemStack p_80483_, LootContext p_80484_) ExplorationMapFunction.run
(ItemStack p_80547_, LootContext p_80548_) FillPlayerHead.run
(ItemStack p_80608_, LootContext p_80609_) FilteredFunction.run
(ItemStack p_340845_, LootContext p_341349_) protected ItemStack
FunctionReference.run
(ItemStack p_279458_, LootContext p_279370_) LimitCount.run
(ItemStack p_80644_, LootContext p_80645_) protected abstract ItemStack
LootItemConditionalFunction.run
(ItemStack p_80679_, LootContext p_80680_) ModifyContainerContents.run
(ItemStack p_341267_, LootContext p_341214_) SetAttributesFunction.run
(ItemStack p_80840_, LootContext p_80841_) protected ItemStack
SetBannerPatternFunction.run
(ItemStack p_165280_, LootContext p_165281_) protected ItemStack
SetBookCoverFunction.run
(ItemStack p_334048_, LootContext p_334012_) SetComponentsFunction.run
(ItemStack p_330211_, LootContext p_331318_) SetContainerContents.run
(ItemStack p_80911_, LootContext p_80912_) SetContainerLootTable.run
(ItemStack p_80967_, LootContext p_80968_) SetCustomDataFunction.run
(ItemStack p_330737_, LootContext p_331310_) SetCustomModelDataFunction.run
(ItemStack p_341195_, LootContext p_341335_) SetEnchantmentsFunction.run
(ItemStack p_165346_, LootContext p_165347_) protected ItemStack
SetFireworkExplosionFunction.run
(ItemStack p_334066_, LootContext p_333987_) protected ItemStack
SetFireworksFunction.run
(ItemStack p_334053_, LootContext p_333744_) SetInstrumentFunction.run
(ItemStack p_231017_, LootContext p_231018_) SetItemCountFunction.run
(ItemStack p_81006_, LootContext p_81007_) SetItemDamageFunction.run
(ItemStack p_81048_, LootContext p_81049_) SetItemFunction.run
(ItemStack p_340909_, LootContext p_341298_) SetLoreFunction.run
(ItemStack p_81089_, LootContext p_81090_) SetNameFunction.run
(ItemStack p_81137_, LootContext p_81138_) SetOminousBottleAmplifierFunction.run
(ItemStack p_338554_, LootContext p_338336_) SetPotionFunction.run
(ItemStack p_193073_, LootContext p_193074_) SetStewEffectFunction.run
(ItemStack p_81223_, LootContext p_81224_) protected ItemStack
SetWritableBookPagesFunction.run
(ItemStack p_333832_, LootContext p_333929_) protected ItemStack
SetWrittenBookPagesFunction.run
(ItemStack p_333960_, LootContext p_333892_) SmeltItemFunction.run
(ItemStack p_81268_, LootContext p_81269_) protected ItemStack
ToggleTooltips.run
(ItemStack p_335844_, LootContext p_335764_) 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>> p_298851_) static BiFunction
<ItemStack, LootContext, ItemStack> LootItemFunctions.compose
(List<? extends BiFunction<ItemStack, LootContext, ItemStack>> p_298851_) LootItemFunction.decorate
(BiFunction<ItemStack, LootContext, ItemStack> p_80725_, Consumer<ItemStack> p_80726_, LootContext p_80727_) LootItemFunction.decorate
(BiFunction<ItemStack, LootContext, ItemStack> p_80725_, Consumer<ItemStack> p_80726_, LootContext p_80727_) LootItemFunction.decorate
(BiFunction<ItemStack, LootContext, ItemStack> p_80725_, Consumer<ItemStack> p_80726_, LootContext p_80727_) -
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 ItemStackModifierConstructorDescriptionprotected
EntityCollisionContext
(boolean p_361032_, boolean p_405496_, double p_405803_, ItemStack p_404927_, Predicate<FluidState> p_405766_, Entity p_82872_) -
Uses of ItemStack in net.minecraft.world.ticks
Methods in net.minecraft.world.ticks that return ItemStackModifier and TypeMethodDescriptiondefault ItemStack
ContainerSingleItem.getItem
(int p_304882_) ContainerSingleItem.getTheItem()
default ItemStack
ContainerSingleItem.removeItem
(int p_304944_, int p_304791_) default ItemStack
ContainerSingleItem.removeItemNoUpdate
(int p_273409_) default ItemStack
ContainerSingleItem.removeTheItem()
default ItemStack
ContainerSingleItem.splitTheItem
(int p_304641_) Methods in net.minecraft.world.ticks with parameters of type ItemStackModifier and TypeMethodDescriptiondefault void
void
ContainerSingleItem.setTheItem
(ItemStack p_304718_) -
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_SEARCH
private static final Map
<SessionSearchTrees.Key, CompletableFuture<SearchTree<ItemStack>>> CreativeModeTabSearchRegistry.NAME_SEARCH_TREES
private static final Map
<SessionSearchTrees.Key, CompletableFuture<SearchTree<ItemStack>>> CreativeModeTabSearchRegistry.TAG_SEARCH_TREES
Methods 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 ResourceLocation
ClientHooks.getArmorTexture
(ItemStack armor, EquipmentClientInfo.LayerType type, EquipmentClientInfo.Layer layer, ResourceLocation _default) static Font
ClientHooks.getTooltipFont
(ItemStack stack, Font fallbackFont) static ItemDecoratorHandler
static RenderTooltipEvent.Pre
ClientHooks.onRenderTooltipPre
(ItemStack stack, GuiGraphics graphics, int x, int y, int screenWidth, int screenHeight, List<ClientTooltipComponent> components, Font fallbackFont, ClientTooltipPositioner positioner) static RenderTooltipEvent.Texture
ClientHooks.onRenderTooltipTexture
(ItemStack stack, GuiGraphics graphics, int x, int y, Font font, List<ClientTooltipComponent> components, @Nullable ResourceLocation texture) boolean
IItemDecorator.render
(GuiGraphics guiGraphics, Font font, ItemStack stack, int xOffset, int yOffset) Is called after GuiGraphics.renderItemDecorations(Font, ItemStack, int, int, String) is done rendering.void
ItemDecoratorHandler.render
(GuiGraphics guiGraphics, Font font, ItemStack stack, int xOffset, int yOffset) static boolean
ClientHooks.renderSpecificFirstPersonHand
(InteractionHand hand, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, float partialTick, float interpPitch, float swingProgress, float equipProgress, ItemStack stack) static boolean
ClientHooks.shouldCauseReequipAnimation
(ItemStack from, ItemStack to, int slot) Method parameters in net.neoforged.neoforge.client with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic void
CreativeModeTabSearchRegistry.putNameSearchTree
(SessionSearchTrees.Key key, CompletableFuture<SearchTree<ItemStack>> future) static void
CreativeModeTabSearchRegistry.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 TypeMethodDescriptionint
FluidContentsTint.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 ItemStack
RenderTooltipEvent.GatherComponents.itemStack
protected final ItemStack
RenderTooltipEvent.itemStack
private final ItemStack
RenderHandEvent.stack
Methods 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) protected
RenderTooltipEvent
(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 boolean
IClientItemExtensions.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 int
IClientItemExtensions.getArmorLayerTintColor
(ItemStack stack, EquipmentClientInfo.Layer layer, int layerIdx, int fallbackColor) Called when armor layers are rendered byEquipmentLayerRenderer
.default @Nullable ResourceLocation
IClientItemExtensions.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.ArmPose
IClientItemExtensions.getArmPose
(LivingEntity entityLiving, InteractionHand hand, ItemStack itemStack) This method returns an ArmPose that can be defined using theinvalid reference
net.minecraft.client.model.HumanoidModel.ArmPose#create(String, boolean, IArmPoseTransformer)
default int
IClientItemExtensions.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 thefallbackColor
parameter.default @Nullable Font
IClientItemExtensions.getFont
(ItemStack stack, IClientItemExtensions.FontContext context) Returns the font used to render data related to this item as specified in thecontext
.default Model
IClientItemExtensions.getGenericArmorModel
(ItemStack itemStack, EquipmentClientInfo.LayerType layerType, Model original) Queries the armor model for this item when it's equipped.default Model
IClientItemExtensions.getHumanoidArmorModel
(ItemStack itemStack, EquipmentClientInfo.LayerType layerType, Model original) Queries the humanoid armor model for this item when it's equipped.static IClientItemExtensions
default void
IClientItemExtensions.renderFirstPersonOverlay
(ItemStack stack, EquipmentSlot equipmentSlot, Player player, GuiGraphics guiGraphics, DeltaTracker deltaTracker) Called to render an overlay on the first-person camera.default void
IClientItemExtensions.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 boolean
IClientItemExtensions.shouldBobAsEntity
(ItemStack stack) Returns Whether the item should bob when rendered in the world as an entity.default boolean
IClientItemExtensions.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 TypeMethodDescriptionvoid
DynamicFluidContainerModel.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 ItemStack
BasicItemListing.forSale
protected final ItemStack
BasicItemListing.price
protected final ItemStack
BasicItemListing.price2
Methods in net.neoforged.neoforge.common that return ItemStackModifier and TypeMethodDescriptionstatic ItemStack
CommonHooks.getCraftingRemainder
(ItemStack stack) static ItemStack
CommonHooks.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 boolean
CommonHooks.canContinueUsing
(ItemStack from, ItemStack to) boolean
SpecialPlantable.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 ItemAttributeModifiers
CommonHooks.computeModifiedAttributes
(ItemStack stack, ItemAttributeModifiers defaultModifiers) Hook to fireItemAttributeModifierEvent
.static UseOnContext
CommonHooks.dispenseUseOnContext
(BlockSource source, ItemStack stack) Creates aUseOnContext
fordispense behavior
.static void
CommonHooks.fireAnvilCraftPost
(AnvilMenu menu, Player player, ItemStack output, ItemStack left, ItemStack right) Fires theAnvilCraftEvent.Post
when the anvil is used to craft an item.static AnvilCraftEvent.Pre
CommonHooks.fireAnvilCraftPre
(AnvilMenu menu, Player player, ItemStack output, ItemStack left, ItemStack right) Fires theAnvilCraftEvent.Pre
when the anvil is used to craft an item.static ItemStack
CommonHooks.getCraftingRemainder
(ItemStack stack) static @Nullable String
CommonHooks.getDefaultCreatorModId
(HolderLookup.Provider registries, ItemStack itemStack) Used as the default implementation ofIItemExtension.getCreatorModId(net.minecraft.core.HolderLookup.Provider, net.minecraft.world.item.ItemStack)
.static ItemStack
CommonHooks.getProjectile
(LivingEntity entity, ItemStack projectileWeaponItem, ItemStack projectile) Hook to fireLivingGetProjectileEvent
.static void
CommonHooks.handleBlockDrops
(ServerLevel level, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, List<ItemEntity> drops, @Nullable Entity breaker, ItemStack tool) Fires theBlockDropsEvent
when block drops (items and experience) are determined.default boolean
IShearable.isShearable
(@Nullable Player player, ItemStack item, Level level, BlockPos pos) Checks if this object can be sheared.static void
CommonHooks.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 int
CommonHooks.onGrindstoneChange
(ItemStack top, ItemStack bottom, Container outputSlot, int xp) static boolean
CommonHooks.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 boolean
CommonHooks.onLivingUseTotem
(LivingEntity entity, DamageSource damageSource, ItemStack totem, InteractionHand hand) static void
CommonHooks.onPlayerEnchantItem
(Player player, ItemStack stack, List<EnchantmentInstance> instances) FiresPlayerEnchantItemEvent
inEnchantmentMenu.clickMenuButton(Player, int)
after the enchants are applied to the item.static @Nullable ItemEntity
CommonHooks.onPlayerTossEvent
(Player player, ItemStack item, boolean includeName) Shears this object.void
SpecialPlantable.spawnPlantAtPosition
(ItemStack itemStack, LevelAccessor level, BlockPos pos, @Nullable Direction direction) Spawns the plant with the given direction attachment point at location.default void
IShearable.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 boolean
CommonHooks.tryDispenseShearsHarvestBlock
(BlockSource source, ItemStack stack, ServerLevel level, BlockPos pos) Attempts to modify target block usingItemAbilities.SHEARS_HARVEST
inShearsDispenseItemBehavior
, 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.boolean
Returns true if the passed input and ingredient have an outputboolean
BrewingRecipe.isIngredient
(ItemStack ingredient) boolean
IBrewingRecipe.isIngredient
(ItemStack ingredient) Returns true if the passed ItemStack is an ingredient for this recipe.boolean
boolean
Returns true is the passed ItemStack is an input for this recipe.boolean
BrewingRecipeRegistry.isValidIngredient
(ItemStack stack) Returns true if the passed ItemStack is a valid ingredient for any of the recipes in the registry.boolean
BrewingRecipeRegistry.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 Ingredient
Creates a new ingredient matching the given item, containing the given componentsboolean
boolean
boolean
boolean
boolean
boolean
Checks if a stack matches this ingredient.boolean
boolean
Performs 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 TypeMethodDescriptionvoid
LanguageProvider.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 ItemStack
IItemExtension.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 ItemStack
IBlockExtension.getCloneItemStack
(LevelReader level, BlockPos pos, BlockState state, boolean includeData, Player player) Called when A user uses the creative pick block button on this blockdefault ItemStack
IBlockStateExtension.getCloneItemStack
(BlockPos pos, LevelReader level, boolean includeData, Player player) Called when A user uses the creative pick block button on this blockdefault ItemStack
IItemExtension.getCraftingRemainder
(ItemStack itemStack) ItemStack sensitive version ofItem.getCraftingRemainder()
()}.default ItemStack
IItemStackExtension.getCraftingRemainder()
ItemStack sensitive version ofItem.getCraftingRemainder()
.private ItemStack
IItemStackExtension.self()
Methods in net.neoforged.neoforge.common.extensions with parameters of type ItemStackModifier and TypeMethodDescriptiondefault ItemStack
IItemExtension.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 boolean
IItemExtension.canBeHurtBy
(ItemStack stack, DamageSource source) Returns false to make item entity immune to the damage..default boolean
IItemExtension.canContinueUsing
(ItemStack oldStack, ItemStack newStack) Called while an item is in 'active' use to determine if usage should continue.default boolean
IItemExtension.canEquip
(ItemStack stack, EquipmentSlot armorType, LivingEntity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default boolean
IItemExtension.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 boolean
IItemExtension.canPerformAction
(ItemStack stack, ItemAbility itemAbility) Queries if an item can perform the given action.default boolean
IItemExtension.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 Entity
IItemExtension.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 boolean
IItemExtension.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 boolean
IDispensibleContainerItemExtension.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 ItemEnchantments
IItemExtension.getAllEnchantments
(ItemStack stack, HolderLookup.RegistryLookup<Enchantment> lookup) Gets a map of all enchantments present on the stack.default int
IItemExtension.getBurnTime
(ItemStack itemStack, @Nullable RecipeType<?> recipeType, FuelValues fuelValues) default ItemStack
IItemExtension.getCraftingRemainder
(ItemStack itemStack) ItemStack sensitive version ofItem.getCraftingRemainder()
()}.default @Nullable String
IItemExtension.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 int
Return the itemDamage represented by this ItemStack.default ItemAttributeModifiers
IItemExtension.getDefaultAttributeModifiers
(ItemStack stack) ItemStack sensitive version of getDefaultAttributeModifiers.default int
IItemExtension.getEnchantmentLevel
(ItemStack stack, Holder<Enchantment> enchantment) Gets the level of the enchantment currently present on the stack.default int
IItemExtension.getEntityLifespan
(ItemStack itemStack, Level level) Retrieves the normal 'lifespan' of this item when it is dropped on the ground as a EntityItem.default @Nullable EquipmentSlot
IItemExtension.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 int
IBlockExtension.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 int
IBlockStateExtension.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 Component
IItemExtension.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 int
IItemExtension.getMaxDamage
(ItemStack stack) Return the maxDamage for this ItemStack.default int
IItemExtension.getMaxStackSize
(ItemStack stack) Gets the maximum number of items that this stack should be able to hold.default AABB
IItemExtension.getSweepHitBox
(ItemStack stack, Player player, Entity target) Get a bounding box (AABB
) of a sweep attack.default float
IItemExtension.getXpRepairRatio
(ItemStack stack) Determines the amount of durability the mending enchantment will repair, on average, per 0.5 points of experience.default boolean
IItemExtension.hasCustomEntity
(ItemStack stack) Determines if this Item has a special entity for when they are in the world.boolean
IItemExtension.isCombineRepairable
(ItemStack stack) Determines if an item is repairable by combining, used by Repair recipes and Grindstone.default boolean
IItemExtension.isDamageable
(ItemStack stack) Used to test if this item can be damaged, but with the ItemStack in question.default boolean
Return if this itemstack is damaged.default boolean
IItemExtension.isGazeDisguise
(ItemStack stack, Player player, @Nullable LivingEntity entity) Whether thisItem
can be used to hide player's gaze from Endermen and Creakings.default boolean
IItemExtension.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 boolean
IItemExtension.isPiglinCurrency
(ItemStack stack) Called by Piglins when checking to see if they will give an item or something in exchange for this item.default boolean
IItemExtension.isPrimaryItemFor
(ItemStack stack, Holder<Enchantment> enchantment) Checks if an item should be treated as a primary item for a given enchantment.default boolean
IItemExtension.makesPiglinsNeutral
(ItemStack stack, LivingEntity wearer) Called by Piglins to check if a given item prevents hostility on sight.default void
IItemExtension.onAnimalArmorTick
(ItemStack stack, Level level, Mob horse) Called every tick when this item is equipped as an armor item by an animal.default boolean
IItemExtension.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 boolean
IItemExtension.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 boolean
IItemExtension.onEntitySwing
(ItemStack stack, LivingEntity entity, InteractionHand hand) Called when a entity tries to play the 'swing' animation.default InteractionResult
IItemExtension.onItemUseFirst
(ItemStack stack, UseOnContext context) This is called when the item is used, before the block is activated.default boolean
IItemExtension.onLeftClickEntity
(ItemStack stack, Player player, Entity entity) Called when the player Left Clicks (attacks) an entity.default void
IItemExtension.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 void
Set the damage for this itemstack.default boolean
IItemExtension.shouldCauseBlockBreakReset
(ItemStack oldStack, ItemStack newStack) Called when the player is mining a block and the item in his hand changes.default boolean
IItemStackExtension.shouldCauseBlockBreakReset
(ItemStack newStack) Called when the player is mining a block and the item in his hand changes.default boolean
IItemExtension.shouldCauseReequipAnimation
(ItemStack oldStack, ItemStack newStack, boolean slotChanged) Determine if the player switching between these two item stacksdefault boolean
IItemExtension.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 void
AttributeUtil.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 void
AttributeUtil.applyModifierTooltips
(ItemStack stack, Consumer<Component> tooltip, AttributeTooltipContext ctx) Applies the attribute modifier tooltips for all attribute modifiers present on the item stack.static void
AttributeUtil.applyTextFor
(ItemStack stack, Consumer<Component> tooltip, com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> modifierMap, AttributeTooltipContext ctx) Applies the text for the provided attribute modifiers to the tooltip for a given item stack.static com.google.common.collect.Multimap
<Holder<Attribute>, AttributeModifier> AttributeUtil.getSortedModifiers
(ItemStack stack, EquipmentSlotGroup slot) Returns a sorted, mutableMultimap
containing 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 ItemStack
GrindstoneEvent.bottom
private final ItemStack
ItemStackedOnOtherEvent.carriedItem
private final ItemStack
AnvilUpdateEvent.left
private ItemStack
GrindstoneEvent.OnTakeItem.newBottom
private ItemStack
GrindstoneEvent.OnTakeItem.newTop
private ItemStack
AnvilUpdateEvent.output
private final ItemStack
AnvilUpdateEvent.VanillaResult.output
The field for theoutput
record component.private ItemStack
GrindstoneEvent.OnPlaceItem.output
private final ItemStack
AnvilUpdateEvent.right
protected final ItemStack
AddAttributeTooltipsEvent.stack
protected final ItemStack
GatherSkippedAttributeTooltipsEvent.stack
private final ItemStack
ItemAttributeModifierEvent.stack
private final ItemStack
ItemStackedOnOtherEvent.stackedOnItem
private final ItemStack
GrindstoneEvent.top
Fields in net.neoforged.neoforge.event with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final InsertableLinkedOpenCustomHashSet
<ItemStack> BuildCreativeModeTabContentsEvent.parentEntries
private final InsertableLinkedOpenCustomHashSet
<ItemStack> BuildCreativeModeTabContentsEvent.searchEntries
Methods 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()
TheItemStack
with the tooltip.GatherSkippedAttributeTooltipsEvent.getStack()
TheItemStack
with the tooltip.ItemStackedOnOtherEvent.getStackedOnItem()
Returns the stack currently in the slot being clicked on.GrindstoneEvent.getTopItem()
static ItemStack
EventHooks.onItemUseFinish
(LivingEntity entity, ItemStack item, int duration, ItemStack result) AnvilUpdateEvent.VanillaResult.output()
Returns the value of theoutput
record 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 TypeMethodDescriptionvoid
BuildCreativeModeTabContentsEvent.accept
(ItemStack newEntry, CreativeModeTab.TabVisibility visibility) Inserts the new stack at the end of the given tab at this point in time.private void
BuildCreativeModeTabContentsEvent.assertNewEntryDoesNotAlreadyExists
(InsertableLinkedOpenCustomHashSet<ItemStack> setToCheck, ItemStack newEntry) private static void
BuildCreativeModeTabContentsEvent.assertStackCount
(ItemStack newEntry) private void
BuildCreativeModeTabContentsEvent.assertTargetExists
(InsertableLinkedOpenCustomHashSet<ItemStack> setToCheck, ItemStack existingEntry) static BonemealEvent
EventHooks.fireBonemealEvent
(@Nullable Player player, Level level, BlockPos pos, BlockState state, ItemStack stack) Called when bone meal (or equivalent) is used on a block.static void
EventHooks.fireItemPickupPost
(ItemEntity itemEntity, Player player, ItemStack copy) Called inItemEntity.playerTouch(Player)
after an item was successfully picked up.static void
EventHooks.firePlayerCraftingEvent
(Player player, ItemStack crafted, Container craftMatrix) static void
EventHooks.firePlayerSmeltedEvent
(Player player, ItemStack smelted, int amountRemoved) static ItemEnchantments
EventHooks.getAllEnchantmentLevels
(ItemEnchantments enchantments, ItemStack stack, HolderLookup.RegistryLookup<Enchantment> lookup) FiresGetEnchantmentLevelEvent
and for all enchantments, returning the (possibly event-modified) enchantment map.static int
EventHooks.getEnchantmentLevelSpecific
(int level, ItemStack stack, Holder<Enchantment> ench) FiresGetEnchantmentLevelEvent
and for a single enchantment, returning the (possibly event-modified) level.static int
EventHooks.getItemBurnTime
(ItemStack itemStack, int burnTime, @Nullable RecipeType<?> recipeType, FuelValues fuelValues) void
BuildCreativeModeTabContentsEvent.insertAfter
(ItemStack existingEntry, ItemStack newEntry, CreativeModeTab.TabVisibility visibility) Inserts the new entry after the specified existing entry.void
BuildCreativeModeTabContentsEvent.insertBefore
(ItemStack existingEntry, ItemStack newEntry, CreativeModeTab.TabVisibility visibility) Inserts the new entry before the specified existing entry.void
BuildCreativeModeTabContentsEvent.insertFirst
(ItemStack newEntry, CreativeModeTab.TabVisibility visibility) Inserts the new entry in the front of the tab's content.static int
EventHooks.onArrowLoose
(ItemStack stack, Level level, Player player, int charge, boolean hasAmmo) static InteractionResult
EventHooks.onArrowNock
(ItemStack item, Level level, Player player, InteractionHand hand, boolean hasAmmo) static int
EventHooks.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 ItemTooltipEvent
EventHooks.onItemTooltip
(ItemStack itemStack, @Nullable Player entityPlayer, List<Component> list, TooltipFlag flags, Item.TooltipContext context) static ItemStack
EventHooks.onItemUseFinish
(LivingEntity entity, ItemStack item, int duration, ItemStack result) static int
EventHooks.onItemUseStart
(LivingEntity entity, ItemStack item, int duration) Deprecated, for removal: This API element is subject to removal in a future version.Usethe hand sensitive version
as this version provides wrong hand informationstatic int
EventHooks.onItemUseStart
(LivingEntity entity, ItemStack item, InteractionHand hand, int duration) static int
EventHooks.onItemUseTick
(LivingEntity entity, ItemStack item, int duration) static void
EventHooks.onPlayerBrewedPotion
(Player player, ItemStack stack) static void
EventHooks.onPlayerDestroyItem
(Player player, ItemStack stack, @Nullable InteractionHand hand) static boolean
EventHooks.onUseItemStop
(LivingEntity entity, ItemStack item, int duration) void
BuildCreativeModeTabContentsEvent.remove
(ItemStack existingEntry, CreativeModeTab.TabVisibility visibility) Removes an entry from the tab's content.void
GrindstoneEvent.OnTakeItem.setNewBottomItem
(ItemStack newBottom) Sets the itemstack in the bottom slot.void
GrindstoneEvent.OnTakeItem.setNewTopItem
(ItemStack newTop) Sets the itemstack in the top slot.void
Sets the output to the given item stack.void
Sets the output slot to a specific itemstack.Method parameters in net.neoforged.neoforge.event with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate void
BuildCreativeModeTabContentsEvent.assertNewEntryDoesNotAlreadyExists
(InsertableLinkedOpenCustomHashSet<ItemStack> setToCheck, ItemStack newEntry) private void
BuildCreativeModeTabContentsEvent.assertTargetExists
(InsertableLinkedOpenCustomHashSet<ItemStack> setToCheck, ItemStack existingEntry) static boolean
EventHooks.onPotionAttemptBrew
(NonNullList<ItemStack> stacks) static void
EventHooks.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) protected
GrindstoneEvent
(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
(ItemStack top, ItemStack bottom, int xp) VanillaResult
(ItemStack output, int xpCost, int materialCost) Creates an instance of aVanillaResult
record 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) protected
PotionBrewEvent
(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 ItemStack
EnchantmentLevelSetEvent.itemStack
protected final ItemStack
GetEnchantmentLevelEvent.stack
Methods 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 ItemStack
EntityTeleportEvent.ItemConsumption.itemStack
Methods 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.armorItemStack
private final ItemStack
LivingEquipmentChangeEvent.from
private final ItemStack
LivingEntityUseItemEvent.item
private ItemStack
LivingGetProjectileEvent.projectileItemStack
private final ItemStack
LivingGetProjectileEvent.projectileWeaponItemStack
private ItemStack
LivingEntityUseItemEvent.Finish.result
private final ItemStack
LivingEquipmentChangeEvent.to
private ItemStack
LivingSwapItemsEvent.Hands.toMainHand
private ItemStack
LivingSwapItemsEvent.Hands.toOffHand
private final ItemStack
LivingUseTotemEvent.totem
Methods 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 TypeMethodDescriptionvoid
LivingSwapItemsEvent.Hands.setItemSwappedToMainHand
(ItemStack item) Sets the item that will be swapped to the main hand of the entity.void
LivingSwapItemsEvent.Hands.setItemSwappedToOffHand
(ItemStack item) Sets the item that will be swapped to the offhand of the entity.void
LivingGetProjectileEvent.setProjectileItemStack
(ItemStack projectileItemStack) Sets the projectile itemstack to be used.void
LivingEntityUseItemEvent.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) private
LivingEntityUseItemEvent
(LivingEntity entity, ItemStack item, int duration) private
LivingEntityUseItemEvent
(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 version
as 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 ItemStack
ArrowLooseEvent.bow
private final ItemStack
ArrowNockEvent.bow
private final ItemStack
PlayerEvent.ItemCraftedEvent.crafting
private final ItemStack
PlayerEnchantItemEvent.enchantedItem
private final ItemStack
UseItemOnBlockEvent.heldItem
private final ItemStack
ItemTooltipEvent.itemStack
private final ItemStack
AnvilCraftEvent.left
private final ItemStack
PlayerDestroyItemEvent.original
private final ItemStack
ItemEntityPickupEvent.Post.originalStack
private final ItemStack
AnvilCraftEvent.output
private final ItemStack
AnvilCraftEvent.right
private final ItemStack
PlayerEvent.ItemSmeltedEvent.smelting
private final ItemStack
BonemealEvent.stack
Fields 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()
TheItemStack
with 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 ItemStack
DispenseFluidContainer.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 ItemStack
DispenseFluidContainer.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 ItemStack
FluidUtil.getFilledBucket
(FluidStack fluidStack) FluidActionResult.getResult()
Methods in net.neoforged.neoforge.fluids with parameters of type ItemStackModifier and TypeMethodDescriptionprivate ItemStack
DispenseFluidContainer.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 ItemStack
DispenseFluidContainer.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 anIFluidHandlerItem
for an itemStack.static FluidActionResult
FluidUtil.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 FluidActionResult
FluidUtil.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 FluidActionResult
FluidUtil.tryFillContainer
(ItemStack container, IFluidHandler fluidSource, int maxAmount, @Nullable Player player, boolean doFill) Fill a container from the given fluidSource.static FluidActionResult
FluidUtil.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 FluidActionResult
FluidUtil.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 FluidActionResult
FluidUtil.tryPlaceFluid
(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, ItemStack container, FluidStack resource) Constructors in net.neoforged.neoforge.fluids with parameters of type ItemStackModifierConstructorDescriptionprivate
FluidActionResult
(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 ItemStack
FluidHandlerItemStack.container
protected ItemStack
FluidHandlerItemStackSimple.container
protected final ItemStack
FluidHandlerItemStack.SwapEmpty.emptyContainer
protected final ItemStack
FluidHandlerItemStackSimple.SwapEmpty.emptyContainer
Methods 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 ItemStack
StackCopySlot.getItem()
protected ItemStack
ItemHandlerCopySlot.getStackCopy()
protected abstract ItemStack
StackCopySlot.getStackCopy()
Gets the itemstack from the storage.protected ItemStack
ComponentItemHandler.getStackFromContents
(ItemContainerContents contents, int slot) Retrieves a copy of a single stack from the underlying data component, returningEMPTY
if 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 ItemStack
ItemHandlerHelper.insertItem
(IItemHandler dest, ItemStack stack, boolean simulate) ItemStackHandler.insertItem
(int slot, ItemStack stack, boolean simulate) VanillaHopperItemHandler.insertItem
(int slot, ItemStack stack, boolean simulate) static ItemStack
ItemHandlerHelper.insertItemStacked
(IItemHandler inventory, ItemStack stack, boolean simulate) Inserts the ItemStack into the inventory, filling up already present stacks first.SlotItemHandler.remove
(int amount) final ItemStack
StackCopySlot.remove
(int amount) Methods in net.neoforged.neoforge.items with parameters of type ItemStackModifier and TypeMethodDescriptionint
ItemHandlerCopySlot.getMaxStackSize
(ItemStack stack) int
SlotItemHandler.getMaxStackSize
(ItemStack stack) protected int
ItemStackHandler.getStackLimit
(int slot, ItemStack stack) static void
ItemHandlerHelper.giveItemToPlayer
(Player player, ItemStack stack) giveItemToPlayer without preferred slotstatic void
ItemHandlerHelper.giveItemToPlayer
(Player player, ItemStack stack, int preferredSlot) Inserts the given itemstack into the players inventory.void
SlotItemHandler.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 ItemStack
ItemHandlerHelper.insertItem
(IItemHandler dest, ItemStack stack, boolean simulate) ItemStackHandler.insertItem
(int slot, ItemStack stack, boolean simulate) VanillaHopperItemHandler.insertItem
(int slot, ItemStack stack, boolean simulate) static ItemStack
ItemHandlerHelper.insertItemStacked
(IItemHandler inventory, ItemStack stack, boolean simulate) Inserts the ItemStack into the inventory, filling up already present stacks first.boolean
ComponentItemHandler.isItemValid
(int slot, ItemStack stack) boolean
IItemHandler.isItemValid
(int slot, ItemStack stack) This function re-implements the vanilla functionContainer.canPlaceItem(int, ItemStack)
.boolean
ItemStackHandler.isItemValid
(int slot, ItemStack stack) boolean
boolean
protected void
ComponentItemHandler.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.void
ItemHandlerCopySlot.onQuickCraft
(ItemStack oldStackIn, ItemStack newStackIn) void
SlotItemHandler.onQuickCraft
(ItemStack oldStackIn, ItemStack newStackIn) void
final void
protected void
ItemHandlerCopySlot.setStackCopy
(ItemStack stack) protected abstract void
StackCopySlot.setStackCopy
(ItemStack stack) Sets the itemstack from the storage.void
ComponentItemHandler.setStackInSlot
(int slot, ItemStack stack) void
IItemHandlerModifiable.setStackInSlot
(int slot, ItemStack stack) Overrides the stack in the given slot.void
ItemStackHandler.setStackInSlot
(int slot, ItemStack stack) protected void
ComponentItemHandler.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 int
EntityEquipmentInvWrapper.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) boolean
CombinedInvWrapper.isItemValid
(int slot, ItemStack stack) boolean
EmptyItemHandler.isItemValid
(int slot, ItemStack stack) boolean
EntityEquipmentInvWrapper.isItemValid
(int slot, ItemStack stack) boolean
ForwardingItemHandler.isItemValid
(int slot, ItemStack stack) boolean
InvWrapper.isItemValid
(int slot, ItemStack stack) boolean
RangedWrapper.isItemValid
(int slot, ItemStack stack) boolean
SidedInvWrapper.isItemValid
(int slot, ItemStack stack) int
SidedInvWrapper.InsertLimit.limitInsert
(int wrapperSlot, int invSlot, ItemStack stack) private void
SidedInvWrapper.setInventorySlotContents
(int slot, ItemStack stack) void
CombinedInvWrapper.setStackInSlot
(int slot, ItemStack stack) void
EmptyItemHandler.setStackInSlot
(int slot, ItemStack stack) void
EntityEquipmentInvWrapper.setStackInSlot
(int slot, ItemStack stack) void
InvWrapper.setStackInSlot
(int slot, ItemStack stack) void
RangedWrapper.setStackInSlot
(int slot, ItemStack stack) void
SidedInvWrapper.setStackInSlot
(int slot, ItemStack stack) -
Uses of ItemStack in net.neoforged.neoforge.registries
Methods in net.neoforged.neoforge.registries that return ItemStack
BlockModelWrapper.renderType
.