Uses of Class
net.minecraft.world.item.ItemStack
Package
Description
-
Uses of ItemStack in net.minecraft.advancements
Modifier and TypeMethodDescriptionDisplayInfo.getIcon()
private static ItemStack
DisplayInfo.getIcon
(com.google.gson.JsonObject p_14987_) Modifier and TypeMethodDescriptionAdvancement.Builder.display
(ItemStack p_138363_, Component p_138364_, Component p_138365_, ResourceLocation p_138366_, FrameType p_138367_, boolean p_138368_, boolean p_138369_, boolean p_138370_) ModifierConstructorDescriptionDisplayInfo
(ItemStack p_14969_, Component p_14970_, Component p_14971_, ResourceLocation p_14972_, FrameType p_14973_, boolean p_14974_, boolean p_14975_, boolean p_14976_) -
Uses of ItemStack in net.minecraft.advancements.critereon
Modifier 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
ItemPickedUpByEntityTrigger.TriggerInstance.matches
(ServerPlayer p_44388_, ItemStack p_44389_, LootContext p_44390_) boolean
boolean
ItemUsedOnBlockTrigger.TriggerInstance.matches
(BlockState p_45511_, ServerLevel p_45512_, BlockPos p_45513_, ItemStack p_45514_) boolean
boolean
PlacedBlockTrigger.TriggerInstance.matches
(BlockState p_59508_, BlockPos p_59509_, ServerLevel p_59510_, ItemStack p_59511_) boolean
PlayerInteractTrigger.TriggerInstance.matches
(ItemStack p_61522_, LootContext p_61523_) boolean
boolean
TradeTrigger.TriggerInstance.matches
(LootContext p_70985_, ItemStack p_70986_) boolean
boolean
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
ItemPickedUpByEntityTrigger.trigger
(ServerPlayer p_44364_, ItemStack p_44365_, Entity p_44366_) void
ItemUsedOnBlockTrigger.trigger
(ServerPlayer p_45483_, BlockPos p_45484_, ItemStack p_45485_) void
PlacedBlockTrigger.trigger
(ServerPlayer p_59470_, BlockPos p_59471_, ItemStack p_59472_) 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_) Modifier and TypeMethodDescriptionboolean
FishingRodHookedTrigger.TriggerInstance.matches
(ItemStack p_40444_, LootContext p_40445_, Collection<ItemStack> p_40446_) void
FishingRodHookedTrigger.trigger
(ServerPlayer p_40417_, ItemStack p_40418_, FishingHook p_40419_, Collection<ItemStack> p_40420_) -
Uses of ItemStack in net.minecraft.client
Modifier and TypeMethodDescriptionMinecraft.addCustomNbtData
(ItemStack p_91123_, BlockEntity p_91124_) Modifier and TypeMethodDescriptionMinecraft.addCustomNbtData
(ItemStack p_91123_, BlockEntity p_91124_) static RecipeBookCategories
-
Uses of ItemStack in net.minecraft.client.color.item
-
Uses of ItemStack in net.minecraft.client.gui
Modifier and TypeMethodDescriptionprivate void
Gui.renderSlot
(int p_168678_, int p_168679_, float p_168680_, Player p_168681_, ItemStack p_168682_, int p_168683_) -
Uses of ItemStack in net.minecraft.client.gui.screens
Modifier and TypeMethodDescriptionprivate ItemStack
CreateFlatWorldScreen.DetailsList.Entry.getDisplayItem
(BlockState p_169294_) Modifier and TypeMethodDescriptionprivate void
CreateFlatWorldScreen.DetailsList.Entry.blitSlot
(PoseStack p_95887_, int p_95888_, int p_95889_, ItemStack p_95890_) Screen.getTooltipFromItem
(ItemStack p_96556_) void
Screen.renderComponentTooltip
(PoseStack poseStack, List<? extends FormattedText> tooltips, int mouseX, int mouseY, Font font, ItemStack stack) void
Screen.renderComponentTooltip
(PoseStack poseStack, List<? extends FormattedText> tooltips, int mouseX, int mouseY, ItemStack stack) void
Screen.renderTooltip
(PoseStack poseStack, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, int x, int y, Font font, ItemStack stack) void
Screen.renderTooltip
(PoseStack poseStack, List<Component> textComponents, Optional<TooltipComponent> tooltipComponent, int x, int y, ItemStack stack) protected void
Screen.renderTooltip
(PoseStack p_96566_, ItemStack p_96567_, int p_96568_, int p_96569_) -
Uses of ItemStack in net.minecraft.client.gui.screens.advancements
Modifier and TypeMethodDescriptionvoid
AdvancementTabType.drawIcon
(int p_97220_, int p_97221_, int p_97222_, ItemRenderer p_97223_, ItemStack p_97224_) -
Uses of ItemStack in net.minecraft.client.gui.screens.debug
Modifier and TypeFieldDescription(package private) final ItemStack
GameModeSwitcherScreen.GameModeIcon.renderStack
ModifierConstructorDescriptionprivate
GameModeIcon
(Component p_97594_, String p_97595_, ItemStack p_97596_) -
Uses of ItemStack in net.minecraft.client.gui.screens.inventory
Modifier 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
Modifier and TypeFieldDescriptionfinal NonNullList<ItemStack>
CreativeModeInventoryScreen.ItemPickerMenu.items
Modifier and TypeMethodDescriptionCreativeModeInventoryScreen.ItemPickerMenu.getCarried()
CreativeModeInventoryScreen.SlotWrapper.getItem()
CreativeModeInventoryScreen.ItemPickerMenu.quickMoveStack
(Player p_98650_, int p_98651_) CreativeModeInventoryScreen.SlotWrapper.remove
(int p_98663_) Modifier and TypeMethodDescriptionboolean
CreativeModeInventoryScreen.ItemPickerMenu.canTakeItemForPickAll
(ItemStack p_98647_, Slot p_98648_) static BookViewScreen.BookAccess
int
CreativeModeInventoryScreen.SlotWrapper.getMaxStackSize
(ItemStack p_98675_) boolean
void
private void
MerchantScreen.renderAndDecorateCostA
(PoseStack p_99163_, ItemStack p_99164_, ItemStack p_99165_, int p_99166_, int p_99167_) private void
AbstractContainerScreen.renderFloatingItem
(ItemStack p_97783_, int p_97784_, int p_97785_, String p_97786_) protected void
CreativeModeInventoryScreen.renderTooltip
(PoseStack p_98590_, ItemStack p_98591_, int p_98592_, int p_98593_) void
void
CreativeModeInventoryScreen.ItemPickerMenu.setCarried
(ItemStack p_169751_) 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_) ModifierConstructorDescriptionBookEditScreen
(Player p_98076_, ItemStack p_98077_, InteractionHand p_98078_) WritableBookAccess
(ItemStack p_98314_) WrittenBookAccess
(ItemStack p_98322_) -
Uses of ItemStack in net.minecraft.client.gui.screens.inventory.tooltip
-
Uses of ItemStack in net.minecraft.client.gui.screens.recipebook
Modifier and TypeFieldDescriptionfinal ItemStack[]
OverlayRecipeComponent.OverlayRecipeButton.Pos.ingredients
-
Uses of ItemStack in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionvoid
MultiPlayerGameMode.handleCreativeModeItemAdd
(ItemStack p_105242_, int p_105243_) void
MultiPlayerGameMode.handleCreativeModeItemDrop
(ItemStack p_105240_) -
Uses of ItemStack in net.minecraft.client.particle
ModifierConstructorDescription(package private)
BreakingItemParticle
(ClientLevel p_105646_, double p_105647_, double p_105648_, double p_105649_, double p_105650_, double p_105651_, double p_105652_, ItemStack p_105653_) protected
BreakingItemParticle
(ClientLevel p_105665_, double p_105666_, double p_105667_, double p_105668_, ItemStack p_105669_) -
Uses of ItemStack in net.minecraft.client.player
Modifier and TypeMethodDescriptionvoid
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
-
Uses of ItemStack in net.minecraft.client.renderer
Modifier and TypeFieldDescriptionprivate ItemStack
GameRenderer.itemActivationItem
private ItemStack
ItemInHandRenderer.mainHandItem
private ItemStack
ItemInHandRenderer.offHandItem
Modifier and TypeMethodDescriptionprivate void
ItemInHandRenderer.applyEatTransform
(PoseStack p_109331_, float p_109332_, HumanoidArm p_109333_, ItemStack p_109334_) void
GameRenderer.displayItemActivation
(ItemStack p_109114_) ItemModelShaper.getItemModel
(ItemStack p_109407_) static RenderType
ItemBlockRenderTypes.getRenderType
(ItemStack p_109280_, boolean p_109281_) 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
BlockEntityWithoutLevelRenderer.renderByItem
(ItemStack p_108830_, ItemTransforms.TransformType p_108831_, PoseStack p_108832_, MultiBufferSource p_108833_, int p_108834_, int p_108835_) void
ItemInHandRenderer.renderItem
(LivingEntity p_109323_, ItemStack p_109324_, ItemTransforms.TransformType p_109325_, boolean p_109326_, PoseStack p_109327_, MultiBufferSource p_109328_, int p_109329_) 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_) -
Uses of ItemStack in net.minecraft.client.renderer.block.model
Modifier and TypeMethodDescriptionItemOverrides.resolve
(BakedModel p_173465_, ItemStack p_173466_, ClientLevel p_173467_, LivingEntity p_173468_, int p_173469_) -
Uses of ItemStack in net.minecraft.client.renderer.entity
Modifier and TypeMethodDescriptionprivate ModelResourceLocation
ItemFrameRenderer.getFrameModelResourceLoc
(T p_174213_, ItemStack p_174214_) ItemRenderer.getModel
(ItemStack p_174265_, Level p_174266_, LivingEntity p_174267_, int p_174268_) protected int
ItemEntityRenderer.getRenderAmount
(ItemStack p_115043_) void
ItemRenderer.render
(ItemStack p_115144_, ItemTransforms.TransformType p_115145_, boolean p_115146_, PoseStack p_115147_, MultiBufferSource p_115148_, int p_115149_, int p_115150_, BakedModel p_115151_) void
ItemRenderer.renderAndDecorateFakeItem
(ItemStack p_115219_, int p_115220_, int p_115221_) void
ItemRenderer.renderAndDecorateItem
(LivingEntity p_174230_, ItemStack p_174231_, int p_174232_, int p_174233_, int p_174234_) void
ItemRenderer.renderAndDecorateItem
(ItemStack p_115204_, int p_115205_, int p_115206_) void
ItemRenderer.renderAndDecorateItem
(ItemStack p_174254_, int p_174255_, int p_174256_, int p_174257_) void
ItemRenderer.renderAndDecorateItem
(ItemStack p_174259_, int p_174260_, int p_174261_, int p_174262_, int p_174263_) void
ItemRenderer.renderGuiItem
(ItemStack p_115124_, int p_115125_, int p_115126_) protected void
ItemRenderer.renderGuiItem
(ItemStack p_115128_, int p_115129_, int p_115130_, BakedModel p_115131_) void
ItemRenderer.renderGuiItemDecorations
(Font p_115170_, ItemStack p_115171_, int p_115172_, int p_115173_) void
ItemRenderer.renderGuiItemDecorations
(Font p_115175_, ItemStack p_115176_, int p_115177_, int p_115178_, String p_115179_) void
ItemRenderer.renderModelLists
(BakedModel p_115190_, ItemStack p_115191_, int p_115192_, int p_115193_, PoseStack p_115194_, VertexConsumer p_115195_) void
ItemRenderer.renderQuadList
(PoseStack p_115163_, VertexConsumer p_115164_, List<BakedQuad> p_115165_, ItemStack p_115166_, int p_115167_, int p_115168_) void
ItemRenderer.renderStatic
(LivingEntity p_174243_, ItemStack p_174244_, ItemTransforms.TransformType p_174245_, boolean p_174246_, PoseStack p_174247_, MultiBufferSource p_174248_, Level p_174249_, int p_174250_, int p_174251_, int p_174252_) void
ItemRenderer.renderStatic
(ItemStack p_174270_, ItemTransforms.TransformType p_174271_, int p_174272_, int p_174273_, PoseStack p_174274_, MultiBufferSource p_174275_, int p_174276_) private void
ItemRenderer.tryRenderGuiItem
(LivingEntity p_174278_, ItemStack p_174279_, int p_174280_, int p_174281_, int p_174282_) private void
ItemRenderer.tryRenderGuiItem
(LivingEntity p_174236_, ItemStack p_174237_, int p_174238_, int p_174239_, int p_174240_, int p_174241_) -
Uses of ItemStack in net.minecraft.client.renderer.entity.layers
Modifier and TypeMethodDescriptionprotected Model
HumanoidArmorLayer.getArmorModelHook
(T entity, ItemStack itemStack, EquipmentSlot slot, A model) Hook to allow item-sensitive armor model.HumanoidArmorLayer.getArmorResource
(Entity entity, ItemStack stack, EquipmentSlot slot, String type) More generic ForgeHook version of the above function, it allows for Items to have more control over what texture they provide.ElytraLayer.getElytraTexture
(ItemStack stack, T entity) Gets the texture to use with this ElytraLayer.protected void
ItemInHandLayer.renderArmWithItem
(LivingEntity p_117185_, ItemStack p_117186_, ItemTransforms.TransformType p_117187_, HumanoidArm p_117188_, PoseStack p_117189_, MultiBufferSource p_117190_, int p_117191_) protected void
PlayerItemInHandLayer.renderArmWithItem
(LivingEntity p_174525_, ItemStack p_174526_, ItemTransforms.TransformType p_174527_, HumanoidArm p_174528_, PoseStack p_174529_, MultiBufferSource p_174530_, int p_174531_) private void
PlayerItemInHandLayer.renderArmWithSpyglass
(LivingEntity p_174518_, ItemStack p_174519_, HumanoidArm p_174520_, PoseStack p_174521_, MultiBufferSource p_174522_, int p_174523_) boolean
ElytraLayer.shouldRender
(ItemStack stack, T entity) Determines if the ElytraLayer should render. -
Uses of ItemStack in net.minecraft.client.renderer.item
Modifier and TypeMethodDescriptiondefault float
ClampedItemPropertyFunction.call
(ItemStack p_174560_, ClientLevel p_174561_, LivingEntity p_174562_, int p_174563_) Deprecated.float
ItemPropertyFunction.call
(ItemStack p_174676_, ClientLevel p_174677_, LivingEntity p_174678_, int p_174679_) Deprecated.float
ClampedItemPropertyFunction.unclampedCall
(ItemStack p_174564_, ClientLevel p_174565_, LivingEntity p_174566_, int p_174567_) -
Uses of ItemStack in net.minecraft.client.searchtree
Modifier and TypeFieldDescriptionstatic final SearchRegistry.Key<ItemStack>
SearchRegistry.CREATIVE_NAMES
static final SearchRegistry.Key<ItemStack>
SearchRegistry.CREATIVE_TAGS
-
Uses of ItemStack in net.minecraft.client.tutorial
Modifier and TypeMethodDescriptionvoid
void
void
void
default void
void
BundleTutorial.onInventoryAction
(ItemStack p_175007_, ItemStack p_175008_, ClickAction p_175009_) void
Tutorial.onInventoryAction
(ItemStack p_175025_, ItemStack p_175026_, ClickAction p_175027_) -
Uses of ItemStack in net.minecraft.commands.arguments.item
Modifier and TypeMethodDescriptionItemPredicateArgument.Result.create
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_121068_) ItemPredicateArgument.getItemPredicate
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_121041_, String p_121042_) -
Uses of ItemStack in net.minecraft.core.cauldron
Modifier and TypeMethodDescriptionstatic 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_) CauldronInteraction.interact
(BlockState p_175711_, Level p_175712_, BlockPos p_175713_, Player p_175714_, InteractionHand p_175715_, ItemStack p_175716_) -
Uses of ItemStack in net.minecraft.core.dispenser
Modifier and TypeMethodDescriptionfinal ItemStack
DefaultDispenseItemBehavior.dispense
(BlockSource p_123391_, ItemStack p_123392_) DispenseItemBehavior.dispense
(BlockSource p_123403_, ItemStack p_123404_) AbstractProjectileDispenseBehavior.execute
(BlockSource p_123366_, ItemStack p_123367_) BoatDispenseItemBehavior.execute
(BlockSource p_123375_, ItemStack p_123376_) protected ItemStack
DefaultDispenseItemBehavior.execute
(BlockSource p_123385_, ItemStack p_123386_) protected ItemStack
ShearsDispenseItemBehavior.execute
(BlockSource p_123580_, ItemStack p_123581_) protected ItemStack
ShulkerBoxDispenseBehavior.execute
(BlockSource p_123587_, ItemStack p_123588_) Modifier and TypeMethodDescriptionfinal ItemStack
DefaultDispenseItemBehavior.dispense
(BlockSource p_123391_, ItemStack p_123392_) DispenseItemBehavior.dispense
(BlockSource p_123403_, ItemStack p_123404_) AbstractProjectileDispenseBehavior.execute
(BlockSource p_123366_, ItemStack p_123367_) BoatDispenseItemBehavior.execute
(BlockSource p_123375_, ItemStack p_123376_) protected ItemStack
DefaultDispenseItemBehavior.execute
(BlockSource p_123385_, ItemStack p_123386_) protected ItemStack
ShearsDispenseItemBehavior.execute
(BlockSource p_123580_, ItemStack p_123581_) protected ItemStack
ShulkerBoxDispenseBehavior.execute
(BlockSource p_123587_, ItemStack p_123588_) protected abstract Projectile
AbstractProjectileDispenseBehavior.getProjectile
(Level p_123360_, Position p_123361_, ItemStack p_123362_) static void
DefaultDispenseItemBehavior.spawnItem
(Level p_123379_, ItemStack p_123380_, int p_123381_, Direction p_123382_, Position p_123383_) -
Uses of ItemStack in net.minecraft.core.particles
ModifierConstructorDescriptionItemParticleOption
(ParticleType<ItemParticleOption> p_123705_, ItemStack p_123706_) -
Uses of ItemStack in net.minecraft.gametest.framework
Modifier and TypeMethodDescriptionprivate static ItemStack
ReportGameListener.createBook
(String p_177711_, boolean p_177712_, String p_177713_) -
Uses of ItemStack in net.minecraft.network
Modifier and TypeMethodDescriptionFriendlyByteBuf.writeItemStack
(ItemStack p_130056_, boolean limitedTag) Most ItemStack serialization is Server to Client,and doesn't need to know the FULL tag details. -
Uses of ItemStack in net.minecraft.network.chat
-
Uses of ItemStack in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionprivate final ItemStack
ClientboundContainerSetContentPacket.carriedItem
private final ItemStack
ServerboundContainerClickPacket.carriedItem
private final ItemStack
ClientboundContainerSetSlotPacket.itemStack
private final ItemStack
ServerboundSetCreativeModeSlotPacket.itemStack
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.ints.Int2ObjectMap<ItemStack>
ServerboundContainerClickPacket.changedSlots
ClientboundContainerSetContentPacket.items
private final List<com.mojang.datafixers.util.Pair<EquipmentSlot,
ItemStack>> ClientboundSetEquipmentPacket.slots
Modifier and TypeMethodDescriptionClientboundContainerSetContentPacket.getCarriedItem()
ServerboundContainerClickPacket.getCarriedItem()
ClientboundContainerSetSlotPacket.getItem()
ServerboundSetCreativeModeSlotPacket.getItem()
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.ints.Int2ObjectMap<ItemStack>
ServerboundContainerClickPacket.getChangedSlots()
ClientboundContainerSetContentPacket.getItems()
List<com.mojang.datafixers.util.Pair<EquipmentSlot,
ItemStack>> ClientboundSetEquipmentPacket.getSlots()
ModifierConstructorDescriptionClientboundContainerSetContentPacket
(int p_182704_, int p_182705_, NonNullList<ItemStack> p_182706_, ItemStack p_182707_) ClientboundContainerSetSlotPacket
(int p_131982_, int p_182713_, int p_131983_, ItemStack p_131984_) ServerboundContainerClickPacket
(int p_182734_, int p_182735_, int p_182736_, int p_182737_, ClickType p_182738_, ItemStack p_182739_, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ItemStack> p_182740_) ServerboundSetCreativeModeSlotPacket
(int p_134553_, ItemStack p_134554_) ModifierConstructorDescriptionClientboundContainerSetContentPacket
(int p_182704_, int p_182705_, NonNullList<ItemStack> p_182706_, ItemStack p_182707_) ClientboundSetEquipmentPacket
(int p_133202_, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> p_133203_) ServerboundContainerClickPacket
(int p_182734_, int p_182735_, int p_182736_, int p_182737_, ClickType p_182738_, ItemStack p_182739_, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ItemStack> p_182740_) -
Uses of ItemStack in net.minecraft.network.syncher
Modifier and TypeFieldDescriptionstatic final EntityDataSerializer<ItemStack>
EntityDataSerializers.ITEM_STACK
-
Uses of ItemStack in net.minecraft.recipebook
Modifier and TypeMethodDescriptionprotected void
ServerPlaceRecipe.moveItemToGrid
(Slot p_135439_, ItemStack p_135440_) -
Uses of ItemStack in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static ItemStack
ItemCommands.applyModifier
(CommandSourceStack p_180284_, LootItemFunction p_180285_, 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_) Modifier and TypeMethodDescriptionprivate static ItemStack
ItemCommands.applyModifier
(CommandSourceStack p_180284_, LootItemFunction p_180285_, 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_, ResourceLocation p_137928_, 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_) Modifier 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_, ResourceLocation p_137971_) private static int
ClearInventoryCommands.clearInventory
(CommandSourceStack p_136706_, Collection<ServerPlayer> p_136707_, Predicate<ItemStack> p_136708_, int p_136709_) 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
Modifier and TypeMethodDescriptionvoid
ServerPlayer.onEnchantmentPerformed
(ItemStack p_9079_, int p_9080_) void
ServerPlayer.openItemGui
(ItemStack p_9082_, InteractionHand p_9083_) 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_) -
Uses of ItemStack in net.minecraft.server.network
Modifier and TypeMethodDescriptionprivate void
ServerGamePacketListenerImpl.updateBookPages
(List<TextFilter.FilteredText> p_143635_, UnaryOperator<String> p_143636_, ItemStack p_143637_) private static boolean
ServerGamePacketListenerImpl.wasBlockPlacementAttempt
(ServerPlayer p_9791_, ItemStack p_9792_) -
Uses of ItemStack in net.minecraft.world
Modifier and TypeMethodDescriptionCompoundContainer.getItem
(int p_18920_) Container.getItem
(int p_18941_) SimpleContainer.getItem
(int p_19157_) 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
Modifier 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_) 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_) 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_) Modifier 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_) static void
ContainerHelper.loadAllItems
(CompoundTag p_18981_, NonNullList<ItemStack> p_18982_) static ItemStack
ContainerHelper.removeItem
(List<ItemStack> p_18970_, int p_18971_, int p_18972_) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag p_18974_, NonNullList<ItemStack> p_18975_) static CompoundTag
ContainerHelper.saveAllItems
(CompoundTag p_18977_, NonNullList<ItemStack> p_18978_, boolean p_18979_) static ItemStack
-
Uses of ItemStack in net.minecraft.world.effect
Modifier and TypeMethodDescriptionvoid
MobEffectInstance.setCurativeItems
(List<ItemStack> curativeItems) -
Uses of ItemStack in net.minecraft.world.entity
Modifier and TypeFieldDescriptionprivate final ItemStack
EntitySelector.MobCanWearArmorEntitySelector.itemStack
protected ItemStack
LivingEntity.useItem
Modifier and TypeFieldDescriptionprivate final NonNullList<ItemStack>
Mob.armorItems
Entity.EMPTY_LIST
private final NonNullList<ItemStack>
Mob.handItems
private final NonNullList<ItemStack>
LivingEntity.lastArmorItemStacks
private final NonNullList<ItemStack>
LivingEntity.lastHandItemStacks
Modifier and TypeMethodDescriptionSlotAccess.get()
abstract ItemStack
LivingEntity.getItemBySlot
(EquipmentSlot p_21127_) Mob.getItemBySlot
(EquipmentSlot p_21467_) LivingEntity.getItemInHand
(InteractionHand p_21121_) private ItemStack
LivingEntity.getLastArmorItem
(EquipmentSlot p_21199_) private ItemStack
LivingEntity.getLastHandItem
(EquipmentSlot p_21245_) LivingEntity.getMainHandItem()
LivingEntity.getOffhandItem()
Entity.getPickResult()
Mob.getPickResult()
LivingEntity.getProjectile
(ItemStack p_21272_) LivingEntity.getUseItem()
Modifier and TypeMethodDescriptionprivate Map<EquipmentSlot,
ItemStack> LivingEntity.collectEquipmentChanges()
Entity.getAllSlots()
Entity.getArmorSlots()
LivingEntity.getArmorSlots()
Mob.getArmorSlots()
Entity.getHandSlots()
Mob.getHandSlots()
Modifier and TypeMethodDescriptionprivate void
LivingEntity.addEatEffect
(ItemStack p_21064_, Level p_21065_, LivingEntity p_21066_) private void
boolean
Mob.canHoldItem
(ItemStack p_21545_) protected boolean
Mob.canReplaceCurrentItem
(ItemStack p_21428_, ItemStack p_21429_) boolean
Mob.canReplaceEqualItem
(ItemStack p_21478_, ItemStack p_21479_) boolean
LivingEntity.canTakeItem
(ItemStack p_21249_) boolean
Mob.canTakeItem
(ItemStack p_21522_) boolean
LivingEntity.curePotionEffects
(ItemStack curativeItem) Removes all potion effects that have curativeItem as a curative item for its effectprotected void
LivingEntity.equipEventAndSound
(ItemStack p_147219_) boolean
Mob.equipItemIfPossible
(ItemStack p_21541_) protected SoundEvent
LivingEntity.getDrinkingSound
(ItemStack p_21174_) LivingEntity.getEatingSound
(ItemStack p_21202_) static EquipmentSlot
LivingEntity.getEquipmentSlotForItem
(ItemStack p_147234_) LivingEntity.getProjectile
(ItemStack p_21272_) private void
Mob.maybeDisableShield
(Player p_21425_, ItemStack p_21426_, ItemStack p_21427_) boolean
void
LivingEntity.setItemInHand
(InteractionHand p_21009_, ItemStack p_21010_) void
Entity.setItemSlot
(EquipmentSlot p_19968_, ItemStack p_19969_) abstract void
LivingEntity.setItemSlot
(EquipmentSlot p_21036_, ItemStack p_21037_) void
Mob.setItemSlot
(EquipmentSlot p_21416_, ItemStack p_21417_) protected void
Mob.setItemSlotAndDropWhenKilled
(EquipmentSlot p_21469_, ItemStack p_21470_) private void
LivingEntity.setLastArmorItem
(EquipmentSlot p_21129_, ItemStack p_21130_) private void
LivingEntity.setLastHandItem
(EquipmentSlot p_21169_, ItemStack p_21170_) EntityType.spawn
(ServerLevel p_20593_, ItemStack p_20594_, Player p_20595_, BlockPos p_20596_, MobSpawnType p_20597_, boolean p_20598_, boolean p_20599_) Entity.spawnAtLocation
(ItemStack p_19984_) Entity.spawnAtLocation
(ItemStack p_19985_, float p_19986_) private void
LivingEntity.spawnItemParticles
(ItemStack p_21061_, int p_21062_) protected void
LivingEntity.triggerItemUseEffects
(ItemStack p_21138_, int p_21139_) protected void
LivingEntity.updateUsingItem
(ItemStack p_147201_) protected void
LivingEntity.verifyEquippedItem
(ItemStack p_181123_) boolean
Mob.wantsToPickUp
(ItemStack p_21546_) Modifier and TypeMethodDescriptionstatic 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
-
Uses of ItemStack in net.minecraft.world.entity.ai.behavior
Modifier and TypeMethodDescriptionprivate ItemStack
CelebrateVillagersSurvivedRaid.getFirework
(DyeColor p_22697_, int p_22698_) Modifier 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_) -
Uses of ItemStack in net.minecraft.world.entity.ai.goal
ModifierConstructorDescriptionUseItemGoal
(T p_25972_, ItemStack p_25973_, SoundEvent p_25974_, Predicate<? super T> p_25975_) -
Uses of ItemStack in net.minecraft.world.entity.ai.sensing
Modifier and TypeMethodDescriptionprivate boolean
TemptingSensor.isTemptation
(ItemStack p_148339_) -
Uses of ItemStack in net.minecraft.world.entity.animal
Modifier and TypeMethodDescriptionBucketable.getBucketItemStack()
Cod.getBucketItemStack()
Pufferfish.getBucketItemStack()
Salmon.getBucketItemStack()
TropicalFish.getBucketItemStack()
Modifier and TypeMethodDescriptionprivate boolean
boolean
Fox.canHoldItem
(ItemStack p_28578_) boolean
Dolphin.canTakeItem
(ItemStack p_28376_) boolean
Fox.canTakeItem
(ItemStack p_28552_) boolean
Panda.canTakeItem
(ItemStack p_29146_) private void
private void
Fox.dropItemStack
(ItemStack p_28606_) Fox.getEatingSound
(ItemStack p_28540_) MushroomCow.getEffectFromItemStack
(ItemStack p_28957_) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
private boolean
Panda.isFoodOrCake
(ItemStack p_29196_) boolean
MushroomCow.isShearable
(ItemStack item, Level world, BlockPos pos) boolean
Sheep.isShearable
(ItemStack item, Level world, BlockPos pos) boolean
SnowGolem.isShearable
(ItemStack item, Level world, BlockPos pos) private static boolean
Rabbit.isTemptingItem
(ItemStack p_149038_) static void
Bucketable.saveDefaultDataToBucketTag
(Mob p_148823_, ItemStack p_148824_) Deprecated.void
AbstractFish.saveToBucketTag
(ItemStack p_27494_) void
Bucketable.saveToBucketTag
(ItemStack p_148833_) void
TropicalFish.saveToBucketTag
(ItemStack p_30049_) private void
Fox.spitOutItem
(ItemStack p_28602_) protected void
Animal.usePlayerItem
(Player p_148715_, InteractionHand p_148716_, ItemStack p_148717_) protected void
Cat.usePlayerItem
(Player p_148866_, InteractionHand p_148867_, ItemStack p_148868_) protected void
Fox.usePlayerItem
(Player p_148908_, InteractionHand p_148909_, ItemStack p_148910_) -
Uses of ItemStack in net.minecraft.world.entity.animal.axolotl
Modifier 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.goat
-
Uses of ItemStack in net.minecraft.world.entity.animal.horse
Modifier and TypeMethodDescriptionprivate ItemStack
SkeletonTrapGoal.disenchant
(ItemStack p_30935_) Horse.getArmor()
Modifier and TypeMethodDescriptionprivate ItemStack
SkeletonTrapGoal.disenchant
(ItemStack p_30935_) private static DyeColor
Llama.getDyeColor
(ItemStack p_30836_) protected boolean
AbstractHorse.handleEating
(Player p_30593_, ItemStack p_30594_) protected boolean
Llama.handleEating
(Player p_30796_, ItemStack p_30797_) boolean
boolean
boolean
boolean
boolean
private void
private void
Horse.setArmorEquipment
(ItemStack p_30735_) Modifier and TypeMethodDescriptionprivate SlotAccess
AbstractHorse.createEquipmentSlotAccess
(int p_149503_, Predicate<ItemStack> p_149504_) -
Uses of ItemStack in net.minecraft.world.entity.boss.enderdragon
-
Uses of ItemStack in net.minecraft.world.entity.decoration
Modifier and TypeFieldDescriptionprivate final NonNullList<ItemStack>
ArmorStand.armorItems
private static final EntityDataAccessor<ItemStack>
ItemFrame.DATA_ITEM
private final NonNullList<ItemStack>
ArmorStand.handItems
Modifier and TypeMethodDescriptionprotected ItemStack
GlowItemFrame.getFrameItemStack()
protected ItemStack
ItemFrame.getFrameItemStack()
ItemFrame.getItem()
ArmorStand.getItemBySlot
(EquipmentSlot p_31612_) ArmorStand.getPickResult()
ItemFrame.getPickResult()
LeashFenceKnotEntity.getPickResult()
Painting.getPickResult()
Modifier and TypeMethodDescriptionboolean
ArmorStand.canTakeItem
(ItemStack p_31638_) private void
ItemFrame.removeFramedMap
(ItemStack p_31811_) void
void
void
ArmorStand.setItemSlot
(EquipmentSlot p_31584_, ItemStack p_31585_) HangingEntity.spawnAtLocation
(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
Modifier and TypeFieldDescriptionprivate static final EntityDataAccessor<ItemStack>
ItemEntity.DATA_ITEM
Modifier 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
ModifierConstructorDescriptionItemEntity
(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
Modifier 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()
Modifier and TypeMethodDescriptionboolean
Zombie.canHoldItem
(ItemStack p_34332_) protected boolean
Drowned.canReplaceCurrentItem
(ItemStack p_32364_, ItemStack p_32365_) protected AbstractArrow
protected AbstractArrow
protected AbstractArrow
Monster.getProjectile
(ItemStack p_33038_) boolean
void
AbstractSkeleton.setItemSlot
(EquipmentSlot p_32138_, ItemStack p_32139_) void
CrossbowAttackMob.shootCrossbowProjectile
(LivingEntity p_32328_, ItemStack p_32329_, Projectile p_32330_, float p_32331_) void
Pillager.shootCrossbowProjectile
(LivingEntity p_33275_, ItemStack p_33276_, Projectile p_33277_, float p_33278_) private boolean
boolean
Zombie.wantsToPickUp
(ItemStack p_182400_) boolean
ZombifiedPiglin.wantsToPickUp
(ItemStack p_182402_) -
Uses of ItemStack in net.minecraft.world.entity.monster.hoglin
-
Uses of ItemStack in net.minecraft.world.entity.monster.piglin
Modifier and TypeMethodDescriptionprotected ItemStack
Piglin.addToInventory
(ItemStack p_34779_) private ItemStack
Piglin.createSpawnWeapon()
private static ItemStack
PiglinAi.removeOneItemFromItemEntity
(ItemEntity p_34823_) Modifier 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_) protected void
Piglin.holdInMainHand
(ItemStack p_34784_) private static void
PiglinAi.holdInOffhand
(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_34760_, ItemStack p_34761_) private static void
PiglinAi.putInInventory
(Piglin p_34953_, ItemStack p_34954_) void
Piglin.shootCrossbowProjectile
(LivingEntity p_34707_, ItemStack p_34708_, Projectile p_34709_, float p_34710_) protected static boolean
PiglinAi.wantsToPickup
(Piglin p_34858_, ItemStack p_34859_) boolean
Piglin.wantsToPickUp
(ItemStack p_34777_) boolean
PiglinBrute.wantsToPickUp
(ItemStack p_35078_) Modifier 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
Modifier and TypeFieldDescriptionprivate final ItemStack
VillagerTrades.ItemsAndEmeraldsToItems.fromItem
private final ItemStack
VillagerTrades.EnchantedItemForEmeralds.itemStack
private final ItemStack
VillagerTrades.ItemsForEmeralds.itemStack
private final ItemStack
VillagerTrades.ItemsAndEmeraldsToItems.toItem
private final ItemStack
VillagerTrades.TippedArrowForItemsAndEmeralds.toItem
Modifier and TypeMethodDescriptionprotected SoundEvent
WanderingTrader.getDrinkingSound
(ItemStack p_35865_) void
AbstractVillager.notifyTradeUpdated
(ItemStack p_35316_) void
ClientSideMerchant.notifyTradeUpdated
(ItemStack p_35358_) boolean
Villager.wantsToPickUp
(ItemStack p_35543_) ModifierConstructorDescriptionItemsForEmeralds
(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_) -
Uses of ItemStack in net.minecraft.world.entity.player
Modifier and TypeFieldDescriptionfinal NonNullList<ItemStack>
Inventory.armor
private final List<NonNullList<ItemStack>>
Inventory.compartments
final NonNullList<ItemStack>
Inventory.items
final NonNullList<ItemStack>
Inventory.offhand
Modifier and TypeMethodDescriptionstatic ItemStack
StackedContents.fromStackingIndex
(int p_36455_) Inventory.getArmor
(int p_36053_) Inventory.getItem
(int p_35991_) Player.getItemBySlot
(EquipmentSlot p_36257_) Player.getProjectile
(ItemStack p_36349_) Inventory.getSelected()
Inventory.removeFromSelected
(boolean p_182404_) Inventory.removeItem
(int p_35993_, int p_35994_) Inventory.removeItemNoUpdate
(int p_36029_) Modifier and TypeMethodDescriptionvoid
StackedContents.accountSimpleStack
(ItemStack p_36467_) void
StackedContents.accountStack
(ItemStack p_36492_) void
StackedContents.accountStack
(ItemStack p_36469_, int p_36470_) boolean
boolean
boolean
private int
Inventory.addResource
(int p_36048_, ItemStack p_36049_) private int
Inventory.addResource
(ItemStack p_36067_) boolean
Player.canTakeItem
(ItemStack p_36315_) boolean
int
Inventory.findSlotMatchingItem
(ItemStack p_36031_) int
Inventory.findSlotMatchingUnusedItem
(ItemStack p_36044_) Player.getProjectile
(ItemStack p_36349_) int
Inventory.getSlotWithRemainingSpace
(ItemStack p_36051_) static int
StackedContents.getStackingIndex
(ItemStack p_36497_) private boolean
Inventory.hasRemainingSpaceForItem
(ItemStack p_36015_, ItemStack p_36016_) 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_) void
void
Player.setItemSlot
(EquipmentSlot p_36161_, ItemStack p_36162_) void
Inventory.setPickedItem
(ItemStack p_36013_) void
Player.updateTutorialInventoryAction
(ItemStack p_150098_, ItemStack p_150099_, ClickAction p_150100_) Modifier and TypeMethodDescriptionint
Inventory.clearOrCountMatchingItems
(Predicate<ItemStack> p_36023_, int p_36024_, Container p_36025_) -
Uses of ItemStack in net.minecraft.world.entity.projectile
Modifier 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
Modifier and TypeMethodDescriptionEyeOfEnder.getItem()
Fireball.getItem()
FireworkRocketEntity.getItem()
ItemSupplier.getItem()
ThrowableItemProjectile.getItem()
private ItemStack
EyeOfEnder.getItemRaw()
protected ItemStack
Fireball.getItemRaw()
protected ItemStack
ThrowableItemProjectile.getItemRaw()
protected abstract ItemStack
AbstractArrow.getPickupItem()
protected ItemStack
Arrow.getPickupItem()
protected ItemStack
SpectralArrow.getPickupItem()
protected ItemStack
ThrownTrident.getPickupItem()
Modifier and TypeMethodDescriptionstatic int
Arrow.getCustomColor
(ItemStack p_36885_) static AbstractArrow
ProjectileUtil.getMobArrow
(LivingEntity p_37301_, ItemStack p_37302_, float p_37303_) private void
ThrownPotion.makeAreaOfEffectCloud
(ItemStack p_37538_, Potion p_37539_) int
void
Arrow.setEffectsFromItem
(ItemStack p_36879_) void
void
void
ModifierConstructorDescriptionFireworkRocketEntity
(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_) ThrownTrident
(Level p_37569_, LivingEntity p_37570_, ItemStack p_37571_) -
Uses of ItemStack in net.minecraft.world.entity.raid
-
Uses of ItemStack in net.minecraft.world.entity.vehicle
Modifier and TypeFieldDescriptionprivate NonNullList<ItemStack>
AbstractMinecartContainer.itemStacks
Modifier and TypeMethodDescriptionAbstractMinecartContainer.getItem
(int p_38218_) AbstractMinecart.getPickResult()
Boat.getPickResult()
AbstractMinecartContainer.removeItem
(int p_38220_, int p_38221_) AbstractMinecartContainer.removeItemNoUpdate
(int p_38244_) -
Uses of ItemStack in net.minecraft.world.food
-
Uses of ItemStack in net.minecraft.world.inventory
Modifier and TypeFieldDescriptionprivate ItemStack
AbstractContainerMenu.carried
private ItemStack
StonecutterMenu.input
private ItemStack
AbstractContainerMenu.remoteCarried
Modifier and TypeFieldDescriptionprivate final NonNullList<ItemStack>
CraftingContainer.items
private final NonNullList<ItemStack>
MerchantContainer.itemStacks
private final NonNullList<ItemStack>
ResultContainer.itemStacks
private final NonNullList<ItemStack>
AbstractContainerMenu.lastSlots
private final NonNullList<ItemStack>
AbstractContainerMenu.remoteSlots
Modifier and TypeMethodDescriptionLecternMenu.getBook()
AbstractContainerMenu.getCarried()
CraftingContainer.getItem
(int p_39332_) MerchantContainer.getItem
(int p_40008_) ResultContainer.getItem
(int p_40147_) Slot.getItem()
private ItemStack
GrindstoneMenu.mergeEnchants
(ItemStack p_39591_, ItemStack p_39592_) 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_) 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_) 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_) ResultSlot.remove
(int p_40173_) Slot.remove
(int p_40227_) CraftingContainer.removeItem
(int p_39334_, int p_39335_) MerchantContainer.removeItem
(int p_40010_, int p_40011_) ResultContainer.removeItem
(int p_40149_, int p_40150_) CraftingContainer.removeItemNoUpdate
(int p_39344_) MerchantContainer.removeItemNoUpdate
(int p_40018_) ResultContainer.removeItemNoUpdate
(int p_40160_) private ItemStack
GrindstoneMenu.removeNonCurses
(ItemStack p_39580_, int p_39581_, int p_39582_) Slot.safeInsert
(ItemStack p_150660_) Slot.safeInsert
(ItemStack p_150657_, int p_150658_) Modifier and TypeMethodDescriptionstatic boolean
AbstractContainerMenu.canItemQuickReplace
(Slot p_38900_, ItemStack p_38901_, boolean p_38902_) 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 List<EnchantmentInstance>
EnchantmentMenu.getEnchantmentList
(ItemStack p_39472_, int p_39473_, int p_39474_) int
FurnaceFuelSlot.getMaxStackSize
(ItemStack p_39528_) int
Slot.getMaxStackSize
(ItemStack p_40238_) static void
AbstractContainerMenu.getQuickCraftSlotCount
(Set<Slot> p_38923_, int p_38924_, ItemStack p_38925_, int p_38926_) 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
static boolean
BrewingStandMenu.FuelSlot.mayPlaceItem
(ItemStack p_39113_) static boolean
BrewingStandMenu.PotionSlot.mayPlaceItem
(ItemStack p_39134_) private ItemStack
GrindstoneMenu.mergeEnchants
(ItemStack p_39591_, ItemStack p_39592_) private void
MerchantMenu.moveFromInventoryToPaymentSlot
(int p_40061_, ItemStack p_40062_) 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_) 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
protected void
private ItemStack
GrindstoneMenu.removeNonCurses
(ItemStack p_39580_, int p_39581_, int p_39582_) 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_, NonNullList<ItemStack> p_150536_, ItemStack p_150537_, int[] p_150538_) void
ContainerSynchronizer.sendSlotChange
(AbstractContainerMenu p_150530_, int p_150531_, ItemStack p_150532_) void
void
AbstractContainerMenu.setCarried
(ItemStack p_150439_) void
void
void
void
void
AbstractContainerMenu.setRemoteCarried
(ItemStack p_150423_) void
AbstractContainerMenu.setRemoteSlot
(int p_150405_, ItemStack p_150406_) void
AbstractContainerMenu.setRemoteSlotNoCopy
(int p_182415_, ItemStack p_182416_) private void
StonecutterMenu.setupRecipeList
(Container p_40304_, ItemStack p_40305_) private void
CartographyTableMenu.setupResultSlot
(ItemStack p_39163_, ItemStack p_39164_, ItemStack p_39165_) protected boolean
ItemCombinerMenu.shouldQuickMoveToAdditionalSlot
(ItemStack p_39787_) protected boolean
SmithingMenu.shouldQuickMoveToAdditionalSlot
(ItemStack p_40255_) void
ContainerListener.slotChanged
(AbstractContainerMenu p_39315_, int p_39316_, ItemStack p_39317_) 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_) Modifier and TypeMethodDescriptionvoid
AbstractContainerMenu.initializeContents
(int p_182411_, List<ItemStack> p_182412_, ItemStack p_182413_) void
ContainerSynchronizer.sendInitialData
(AbstractContainerMenu p_150535_, NonNullList<ItemStack> p_150536_, 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_) -
Uses of ItemStack in net.minecraft.world.inventory.tooltip
-
Uses of ItemStack in net.minecraft.world.item
Modifier and TypeFieldDescriptionstatic final ItemStack
ItemStack.EMPTY
private ItemStack
CreativeModeTab.iconItemStack
Modifier and TypeFieldDescriptionProjectileWeaponItem.ARROW_ONLY
ProjectileWeaponItem.ARROW_OR_FIREWORK
static final com.mojang.serialization.Codec<ItemStack>
ItemStack.CODEC
Modifier and TypeMethodDescriptionItemStack.copy()
static ItemStack
MapItem.create
(Level p_42887_, 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_) static ItemStack
EnchantedBookItem.createForEnchantment
(EnchantmentInstance p_41162_) static ItemStack
BowlFoodItem.finishUsingItem
(ItemStack p_40684_, Level p_40685_, LivingEntity p_40686_) ChorusFruitItem.finishUsingItem
(ItemStack p_40712_, Level p_40713_, LivingEntity p_40714_) HoneyBottleItem.finishUsingItem
(ItemStack p_41348_, Level p_41349_, LivingEntity p_41350_) Item.finishUsingItem
(ItemStack p_41409_, Level p_41410_, LivingEntity p_41411_) ItemStack.finishUsingItem
(Level p_41672_, LivingEntity p_41673_) MilkBucketItem.finishUsingItem
(ItemStack p_42923_, Level p_42924_, LivingEntity p_42925_) PotionItem.finishUsingItem
(ItemStack p_42984_, Level p_42985_, LivingEntity p_42986_) SpyglassItem.finishUsingItem
(ItemStack p_151209_, Level p_151210_, LivingEntity p_151211_) SuspiciousStewItem.finishUsingItem
(ItemStack p_43263_, Level p_43264_, LivingEntity p_43265_) FireworkRocketItem.getDefaultInstance()
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()
abstract ItemStack
CreativeModeTab.makeIcon()
static ItemStack
ItemStack.of
(CompoundTag p_41713_) ItemStack.setHoverName
(Component p_41715_) ItemStack.split
(int p_41621_) protected ItemStack
BottleItem.turnBottleIntoItem
(ItemStack p_40652_, Player p_40653_, ItemStack p_40654_) Modifier and TypeMethodDescriptionBowItem.getAllSupportedProjectiles()
CrossbowItem.getAllSupportedProjectiles()
ProjectileWeaponItem.getAllSupportedProjectiles()
CrossbowItem.getChargedProjectiles
(ItemStack p_40942_) BundleItem.getContents
(ItemStack p_150783_) CrossbowItem.getSupportedHeldProjectiles()
ProjectileWeaponItem.getSupportedHeldProjectiles()
static InteractionResultHolder<ItemStack>
ItemUtils.startUsingInstantly
(Level p_150960_, Player p_150961_, InteractionHand p_150962_) ArmorItem.use
(Level p_40395_, Player p_40396_, InteractionHand p_40397_) BoatItem.use
(Level p_40622_, Player p_40623_, InteractionHand p_40624_) BottleItem.use
(Level p_40656_, Player p_40657_, InteractionHand p_40658_) BowItem.use
(Level p_40672_, Player p_40673_, InteractionHand p_40674_) BucketItem.use
(Level p_40703_, Player p_40704_, InteractionHand p_40705_) BundleItem.use
(Level p_150760_, Player p_150761_, InteractionHand p_150762_) CrossbowItem.use
(Level p_40920_, Player p_40921_, InteractionHand p_40922_) EggItem.use
(Level p_41128_, Player p_41129_, InteractionHand p_41130_) ElytraItem.use
(Level p_41137_, Player p_41138_, InteractionHand p_41139_) EmptyMapItem.use
(Level p_41145_, Player p_41146_, InteractionHand p_41147_) EnderEyeItem.use
(Level p_41184_, Player p_41185_, InteractionHand p_41186_) EnderpearlItem.use
(Level p_41190_, Player p_41191_, InteractionHand p_41192_) ExperienceBottleItem.use
(Level p_41196_, Player p_41197_, InteractionHand p_41198_) FireworkRocketItem.use
(Level p_41218_, Player p_41219_, InteractionHand p_41220_) FishingRodItem.use
(Level p_41290_, Player p_41291_, InteractionHand p_41292_) FoodOnAStickItem.use
(Level p_41314_, Player p_41315_, InteractionHand p_41316_) HoneyBottleItem.use
(Level p_41352_, Player p_41353_, InteractionHand p_41354_) Item.use
(Level p_41432_, Player p_41433_, InteractionHand p_41434_) ItemStack.use
(Level p_41683_, Player p_41684_, InteractionHand p_41685_) KnowledgeBookItem.use
(Level p_42824_, Player p_42825_, InteractionHand p_42826_) LingeringPotionItem.use
(Level p_42843_, Player p_42844_, InteractionHand p_42845_) MilkBucketItem.use
(Level p_42927_, Player p_42928_, InteractionHand p_42929_) PotionItem.use
(Level p_42993_, Player p_42994_, InteractionHand p_42995_) ShieldItem.use
(Level p_43099_, Player p_43100_, InteractionHand p_43101_) SnowballItem.use
(Level p_43142_, Player p_43143_, InteractionHand p_43144_) SpawnEggItem.use
(Level p_43225_, Player p_43226_, InteractionHand p_43227_) SplashPotionItem.use
(Level p_43243_, Player p_43244_, InteractionHand p_43245_) SpyglassItem.use
(Level p_151218_, Player p_151219_, InteractionHand p_151220_) ThrowablePotionItem.use
(Level p_43303_, Player p_43304_, InteractionHand p_43305_) TridentItem.use
(Level p_43405_, Player p_43406_, InteractionHand p_43407_) WaterLilyBlockItem.use
(Level p_43441_, Player p_43442_, InteractionHand p_43443_) WritableBookItem.use
(Level p_43449_, Player p_43450_, InteractionHand p_43451_) WrittenBookItem.use
(Level p_43468_, Player p_43469_, InteractionHand p_43470_) Modifier and TypeMethodDescriptionprivate static int
private static void
CrossbowItem.addChargedProjectile
(ItemStack p_40929_, ItemStack p_40930_) static void
EnchantedBookItem.addEnchantment
(ItemStack p_41154_, EnchantmentInstance p_41155_) void
AirItem.appendHoverText
(ItemStack p_40372_, Level p_40373_, List<Component> p_40374_, TooltipFlag p_40375_) void
BannerItem.appendHoverText
(ItemStack p_40538_, Level p_40539_, List<Component> p_40540_, TooltipFlag p_40541_) void
BannerPatternItem.appendHoverText
(ItemStack p_40551_, Level p_40552_, List<Component> p_40553_, TooltipFlag p_40554_) void
BlockItem.appendHoverText
(ItemStack p_40572_, Level p_40573_, List<Component> p_40574_, TooltipFlag p_40575_) void
BundleItem.appendHoverText
(ItemStack p_150749_, Level p_150750_, List<Component> p_150751_, TooltipFlag p_150752_) void
CrossbowItem.appendHoverText
(ItemStack p_40880_, Level p_40881_, List<Component> p_40882_, TooltipFlag p_40883_) void
EnchantedBookItem.appendHoverText
(ItemStack p_41157_, Level p_41158_, List<Component> p_41159_, TooltipFlag p_41160_) void
FireworkRocketItem.appendHoverText
(ItemStack p_41211_, Level p_41212_, List<Component> p_41213_, TooltipFlag p_41214_) void
FireworkStarItem.appendHoverText
(ItemStack p_41252_, Level p_41253_, List<Component> p_41254_, TooltipFlag p_41255_) void
Item.appendHoverText
(ItemStack p_41421_, Level p_41422_, List<Component> p_41423_, TooltipFlag p_41424_) void
LingeringPotionItem.appendHoverText
(ItemStack p_42838_, Level p_42839_, List<Component> p_42840_, TooltipFlag p_42841_) void
MapItem.appendHoverText
(ItemStack p_42880_, Level p_42881_, List<Component> p_42882_, TooltipFlag p_42883_) void
MobBucketItem.appendHoverText
(ItemStack p_151155_, Level p_151156_, List<Component> p_151157_, TooltipFlag p_151158_) void
PotionItem.appendHoverText
(ItemStack p_42988_, Level p_42989_, List<Component> p_42990_, TooltipFlag p_42991_) void
RecordItem.appendHoverText
(ItemStack p_43043_, Level p_43044_, List<Component> p_43045_, TooltipFlag p_43046_) void
ShieldItem.appendHoverText
(ItemStack p_43094_, Level p_43095_, List<Component> p_43096_, TooltipFlag p_43097_) void
TippedArrowItem.appendHoverText
(ItemStack p_43359_, Level p_43360_, List<Component> p_43361_, TooltipFlag p_43362_) void
WrittenBookItem.appendHoverText
(ItemStack p_43457_, Level p_43458_, List<Component> p_43459_, TooltipFlag p_43460_) static void
BannerItem.appendHoverTextFromBannerBlockEntityTag
(ItemStack p_40543_, List<Component> p_40544_) static boolean
BoneMealItem.applyBonemeal
(ItemStack p_40628_, Level p_40629_, BlockPos p_40630_, Player player) boolean
ElytraItem.canElytraFly
(ItemStack stack, LivingEntity entity) boolean
AxeItem.canPerformAction
(ItemStack stack, ToolAction toolAction) boolean
HoeItem.canPerformAction
(ItemStack stack, ToolAction toolAction) boolean
PickaxeItem.canPerformAction
(ItemStack stack, ToolAction toolAction) boolean
ShearsItem.canPerformAction
(ItemStack stack, ToolAction toolAction) boolean
ShieldItem.canPerformAction
(ItemStack stack, ToolAction toolAction) boolean
ShovelItem.canPerformAction
(ItemStack stack, ToolAction toolAction) boolean
SwordItem.canPerformAction
(ItemStack stack, ToolAction toolAction) void
BucketItem.checkExtraContent
(Player p_150711_, Level p_150712_, ItemStack p_150713_, BlockPos p_150714_) default void
DispensibleContainerItem.checkExtraContent
(Player p_150817_, Level p_150818_, ItemStack p_150819_, BlockPos p_150820_) void
MobBucketItem.checkExtraContent
(Player p_151146_, Level p_151147_, ItemStack p_151148_, BlockPos p_151149_) private static void
CrossbowItem.clearChargedProjectiles
(ItemStack p_40944_) default void
DyeableLeatherItem.clearColor
(ItemStack p_41124_) static boolean
CrossbowItem.containsChargedProjectile
(ItemStack p_40872_, Item p_40873_) private static void
MapItem.createAndStoreSavedData
(ItemStack p_151112_, Level p_151113_, int p_151114_, int p_151115_, int p_151116_, boolean p_151117_, boolean p_151118_, ResourceKey<Level> p_151119_) ArrowItem.createArrow
(Level p_40513_, ItemStack p_40514_, LivingEntity p_40515_) SpectralArrowItem.createArrow
(Level p_43237_, ItemStack p_43238_, LivingEntity p_43239_) 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_) static boolean
ArmorItem.dispenseArmor
(BlockSource p_40399_, ItemStack p_40400_) private static boolean
BundleItem.dropContents
(ItemStack p_150730_, Player p_150731_) static ItemStack
boolean
ElytraItem.elytraFlightTick
(ItemStack stack, LivingEntity entity, int flightTicks) boolean
BucketItem.emptyContents
(Player p_150716_, Level p_150717_, BlockPos p_150718_, BlockHitResult p_150719_, ItemStack container) BowlFoodItem.finishUsingItem
(ItemStack p_40684_, Level p_40685_, LivingEntity p_40686_) ChorusFruitItem.finishUsingItem
(ItemStack p_40712_, Level p_40713_, LivingEntity p_40714_) HoneyBottleItem.finishUsingItem
(ItemStack p_41348_, Level p_41349_, LivingEntity p_41350_) Item.finishUsingItem
(ItemStack p_41409_, Level p_41410_, LivingEntity p_41411_) MilkBucketItem.finishUsingItem
(ItemStack p_42923_, Level p_42924_, LivingEntity p_42925_) PotionItem.finishUsingItem
(ItemStack p_42984_, Level p_42985_, LivingEntity p_42986_) SpyglassItem.finishUsingItem
(ItemStack p_151209_, Level p_151210_, LivingEntity p_151211_) SuspiciousStewItem.finishUsingItem
(ItemStack p_43263_, Level p_43264_, LivingEntity p_43265_) private static AbstractArrow
CrossbowItem.getArrow
(Level p_40915_, LivingEntity p_40916_, ItemStack p_40917_, ItemStack p_40918_) int
BundleItem.getBarColor
(ItemStack p_150773_) int
Item.getBarColor
(ItemStack p_150901_) int
BundleItem.getBarWidth
(ItemStack p_150771_) int
Item.getBarWidth
(ItemStack p_150900_) static CompoundTag
BlockItem.getBlockEntityData
(ItemStack p_186337_) CrossbowItem.getChargedProjectiles
(ItemStack p_40942_) static int
CrossbowItem.getChargeDuration
(ItemStack p_40940_) default int
static DyeColor
static int
static DyeColor
BundleItem.getContents
(ItemStack p_150783_) private static int
BundleItem.getContentWeight
(ItemStack p_150779_) protected MapItemSavedData
MapItem.getCustomMapData
(ItemStack p_42910_, Level p_42911_) CompassItem.getDescriptionId
(ItemStack p_40741_) Item.getDescriptionId
(ItemStack p_41455_) PotionItem.getDescriptionId
(ItemStack p_43003_) ShieldItem.getDescriptionId
(ItemStack p_43109_) TippedArrowItem.getDescriptionId
(ItemStack p_43364_) float
DiggerItem.getDestroySpeed
(ItemStack p_41004_, BlockState p_41005_) float
Item.getDestroySpeed
(ItemStack p_41425_, BlockState p_41426_) float
ShearsItem.getDestroySpeed
(ItemStack p_43084_, BlockState p_43085_) float
SwordItem.getDestroySpeed
(ItemStack p_43288_, BlockState p_43289_) static ItemStack
BucketItem.getEmptySuccessItem
(ItemStack p_40700_, Player p_40701_) static ListTag
EnchantedBookItem.getEnchantments
(ItemStack p_41164_) static float
BundleItem.getFullnessDisplay
(ItemStack p_150767_) static int
WrittenBookItem.getGeneration
(ItemStack p_43474_) static Integer
private static Optional<CompoundTag>
BundleItem.getMatchingItem
(ItemStack p_150757_, ListTag p_150758_) static int
WrittenBookItem.getPageCount
(ItemStack p_43478_) private static float
CrossbowItem.getPowerForTime
(int p_40854_, ItemStack p_40855_) static MapItemSavedData
MapItem.getSavedData
(ItemStack p_42854_, Level p_42855_) private static float
CrossbowItem.getShootingPower
(ItemStack p_40946_) BundleItem.getTooltipImage
(ItemStack p_150775_) Item.getTooltipImage
(ItemStack p_150902_) Packet<?>
ComplexItem.getUpdatePacket
(ItemStack p_40744_, Level p_40745_, Player p_40746_) Packet<?>
MapItem.getUpdatePacket
(ItemStack p_42876_, Level p_42877_, Player p_42878_) BowItem.getUseAnimation
(ItemStack p_40678_) CrossbowItem.getUseAnimation
(ItemStack p_40935_) HoneyBottleItem.getUseAnimation
(ItemStack p_41358_) Item.getUseAnimation
(ItemStack p_41452_) MilkBucketItem.getUseAnimation
(ItemStack p_42931_) PotionItem.getUseAnimation
(ItemStack p_42997_) ShieldItem.getUseAnimation
(ItemStack p_43105_) SpyglassItem.getUseAnimation
(ItemStack p_151224_) TridentItem.getUseAnimation
(ItemStack p_43417_) int
BowItem.getUseDuration
(ItemStack p_40680_) int
CrossbowItem.getUseDuration
(ItemStack p_40938_) int
HoneyBottleItem.getUseDuration
(ItemStack p_41360_) int
Item.getUseDuration
(ItemStack p_41454_) int
MilkBucketItem.getUseDuration
(ItemStack p_42933_) int
PotionItem.getUseDuration
(ItemStack p_43001_) int
ShieldItem.getUseDuration
(ItemStack p_43107_) int
SpyglassItem.getUseDuration
(ItemStack p_151222_) int
TridentItem.getUseDuration
(ItemStack p_43419_) private static int
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_) default boolean
DyeableLeatherItem.hasCustomColor
(ItemStack p_41114_) boolean
DiggerItem.hurtEnemy
(ItemStack p_40994_, LivingEntity p_40995_, LivingEntity p_40996_) boolean
Item.hurtEnemy
(ItemStack p_41395_, LivingEntity p_41396_, LivingEntity p_41397_) boolean
SwordItem.hurtEnemy
(ItemStack p_43278_, LivingEntity p_43279_, LivingEntity p_43280_) boolean
TridentItem.hurtEnemy
(ItemStack p_43390_, LivingEntity p_43391_, LivingEntity p_43392_) BucketItem.initCapabilities
(ItemStack stack, CompoundTag nbt) MilkBucketItem.initCapabilities
(ItemStack stack, CompoundTag nbt) 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_) SaddleItem.interactLivingEntity
(ItemStack p_43055_, Player p_43056_, LivingEntity p_43057_, InteractionHand p_43058_) ShearsItem.interactLivingEntity
(ItemStack stack, Player playerIn, LivingEntity entity, InteractionHand hand) void
CompassItem.inventoryTick
(ItemStack p_40720_, Level p_40721_, Entity p_40722_, int p_40723_, boolean p_40724_) void
Item.inventoryTick
(ItemStack p_41404_, Level p_41405_, Entity p_41406_, int p_41407_, boolean p_41408_) void
MapItem.inventoryTick
(ItemStack p_42870_, Level p_42871_, Entity p_42872_, int p_42873_, boolean p_42874_) boolean
BundleItem.isBarVisible
(ItemStack p_150769_) boolean
Item.isBarVisible
(ItemStack p_150899_) static boolean
boolean
DiggerItem.isCorrectToolForDrops
(ItemStack stack, BlockState state) boolean
BookItem.isEnchantable
(ItemStack p_40646_) boolean
EnchantedBookItem.isEnchantable
(ItemStack p_41168_) boolean
Item.isEnchantable
(ItemStack p_41456_) static boolean
ElytraItem.isFlyEnabled
(ItemStack p_41141_) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
ArrowItem.isInfinite
(ItemStack stack, ItemStack bow, Player player) static boolean
CompassItem.isLodestoneCompass
(ItemStack p_40737_) boolean
Item.isRepairable
(ItemStack stack) static boolean
static boolean
ItemStack.isSameIgnoreDurability
(ItemStack p_41759_, ItemStack p_41760_) static boolean
ItemStack.isSameItemSameTags
(ItemStack p_150943_, ItemStack p_150944_) boolean
ArmorItem.isValidRepairItem
(ItemStack p_40392_, ItemStack p_40393_) boolean
ElytraItem.isValidRepairItem
(ItemStack p_41134_, ItemStack p_41135_) boolean
Item.isValidRepairItem
(ItemStack p_41402_, ItemStack p_41403_) boolean
ShieldItem.isValidRepairItem
(ItemStack p_43091_, ItemStack p_43092_) boolean
TieredItem.isValidRepairItem
(ItemStack p_43311_, ItemStack p_43312_) private static boolean
CrossbowItem.loadProjectile
(LivingEntity p_40863_, ItemStack p_40864_, ItemStack p_40865_, boolean p_40866_, boolean p_40867_) static void
private boolean
static boolean
protected boolean
HangingEntityItem.mayPlace
(Player p_41326_, Direction p_41327_, ItemStack p_41328_, BlockPos p_41329_) protected boolean
boolean
DiggerItem.mineBlock
(ItemStack p_40998_, Level p_40999_, BlockState p_41000_, BlockPos p_41001_, LivingEntity p_41002_) boolean
Item.mineBlock
(ItemStack p_41416_, Level p_41417_, BlockState p_41418_, BlockPos p_41419_, LivingEntity p_41420_) boolean
ShearsItem.mineBlock
(ItemStack p_43078_, Level p_43079_, BlockState p_43080_, BlockPos p_43081_, LivingEntity p_43082_) boolean
SwordItem.mineBlock
(ItemStack p_43282_, Level p_43283_, BlockState p_43284_, BlockPos p_43285_, LivingEntity p_43286_) boolean
TridentItem.mineBlock
(ItemStack p_43399_, Level p_43400_, BlockState p_43401_, BlockPos p_43402_, LivingEntity p_43403_) void
Item.onCraftedBy
(ItemStack p_41447_, Level p_41448_, Player p_41449_) void
MapItem.onCraftedBy
(ItemStack p_42913_, Level p_42914_, Player p_42915_) private static void
CrossbowItem.onCrossbowShot
(Level p_40906_, LivingEntity p_40907_, ItemStack p_40908_) 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_) Deprecated.Forge: Use damage source sensitive versionboolean
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_) static void
CrossbowItem.performShooting
(Level p_40888_, LivingEntity p_40889_, InteractionHand p_40890_, ItemStack p_40891_, float p_40892_, float p_40893_) void
BowItem.releaseUsing
(ItemStack p_40667_, Level p_40668_, LivingEntity p_40669_, int p_40670_) void
CrossbowItem.releaseUsing
(ItemStack p_40875_, Level p_40876_, LivingEntity p_40877_, int p_40878_) void
Item.releaseUsing
(ItemStack p_41412_, Level p_41413_, LivingEntity p_41414_, int p_41415_) void
SpyglassItem.releaseUsing
(ItemStack p_151213_, Level p_151214_, LivingEntity p_151215_, int p_151216_) void
TridentItem.releaseUsing
(ItemStack p_43394_, Level p_43395_, LivingEntity p_43396_, int p_43397_) static void
MapItem.renderBiomePreviewMap
(ServerLevel p_42851_, ItemStack p_42852_) static boolean
WrittenBookItem.resolveBookComponents
(ItemStack p_43462_, CommandSourceStack p_43463_, Player p_43464_) boolean
boolean
ItemStack.sameItemStackIgnoreDurability
(ItemStack p_41727_) static void
SuspiciousStewItem.saveMobEffect
(ItemStack p_43259_, MobEffect p_43260_, int p_43261_) private static void
static void
BlockItem.setBlockEntityData
(ItemStack p_186339_, BlockEntityType<?> p_186340_, CompoundTag p_186341_) static void
CrossbowItem.setCharged
(ItemStack p_40885_, boolean p_40886_) default void
private static void
CrossbowItem.shootProjectile
(Level p_40895_, LivingEntity p_40896_, InteractionHand p_40897_, ItemStack p_40898_, ItemStack p_40899_, float p_40900_, boolean p_40901_, float p_40902_, float p_40903_, float p_40904_) 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_) private static void
MapItem.storeMapData
(ItemStack p_151109_, int p_151110_) static boolean
ItemStack.tagMatches
(ItemStack p_41659_, ItemStack p_41660_) boolean
AdventureModeCheck.test
(ItemStack p_204086_, Registry<Block> p_204087_, BlockInWorld p_204088_) 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 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_) boolean
CrossbowItem.useOnRelease
(ItemStack p_150801_) boolean
Item.useOnRelease
(ItemStack p_41464_) Modifier and TypeMethodDescriptionvoid
BlockItem.fillItemCategory
(CreativeModeTab p_40569_, NonNullList<ItemStack> p_40570_) void
EnchantedBookItem.fillItemCategory
(CreativeModeTab p_41151_, NonNullList<ItemStack> p_41152_) void
Item.fillItemCategory
(CreativeModeTab p_41391_, NonNullList<ItemStack> p_41392_) void
PotionItem.fillItemCategory
(CreativeModeTab p_42981_, NonNullList<ItemStack> p_42982_) void
TippedArrowItem.fillItemCategory
(CreativeModeTab p_43356_, NonNullList<ItemStack> p_43357_) void
CreativeModeTab.fillItemList
(NonNullList<ItemStack> p_40778_) static ItemStack
ProjectileWeaponItem.getHeldProjectile
(LivingEntity p_43011_, Predicate<ItemStack> p_43012_) static void
ItemUtils.onContainerDestroyed
(ItemEntity p_150953_, Stream<ItemStack> p_150954_) -
Uses of ItemStack in net.minecraft.world.item.alchemy
Modifier and TypeMethodDescriptionstatic ItemStack
static ItemStack
PotionUtils.setCustomEffects
(ItemStack p_43553_, Collection<MobEffectInstance> p_43554_) static ItemStack
Modifier and TypeMethodDescriptionstatic void
PotionUtils.addPotionTooltip
(ItemStack p_43556_, List<Component> p_43557_, float p_43558_) static int
static List<MobEffectInstance>
PotionUtils.getCustomEffects
(ItemStack p_43572_) static List<MobEffectInstance>
PotionUtils.getMobEffects
(ItemStack p_43548_) static Potion
protected static boolean
PotionBrewing.hasContainerMix
(ItemStack p_43520_, ItemStack p_43521_) static boolean
protected static boolean
PotionBrewing.hasPotionMix
(ItemStack p_43525_, ItemStack p_43526_) protected static boolean
PotionBrewing.isContainerIngredient
(ItemStack p_43518_) static boolean
PotionBrewing.isIngredient
(ItemStack p_43507_) protected static boolean
PotionBrewing.isPotionIngredient
(ItemStack p_43523_) static ItemStack
static ItemStack
PotionUtils.setCustomEffects
(ItemStack p_43553_, Collection<MobEffectInstance> p_43554_) static ItemStack
-
Uses of ItemStack in net.minecraft.world.item.context
ModifierConstructorDescriptionBlockPlaceContext
(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
Modifier and TypeFieldDescriptionprivate final ItemStack
Ingredient.ItemValue.item
private ItemStack[]
Ingredient.itemStacks
protected final ItemStack
AbstractCookingRecipe.result
(package private) final ItemStack
ShapedRecipe.result
(package private) final ItemStack
ShapelessRecipe.result
protected final ItemStack
SingleItemRecipe.result
(package private) final ItemStack
UpgradeRecipe.result
Modifier and TypeMethodDescriptionArmorDyeRecipe.assemble
(CraftingContainer p_43767_) BannerDuplicateRecipe.assemble
(CraftingContainer p_43783_) BookCloningRecipe.assemble
(CraftingContainer p_43812_) FireworkRocketRecipe.assemble
(CraftingContainer p_43852_) FireworkStarFadeRecipe.assemble
(CraftingContainer p_43871_) FireworkStarRecipe.assemble
(CraftingContainer p_43893_) MapCloningRecipe.assemble
(CraftingContainer p_43978_) MapExtendingRecipe.assemble
(CraftingContainer p_43991_) RepairItemRecipe.assemble
(CraftingContainer p_44136_) ShapedRecipe.assemble
(CraftingContainer p_44169_) ShapelessRecipe.assemble
(CraftingContainer p_44260_) ShieldDecorationRecipe.assemble
(CraftingContainer p_44306_) ShulkerBoxColoring.assemble
(CraftingContainer p_44322_) SuspiciousStewRecipe.assemble
(CraftingContainer p_44497_) TippedArrowRecipe.assemble
(CraftingContainer p_44513_) Ingredient.getItems()
AbstractCookingRecipe.getResultItem()
CustomRecipe.getResultItem()
FireworkRocketRecipe.getResultItem()
FireworkStarRecipe.getResultItem()
Recipe.getResultItem()
ShapedRecipe.getResultItem()
ShapelessRecipe.getResultItem()
SingleItemRecipe.getResultItem()
UpgradeRecipe.getResultItem()
BlastingRecipe.getToastSymbol()
CampfireCookingRecipe.getToastSymbol()
default ItemStack
Recipe.getToastSymbol()
SmeltingRecipe.getToastSymbol()
SmokingRecipe.getToastSymbol()
StonecutterRecipe.getToastSymbol()
UpgradeRecipe.getToastSymbol()
static ItemStack
ShapedRecipe.itemStackFromJson
(com.google.gson.JsonObject p_151275_) Modifier and TypeMethodDescriptionIngredient.ItemValue.getItems()
Ingredient.TagValue.getItems()
Ingredient.Value.getItems()
BannerDuplicateRecipe.getRemainingItems
(CraftingContainer p_43791_) BookCloningRecipe.getRemainingItems
(CraftingContainer p_43820_) default NonNullList<ItemStack>
Recipe.getRemainingItems
(C p_44004_) <C extends Container,
T extends Recipe<C>>
NonNullList<ItemStack>RecipeManager.getRemainingItemsFor
(RecipeType<T> p_44070_, C p_44071_, Level p_44072_) Modifier and TypeMethodDescriptionSimpleCookingSerializer.CookieBaker.create
(ResourceLocation p_44353_, String p_44354_, Ingredient p_44355_, ItemStack p_44356_, float p_44357_, int p_44358_) SingleItemRecipe.Serializer.SingleItemMaker.create
(ResourceLocation p_44455_, String p_44456_, Ingredient p_44457_, ItemStack p_44458_) boolean
UpgradeRecipe.isAdditionIngredient
(ItemStack p_44536_) static Ingredient
boolean
ModifierConstructorDescriptionAbstractCookingRecipe
(RecipeType<?> p_43734_, ResourceLocation p_43735_, String p_43736_, Ingredient p_43737_, ItemStack p_43738_, float p_43739_, int p_43740_) BlastingRecipe
(ResourceLocation p_43793_, String p_43794_, Ingredient p_43795_, ItemStack p_43796_, float p_43797_, int p_43798_) CampfireCookingRecipe
(ResourceLocation p_43822_, String p_43823_, Ingredient p_43824_, ItemStack p_43825_, float p_43826_, int p_43827_) ShapedRecipe
(ResourceLocation p_44153_, String p_44154_, int p_44155_, int p_44156_, NonNullList<Ingredient> p_44157_, ItemStack p_44158_) ShapelessRecipe
(ResourceLocation p_44246_, String p_44247_, ItemStack p_44248_, NonNullList<Ingredient> p_44249_) SingleItemRecipe
(RecipeType<?> p_44416_, RecipeSerializer<?> p_44417_, ResourceLocation p_44418_, String p_44419_, Ingredient p_44420_, ItemStack p_44421_) SmeltingRecipe
(ResourceLocation p_44460_, String p_44461_, Ingredient p_44462_, ItemStack p_44463_, float p_44464_, int p_44465_) SmokingRecipe
(ResourceLocation p_44469_, String p_44470_, Ingredient p_44471_, ItemStack p_44472_, float p_44473_, int p_44474_) StonecutterRecipe
(ResourceLocation p_44478_, String p_44479_, Ingredient p_44480_, ItemStack p_44481_) UpgradeRecipe
(ResourceLocation p_44523_, Ingredient p_44524_, Ingredient p_44525_, ItemStack p_44526_) -
Uses of ItemStack in net.minecraft.world.item.enchantment
Modifier and TypeMethodDescriptionstatic ItemStack
EnchantmentHelper.enchantItem
(Random p_44878_, ItemStack p_44879_, int p_44880_, boolean p_44881_) Modifier and TypeMethodDescriptionstatic Map.Entry<EquipmentSlot,
ItemStack> EnchantmentHelper.getRandomItemWith
(Enchantment p_44907_, LivingEntity p_44908_) static Map.Entry<EquipmentSlot,
ItemStack> EnchantmentHelper.getRandomItemWith
(Enchantment p_44840_, LivingEntity p_44841_, Predicate<ItemStack> p_44842_) Enchantment.getSlotItems
(LivingEntity p_44685_) Modifier and TypeMethodDescriptionboolean
Enchantment.canApplyAtEnchantingTable
(ItemStack stack) This applies specifically to applying at the enchanting table.boolean
DamageEnchantment.canEnchant
(ItemStack p_44642_) boolean
DigDurabilityEnchantment.canEnchant
(ItemStack p_44654_) boolean
DiggingEnchantment.canEnchant
(ItemStack p_44668_) boolean
Enchantment.canEnchant
(ItemStack p_44689_) boolean
ThornsEnchantment.canEnchant
(ItemStack p_45205_) static ItemStack
EnchantmentHelper.enchantItem
(Random p_44878_, ItemStack p_44879_, int p_44880_, boolean p_44881_) static List<EnchantmentInstance>
EnchantmentHelper.getAvailableEnchantmentResults
(int p_44818_, ItemStack p_44819_, boolean p_44820_) static float
EnchantmentHelper.getDamageBonus
(ItemStack p_44834_, MobType p_44835_) static int
EnchantmentHelper.getEnchantmentCost
(Random p_44873_, int p_44874_, int p_44875_, ItemStack p_44876_) static Map<Enchantment,
Integer> EnchantmentHelper.getEnchantments
(ItemStack p_44832_) static int
EnchantmentHelper.getFishingLuckBonus
(ItemStack p_44905_) static int
EnchantmentHelper.getFishingSpeedBonus
(ItemStack p_44917_) static int
EnchantmentHelper.getItemEnchantmentLevel
(Enchantment p_44844_, ItemStack p_44845_) static int
EnchantmentHelper.getLoyalty
(ItemStack p_44929_) static int
EnchantmentHelper.getRiptide
(ItemStack p_44933_) static boolean
EnchantmentHelper.hasBindingCurse
(ItemStack p_44921_) static boolean
EnchantmentHelper.hasChanneling
(ItemStack p_44937_) static boolean
EnchantmentHelper.hasVanishingCurse
(ItemStack p_44925_) private static void
EnchantmentHelper.runIterationOnItem
(EnchantmentHelper.EnchantmentVisitor p_44851_, ItemStack p_44852_) static List<EnchantmentInstance>
EnchantmentHelper.selectEnchantment
(Random p_44910_, ItemStack p_44911_, int p_44912_, boolean p_44913_) static void
EnchantmentHelper.setEnchantments
(Map<Enchantment, Integer> p_44866_, ItemStack p_44867_) static boolean
DigDurabilityEnchantment.shouldIgnoreDurabilityDrop
(ItemStack p_44656_, int p_44657_, Random p_44658_) Modifier and TypeMethodDescriptionstatic int
EnchantmentHelper.getDamageProtection
(Iterable<ItemStack> p_44857_, DamageSource p_44858_) static Map.Entry<EquipmentSlot,
ItemStack> EnchantmentHelper.getRandomItemWith
(Enchantment p_44840_, LivingEntity p_44841_, Predicate<ItemStack> p_44842_) private static void
EnchantmentHelper.runIterationOnInventory
(EnchantmentHelper.EnchantmentVisitor p_44854_, Iterable<ItemStack> p_44855_) -
Uses of ItemStack in net.minecraft.world.item.trading
Modifier and TypeFieldDescriptionprivate final ItemStack
MerchantOffer.baseCostA
private final ItemStack
MerchantOffer.costB
private final ItemStack
MerchantOffer.result
Modifier and TypeMethodDescriptionMerchantOffer.assemble()
MerchantOffer.getBaseCostA()
MerchantOffer.getCostA()
MerchantOffer.getCostB()
MerchantOffer.getResult()
Modifier and TypeMethodDescriptionMerchantOffers.getRecipeFor
(ItemStack p_45390_, ItemStack p_45391_, int p_45392_) private boolean
MerchantOffer.isRequiredItem
(ItemStack p_45366_, ItemStack p_45367_) void
Merchant.notifyTradeUpdated
(ItemStack p_45308_) boolean
MerchantOffer.satisfiedBy
(ItemStack p_45356_, ItemStack p_45357_) boolean
ModifierConstructorDescriptionMerchantOffer
(ItemStack p_45321_, ItemStack p_45322_, int p_45323_, int p_45324_, float p_45325_) MerchantOffer
(ItemStack p_45327_, ItemStack p_45328_, ItemStack p_45329_, int p_45330_, int p_45331_, float p_45332_) MerchantOffer
(ItemStack p_45334_, ItemStack p_45335_, ItemStack p_45336_, int p_45337_, int p_45338_, int p_45339_, float p_45340_) MerchantOffer
(ItemStack p_45342_, ItemStack p_45343_, ItemStack p_45344_, int p_45345_, int p_45346_, int p_45347_, float p_45348_, int p_45349_) -
Uses of ItemStack in net.minecraft.world.level
Modifier and TypeMethodDescriptionprivate static void
Explosion.addBlockDrops
(it.unimi.dsi.fastutil.objects.ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> p_46068_, ItemStack p_46069_, BlockPos p_46070_) Modifier and TypeMethodDescriptionprivate static void
Explosion.addBlockDrops
(it.unimi.dsi.fastutil.objects.ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> p_46068_, ItemStack p_46069_, BlockPos p_46070_) -
Uses of ItemStack in net.minecraft.world.level.block
Modifier and TypeMethodDescriptionAbstractBannerBlock.getCloneItemStack
(BlockGetter p_48664_, BlockPos p_48665_, BlockState p_48666_) AttachedStemBlock.getCloneItemStack
(BlockGetter p_48838_, BlockPos p_48839_, BlockState p_48840_) BambooSaplingBlock.getCloneItemStack
(BlockGetter p_48964_, BlockPos p_48965_, BlockState p_48966_) BigDripleafStemBlock.getCloneItemStack
(BlockGetter p_152336_, BlockPos p_152337_, BlockState p_152338_) Block.getCloneItemStack
(BlockGetter p_49823_, BlockPos p_49824_, BlockState p_49825_) Deprecated.CandleCakeBlock.getCloneItemStack
(BlockGetter p_152862_, BlockPos p_152863_, BlockState p_152864_) CaveVinesBlock.getCloneItemStack
(BlockGetter p_152966_, BlockPos p_152967_, BlockState p_152968_) CaveVinesPlantBlock.getCloneItemStack
(BlockGetter p_153007_, BlockPos p_153008_, BlockState p_153009_) CropBlock.getCloneItemStack
(BlockGetter p_52254_, BlockPos p_52255_, BlockState p_52256_) EndGatewayBlock.getCloneItemStack
(BlockGetter p_53003_, BlockPos p_53004_, BlockState p_53005_) EndPortalBlock.getCloneItemStack
(BlockGetter p_53021_, BlockPos p_53022_, BlockState p_53023_) FlowerPotBlock.getCloneItemStack
(BlockGetter p_53531_, BlockPos p_53532_, BlockState p_53533_) FrostedIceBlock.getCloneItemStack
(BlockGetter p_53570_, BlockPos p_53571_, BlockState p_53572_) GrowingPlantBodyBlock.getCloneItemStack
(BlockGetter p_53896_, BlockPos p_53897_, BlockState p_53898_) LightBlock.getCloneItemStack
(BlockGetter p_153664_, BlockPos p_153665_, BlockState p_153666_) NetherPortalBlock.getCloneItemStack
(BlockGetter p_54911_, BlockPos p_54912_, BlockState p_54913_) NetherWartBlock.getCloneItemStack
(BlockGetter p_54973_, BlockPos p_54974_, BlockState p_54975_) ShulkerBoxBlock.getCloneItemStack
(BlockGetter p_56202_, BlockPos p_56203_, BlockState p_56204_) SpawnerBlock.getCloneItemStack
(BlockGetter p_56785_, BlockPos p_56786_, BlockState p_56787_) StemBlock.getCloneItemStack
(BlockGetter p_57026_, BlockPos p_57027_, BlockState p_57028_) SweetBerryBushBlock.getCloneItemStack
(BlockGetter p_57256_, BlockPos p_57257_, BlockState p_57258_) TallSeagrassBlock.getCloneItemStack
(BlockGetter p_154749_, BlockPos p_154750_, BlockState p_154751_) static ItemStack
ShulkerBoxBlock.getColoredItemStack
(DyeColor p_56251_) BubbleColumnBlock.pickupBlock
(LevelAccessor p_152712_, BlockPos p_152713_, BlockState p_152714_) BucketPickup.pickupBlock
(LevelAccessor p_152719_, BlockPos p_152720_, BlockState p_152721_) LiquidBlock.pickupBlock
(LevelAccessor p_153772_, BlockPos p_153773_, BlockState p_153774_) PowderSnowBlock.pickupBlock
(LevelAccessor p_154281_, BlockPos p_154282_, BlockState p_154283_) default ItemStack
SimpleWaterloggedBlock.pickupBlock
(LevelAccessor p_154560_, BlockPos p_154561_, BlockState p_154562_) Modifier and TypeMethodDescriptionBeehiveBlock.getDrops
(BlockState p_49636_, LootContext.Builder p_49637_) 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_) LiquidBlock.getDrops
(BlockState p_54720_, LootContext.Builder p_54721_) PlayerWallHeadBlock.getDrops
(BlockState p_55193_, LootContext.Builder p_55194_) ShulkerBoxBlock.getDrops
(BlockState p_56246_, LootContext.Builder p_56247_) Modifier and TypeMethodDescription(package private) static BlockState
ComposterBlock.addItem
(BlockState p_51984_, LevelAccessor p_51985_, BlockPos p_51986_, ItemStack p_51987_) void
Block.appendHoverText
(ItemStack p_49816_, BlockGetter p_49817_, List<Component> p_49818_, TooltipFlag p_49819_) void
ShulkerBoxBlock.appendHoverText
(ItemStack p_56193_, BlockGetter p_56194_, List<Component> p_56195_, TooltipFlag p_56196_) 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_) static void
Block.dropResources
(BlockState p_49882_, Level p_49883_, BlockPos p_49884_, BlockEntity p_49885_, Entity p_49886_, ItemStack p_49887_) protected DispenseItemBehavior
DispenserBlock.getDispenseMethod
(ItemStack p_52667_) protected DispenseItemBehavior
DropperBlock.getDispenseMethod
(ItemStack p_52947_) Block.getDrops
(BlockState p_49875_, ServerLevel p_49876_, BlockPos p_49877_, BlockEntity p_49878_, Entity p_49879_, ItemStack p_49880_) static BlockState
ComposterBlock.insertItem
(BlockState p_51930_, ServerLevel p_51931_, ItemStack p_51932_, BlockPos p_51933_) private static boolean
RespawnAnchorBlock.isRespawnFuel
(ItemStack p_55849_) private static void
LecternBlock.placeBook
(Player p_153576_, Level p_153577_, BlockPos p_153578_, BlockState p_153579_, ItemStack p_153580_) 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_) void
AbstractBannerBlock.setPlacedBy
(Level p_48668_, BlockPos p_48669_, BlockState p_48670_, LivingEntity p_48671_, ItemStack p_48672_) void
AbstractFurnaceBlock.setPlacedBy
(Level p_48694_, BlockPos p_48695_, BlockState p_48696_, LivingEntity p_48697_, ItemStack p_48698_) void
BarrelBlock.setPlacedBy
(Level p_49052_, BlockPos p_49053_, BlockState p_49054_, LivingEntity p_49055_, ItemStack p_49056_) void
BeaconBlock.setPlacedBy
(Level p_49426_, BlockPos p_49427_, BlockState p_49428_, LivingEntity p_49429_, ItemStack p_49430_) 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
BrewingStandBlock.setPlacedBy
(Level p_50913_, BlockPos p_50914_, BlockState p_50915_, LivingEntity p_50916_, ItemStack p_50917_) void
ChestBlock.setPlacedBy
(Level p_51503_, BlockPos p_51504_, BlockState p_51505_, LivingEntity p_51506_, ItemStack p_51507_) void
CommandBlock.setPlacedBy
(Level p_51804_, BlockPos p_51805_, BlockState p_51806_, LivingEntity p_51807_, ItemStack p_51808_) void
ConduitBlock.setPlacedBy
(Level p_52100_, BlockPos p_52101_, BlockState p_52102_, LivingEntity p_52103_, ItemStack p_52104_) void
DiodeBlock.setPlacedBy
(Level p_52506_, BlockPos p_52507_, BlockState p_52508_, LivingEntity p_52509_, ItemStack p_52510_) void
DispenserBlock.setPlacedBy
(Level p_52676_, BlockPos p_52677_, BlockState p_52678_, LivingEntity p_52679_, ItemStack p_52680_) 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
EnchantmentTableBlock.setPlacedBy
(Level p_52963_, BlockPos p_52964_, BlockState p_52965_, LivingEntity p_52966_, ItemStack p_52967_) void
HopperBlock.setPlacedBy
(Level p_54049_, BlockPos p_54050_, BlockState p_54051_, LivingEntity p_54052_, ItemStack p_54053_) void
JukeboxBlock.setPlacedBy
(Level p_54264_, BlockPos p_54265_, BlockState p_54266_, LivingEntity p_54267_, ItemStack p_54268_) void
PlayerHeadBlock.setPlacedBy
(Level p_55179_, BlockPos p_55180_, BlockState p_55181_, LivingEntity p_55182_, ItemStack p_55183_) void
PlayerWallHeadBlock.setPlacedBy
(Level p_55187_, BlockPos p_55188_, BlockState p_55189_, LivingEntity p_55190_, ItemStack p_55191_) void
ShulkerBoxBlock.setPlacedBy
(Level p_56206_, BlockPos p_56207_, BlockState p_56208_, LivingEntity p_56209_, ItemStack p_56210_) 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_) void
JukeboxBlock.setRecord
(LevelAccessor p_54270_, BlockPos p_54271_, BlockState p_54272_, ItemStack p_54273_) void
InfestedBlock.spawnAfterBreak
(BlockState p_54188_, ServerLevel p_54189_, BlockPos p_54190_, ItemStack p_54191_) void
OreBlock.spawnAfterBreak
(BlockState p_55142_, ServerLevel p_55143_, BlockPos p_55144_, ItemStack p_55145_) void
RedStoneOreBlock.spawnAfterBreak
(BlockState p_55462_, ServerLevel p_55463_, BlockPos p_55464_, ItemStack p_55465_) void
SpawnerBlock.spawnAfterBreak
(BlockState p_56789_, ServerLevel p_56790_, BlockPos p_56791_, ItemStack p_56792_) static boolean
LecternBlock.tryPlaceBook
(Player p_153567_, Level p_153568_, BlockPos p_153569_, BlockState p_153570_, ItemStack p_153571_) Modifier and TypeMethodDescriptionvoid
Block.fillItemCategory
(CreativeModeTab p_49812_, NonNullList<ItemStack> p_49813_) ModifierConstructorDescriptionOutputContainer
(BlockState p_52042_, LevelAccessor p_52043_, BlockPos p_52044_, ItemStack p_52045_) -
Uses of ItemStack in net.minecraft.world.level.block.entity
Modifier and TypeFieldDescription(package private) ItemStack
LecternBlockEntity.book
private ItemStack
JukeboxBlockEntity.record
Modifier 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 NonNullList<ItemStack>
DispenserBlockEntity.items
private NonNullList<ItemStack>
HopperBlockEntity.items
private NonNullList<ItemStack>
ShulkerBoxBlockEntity.itemStacks
Modifier and TypeMethodDescriptionstatic ItemStack
HopperBlockEntity.addItem
(Container p_59327_, Container p_59328_, ItemStack p_59329_, Direction p_59330_) LecternBlockEntity.getBook()
AbstractFurnaceBlockEntity.getItem
(int p_58328_) BannerBlockEntity.getItem()
BrewingStandBlockEntity.getItem
(int p_58985_) RandomizableContainerBlockEntity.getItem
(int p_59611_) JukeboxBlockEntity.getRecord()
AbstractFurnaceBlockEntity.removeItem
(int p_58330_, int p_58331_) BrewingStandBlockEntity.removeItem
(int p_58987_, int p_58988_) HopperBlockEntity.removeItem
(int p_59309_, int p_59310_) RandomizableContainerBlockEntity.removeItem
(int p_59613_, int p_59614_) AbstractFurnaceBlockEntity.removeItemNoUpdate
(int p_58387_) BrewingStandBlockEntity.removeItemNoUpdate
(int p_59015_) RandomizableContainerBlockEntity.removeItemNoUpdate
(int p_59630_) private ItemStack
LecternBlockEntity.resolveBook
(ItemStack p_59555_, Player p_59556_) private static ItemStack
HopperBlockEntity.tryMoveInItem
(Container p_59321_, Container p_59322_, ItemStack p_59323_, int p_59324_, Direction p_59325_) Modifier and TypeMethodDescriptionprotected NonNullList<ItemStack>
BarrelBlockEntity.getItems()
CampfireBlockEntity.getItems()
protected NonNullList<ItemStack>
ChestBlockEntity.getItems()
protected NonNullList<ItemStack>
DispenserBlockEntity.getItems()
protected NonNullList<ItemStack>
HopperBlockEntity.getItems()
protected abstract NonNullList<ItemStack>
RandomizableContainerBlockEntity.getItems()
protected NonNullList<ItemStack>
ShulkerBoxBlockEntity.getItems()
Modifier and TypeMethodDescriptionint
static ItemStack
HopperBlockEntity.addItem
(Container p_59327_, Container p_59328_, ItemStack p_59329_, Direction p_59330_) 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_) 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_) private static boolean
HopperBlockEntity.canTakeItemFromContainer
(Container p_59381_, ItemStack p_59382_, int p_59383_, Direction p_59384_) 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_) void
void
protected int
AbstractFurnaceBlockEntity.getBurnDuration
(ItemStack p_58343_) protected int
BlastFurnaceBlockEntity.getBurnDuration
(ItemStack p_58852_) protected int
SmokerBlockEntity.getBurnDuration
(ItemStack p_59786_) CampfireBlockEntity.getCookableRecipe
(ItemStack p_59052_) static ListTag
BannerBlockEntity.getItemPatterns
(ItemStack p_58488_) static int
BannerBlockEntity.getPatternCount
(ItemStack p_58505_) static boolean
boolean
static void
BannerBlockEntity.removeLastPattern
(ItemStack p_58510_) private ItemStack
LecternBlockEntity.resolveBook
(ItemStack p_59555_, Player p_59556_) void
BlockEntity.saveToItem
(ItemStack p_187477_) void
void
void
void
void
void
void
private static ItemStack
HopperBlockEntity.tryMoveInItem
(Container p_59321_, Container p_59322_, ItemStack p_59323_, int p_59324_, Direction p_59325_) Modifier and TypeMethodDescriptionprivate boolean
AbstractFurnaceBlockEntity.burn
(Recipe<?> p_155027_, NonNullList<ItemStack> p_155028_, int p_155029_) private boolean
AbstractFurnaceBlockEntity.canBurn
(Recipe<?> p_155006_, 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
(NonNullList<ItemStack> p_155295_) protected void
BarrelBlockEntity.setItems
(NonNullList<ItemStack> p_58610_) protected void
ChestBlockEntity.setItems
(NonNullList<ItemStack> p_59110_) protected void
DispenserBlockEntity.setItems
(NonNullList<ItemStack> p_59243_) protected void
HopperBlockEntity.setItems
(NonNullList<ItemStack> p_59371_) protected abstract void
RandomizableContainerBlockEntity.setItems
(NonNullList<ItemStack> p_59625_) protected void
ShulkerBoxBlockEntity.setItems
(NonNullList<ItemStack> p_59674_) -
Uses of ItemStack in net.minecraft.world.level.block.piston
Modifier and TypeMethodDescriptionMovingPistonBlock.getCloneItemStack
(BlockGetter p_60057_, BlockPos p_60058_, BlockState p_60059_) PistonHeadBlock.getCloneItemStack
(BlockGetter p_60261_, BlockPos p_60262_, BlockState p_60263_) Modifier and TypeMethodDescriptionMovingPistonBlock.getDrops
(BlockState p_60089_, LootContext.Builder p_60090_) Modifier 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
Modifier and TypeMethodDescriptionBlockBehaviour.BlockStateBase.getDrops
(LootContext.Builder p_60725_) BlockBehaviour.getDrops
(BlockState p_60537_, LootContext.Builder p_60538_) Deprecated.Modifier and TypeMethodDescriptionvoid
BlockBehaviour.BlockStateBase.spawnAfterBreak
(ServerLevel p_60613_, BlockPos p_60614_, ItemStack p_60615_) void
BlockBehaviour.spawnAfterBreak
(BlockState p_60458_, ServerLevel p_60459_, BlockPos p_60460_, ItemStack p_60461_) Deprecated. -
Uses of ItemStack in net.minecraft.world.level.saveddata.maps
Modifier and TypeMethodDescriptionstatic void
MapItemSavedData.addTargetDecoration
(ItemStack p_77926_, BlockPos p_77927_, String p_77928_, MapDecoration.Type p_77929_) void
MapItemSavedData.tickCarriedBy
(Player p_77919_, ItemStack p_77920_) -
Uses of ItemStack in net.minecraft.world.level.storage.loot
Modifier and TypeFieldDescriptionprivate final BiFunction<ItemStack,
LootContext, ItemStack> ItemModifierManager.FunctionSequence.compositeFunction
private final BiFunction<ItemStack,
LootContext, ItemStack> ItemModifierManager.FunctionSequence.compositeFunction
private 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
Modifier and TypeMethodDescriptionItemModifierManager.FunctionSequence.apply
(ItemStack p_165119_, LootContext p_165120_) Modifier and TypeMethodDescriptionLootTable.createStackSplitter
(Consumer<ItemStack> p_79143_) LootTable.getRandomItems
(LootContext p_79130_) Modifier and TypeMethodDescriptionItemModifierManager.FunctionSequence.apply
(ItemStack p_165119_, LootContext p_165120_) Modifier and TypeMethodDescriptionvoid
LootContext.DynamicDrop.add
(LootContext p_78988_, Consumer<ItemStack> p_78989_) void
LootContext.addDynamicDrops
(ResourceLocation p_78943_, Consumer<ItemStack> p_78944_) private void
LootPool.addRandomItem
(Consumer<ItemStack> p_79059_, LootContext p_79060_) void
LootPool.addRandomItems
(Consumer<ItemStack> p_79054_, LootContext p_79055_) LootTable.createStackSplitter
(Consumer<ItemStack> p_79143_) void
LootTable.getRandomItems
(LootContext p_79149_, Consumer<ItemStack> p_79150_) Deprecated.void
LootTable.getRandomItemsRaw
(LootContext p_79132_, Consumer<ItemStack> p_79133_) private void
LootTable.shuffleAndSplitItems
(List<ItemStack> p_79139_, int p_79140_, Random p_79141_) -
Uses of ItemStack in net.minecraft.world.level.storage.loot.entries
Modifier and TypeFieldDescription(package private) final BiFunction<ItemStack,
LootContext, ItemStack> LootPoolSingletonContainer.compositeFunction
(package private) final BiFunction<ItemStack,
LootContext, ItemStack> LootPoolSingletonContainer.compositeFunction
Modifier 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
LootTableReference.createItemStack
(Consumer<ItemStack> p_79774_, LootContext p_79775_) void
TagEntry.createItemStack
(Consumer<ItemStack> p_79854_, LootContext p_79855_) -
Uses of ItemStack in net.minecraft.world.level.storage.loot.functions
Modifier and TypeFieldDescriptionstatic final BiFunction<ItemStack,
LootContext, ItemStack> LootItemFunctions.IDENTITY
static final BiFunction<ItemStack,
LootContext, ItemStack> LootItemFunctions.IDENTITY
Modifier and TypeMethodDescriptionfinal ItemStack
LootItemConditionalFunction.apply
(ItemStack p_80689_, LootContext p_80690_) private static ItemStack
EnchantRandomlyFunction.enchantItem
(ItemStack p_80425_, Enchantment p_80426_, Random p_80427_) 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_) CopyNameFunction.run
(ItemStack p_80185_, LootContext p_80186_) CopyNbtFunction.run
(ItemStack p_80250_, LootContext p_80251_) 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_) LimitCount.run
(ItemStack p_80644_, LootContext p_80645_) LootingEnchantFunction.run
(ItemStack p_80789_, LootContext p_80790_) protected abstract ItemStack
LootItemConditionalFunction.run
(ItemStack p_80679_, LootContext p_80680_) SetAttributesFunction.run
(ItemStack p_80840_, LootContext p_80841_) protected ItemStack
SetBannerPatternFunction.run
(ItemStack p_165280_, LootContext p_165281_) SetContainerContents.run
(ItemStack p_80911_, LootContext p_80912_) SetContainerLootTable.run
(ItemStack p_80967_, LootContext p_80968_) SetEnchantmentsFunction.run
(ItemStack p_165346_, LootContext p_165347_) SetItemCountFunction.run
(ItemStack p_81006_, LootContext p_81007_) SetItemDamageFunction.run
(ItemStack p_81048_, LootContext p_81049_) SetLoreFunction.run
(ItemStack p_81089_, LootContext p_81090_) SetNameFunction.run
(ItemStack p_81137_, LootContext p_81138_) SetNbtFunction.run
(ItemStack p_81183_, LootContext p_81184_) SetPotionFunction.run
(ItemStack p_193073_, LootContext p_193074_) SetStewEffectFunction.run
(ItemStack p_81223_, LootContext p_81224_) SmeltItemFunction.run
(ItemStack p_81268_, LootContext p_81269_) Modifier and TypeMethodDescriptionstatic BiFunction<ItemStack,
LootContext, ItemStack> LootItemFunctions.compose
(BiFunction<ItemStack, LootContext, ItemStack>[] p_80771_) static BiFunction<ItemStack,
LootContext, ItemStack> LootItemFunctions.compose
(BiFunction<ItemStack, LootContext, ItemStack>[] p_80771_) LootItemFunction.decorate
(BiFunction<ItemStack, LootContext, ItemStack> p_80725_, Consumer<ItemStack> p_80726_, LootContext p_80727_) Modifier and TypeMethodDescriptionfinal ItemStack
LootItemConditionalFunction.apply
(ItemStack p_80689_, LootContext p_80690_) private static ItemStack
EnchantRandomlyFunction.enchantItem
(ItemStack p_80425_, Enchantment p_80426_, Random p_80427_) private ListTag
SetLoreFunction.getLoreTag
(ItemStack p_81092_, boolean p_81093_) 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_) CopyNameFunction.run
(ItemStack p_80185_, LootContext p_80186_) CopyNbtFunction.run
(ItemStack p_80250_, LootContext p_80251_) 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_) LimitCount.run
(ItemStack p_80644_, LootContext p_80645_) LootingEnchantFunction.run
(ItemStack p_80789_, LootContext p_80790_) protected abstract ItemStack
LootItemConditionalFunction.run
(ItemStack p_80679_, LootContext p_80680_) SetAttributesFunction.run
(ItemStack p_80840_, LootContext p_80841_) protected ItemStack
SetBannerPatternFunction.run
(ItemStack p_165280_, LootContext p_165281_) SetContainerContents.run
(ItemStack p_80911_, LootContext p_80912_) SetContainerLootTable.run
(ItemStack p_80967_, LootContext p_80968_) SetEnchantmentsFunction.run
(ItemStack p_165346_, LootContext p_165347_) SetItemCountFunction.run
(ItemStack p_81006_, LootContext p_81007_) SetItemDamageFunction.run
(ItemStack p_81048_, LootContext p_81049_) SetLoreFunction.run
(ItemStack p_81089_, LootContext p_81090_) SetNameFunction.run
(ItemStack p_81137_, LootContext p_81138_) SetNbtFunction.run
(ItemStack p_81183_, LootContext p_81184_) SetPotionFunction.run
(ItemStack p_193073_, LootContext p_193074_) SetStewEffectFunction.run
(ItemStack p_81223_, LootContext p_81224_) SmeltItemFunction.run
(ItemStack p_81268_, LootContext p_81269_) Modifier and TypeMethodDescriptionLootItemFunction.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
-
Uses of ItemStack in net.minecraft.world.phys.shapes
ModifierConstructorDescriptionprotected
EntityCollisionContext
(boolean p_198916_, double p_198917_, ItemStack p_198918_, Predicate<FluidState> p_198919_, Entity p_198920_) -
Uses of ItemStack in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic void
ForgeHooksClient.drawItemLayered
(ItemRenderer renderer, BakedModel modelIn, ItemStack itemStackIn, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, boolean fabulous) static List<ClientTooltipComponent>
ForgeHooksClient.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, int mouseX, int screenWidth, int screenHeight, Font forcedFont, Font fallbackFont) static List<ClientTooltipComponent>
ForgeHooksClient.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, Optional<TooltipComponent> itemComponent, int mouseX, int screenWidth, int screenHeight, Font forcedFont, Font fallbackFont) static IItemRenderProperties
static Model
ForgeHooksClient.getArmorModel
(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlot slot, HumanoidModel<?> _default) default HumanoidModel<?>
IItemRenderProperties.getArmorModel
(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlot armorSlot, HumanoidModel<?> _default) Override this method to have an item handle its own armor rendering.static String
ForgeHooksClient.getArmorTexture
(Entity entity, ItemStack armor, String _default, EquipmentSlot slot, String type) default Model
IItemRenderProperties.getBaseArmorModel
(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlot armorSlot, HumanoidModel<?> _default) Override this method to return a generic model rather than aHumanoidModel
.int
default Font
Returns the font renderer used to render tooltips and overlays for this item.ItemModelMesherForge.getLocation
(ItemStack stack) static Font
ForgeHooksClient.getTooltipFont
(Font forcedFont, ItemStack stack, Font fallbackFont) static RenderTooltipEvent.Color
ForgeHooksClient.onRenderTooltipColor
(ItemStack stack, PoseStack poseStack, int x, int y, Font font, List<ClientTooltipComponent> components) static RenderTooltipEvent.Pre
ForgeHooksClient.onRenderTooltipPre
(ItemStack stack, PoseStack poseStack, int x, int y, int screenWidth, int screenHeight, List<ClientTooltipComponent> components, Font forcedFont, Font fallbackFont) default void
IItemRenderProperties.renderHelmetOverlay
(ItemStack stack, Player player, int width, int height, float partialTick) Called when the client starts rendering the HUD, for whatever item the player currently has as a helmet.static boolean
ForgeHooksClient.renderSpecificFirstPersonHand
(InteractionHand hand, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, float partialTick, float interpPitch, float swingProgress, float equipProgress, ItemStack stack) static boolean
ForgeHooksClient.shouldCauseReequipAnimation
(ItemStack from, ItemStack to, int slot) -
Uses of ItemStack in net.minecraftforge.client.event
Modifier and TypeFieldDescriptionprivate final ItemStack
RenderItemInFrameEvent.itemStack
private final ItemStack
RenderTooltipEvent.GatherComponents.itemStack
protected final ItemStack
RenderTooltipEvent.itemStack
private final ItemStack
RenderHandEvent.stack
Modifier and TypeMethodDescriptionRenderHandEvent.getItemStack()
RenderItemInFrameEvent.getItemStack()
RenderTooltipEvent.GatherComponents.getItemStack()
RenderTooltipEvent.getItemStack()
ModifierConstructorDescriptionColor
(ItemStack stack, PoseStack poseStack, int x, int y, Font fr, int background, int borderStart, int borderEnd, List<ClientTooltipComponent> components) GatherComponents
(ItemStack itemStack, int screenWidth, int screenHeight, List<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> tooltipElements, int maxWidth) Pre
(ItemStack stack, PoseStack poseStack, int x, int y, int screenWidth, int screenHeight, Font font, List<ClientTooltipComponent> components) RenderHandEvent
(InteractionHand hand, PoseStack poseStack, MultiBufferSource multiBufferSource, int packedLight, float partialTicks, float interpolatedPitch, float swingProgress, float equipProgress, ItemStack stack) RenderTooltipEvent
(ItemStack itemStack, PoseStack poseStack, int x, int y, Font font, List<ClientTooltipComponent> components) -
Uses of ItemStack in net.minecraftforge.client.extensions
Modifier and TypeMethodDescriptiondefault List<com.mojang.datafixers.util.Pair<BakedModel,
RenderType>> IForgeBakedModel.getLayerModels
(ItemStack itemStack, boolean fabulous) If returns true, this is called to get the list of layers to draw. -
Uses of ItemStack in net.minecraftforge.client.model
Modifier and TypeMethodDescriptionList<com.mojang.datafixers.util.Pair<BakedModel,
RenderType>> ItemMultiLayerBakedModel.getLayerModels
(ItemStack itemStack, boolean fabulous) List<com.mojang.datafixers.util.Pair<BakedModel,
RenderType>> MultiLayerModel.MultiLayerBakedModel.getLayerModels
(ItemStack itemStack, boolean fabulous) DynamicBucketModel.ContainedFluidOverrideHandler.resolve
(BakedModel originalModel, ItemStack stack, ClientLevel level, LivingEntity entity, int seed) PerspectiveMapWrapper.OverrideListWrapper.resolve
(BakedModel model, ItemStack stack, ClientLevel level, LivingEntity entity, int seed) -
Uses of ItemStack in net.minecraftforge.common
Modifier and TypeFieldDescriptionprotected final ItemStack
BasicItemListing.forSale
protected final ItemStack
BasicItemListing.price
protected final ItemStack
BasicItemListing.price2
Modifier and TypeMethodDescriptionstatic ItemStack
ForgeHooks.getContainerItem
(ItemStack stack) static ItemStack
ForgeHooks.getProjectile
(LivingEntity entity, ItemStack projectileWeaponItem, ItemStack projectile) Hook to fireLivingGetProjectileEvent
.Modifier and TypeMethodDescriptionForgeHooks.modifyLoot
(List<ItemStack> list, LootContext context) Deprecated.ForgeHooks.modifyLoot
(ResourceLocation lootTableId, List<ItemStack> generatedLoot, LootContext context) Handles the modification of loot table drops via the registered Global Loot Modifiers, so that custom effects can be processed.Performs the shear function on this object.Modifier and TypeMethodDescriptionstatic boolean
ForgeHooks.canContinueUsing
(ItemStack from, ItemStack to) static com.google.common.collect.Multimap<Attribute,
AttributeModifier> ForgeHooks.getAttributeModifiers
(ItemStack stack, EquipmentSlot equipmentSlot, com.google.common.collect.Multimap<Attribute, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent
.static int
ForgeHooks.getBurnTime
(ItemStack stack, RecipeType<?> recipeType) Gets the burn time of this itemstack.static ItemStack
ForgeHooks.getContainerItem
(ItemStack stack) static String
ForgeHooks.getDefaultCreatorModId
(ItemStack itemStack) Used as the default implementation ofIForgeItem.getCreatorModId(net.minecraft.world.item.ItemStack)
.static ItemStack
ForgeHooks.getProjectile
(LivingEntity entity, ItemStack projectileWeaponItem, ItemStack projectile) Hook to fireLivingGetProjectileEvent
.default boolean
IForgeShearable.isShearable
(ItemStack item, Level level, BlockPos pos) Checks if the object is currently shearable Example: Sheep return false when they have no woolstatic boolean
ForgeHooks.onAnvilChange
(AnvilMenu container, ItemStack left, ItemStack right, Container outputSlot, String name, int baseCost, Player player) static float
ForgeHooks.onAnvilRepair
(Player player, ItemStack output, ItemStack left, ItemStack right) static int
ForgeHooks.onGrindstoneChange
(ItemStack top, ItemStack bottom, Container outputSlot, int xp) static ItemEntity
ForgeHooks.onPlayerTossEvent
(Player player, ItemStack item, boolean includeName) Performs the shear function on this object.static boolean
ForgeHooks.shouldSuppressEnderManAnger
(EnderMan enderMan, Player player, ItemStack mask) Modifier and TypeMethodDescriptionForgeHooks.modifyLoot
(List<ItemStack> list, LootContext context) Deprecated.ForgeHooks.modifyLoot
(ResourceLocation lootTableId, List<ItemStack> generatedLoot, LootContext context) Handles the modification of loot table drops via the registered Global Loot Modifiers, so that custom effects can be processed.ModifierConstructorDescriptionBasicItemListing
(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.minecraftforge.common.brewing
Modifier and TypeMethodDescriptionBrewingRecipe.getOutput()
static ItemStack
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.Code copied from TileEntityBrewingStand.brewPotions() It brews the potion by doing the bit-shifting magic and then checking if the new PotionEffect list is different to the old one, or if the new potion is a splash potion when the old one wasn't.Modifier and TypeMethodDescriptionstatic boolean
BrewingRecipeRegistry.addRecipe
(Ingredient input, Ingredient ingredient, ItemStack output) Adds a recipe to the registry.static void
BrewingRecipeRegistry.brewPotions
(NonNullList<ItemStack> inputs, ItemStack ingredient, int[] inputIndexes) Used by the brewing stand to brew its inventory Extra parameters exist to allow modders to create bigger brewing stands without much hasslestatic boolean
BrewingRecipeRegistry.canBrew
(NonNullList<ItemStack> inputs, ItemStack ingredient, int[] inputIndexes) Used by the brewing stand to determine if its contents can be brewed.static ItemStack
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.Code copied from TileEntityBrewingStand.brewPotions() It brews the potion by doing the bit-shifting magic and then checking if the new PotionEffect list is different to the old one, or if the new potion is a splash potion when the old one wasn't.static 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
VanillaBrewingRecipe.isIngredient
(ItemStack stack) Code adapted from TileEntityBrewingStand.isItemValidForSlot(int index, ItemStack stack)boolean
boolean
Returns true is the passed ItemStack is an input for this recipe.boolean
Code adapted from TileEntityBrewingStand.isItemValidForSlot(int index, ItemStack stack)static boolean
BrewingRecipeRegistry.isValidIngredient
(ItemStack stack) Returns true if the passed ItemStack is a valid ingredient for any of the recipes in the registry.static boolean
BrewingRecipeRegistry.isValidInput
(ItemStack stack) Returns true if the passed ItemStack is a valid input for any of the recipes in the registry.Modifier and TypeMethodDescriptionstatic void
BrewingRecipeRegistry.brewPotions
(NonNullList<ItemStack> inputs, ItemStack ingredient, int[] inputIndexes) Used by the brewing stand to brew its inventory Extra parameters exist to allow modders to create bigger brewing stands without much hasslestatic boolean
BrewingRecipeRegistry.canBrew
(NonNullList<ItemStack> inputs, ItemStack ingredient, int[] inputIndexes) Used by the brewing stand to determine if its contents can be brewed.ModifierConstructorDescriptionBrewingRecipe
(Ingredient input, Ingredient ingredient, ItemStack output) -
Uses of ItemStack in net.minecraftforge.common.crafting
Modifier and TypeFieldDescriptionprivate ItemStack[]
DifferenceIngredient.filteredMatchingStacks
private ItemStack[]
IntersectionIngredient.intersectedMatchingStacks
private final ItemStack
NBTIngredient.stack
private ItemStack[]
CompoundIngredient.stacks
Modifier and TypeMethodDescriptionCompoundIngredient.getItems()
DifferenceIngredient.getItems()
IntersectionIngredient.getItems()
static ItemStack
CraftingHelper.getItemStack
(com.google.gson.JsonObject json, boolean readNBT) static ItemStack
CraftingHelper.getItemStack
(com.google.gson.JsonObject json, boolean readNBT, boolean disallowsAirInRecipe) Modifier and TypeMethodDescriptionstatic Ingredient
Deprecated.useIngredient.of(ItemStack...)
(Stream)}static NBTIngredient
Creates a new ingredient matching the given stack and tagboolean
boolean
boolean
boolean
boolean
private com.google.gson.JsonObject
Modifier and TypeMethodDescriptionstatic Ingredient
Deprecated.useIngredient.of(Stream)
(Stream)} -
Uses of ItemStack in net.minecraftforge.common.data
Modifier and TypeMethodDescriptionvoid
LanguageProvider.addItemStack
(Supplier<ItemStack> key, String name) -
Uses of ItemStack in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault ItemStack
IForgeAbstractMinecart.getCartItem()
Deprecated, for removal: This API element is subject to removal in a future version.TODO Remove in 1.19 - useAbstractMinecart.getPickResult()
insteaddefault ItemStack
IForgeBlock.getCloneItemStack
(BlockState state, HitResult target, BlockGetter level, BlockPos pos, Player player) Called when A user uses the creative pick block button on this blockdefault ItemStack
IForgeBlockState.getCloneItemStack
(HitResult target, BlockGetter level, BlockPos pos, Player player) Called when A user uses the creative pick block button on this blockdefault ItemStack
IForgeItem.getContainerItem
(ItemStack itemStack) ItemStack sensitive version of getContainerItem.default ItemStack
IForgeItemStack.getContainerItem()
ItemStack sensitive version of getContainerItem.default ItemStack
IForgeEntity.getPickedResult
(HitResult target) Called when a user uses the creative pick block button on this entity.private ItemStack
IForgeItemStack.self()
Modifier and TypeMethodDescriptionIForgeMobEffect.getCurativeItems()
Get a fresh list of items that can cure this Potion.IForgeMobEffectInstance.getCurativeItems()
Returns a list of curative items for the potion effect By default, this list is initialized usingIForgeMobEffect.getCurativeItems()
Modifier and TypeMethodDescriptiondefault void
IForgeMobEffectInstance.addCurativeItem
(ItemStack stack) Adds the given stack to the list of curative items for this PotionEffectdefault boolean
IForgeItemStack.areShareTagsEqual
(ItemStack other) Modeled after ItemStack.areItemStackTagsEqual Uses Item.getNBTShareTag for comparison instead of NBT and capabilities.default boolean
IForgeItem.canApplyAtEnchantingTable
(ItemStack stack, Enchantment enchantment) Checks whether an item can be enchanted with a certain enchantment.default boolean
IForgeItem.canContinueUsing
(ItemStack oldStack, ItemStack newStack) Called while an item is in 'active' use to determine if usage should continue.default boolean
IForgeItem.canDisableShield
(ItemStack stack, ItemStack shield, LivingEntity entity, LivingEntity attacker) Can this Item disable a shielddefault boolean
IForgeItemStack.canDisableShield
(ItemStack shield, LivingEntity entity, LivingEntity attacker) Can this Item disable a shielddefault boolean
IForgeItem.canElytraFly
(ItemStack stack, LivingEntity entity) Used to determine if the player can use Elytra flight.default boolean
IForgeItem.canEquip
(ItemStack stack, EquipmentSlot armorType, Entity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default boolean
IForgeItem.canPerformAction
(ItemStack stack, ToolAction toolAction) Queries if an item can perform the given action.default boolean
IForgeItem.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 Entity
IForgeItem.createEntity
(Level level, Entity location, ItemStack stack) This function should return a new entity to replace the dropped item.default <T extends LivingEntity>
intIForgeItem.damageItem
(ItemStack stack, int amount, T entity, Consumer<T> onBroken) Reduce the durability of this item by the amount given.default boolean
IForgeItem.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
IForgeItem.elytraFlightTick
(ItemStack stack, LivingEntity entity, int flightTicks) Used to determine if the player can continue Elytra flight, this is called each tick, and can be used to apply ItemStack damage, consume Energy, or what have you.default boolean
IForgeDispensibleContainerItem.emptyContents
(@Nullable Player player, Level level, BlockPos pos, @Nullable BlockHitResult hitResult, @Nullable ItemStack container) Empties the contents of the container and returns whether it was successful.default boolean
Determines if the ItemStack is equal to the other item stack, including Item, Count, and NBT.default String
IForgeItem.getArmorTexture
(ItemStack stack, Entity entity, EquipmentSlot slot, String type) Called by RenderBiped and RenderPlayer to determine the armor texture that should be use for the currently equipped item.default com.google.common.collect.Multimap<Attribute,
AttributeModifier> IForgeItem.getAttributeModifiers
(EquipmentSlot slot, ItemStack stack) ItemStack sensitive version of getItemAttributeModifiersdefault int
IForgeItem.getBurnTime
(ItemStack itemStack, RecipeType<?> recipeType) default ItemStack
IForgeItem.getContainerItem
(ItemStack itemStack) ItemStack sensitive version of getContainerItem.default String
IForgeItem.getCreatorModId
(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 float
IForgeEnchantment.getDamageBonus
(int level, MobType mobType, ItemStack enchantedItem) ItemStack aware version ofEnchantment.getDamageBonus(int, MobType)
default int
IForgeItem.getDefaultTooltipHideFlags
(ItemStack stack) Get the tooltip parts that should be hidden by default on the given stack if theHideFlags
tag is not set.default int
IForgeItem.getEntityLifespan
(ItemStack itemStack, Level level) Retrieves the normal 'lifespan' of this item when it is dropped on the ground as a EntityItem.default EquipmentSlot
IForgeItem.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 FoodProperties
IForgeItem.getFoodProperties
(ItemStack stack, LivingEntity entity) Get the food properties for this item.default Component
IForgeItem.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
IForgeItem.getItemEnchantability
(ItemStack stack) ItemStack sensitive version of getItemEnchantabilitydefault int
IForgeItem.getItemStackLimit
(ItemStack stack) Gets the maximum number of items that this stack should be able to hold.default int
IForgeItem.getMaxDamage
(ItemStack stack) Return the maxDamage for this ItemStack.default CompoundTag
IForgeItem.getShareTag
(ItemStack stack) Override this method to change the NBT data being sent to the client.default AABB
IForgeItem.getSweepHitBox
(ItemStack stack, Player player, Entity target) Get a bounding box (AABB
) of a sweep attack.default BlockState
IForgeBlock.getToolModifiedState
(BlockState state, Level level, BlockPos pos, Player player, ItemStack stack, ToolAction toolAction) Deprecated, for removal: This API element is subject to removal in a future version.Override and useIForgeBlock.getToolModifiedState(BlockState, UseOnContext, ToolAction, boolean)
insteaddefault BlockState
IForgeBlockState.getToolModifiedState
(Level level, BlockPos pos, Player player, ItemStack stack, ToolAction toolAction) Deprecated, for removal: This API element is subject to removal in a future version.default float
IForgeItem.getXpRepairRatio
(ItemStack stack) Determines the amount of durability the mending enchantment will repair, on average, per point of experience.default boolean
IForgeItem.hasContainerItem
(ItemStack stack) ItemStack sensitive version of hasContainerItemdefault boolean
IForgeItem.hasCustomEntity
(ItemStack stack) Determines if this Item has a special entity for when they are in the world.default ICapabilityProvider
IForgeItem.initCapabilities
(ItemStack stack, CompoundTag nbt) Called from ItemStack.setItem, will hold extra data for the life of this ItemStack.default boolean
IForgeItem.isBookEnchantable
(ItemStack stack, ItemStack book) Allow or forbid the specific book/item combination as an anvil enchantdefault boolean
IForgeItemStack.isBookEnchantable
(ItemStack book) Allow or forbid the specific book/item combination as an anvil enchantdefault boolean
IForgeItem.isCorrectToolForDrops
(ItemStack stack, BlockState state) ItemStack sensitive version ofItem.isCorrectToolForDrops(BlockState)
default boolean
IForgeMobEffectInstance.isCurativeItem
(ItemStack stack) Checks the given ItemStack to see if it is in the list of curative items for the potion effectdefault boolean
IForgeItem.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
IForgeItem.isEnderMask
(ItemStack stack, Player player, EnderMan endermanEntity) Whether this Item can be used to hide player head for enderman.default boolean
IForgeItem.isPiglinCurrency
(ItemStack stack) Called by Piglins when checking to see if they will give an item or something in exchange for this item.boolean
IForgeItem.isRepairable
(ItemStack stack) Called by CraftingManager to determine if an item is reparable.default boolean
IForgeItem.makesPiglinsNeutral
(ItemStack stack, LivingEntity wearer) Called by Piglins to check if a given item prevents hostility on sight.default void
IForgeItem.onArmorTick
(ItemStack stack, Level level, Player player) Called to tick armor in the armor slot.default boolean
IForgeItem.onBlockStartBreak
(ItemStack itemstack, BlockPos pos, Player player) Called before a block is broken.default boolean
IForgeItem.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
IForgeItem.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
IForgeItem.onEntitySwing
(ItemStack stack, LivingEntity entity) Called when a entity tries to play the 'swing' animation.default void
IForgeItem.onHorseArmorTick
(ItemStack stack, Level level, Mob horse) Called every tick fromHorse#playGallopSound(SoundEvent)
on the item in the armor slot.default InteractionResult
IForgeItem.onItemUseFirst
(ItemStack stack, UseOnContext context) This is called when the item is used, before the block is activated.default boolean
IForgeItem.onLeftClickEntity
(ItemStack stack, Player player, Entity entity) Called when the player Left Clicks (attacks) an entity.default void
IForgeItem.onUsingTick
(ItemStack stack, LivingEntity player, int count) Called each tick while using an item.default void
IForgeItem.readShareTag
(ItemStack stack, CompoundTag nbt) Override this method to decide what to do with the NBT data received from getNBTShareTag().default void
Set the damage for this itemstack.default boolean
IForgeItem.shouldCauseBlockBreakReset
(ItemStack oldStack, ItemStack newStack) Called when the player is mining a block and the item in his hand changes.default boolean
IForgeItemStack.shouldCauseBlockBreakReset
(ItemStack newStack) Called when the player is mining a block and the item in his hand changes.default boolean
IForgeItem.shouldCauseReequipAnimation
(ItemStack oldStack, ItemStack newStack, boolean slotChanged) Determine if the player switching between these two item stacksModifier and TypeMethodDescriptionvoid
IForgeMobEffectInstance.setCurativeItems
(List<ItemStack> curativeItems) Sets the list of curative items for this potion effect, overwriting any already present -
Uses of ItemStack in net.minecraftforge.common.loot
Modifier and TypeMethodDescriptionIGlobalLootModifier.apply
(List<ItemStack> generatedLoot, LootContext context) Applies the modifier to the list of generated loot.LootModifier.apply
(List<ItemStack> generatedLoot, LootContext context) LootModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) Applies the modifier to the generated loot (all loot conditions have already been checked and have returned true).Modifier and TypeMethodDescriptionIGlobalLootModifier.apply
(List<ItemStack> generatedLoot, LootContext context) Applies the modifier to the list of generated loot.LootModifier.apply
(List<ItemStack> generatedLoot, LootContext context) LootModifier.doApply
(List<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.minecraftforge.debug.client
Modifier and TypeMethodDescriptionCustomTooltipTest.CustomItemWithTooltip.use
(Level level, Player player, InteractionHand hand) Modifier and TypeMethodDescriptionvoid
CustomTooltipTest.CustomItemWithTooltip.appendHoverText
(ItemStack stack, Level level, List<Component> components, TooltipFlag flag) @Nullable String
CustomArmorModelTest.EndermanArmorItem.getArmorTexture
(ItemStack stack, Entity entity, EquipmentSlot slot, String type) CustomTooltipTest.CustomItemWithTooltip.getTooltipImage
(ItemStack stack) -
Uses of ItemStack in net.minecraftforge.debug.client.model
-
Uses of ItemStack in net.minecraftforge.debug.client.rendering
Modifier and TypeMethodDescriptionEntityRendererEventsTest.MyEntity.getItemBySlot
(EquipmentSlot p_21127_) Modifier and TypeMethodDescriptionvoid
EntityRendererEventsTest.MyEntity.setItemSlot
(EquipmentSlot p_21036_, ItemStack p_21037_) -
Uses of ItemStack in net.minecraftforge.debug.fluid
Modifier and TypeMethodDescriptionNewFluidTest.FluidloggableBlock.pickupBlock
(LevelAccessor worldIn, BlockPos pos, BlockState state) -
Uses of ItemStack in net.minecraftforge.debug.gameplay.loot
Modifier and TypeMethodDescriptionprivate static ItemStack
GlobalLootModifiersTest.SmeltingEnchantmentModifier.smelt
(ItemStack stack, LootContext context) Modifier and TypeMethodDescriptionGlobalLootModifiersTest.DungeonLootEnhancerModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.SilkTouchTestModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.SmeltingEnchantmentModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.WheatSeedsConverterModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) Modifier and TypeMethodDescriptionprivate static ItemStack
GlobalLootModifiersTest.SmeltingEnchantmentModifier.smelt
(ItemStack stack, LootContext context) Modifier and TypeMethodDescriptionGlobalLootModifiersTest.DungeonLootEnhancerModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.SilkTouchTestModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.SmeltingEnchantmentModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.WheatSeedsConverterModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) -
Uses of ItemStack in net.minecraftforge.debug.item
Modifier and TypeMethodDescriptionCustomShieldTest.CustomShieldItem.use
(Level world, Player player, InteractionHand hand) Modifier and TypeMethodDescriptionboolean
CustomElytraTest.CustomElytra.canElytraFly
(ItemStack stack, LivingEntity entity) boolean
CustomShieldTest.CustomShieldItem.canPerformAction
(ItemStack stack, ToolAction toolAction) boolean
CustomElytraTest.CustomElytra.elytraFlightTick
(ItemStack stack, LivingEntity entity, int flightTicks) com.google.common.collect.Multimap<Attribute,
AttributeModifier> HiddenTooltipPartsTest.TestItem.getAttributeModifiers
(EquipmentSlot slot, ItemStack stack) int
HiddenTooltipPartsTest.TestItem.getDefaultTooltipHideFlags
(@NotNull ItemStack stack) CustomElytraTest.CustomElytraLayer.getElytraTexture
(ItemStack stack, AbstractClientPlayer entity) CustomElytraTest.CustomElytra.getEquipmentSlot
(ItemStack stack) CustomShieldTest.CustomShieldItem.getUseAnimation
(ItemStack stack) int
CustomShieldTest.CustomShieldItem.getUseDuration
(ItemStack stack) boolean
CustomElytraTest.CustomElytraLayer.shouldRender
(ItemStack stack, AbstractClientPlayer entity) -
Uses of ItemStack in net.minecraftforge.debug.recipe.recipebook
Modifier and TypeFieldDescriptionprivate final ItemStack
RecipeBookTestRecipe.Ingredients.result
The field for theresult
record component.Modifier and TypeMethodDescriptionRecipeBookTestRecipe.assemble
(RecipeBookExtensionTest.RecipeBookTestContainer p_44001_) RecipeBookTestRecipe.getResultItem()
RecipeBookTestRecipe.getToastSymbol()
RecipeBookTestMenu.quickMoveStack
(Player player, int idx) Mostly copied fromCraftingMenu.quickMoveStack(net.minecraft.world.entity.player.Player, int)
RecipeBookTestRecipe.Ingredients.result()
Returns the value of theresult
record component.Modifier and TypeMethodDescriptionboolean
RecipeBookTestMenu.canTakeItemForPickAll
(ItemStack stack, Slot slot) ModifierConstructorDescriptionIngredients
(String group, List<String> pattern, Map<String, Ingredient> recipe, ItemStack result) Creates an instance of aIngredients
record class. -
Uses of ItemStack in net.minecraftforge.debug.world.item
Modifier and TypeFieldDescriptionLazyCapabilitiesOnItemsTest.NO_CAPS_DISABLED_RESULTS
LazyCapabilitiesOnItemsTest.NO_CAPS_ENABLED_RESULTS
LazyCapabilitiesOnItemsTest.WARMUP_RESULTS
LazyCapabilitiesOnItemsTest.WITH_CAPS_DISABLED_RESULTS
LazyCapabilitiesOnItemsTest.WITH_CAPS_ENABLED_RESULTS
-
Uses of ItemStack in net.minecraftforge.event
Modifier and TypeFieldDescriptionprivate final ItemStack
GrindstoneEvent.bottom
private final ItemStack
AnvilUpdateEvent.left
private ItemStack
GrindstoneEvent.OnTakeItem.newBottom
private ItemStack
GrindstoneEvent.OnTakeItem.newTop
private ItemStack
AnvilUpdateEvent.output
private ItemStack
GrindstoneEvent.OnPlaceItem.output
private final ItemStack
AnvilUpdateEvent.right
private final ItemStack
ItemAttributeModifierEvent.stack
private final ItemStack
GrindstoneEvent.top
Modifier and TypeMethodDescriptionGrindstoneEvent.getBottomItem()
Returns the item in the bottom input grindstone slot.ItemAttributeModifierEvent.getItemStack()
Gets the item stack instanceAnvilUpdateEvent.getLeft()
GrindstoneEvent.OnTakeItem.getNewBottomItem()
Returns the item in that will be in the bottom input grindstone slot after the event.GrindstoneEvent.OnTakeItem.getNewTopItem()
Returns the item in that will be in the top input grindstone slot after the event..AnvilUpdateEvent.getOutput()
This is the output as determined by the event, not by the vanilla behavior between these two items.GrindstoneEvent.OnPlaceItem.getOutput()
This is the output as determined by the event, not by the vanilla behavior between these two items.AnvilUpdateEvent.getRight()
GrindstoneEvent.getTopItem()
Returns the item in the top input grindstone slot.static ItemStack
ForgeEventFactory.onItemUseFinish
(LivingEntity entity, ItemStack item, int duration, ItemStack result) Modifier and TypeMethodDescriptionstatic InteractionResultHolder<ItemStack>
ForgeEventFactory.onArrowNock
(ItemStack item, Level level, Player player, InteractionHand hand, boolean hasAmmo) static InteractionResultHolder<ItemStack>
ForgeEventFactory.onBucketUse
(Player player, Level level, ItemStack stack, HitResult target) Modifier and TypeMethodDescriptionstatic void
ForgeEventFactory.firePlayerCraftingEvent
(Player player, ItemStack crafted, Container craftMatrix) static void
ForgeEventFactory.firePlayerItemPickupEvent
(Player player, ItemEntity item, ItemStack clone) static void
ForgeEventFactory.firePlayerSmeltedEvent
(Player player, ItemStack smelted) static int
ForgeEventFactory.getItemBurnTime
(ItemStack itemStack, int burnTime, RecipeType<?> recipeType) static int
ForgeEventFactory.onApplyBonemeal
(Player player, Level level, BlockPos pos, BlockState state, ItemStack stack) static int
ForgeEventFactory.onArrowLoose
(ItemStack stack, Level level, Player player, int charge, boolean hasAmmo) static InteractionResultHolder<ItemStack>
ForgeEventFactory.onArrowNock
(ItemStack item, Level level, Player player, InteractionHand hand, boolean hasAmmo) static InteractionResultHolder<ItemStack>
ForgeEventFactory.onBucketUse
(Player player, Level level, ItemStack stack, HitResult target) static int
ForgeEventFactory.onEnchantmentLevelSet
(Level level, BlockPos pos, int enchantRow, int power, ItemStack itemStack, int enchantmentLevel) static int
ForgeEventFactory.onItemExpire
(ItemEntity entity, ItemStack item) static ItemTooltipEvent
ForgeEventFactory.onItemTooltip
(ItemStack itemStack, Player entityPlayer, List<Component> list, TooltipFlag flags) static ItemStack
ForgeEventFactory.onItemUseFinish
(LivingEntity entity, ItemStack item, int duration, ItemStack result) static int
ForgeEventFactory.onItemUseStart
(LivingEntity entity, ItemStack item, int duration) static int
ForgeEventFactory.onItemUseTick
(LivingEntity entity, ItemStack item, int duration) static void
ForgeEventFactory.onPlayerBrewedPotion
(Player player, ItemStack stack) static void
ForgeEventFactory.onPlayerDestroyItem
(Player player, ItemStack stack, InteractionHand hand) static BlockState
ForgeEventFactory.onToolUse
(BlockState originalState, Level level, BlockPos pos, Player player, ItemStack stack, ToolAction toolAction) Deprecated, for removal: This API element is subject to removal in a future version.static boolean
ForgeEventFactory.onUseItemStop
(LivingEntity entity, ItemStack item, int duration) 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 slot to a specific itemstack.void
Sets the output slot to a specific itemstack.Modifier and TypeMethodDescriptionstatic boolean
ForgeEventFactory.onPotionAttemptBrew
(NonNullList<ItemStack> stacks) static void
ForgeEventFactory.onPotionBrewed
(NonNullList<ItemStack> brewingItemStacks) ModifierConstructorDescriptionAnvilUpdateEvent
(ItemStack left, ItemStack right, String name, int cost, Player player) protected
GrindstoneEvent
(ItemStack top, ItemStack bottom, int xp) ItemAttributeModifierEvent
(ItemStack stack, EquipmentSlot slotType, com.google.common.collect.Multimap<Attribute, AttributeModifier> modifiers) OnPlaceItem
(ItemStack top, ItemStack bottom, int xp) OnTakeItem
(ItemStack top, ItemStack bottom, int xp) -
Uses of ItemStack in net.minecraftforge.event.brewing
Modifier and TypeMethodDescriptionPotionBrewEvent.getItem
(int index) PlayerBrewedPotionEvent.getStack()
The ItemStack of the potion.ModifierConstructorDescriptionPost
(NonNullList<ItemStack> stacks) protected
PotionBrewEvent
(NonNullList<ItemStack> stacks) Pre
(NonNullList<ItemStack> stacks) -
Uses of ItemStack in net.minecraftforge.event.enchanting
Modifier and TypeMethodDescriptionEnchantmentLevelSetEvent.getItem()
Get the item being enchantedModifierConstructorDescriptionEnchantmentLevelSetEvent
(Level world, BlockPos pos, int enchantRow, int power, ItemStack itemStack, int level) -
Uses of ItemStack in net.minecraftforge.event.entity.living
Modifier and TypeFieldDescriptionprivate 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
Modifier and TypeMethodDescriptionLivingEquipmentChangeEvent.getFrom()
LivingEntityUseItemEvent.getItem()
LivingGetProjectileEvent.getProjectileItemStack()
LivingGetProjectileEvent.getProjectileWeaponItemStack()
LivingEntityUseItemEvent.Finish.getResultStack()
LivingEquipmentChangeEvent.getTo()
Modifier and TypeMethodDescriptionvoid
LivingGetProjectileEvent.setProjectileItemStack
(ItemStack projectileItemStack) Sets the projectile itemstack to be used.void
LivingEntityUseItemEvent.Finish.setResultStack
(ItemStack result) ModifierConstructorDescriptionFinish
(LivingEntity entity, ItemStack item, int duration, ItemStack result) private
LivingEntityUseItemEvent
(LivingEntity entity, ItemStack item, int duration) LivingEquipmentChangeEvent
(LivingEntity entity, EquipmentSlot slot, ItemStack from, ItemStack to) LivingGetProjectileEvent
(LivingEntity livingEntity, ItemStack projectileWeaponItemStack, ItemStack ammo) Start
(LivingEntity entity, ItemStack item, int duration) Stop
(LivingEntity entity, ItemStack item, int duration) Tick
(LivingEntity entity, ItemStack item, int duration) -
Uses of ItemStack in net.minecraftforge.event.entity.player
Modifier and TypeFieldDescriptionprivate final ItemStack
ArrowLooseEvent.bow
private final ItemStack
ArrowNockEvent.bow
private final ItemStack
PlayerEvent.ItemCraftedEvent.crafting
private final ItemStack
FillBucketEvent.current
private final ItemStack
ItemTooltipEvent.itemStack
private final ItemStack
AnvilRepairEvent.left
private final ItemStack
PlayerDestroyItemEvent.original
private final ItemStack
AnvilRepairEvent.output
private ItemStack
FillBucketEvent.result
private final ItemStack
AnvilRepairEvent.right
private final ItemStack
PlayerEvent.ItemSmeltedEvent.smelting
private final ItemStack
BonemealEvent.stack
private final ItemStack
PlayerEvent.ItemPickupEvent.stack
Clone item stack, containing the item and amount picked upModifier and TypeFieldDescriptionprivate InteractionResultHolder<ItemStack>
ArrowNockEvent.action
private final NonNullList<ItemStack>
ItemFishedEvent.stacks
Modifier and TypeMethodDescriptionArrowLooseEvent.getBow()
ArrowNockEvent.getBow()
PlayerEvent.ItemCraftedEvent.getCrafting()
FillBucketEvent.getEmptyBucket()
FillBucketEvent.getFilledBucket()
AnvilRepairEvent.getIngredientInput()
Get the second item input into the anvilAnvilRepairEvent.getItemInput()
Get the first item input into the anvilAnvilRepairEvent.getItemResult()
Get the output result from the anvilItemTooltipEvent.getItemStack()
TheItemStack
with the tooltip.PlayerInteractEvent.getItemStack()
PlayerDestroyItemEvent.getOriginal()
PlayerEvent.ItemSmeltedEvent.getSmelting()
BonemealEvent.getStack()
PlayerEvent.ItemPickupEvent.getStack()
Modifier and TypeMethodDescriptionArrowNockEvent.getAction()
ItemFishedEvent.getDrops()
Use this to get the items the player will receive.Modifier and TypeMethodDescriptionvoid
ArrowNockEvent.setAction
(InteractionResultHolder<ItemStack> action) ModifierConstructorDescriptionAnvilRepairEvent
(Player player, ItemStack left, ItemStack right, ItemStack output) ArrowLooseEvent
(Player player, ItemStack bow, Level world, int charge, boolean hasAmmo) ArrowNockEvent
(Player player, ItemStack item, InteractionHand hand, Level world, boolean hasAmmo) BonemealEvent
(Player player, Level world, BlockPos pos, BlockState block, ItemStack stack) FillBucketEvent
(Player player, ItemStack current, Level world, HitResult target) ItemCraftedEvent
(Player player, ItemStack crafting, Container craftMatrix) ItemPickupEvent
(Player player, ItemEntity entPickedUp, ItemStack stack) ItemSmeltedEvent
(Player player, ItemStack crafting) ItemTooltipEvent
(ItemStack itemStack, Player entityPlayer, List<Component> list, TooltipFlag flags) This event is fired ingetTooltipLines(Player, TooltipFlag)
, which in turn is called from it's respective GUIContainer.PlayerDestroyItemEvent
(Player player, ItemStack original, InteractionHand hand) ModifierConstructorDescriptionItemFishedEvent
(List<ItemStack> stacks, int rodDamage, FishingHook hook) -
Uses of ItemStack in net.minecraftforge.event.furnace
Modifier and TypeMethodDescriptionFurnaceFuelBurnTimeEvent.getItemStack()
Get the ItemStack "fuel" in question.ModifierConstructorDescriptionFurnaceFuelBurnTimeEvent
(ItemStack itemStack, int burnTime, RecipeType<?> recipeType) -
Uses of ItemStack in net.minecraftforge.event.world
Modifier and TypeFieldDescriptionprivate final ItemStack
BlockEvent.BlockToolInteractEvent.stack
Deprecated, for removal: This API element is subject to removal in a future version.Modifier and TypeMethodDescriptionBlockEvent.BlockToolInteractEvent.getHeldItemStack()
Deprecated, for removal: This API element is subject to removal in a future version.BlockEvent.BlockToolModificationEvent.getHeldItemStack()
ModifierConstructorDescriptionBlockToolInteractEvent
(LevelAccessor world, BlockPos pos, BlockState originalState, Player player, ItemStack stack, ToolAction toolAction) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of ItemStack in net.minecraftforge.fluids
Modifier 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.FluidAttributes.getBucket
(FluidStack stack) static ItemStack
FluidUtil.getFilledBucket
(FluidStack fluidStack) FluidActionResult.getResult()
Modifier 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 LazyOptional<IFluidHandlerItem>
FluidUtil.getFluidHandler
(ItemStack itemStack) Helper method to get anIFluidHandlerItem
for an itemStack.boolean
FluidStack.isFluidEqual
(ItemStack other) Determines if the FluidIDs and NBT Tags are equal compared to a registered container ItemStack.static FluidActionResult
FluidUtil.tryEmptyContainer
(ItemStack container, IFluidHandler fluidDestination, int maxAmount, 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, 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, Player player, boolean doFill) Fill a container from the given fluidSource.static FluidActionResult
FluidUtil.tryFillContainerAndStow
(ItemStack container, IFluidHandler fluidSource, IItemHandler inventory, int maxAmount, Player player, boolean doFill) Takes an Fluid Container Item and tries to fill it from the given tank.static FluidActionResult
FluidUtil.tryPickUpFluid
(ItemStack emptyContainer, 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
(Player player, Level level, InteractionHand hand, BlockPos pos, ItemStack container, FluidStack resource) ModifierConstructorDescriptionprivate
FluidActionResult
(boolean success, ItemStack result) FluidActionResult
(ItemStack result) -
Uses of ItemStack in net.minecraftforge.fluids.capability
Modifier and TypeMethodDescriptionIFluidHandlerItem.getContainer()
Get the container currently acted on by this fluid handler.Modifier and TypeMethodDescriptionItemFluidContainer.initCapabilities
(ItemStack stack, CompoundTag nbt) -
Uses of ItemStack in net.minecraftforge.fluids.capability.templates
Modifier and TypeFieldDescriptionprotected ItemStack
FluidHandlerItemStack.container
protected ItemStack
FluidHandlerItemStackSimple.container
protected final ItemStack
FluidHandlerItemStack.SwapEmpty.emptyContainer
protected final ItemStack
FluidHandlerItemStackSimple.SwapEmpty.emptyContainer
Modifier and TypeMethodDescriptionFluidHandlerItemStack.getContainer()
FluidHandlerItemStackSimple.getContainer()
ModifierConstructorDescriptionConsumable
(ItemStack container, int capacity) Consumable
(ItemStack container, int capacity) FluidHandlerItemStack
(ItemStack container, int capacity) FluidHandlerItemStackSimple
(ItemStack container, int capacity) -
Uses of ItemStack in net.minecraftforge.fluids.capability.wrappers
-
Uses of ItemStack in net.minecraftforge.items
Modifier and TypeMethodDescriptionstatic ItemStack
ItemHandlerHelper.copyStackWithSize
(ItemStack itemStack, int size) 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()
IItemHandler.getStackInSlot
(int slot) Returns the ItemStack in a given slot.ItemStackHandler.getStackInSlot
(int slot) 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.private static ItemStack
VanillaInventoryCodeHooks.insertStack
(BlockEntity source, Object destination, IItemHandler destInventory, ItemStack stack, int slot) Copied from TileEntityHopper#insertStack and added capability supportprivate static ItemStack
VanillaInventoryCodeHooks.putStackInInventoryAllSlots
(BlockEntity source, Object destination, IItemHandler destInventory, ItemStack stack) SlotItemHandler.remove
(int amount) Modifier and TypeMethodDescriptionstatic boolean
ItemHandlerHelper.canItemStacksStack
(ItemStack a, ItemStack b) static boolean
ItemHandlerHelper.canItemStacksStackRelaxed
(ItemStack a, ItemStack b) A relaxed version of canItemStacksStack that stacks itemstacks with different metadata if they don't have subtypes.static ItemStack
ItemHandlerHelper.copyStackWithSize
(ItemStack itemStack, int size) static boolean
VanillaInventoryCodeHooks.dropperInsertHook
(Level level, BlockPos pos, DispenserBlockEntity dropper, int slot, ItemStack stack) Copied from BlockDropper#dispense and added capability supportint
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.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.private static ItemStack
VanillaInventoryCodeHooks.insertStack
(BlockEntity source, Object destination, IItemHandler destInventory, ItemStack stack, int slot) Copied from TileEntityHopper#insertStack and added capability supportboolean
IItemHandler.isItemValid
(int slot, ItemStack stack) This function re-implements the vanilla functionContainer.canPlaceItem(int, ItemStack)
.boolean
ItemStackHandler.isItemValid
(int slot, ItemStack stack) boolean
void
SlotItemHandler.onQuickCraft
(ItemStack oldStackIn, ItemStack newStackIn) private static ItemStack
VanillaInventoryCodeHooks.putStackInInventoryAllSlots
(BlockEntity source, Object destination, IItemHandler destInventory, ItemStack stack) void
void
IItemHandlerModifiable.setStackInSlot
(int slot, ItemStack stack) Overrides the stack in the given slot.void
ItemStackHandler.setStackInSlot
(int slot, ItemStack stack) -
Uses of ItemStack in net.minecraftforge.items.wrapper
Modifier and TypeMethodDescriptionCombinedInvWrapper.extractItem
(int slot, int amount, boolean simulate) EmptyHandler.extractItem
(int slot, int amount, boolean simulate) EntityEquipmentInvWrapper.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) EmptyHandler.getStackInSlot
(int slot) EntityEquipmentInvWrapper.getStackInSlot
(int slot) InvWrapper.getStackInSlot
(int slot) RangedWrapper.getStackInSlot
(int slot) SidedInvWrapper.getStackInSlot
(int slot) CombinedInvWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) EmptyHandler.insertItem
(int slot, ItemStack stack, boolean simulate) EntityEquipmentInvWrapper.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) RecipeWrapper.removeItem
(int slot, int count) Attempts to remove n items from the specified slot.RecipeWrapper.removeItemNoUpdate
(int index) Removes the stack contained in this slot from the underlying handler, and returns it.Modifier and TypeMethodDescriptionboolean
RecipeWrapper.canPlaceItem
(int slot, ItemStack stack) protected int
EntityEquipmentInvWrapper.getStackLimit
(int slot, ItemStack stack) CombinedInvWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) EmptyHandler.insertItem
(int slot, ItemStack stack, boolean simulate) EntityEquipmentInvWrapper.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
EmptyHandler.isItemValid
(int slot, ItemStack stack) boolean
EntityEquipmentInvWrapper.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) private void
SidedInvWrapper.setInventorySlotContents
(int slot, ItemStack stack) void
Sets the contents of this slot to the provided stack.void
CombinedInvWrapper.setStackInSlot
(int slot, ItemStack stack) void
EmptyHandler.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)