Uses of Class
net.minecraft.item.ItemStack
Packages that use ItemStack
Package
Description
-
Uses of ItemStack in net.minecraft.advancements
Fields in net.minecraft.advancements declared as ItemStackMethods in net.minecraft.advancements that return ItemStackModifier and TypeMethodDescriptionDisplayInfo.getIcon()private static ItemStackDisplayInfo.getIcon(com.google.gson.JsonObject p_193221_0_) Methods in net.minecraft.advancements with parameters of type ItemStackModifier and TypeMethodDescriptionAdvancement.Builder.display(ItemStack p_215092_1_, ITextComponent p_215092_2_, ITextComponent p_215092_3_, ResourceLocation p_215092_4_, FrameType p_215092_5_, boolean p_215092_6_, boolean p_215092_7_, boolean p_215092_8_) Constructors in net.minecraft.advancements with parameters of type ItemStackModifierConstructorDescriptionDisplayInfo(ItemStack p_i47586_1_, ITextComponent p_i47586_2_, ITextComponent p_i47586_3_, ResourceLocation p_i47586_4_, FrameType p_i47586_5_, boolean p_i47586_6_, boolean p_i47586_7_, boolean p_i47586_8_) -
Uses of ItemStack in net.minecraft.advancements.criterion
Methods in net.minecraft.advancements.criterion with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanFishingRodHookedTrigger.Instance.matches(ItemStack p_234659_1_, LootContext p_234659_2_, Collection<ItemStack> p_234659_3_) booleanInventoryChangeTrigger.Instance.matches(PlayerInventory p_234805_1_, ItemStack p_234805_2_, int p_234805_3_, int p_234805_4_, int p_234805_5_) booleanbooleanbooleanbooleanPlacedBlockTrigger.Instance.matches(BlockState p_193210_1_, BlockPos p_193210_2_, ServerWorld p_193210_3_, ItemStack p_193210_4_) booleanPlayerEntityInteractionTrigger.Instance.matches(ItemStack p_241481_1_, LootContext p_241481_2_) booleanRightClickBlockWithItemTrigger.Instance.matches(BlockState p_226700_1_, ServerWorld p_226700_2_, BlockPos p_226700_3_, ItemStack p_226700_4_) booleanbooleanThrownItemPickedUpByEntityTrigger.Instance.matches(ServerPlayerEntity p_234836_1_, ItemStack p_234836_2_, LootContext p_234836_3_) booleanbooleanVillagerTradeTrigger.Instance.matches(LootContext p_236575_1_, ItemStack p_236575_2_) voidBeeNestDestroyedTrigger.trigger(ServerPlayerEntity p_226223_1_, Block p_226223_2_, ItemStack p_226223_3_, int p_226223_4_) voidConsumeItemTrigger.trigger(ServerPlayerEntity p_193148_1_, ItemStack p_193148_2_) voidEnchantedItemTrigger.trigger(ServerPlayerEntity p_192190_1_, ItemStack p_192190_2_, int p_192190_3_) voidFilledBucketTrigger.trigger(ServerPlayerEntity p_204817_1_, ItemStack p_204817_2_) voidFishingRodHookedTrigger.trigger(ServerPlayerEntity p_204820_1_, ItemStack p_204820_2_, FishingBobberEntity p_204820_3_, Collection<ItemStack> p_204820_4_) voidInventoryChangeTrigger.trigger(ServerPlayerEntity p_234803_1_, PlayerInventory p_234803_2_, ItemStack p_234803_3_) private voidInventoryChangeTrigger.trigger(ServerPlayerEntity p_234804_1_, PlayerInventory p_234804_2_, ItemStack p_234804_3_, int p_234804_4_, int p_234804_5_, int p_234804_6_) voidItemDurabilityTrigger.trigger(ServerPlayerEntity p_193158_1_, ItemStack p_193158_2_, int p_193158_3_) voidPlacedBlockTrigger.trigger(ServerPlayerEntity p_193173_1_, BlockPos p_193173_2_, ItemStack p_193173_3_) voidPlayerEntityInteractionTrigger.trigger(ServerPlayerEntity p_241476_1_, ItemStack p_241476_2_, Entity p_241476_3_) voidRightClickBlockWithItemTrigger.trigger(ServerPlayerEntity p_226695_1_, BlockPos p_226695_2_, ItemStack p_226695_3_) voidShotCrossbowTrigger.trigger(ServerPlayerEntity p_215111_1_, ItemStack p_215111_2_) voidThrownItemPickedUpByEntityTrigger.trigger(ServerPlayerEntity p_234830_1_, ItemStack p_234830_2_, Entity p_234830_3_) voidUsedTotemTrigger.trigger(ServerPlayerEntity p_193187_1_, ItemStack p_193187_2_) voidVillagerTradeTrigger.trigger(ServerPlayerEntity p_215114_1_, AbstractVillagerEntity p_215114_2_, ItemStack p_215114_3_) Method parameters in net.minecraft.advancements.criterion with type arguments of type ItemStackModifier and TypeMethodDescriptionbooleanFishingRodHookedTrigger.Instance.matches(ItemStack p_234659_1_, LootContext p_234659_2_, Collection<ItemStack> p_234659_3_) voidFishingRodHookedTrigger.trigger(ServerPlayerEntity p_204820_1_, ItemStack p_204820_2_, FishingBobberEntity p_204820_3_, Collection<ItemStack> p_204820_4_) -
Uses of ItemStack in net.minecraft.block
Methods in net.minecraft.block that return ItemStackModifier and TypeMethodDescriptionAbstractBannerBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) AbstractBodyPlantBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) AttachedStemBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) BambooSaplingBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) Block.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) Deprecated.CropsBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) EndGatewayBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) EndPortalBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) FlowerPotBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) FrostedIceBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) MovingPistonBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) NetherPortalBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) NetherWartBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) PistonHeadBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) ShulkerBoxBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) SpawnerBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) StemBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) SweetBerryBushBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) TallSeaGrassBlock.getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_) static ItemStackShulkerBoxBlock.getColoredItemStack(DyeColor p_190953_0_) Methods in net.minecraft.block that return types with arguments of type ItemStackModifier and TypeMethodDescriptionAbstractBlock.AbstractBlockState.getDrops(LootContext.Builder p_215693_1_) AbstractBlock.getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_) Deprecated.BeehiveBlock.getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_) Block.getDrops(BlockState p_220070_0_, ServerWorld p_220070_1_, BlockPos p_220070_2_, TileEntity p_220070_3_) Block.getDrops(BlockState p_220077_0_, ServerWorld p_220077_1_, BlockPos p_220077_2_, TileEntity p_220077_3_, Entity p_220077_4_, ItemStack p_220077_5_) FlowingFluidBlock.getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_) MovingPistonBlock.getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_) ShulkerBoxBlock.getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_) SkullWallPlayerBlock.getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_) Methods in net.minecraft.block with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static BlockStateComposterBlock.addItem(BlockState p_235487_0_, IWorld p_235487_1_, BlockPos p_235487_2_, ItemStack p_235487_3_) voidBlock.appendHoverText(ItemStack p_190948_1_, IBlockReader p_190948_2_, List<ITextComponent> p_190948_3_, ITooltipFlag p_190948_4_) voidShulkerBoxBlock.appendHoverText(ItemStack p_190948_1_, IBlockReader p_190948_2_, List<ITextComponent> p_190948_3_, ITooltipFlag p_190948_4_) booleanComposterBlock.EmptyInventory.canPlaceItemThroughFace(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) booleanComposterBlock.FullInventory.canPlaceItemThroughFace(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) booleanComposterBlock.PartialInventory.canPlaceItemThroughFace(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) static booleanWitherSkeletonSkullBlock.canSpawnMob(World p_196299_0_, BlockPos p_196299_1_, ItemStack p_196299_2_) booleanComposterBlock.EmptyInventory.canTakeItemThroughFace(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) booleanComposterBlock.FullInventory.canTakeItemThroughFace(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) booleanComposterBlock.PartialInventory.canTakeItemThroughFace(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) static voidBlock.dropResources(BlockState p_220054_0_, World p_220054_1_, BlockPos p_220054_2_, TileEntity p_220054_3_, Entity p_220054_4_, ItemStack p_220054_5_) protected IDispenseItemBehaviorDispenserBlock.getDispenseMethod(ItemStack p_149940_1_) protected IDispenseItemBehaviorDropperBlock.getDispenseMethod(ItemStack p_149940_1_) Block.getDrops(BlockState p_220077_0_, ServerWorld p_220077_1_, BlockPos p_220077_2_, TileEntity p_220077_3_, Entity p_220077_4_, ItemStack p_220077_5_) static BlockStateComposterBlock.insertItem(BlockState p_235486_0_, ServerWorld p_235486_1_, ItemStack p_235486_2_, BlockPos p_235486_3_) private static booleanRespawnAnchorBlock.isRespawnFuel(ItemStack p_235561_0_) private static voidLecternBlock.placeBook(World p_220148_0_, BlockPos p_220148_1_, BlockState p_220148_2_, ItemStack p_220148_3_) voidBeehiveBlock.playerDestroy(World p_180657_1_, PlayerEntity p_180657_2_, BlockPos p_180657_3_, BlockState p_180657_4_, TileEntity p_180657_5_, ItemStack p_180657_6_) voidBlock.playerDestroy(World p_180657_1_, PlayerEntity p_180657_2_, BlockPos p_180657_3_, BlockState p_180657_4_, TileEntity p_180657_5_, ItemStack p_180657_6_) voidDoublePlantBlock.playerDestroy(World p_180657_1_, PlayerEntity p_180657_2_, BlockPos p_180657_3_, BlockState p_180657_4_, TileEntity p_180657_5_, ItemStack p_180657_6_) voidIceBlock.playerDestroy(World p_180657_1_, PlayerEntity p_180657_2_, BlockPos p_180657_3_, BlockState p_180657_4_, TileEntity p_180657_5_, ItemStack p_180657_6_) voidTurtleEggBlock.playerDestroy(World p_180657_1_, PlayerEntity p_180657_2_, BlockPos p_180657_3_, BlockState p_180657_4_, TileEntity p_180657_5_, ItemStack p_180657_6_) static voidBlock.popResource(World p_180635_0_, BlockPos p_180635_1_, ItemStack p_180635_2_) voidAbstractBannerBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidAbstractFurnaceBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidBarrelBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidBeaconBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidBedBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidBrewingStandBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidChestBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidCommandBlockBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidConduitBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidDispenserBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidDoorBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidDoublePlantBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidEnchantingTableBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidHopperBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidJukeboxBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidPistonBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidRedstoneDiodeBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidShulkerBoxBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidSkullPlayerBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidSkullWallPlayerBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidStructureBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidTripWireHookBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidWitherSkeletonSkullBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidWitherSkeletonWallSkullBlock.setPlacedBy(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) voidJukeboxBlock.setRecord(IWorld p_176431_1_, BlockPos p_176431_2_, BlockState p_176431_3_, ItemStack p_176431_4_) voidAbstractBlock.AbstractBlockState.spawnAfterBreak(ServerWorld p_215706_1_, BlockPos p_215706_2_, ItemStack p_215706_3_) voidAbstractBlock.spawnAfterBreak(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) Deprecated.voidOreBlock.spawnAfterBreak(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) voidRedstoneOreBlock.spawnAfterBreak(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) voidSilverfishBlock.spawnAfterBreak(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) voidSpawnerBlock.spawnAfterBreak(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) static booleanLecternBlock.tryPlaceBook(World p_220151_0_, BlockPos p_220151_1_, BlockState p_220151_2_, ItemStack p_220151_3_) Method parameters in net.minecraft.block with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidBlock.fillItemCategory(ItemGroup p_149666_1_, NonNullList<ItemStack> p_149666_2_) Constructors in net.minecraft.block with parameters of type ItemStackModifierConstructorDescriptionFullInventory(BlockState p_i50463_1_, IWorld p_i50463_2_, BlockPos p_i50463_3_, ItemStack p_i50463_4_) -
Uses of ItemStack in net.minecraft.client
Methods in net.minecraft.client that return ItemStackModifier and TypeMethodDescriptionMinecraft.addCustomNbtData(ItemStack p_184119_1_, TileEntity p_184119_2_) Methods in net.minecraft.client with parameters of type ItemStackModifier and TypeMethodDescriptionMinecraft.addCustomNbtData(ItemStack p_184119_1_, TileEntity p_184119_2_) -
Uses of ItemStack in net.minecraft.client.entity.player
Methods in net.minecraft.client.entity.player with parameters of type ItemStackModifier and TypeMethodDescriptionvoidClientPlayerEntity.openItemGui(ItemStack p_184814_1_, Hand p_184814_2_) -
Uses of ItemStack in net.minecraft.client.gui
Fields in net.minecraft.client.gui declared as ItemStackMethods in net.minecraft.client.gui with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidIngameGui.renderSlot(int p_184044_1_, int p_184044_2_, float p_184044_3_, PlayerEntity p_184044_4_, ItemStack p_184044_5_) -
Uses of ItemStack in net.minecraft.client.gui.advancements
Fields in net.minecraft.client.gui.advancements declared as ItemStackMethods in net.minecraft.client.gui.advancements with parameters of type ItemStackModifier and TypeMethodDescriptionvoidAdvancementTabType.drawIcon(int p_192652_1_, int p_192652_2_, int p_192652_3_, ItemRenderer p_192652_4_, ItemStack p_192652_5_) -
Uses of ItemStack in net.minecraft.client.gui.recipebook
Fields in net.minecraft.client.gui.recipebook declared as ItemStackModifier and TypeFieldDescriptionfinal ItemStack[]RecipeOverlayGui.RecipeButtonWidget.Child.ingredientsMethods in net.minecraft.client.gui.recipebook that return ItemStackConstructors in net.minecraft.client.gui.recipebook with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.client.gui.screen
Fields in net.minecraft.client.gui.screen declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackLoomScreen.bannerStackprivate final ItemStackEditBookScreen.bookprivate ItemStackLoomScreen.dyeStackprivate ItemStackEnchantmentScreen.lastprivate ItemStackLoomScreen.patternStack(package private) final ItemStackGamemodeSelectionScreen.Mode.renderStackMethods in net.minecraft.client.gui.screen with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidCreateFlatWorldScreen.DetailsList.LayerEntry.blitSlot(MatrixStack p_238605_1_, int p_238605_2_, int p_238605_3_, ItemStack p_238605_4_) static ReadBookScreen.IBookInfoScreen.getTooltipFromItem(ItemStack p_231151_1_) protected voidScreen.renderTooltip(MatrixStack p_230457_1_, ItemStack p_230457_2_, int p_230457_3_, int p_230457_4_) Constructors in net.minecraft.client.gui.screen with parameters of type ItemStackModifierConstructorDescriptionEditBookScreen(PlayerEntity p_i51100_1_, ItemStack p_i51100_2_, Hand p_i51100_3_) privateMode(ITextComponent p_i232285_3_, String p_i232285_4_, ItemStack p_i232285_5_) UnwrittenBookInfo(ItemStack p_i50617_1_) WrittenBookInfo(ItemStack p_i50616_1_) -
Uses of ItemStack in net.minecraft.client.gui.screen.inventory
Fields in net.minecraft.client.gui.screen.inventory declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackContainerScreen.draggingItemprivate ItemStackContainerScreen.lastQuickMovedprivate ItemStackContainerScreen.snapbackItemFields in net.minecraft.client.gui.screen.inventory with type parameters of type ItemStackModifier and TypeFieldDescriptionfinal NonNullList<ItemStack>CreativeScreen.CreativeContainer.itemsMethods in net.minecraft.client.gui.screen.inventory that return ItemStackModifier and TypeMethodDescriptionCreativeScreen.CreativeSlot.getItem()CreativeScreen.CreativeSlot.onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_) CreativeScreen.CreativeContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) CreativeScreen.CreativeSlot.remove(int p_75209_1_) Methods in net.minecraft.client.gui.screen.inventory with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanCreativeScreen.CreativeContainer.canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_) intCreativeScreen.CreativeSlot.getMaxStackSize(ItemStack p_178170_1_) booleanCreativeScreen.CreativeSlot.onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_) private voidMerchantScreen.renderAndDecorateCostA(MatrixStack p_238841_1_, ItemStack p_238841_2_, ItemStack p_238841_3_, int p_238841_4_, int p_238841_5_) private voidContainerScreen.renderFloatingItem(ItemStack p_146982_1_, int p_146982_2_, int p_146982_3_, String p_146982_4_) protected voidCreativeScreen.renderTooltip(MatrixStack p_230457_1_, ItemStack p_230457_2_, int p_230457_3_, int p_230457_4_) voidvoidAbstractRepairScreen.slotChanged(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_) voidAnvilScreen.slotChanged(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_) voidCreativeCraftingListener.slotChanged(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_) Method parameters in net.minecraft.client.gui.screen.inventory with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidAbstractRepairScreen.refreshContainer(Container p_71110_1_, NonNullList<ItemStack> p_71110_2_) voidCreativeCraftingListener.refreshContainer(Container p_71110_1_, NonNullList<ItemStack> p_71110_2_) -
Uses of ItemStack in net.minecraft.client.multiplayer
Fields in net.minecraft.client.multiplayer declared as ItemStackMethods in net.minecraft.client.multiplayer that return ItemStackModifier and TypeMethodDescriptionPlayerController.handleInventoryMouseClick(int p_187098_1_, int p_187098_2_, int p_187098_3_, ClickType p_187098_4_, PlayerEntity p_187098_5_) Methods in net.minecraft.client.multiplayer with parameters of type ItemStackModifier and TypeMethodDescriptionvoidPlayerController.handleCreativeModeItemAdd(ItemStack p_78761_1_, int p_78761_2_) voidPlayerController.handleCreativeModeItemDrop(ItemStack p_78752_1_) -
Uses of ItemStack in net.minecraft.client.network.play
Methods in net.minecraft.client.network.play that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackClientPlayNetHandler.findTotem(PlayerEntity p_217282_0_) -
Uses of ItemStack in net.minecraft.client.particle
Constructors in net.minecraft.client.particle with parameters of type ItemStackModifierConstructorDescriptionprivateBreakingParticle(ClientWorld p_i232346_1_, double p_i232346_2_, double p_i232346_4_, double p_i232346_6_, double p_i232346_8_, double p_i232346_10_, double p_i232346_12_, ItemStack p_i232346_14_) protectedBreakingParticle(ClientWorld p_i232348_1_, double p_i232348_2_, double p_i232348_4_, double p_i232348_6_, ItemStack p_i232348_8_) -
Uses of ItemStack in net.minecraft.client.renderer
Fields in net.minecraft.client.renderer declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackGameRenderer.itemActivationItemprivate ItemStackFirstPersonRenderer.mainHandItemprivate ItemStackFirstPersonRenderer.offHandItemMethods in net.minecraft.client.renderer with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidFirstPersonRenderer.applyEatTransform(MatrixStack p_228398_1_, float p_228398_2_, HandSide p_228398_3_, ItemStack p_228398_4_) voidGameRenderer.displayItemActivation(ItemStack p_190565_1_) ItemModelMesher.getItemModel(ItemStack p_178089_1_) ItemRenderer.getModel(ItemStack p_184393_1_, World p_184393_2_, LivingEntity p_184393_3_) ItemModelMesher.getParticleIcon(ItemStack p_199309_1_) static RenderTypeRenderTypeLookup.getRenderType(ItemStack p_239219_0_, boolean p_239219_1_) voidItemRenderer.render(ItemStack p_229111_1_, ItemCameraTransforms.TransformType p_229111_2_, boolean p_229111_3_, MatrixStack p_229111_4_, IRenderTypeBuffer p_229111_5_, int p_229111_6_, int p_229111_7_, IBakedModel p_229111_8_) voidItemRenderer.renderAndDecorateFakeItem(ItemStack p_239390_1_, int p_239390_2_, int p_239390_3_) voidItemRenderer.renderAndDecorateItem(LivingEntity p_184391_1_, ItemStack p_184391_2_, int p_184391_3_, int p_184391_4_) voidItemRenderer.renderAndDecorateItem(ItemStack p_180450_1_, int p_180450_2_, int p_180450_3_) private voidFirstPersonRenderer.renderArmWithItem(AbstractClientPlayerEntity p_228405_1_, float p_228405_2_, float p_228405_3_, Hand p_228405_4_, float p_228405_5_, ItemStack p_228405_6_, float p_228405_7_, MatrixStack p_228405_8_, IRenderTypeBuffer p_228405_9_, int p_228405_10_) voidItemRenderer.renderGuiItem(ItemStack p_175042_1_, int p_175042_2_, int p_175042_3_) protected voidItemRenderer.renderGuiItem(ItemStack p_191962_1_, int p_191962_2_, int p_191962_3_, IBakedModel p_191962_4_) voidItemRenderer.renderGuiItemDecorations(FontRenderer p_175030_1_, ItemStack p_175030_2_, int p_175030_3_, int p_175030_4_) voidItemRenderer.renderGuiItemDecorations(FontRenderer p_180453_1_, ItemStack p_180453_2_, int p_180453_3_, int p_180453_4_, String p_180453_5_) voidFirstPersonRenderer.renderItem(LivingEntity p_228397_1_, ItemStack p_228397_2_, ItemCameraTransforms.TransformType p_228397_3_, boolean p_228397_4_, MatrixStack p_228397_5_, IRenderTypeBuffer p_228397_6_, int p_228397_7_) private voidFirstPersonRenderer.renderMap(MatrixStack p_228404_1_, IRenderTypeBuffer p_228404_2_, int p_228404_3_, ItemStack p_228404_4_) voidItemRenderer.renderModelLists(IBakedModel p_229114_1_, ItemStack p_229114_2_, int p_229114_3_, int p_229114_4_, MatrixStack p_229114_5_, IVertexBuilder p_229114_6_) private voidFirstPersonRenderer.renderOneHandedMap(MatrixStack p_228402_1_, IRenderTypeBuffer p_228402_2_, int p_228402_3_, float p_228402_4_, HandSide p_228402_5_, float p_228402_6_, ItemStack p_228402_7_) voidItemRenderer.renderQuadList(MatrixStack p_229112_1_, IVertexBuilder p_229112_2_, List<BakedQuad> p_229112_3_, ItemStack p_229112_4_, int p_229112_5_, int p_229112_6_) voidItemRenderer.renderStatic(LivingEntity p_229109_1_, ItemStack p_229109_2_, ItemCameraTransforms.TransformType p_229109_3_, boolean p_229109_4_, MatrixStack p_229109_5_, IRenderTypeBuffer p_229109_6_, World p_229109_7_, int p_229109_8_, int p_229109_9_) voidItemRenderer.renderStatic(ItemStack p_229110_1_, ItemCameraTransforms.TransformType p_229110_2_, int p_229110_3_, int p_229110_4_, MatrixStack p_229110_5_, IRenderTypeBuffer p_229110_6_) private voidItemRenderer.tryRenderGuiItem(LivingEntity p_239387_1_, ItemStack p_239387_2_, int p_239387_3_, int p_239387_4_) -
Uses of ItemStack in net.minecraft.client.renderer.color
Methods in net.minecraft.client.renderer.color with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity with parameters of type ItemStackModifier and TypeMethodDescriptionprotected intItemRenderer.getRenderAmount(ItemStack p_177078_1_) -
Uses of ItemStack in net.minecraft.client.renderer.entity.layers
Methods in net.minecraft.client.renderer.entity.layers with parameters of type ItemStackModifier and TypeMethodDescriptionprotected ABipedArmorLayer.getArmorModelHook(T entity, ItemStack itemStack, EquipmentSlotType slot, A model) Hook to allow item-sensitive armor model.BipedArmorLayer.getArmorResource(Entity entity, ItemStack stack, EquipmentSlotType 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.private voidHeldItemLayer.renderArmWithItem(LivingEntity p_229135_1_, ItemStack p_229135_2_, ItemCameraTransforms.TransformType p_229135_3_, HandSide p_229135_4_, MatrixStack p_229135_5_, IRenderTypeBuffer p_229135_6_, int p_229135_7_) booleanElytraLayer.shouldRender(ItemStack stack, T entity) Determines if the ElytraLayer should render. -
Uses of ItemStack in net.minecraft.client.renderer.model
Methods in net.minecraft.client.renderer.model with parameters of type ItemStackModifier and TypeMethodDescriptionItemOverrideList.resolve(IBakedModel p_239290_1_, ItemStack p_239290_2_, ClientWorld p_239290_3_, LivingEntity p_239290_4_) (package private) booleanItemOverride.test(ItemStack p_239289_1_, ClientWorld p_239289_2_, LivingEntity p_239289_3_) -
Uses of ItemStack in net.minecraft.client.renderer.tileentity
Methods in net.minecraft.client.renderer.tileentity with parameters of type ItemStackModifier and TypeMethodDescriptionvoidItemStackTileEntityRenderer.renderByItem(ItemStack p_239207_1_, ItemCameraTransforms.TransformType p_239207_2_, MatrixStack p_239207_3_, IRenderTypeBuffer p_239207_4_, int p_239207_5_, int p_239207_6_) -
Uses of ItemStack in net.minecraft.client.settings
Fields in net.minecraft.client.settings with type parameters of type ItemStackMethods in net.minecraft.client.settings that return types with arguments of type ItemStack -
Uses of ItemStack in net.minecraft.client.tutorial
Methods in net.minecraft.client.tutorial with parameters of type ItemStackModifier and TypeMethodDescriptionvoidvoiddefault voidvoidvoid -
Uses of ItemStack in net.minecraft.client.util
Fields in net.minecraft.client.util with type parameters of type ItemStackModifier and TypeFieldDescriptionstatic final SearchTreeManager.Key<ItemStack>SearchTreeManager.CREATIVE_NAMESstatic final SearchTreeManager.Key<ItemStack>SearchTreeManager.CREATIVE_TAGSRecipeBookCategories.itemIconsMethods in net.minecraft.client.util that return types with arguments of type ItemStackConstructors in net.minecraft.client.util with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.command.arguments
Methods in net.minecraft.command.arguments that return ItemStackModifier and TypeMethodDescriptionItemInput.createItemStack(int p_197320_1_, boolean p_197320_2_) Methods in net.minecraft.command.arguments that return types with arguments of type ItemStackModifier and TypeMethodDescriptionItemPredicateArgument.IResult.create(com.mojang.brigadier.context.CommandContext<CommandSource> p_create_1_) ItemPredicateArgument.getItemPredicate(com.mojang.brigadier.context.CommandContext<CommandSource> p_199847_0_, String p_199847_1_) Methods in net.minecraft.command.arguments with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.command.impl
Methods in net.minecraft.command.impl that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackLootCommand.getSourceHandItem(CommandSource p_218872_0_, EquipmentSlotType p_218872_1_) Methods in net.minecraft.command.impl with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static booleanLootCommand.canMergeItems(ItemStack p_218883_0_, ItemStack p_218883_1_) private static booleanLootCommand.distributeToContainer(IInventory p_218890_0_, ItemStack p_218890_1_) private static intLootCommand.dropBlockLoot(com.mojang.brigadier.context.CommandContext<CommandSource> p_218879_0_, BlockPos p_218879_1_, ItemStack p_218879_2_, LootCommand.ITargetHandler p_218879_3_) private static intLootCommand.dropFishingLoot(com.mojang.brigadier.context.CommandContext<CommandSource> p_218876_0_, ResourceLocation p_218876_1_, BlockPos p_218876_2_, ItemStack p_218876_3_, LootCommand.ITargetHandler p_218876_4_) private static intReplaceItemCommand.setBlockItem(CommandSource p_198603_0_, BlockPos p_198603_1_, int p_198603_2_, ItemStack p_198603_3_) private static intReplaceItemCommand.setEntityItem(CommandSource p_198604_0_, Collection<? extends Entity> p_198604_1_, int p_198604_2_, ItemStack p_198604_3_) Method parameters in net.minecraft.command.impl with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidintLootCommand.ITargetHandler.accept(com.mojang.brigadier.context.CommandContext<CommandSource> p_accept_1_, List<ItemStack> p_accept_2_, LootCommand.ISuccessListener p_accept_3_) private static intLootCommand.blockDistribute(CommandSource p_218900_0_, BlockPos p_218900_1_, List<ItemStack> p_218900_2_, LootCommand.ISuccessListener p_218900_3_) private static intLootCommand.blockReplace(CommandSource p_218894_0_, BlockPos p_218894_1_, int p_218894_2_, int p_218894_3_, List<ItemStack> p_218894_4_, LootCommand.ISuccessListener p_218894_5_) private static voidLootCommand.callback(CommandSource p_218875_0_, List<ItemStack> p_218875_1_) private static voidLootCommand.callback(CommandSource p_218860_0_, List<ItemStack> p_218860_1_, ResourceLocation p_218860_2_) private static intClearCommand.clearInventory(CommandSource p_198244_0_, Collection<ServerPlayerEntity> p_198244_1_, Predicate<ItemStack> p_198244_2_, int p_198244_3_) private static intLootCommand.dropInWorld(CommandSource p_218881_0_, Vector3d p_218881_1_, List<ItemStack> p_218881_2_, LootCommand.ISuccessListener p_218881_3_) private static intLootCommand.entityReplace(Collection<? extends Entity> p_218865_0_, int p_218865_1_, int p_218865_2_, List<ItemStack> p_218865_3_, LootCommand.ISuccessListener p_218865_4_) private static intLootCommand.playerGive(Collection<ServerPlayerEntity> p_218859_0_, List<ItemStack> p_218859_1_, LootCommand.ISuccessListener p_218859_2_) private static voidLootCommand.setSlots(Entity p_218901_0_, List<ItemStack> p_218901_1_, int p_218901_2_, int p_218901_3_, List<ItemStack> p_218901_4_) -
Uses of ItemStack in net.minecraft.dispenser
Methods in net.minecraft.dispenser that return ItemStackModifier and TypeMethodDescriptionfinal ItemStackDefaultDispenseItemBehavior.dispense(IBlockSource p_dispense_1_, ItemStack p_dispense_2_) IDispenseItemBehavior.dispense(IBlockSource p_dispense_1_, ItemStack p_dispense_2_) protected ItemStackBeehiveDispenseBehavior.execute(IBlockSource p_82487_1_, ItemStack p_82487_2_) protected ItemStackDefaultDispenseItemBehavior.execute(IBlockSource p_82487_1_, ItemStack p_82487_2_) DispenseBoatBehavior.execute(IBlockSource p_82487_1_, ItemStack p_82487_2_) ProjectileDispenseBehavior.execute(IBlockSource p_82487_1_, ItemStack p_82487_2_) protected ItemStackShulkerBoxDispenseBehavior.execute(IBlockSource p_82487_1_, ItemStack p_82487_2_) Methods in net.minecraft.dispenser with parameters of type ItemStackModifier and TypeMethodDescriptionfinal ItemStackDefaultDispenseItemBehavior.dispense(IBlockSource p_dispense_1_, ItemStack p_dispense_2_) IDispenseItemBehavior.dispense(IBlockSource p_dispense_1_, ItemStack p_dispense_2_) protected ItemStackBeehiveDispenseBehavior.execute(IBlockSource p_82487_1_, ItemStack p_82487_2_) protected ItemStackDefaultDispenseItemBehavior.execute(IBlockSource p_82487_1_, ItemStack p_82487_2_) DispenseBoatBehavior.execute(IBlockSource p_82487_1_, ItemStack p_82487_2_) ProjectileDispenseBehavior.execute(IBlockSource p_82487_1_, ItemStack p_82487_2_) protected ItemStackShulkerBoxDispenseBehavior.execute(IBlockSource p_82487_1_, ItemStack p_82487_2_) protected abstract ProjectileEntityProjectileDispenseBehavior.getProjectile(World p_82499_1_, IPosition p_82499_2_, ItemStack p_82499_3_) static voidDefaultDispenseItemBehavior.spawnItem(World p_82486_0_, ItemStack p_82486_1_, int p_82486_2_, Direction p_82486_3_, IPosition p_82486_4_) -
Uses of ItemStack in net.minecraft.enchantment
Methods in net.minecraft.enchantment that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackEnchantmentHelper.enchantItem(Random p_77504_0_, ItemStack p_77504_1_, int p_77504_2_, boolean p_77504_3_) Methods in net.minecraft.enchantment that return types with arguments of type ItemStackModifier and TypeMethodDescriptionstatic Map.Entry<EquipmentSlotType,ItemStack> EnchantmentHelper.getRandomItemWith(Enchantment p_222189_0_, LivingEntity p_222189_1_) static Map.Entry<EquipmentSlotType,ItemStack> EnchantmentHelper.getRandomItemWith(Enchantment p_234844_0_, LivingEntity p_234844_1_, Predicate<ItemStack> p_234844_2_) Enchantment.getSlotItems(LivingEntity p_222181_1_) Methods in net.minecraft.enchantment with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanEnchantment.canApplyAtEnchantingTable(ItemStack stack) This applies specifically to applying at the enchanting table.booleanDamageEnchantment.canEnchant(ItemStack p_92089_1_) booleanEfficiencyEnchantment.canEnchant(ItemStack p_92089_1_) booleanEnchantment.canEnchant(ItemStack p_92089_1_) booleanThornsEnchantment.canEnchant(ItemStack p_92089_1_) booleanUnbreakingEnchantment.canEnchant(ItemStack p_92089_1_) static ItemStackEnchantmentHelper.enchantItem(Random p_77504_0_, ItemStack p_77504_1_, int p_77504_2_, boolean p_77504_3_) static List<EnchantmentData>EnchantmentHelper.getAvailableEnchantmentResults(int p_185291_0_, ItemStack p_185291_1_, boolean p_185291_2_) static floatEnchantmentHelper.getDamageBonus(ItemStack p_152377_0_, CreatureAttribute p_152377_1_) static intEnchantmentHelper.getEnchantmentCost(Random p_77514_0_, int p_77514_1_, int p_77514_2_, ItemStack p_77514_3_) static Map<Enchantment,Integer> EnchantmentHelper.getEnchantments(ItemStack p_82781_0_) static intEnchantmentHelper.getFishingLuckBonus(ItemStack p_191529_0_) static intEnchantmentHelper.getFishingSpeedBonus(ItemStack p_191528_0_) static intEnchantmentHelper.getItemEnchantmentLevel(Enchantment p_77506_0_, ItemStack p_77506_1_) static intEnchantmentHelper.getLoyalty(ItemStack p_203191_0_) static intEnchantmentHelper.getRiptide(ItemStack p_203190_0_) static booleanEnchantmentHelper.hasBindingCurse(ItemStack p_190938_0_) static booleanEnchantmentHelper.hasChanneling(ItemStack p_203192_0_) static booleanEnchantmentHelper.hasVanishingCurse(ItemStack p_190939_0_) private static voidEnchantmentHelper.runIterationOnItem(EnchantmentHelper.IEnchantmentVisitor p_77518_0_, ItemStack p_77518_1_) static List<EnchantmentData>EnchantmentHelper.selectEnchantment(Random p_77513_0_, ItemStack p_77513_1_, int p_77513_2_, boolean p_77513_3_) static voidEnchantmentHelper.setEnchantments(Map<Enchantment, Integer> p_82782_0_, ItemStack p_82782_1_) static booleanUnbreakingEnchantment.shouldIgnoreDurabilityDrop(ItemStack p_92097_0_, int p_92097_1_, Random p_92097_2_) Method parameters in net.minecraft.enchantment with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic intEnchantmentHelper.getDamageProtection(Iterable<ItemStack> p_77508_0_, DamageSource p_77508_1_) static Map.Entry<EquipmentSlotType,ItemStack> EnchantmentHelper.getRandomItemWith(Enchantment p_234844_0_, LivingEntity p_234844_1_, Predicate<ItemStack> p_234844_2_) private static voidEnchantmentHelper.runIterationOnInventory(EnchantmentHelper.IEnchantmentVisitor p_77516_0_, Iterable<ItemStack> p_77516_1_) -
Uses of ItemStack in net.minecraft.entity
Fields in net.minecraft.entity declared as ItemStackFields in net.minecraft.entity with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final NonNullList<ItemStack>MobEntity.armorItemsEntity.EMPTY_LISTprivate final NonNullList<ItemStack>MobEntity.handItemsprivate final NonNullList<ItemStack>LivingEntity.lastArmorItemStacksprivate final NonNullList<ItemStack>LivingEntity.lastHandItemStacksMethods in net.minecraft.entity that return ItemStackModifier and TypeMethodDescriptionIRendersAsItem.getItem()abstract ItemStackLivingEntity.getItemBySlot(EquipmentSlotType p_184582_1_) MobEntity.getItemBySlot(EquipmentSlotType p_184582_1_) LivingEntity.getItemInHand(Hand p_184586_1_) private ItemStackLivingEntity.getLastArmorItem(EquipmentSlotType p_241346_1_) private ItemStackLivingEntity.getLastHandItem(EquipmentSlotType p_241347_1_) LivingEntity.getMainHandItem()LivingEntity.getOffhandItem()LivingEntity.getProjectile(ItemStack p_213356_1_) LivingEntity.getUseItem()Methods in net.minecraft.entity that return types with arguments of type ItemStackModifier and TypeMethodDescriptionprivate Map<EquipmentSlotType,ItemStack> LivingEntity.collectEquipmentChanges()Entity.getAllSlots()Entity.getArmorSlots()LivingEntity.getArmorSlots()MobEntity.getArmorSlots()Entity.getHandSlots()MobEntity.getHandSlots()Methods in net.minecraft.entity with parameters of type ItemStackModifier and TypeMethodDescriptionprivate voidLivingEntity.addEatEffect(ItemStack p_213349_1_, World p_213349_2_, LivingEntity p_213349_3_) private voidbooleanMobEntity.canHoldItem(ItemStack p_175448_1_) protected booleanMobEntity.canReplaceCurrentItem(ItemStack p_208003_1_, ItemStack p_208003_2_) booleanMobEntity.canReplaceEqualItem(ItemStack p_233659_1_, ItemStack p_233659_2_) booleanLivingEntity.canTakeItem(ItemStack p_213365_1_) booleanMobEntity.canTakeItem(ItemStack p_213365_1_) booleanLivingEntity.curePotionEffects(ItemStack curativeItem) Removes all potion effects that have curativeItem as a curative item for its effectbooleanMobEntity.equipItemIfPossible(ItemStack p_233665_1_) protected SoundEventLivingEntity.getDrinkingSound(ItemStack p_213351_1_) LivingEntity.getEatingSound(ItemStack p_213353_1_) static EquipmentSlotTypeMobEntity.getEquipmentSlotForItem(ItemStack p_184640_0_) LivingEntity.getProjectile(ItemStack p_213356_1_) static booleanMobEntity.isValidSlotForItem(EquipmentSlotType p_184648_0_, ItemStack p_184648_1_) private voidMobEntity.maybeDisableShield(PlayerEntity p_233655_1_, ItemStack p_233655_2_, ItemStack p_233655_3_) voidNPCMerchant.notifyTradeUpdated(ItemStack p_110297_1_) protected voidLivingEntity.playEquipSound(ItemStack p_184606_1_) voidLivingEntity.setItemInHand(Hand p_184611_1_, ItemStack p_184611_2_) voidEntity.setItemSlot(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) abstract voidLivingEntity.setItemSlot(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) voidMobEntity.setItemSlot(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) protected voidMobEntity.setItemSlotAndDropWhenKilled(EquipmentSlotType p_233657_1_, ItemStack p_233657_2_) private voidLivingEntity.setLastArmorItem(EquipmentSlotType p_241343_1_, ItemStack p_241343_2_) private voidLivingEntity.setLastHandItem(EquipmentSlotType p_241345_1_, ItemStack p_241345_2_) booleanbooleanvoidICrossbowUser.shootCrossbowProjectile(LivingEntity p_230284_1_, ItemStack p_230284_2_, ProjectileEntity p_230284_3_, float p_230284_4_) EntityType.spawn(ServerWorld p_220331_1_, ItemStack p_220331_2_, PlayerEntity p_220331_3_, BlockPos p_220331_4_, SpawnReason p_220331_5_, boolean p_220331_6_, boolean p_220331_7_) Entity.spawnAtLocation(ItemStack p_199701_1_) Entity.spawnAtLocation(ItemStack p_70099_1_, float p_70099_2_) private voidLivingEntity.spawnItemParticles(ItemStack p_195062_1_, int p_195062_2_) protected voidLivingEntity.triggerItemUseEffects(ItemStack p_226293_1_, int p_226293_2_) booleanMobEntity.wantsToPickUp(ItemStack p_230293_1_) Method parameters in net.minecraft.entity with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate voidLivingEntity.handleEquipmentChanges(Map<EquipmentSlotType, ItemStack> p_241344_1_) private voidLivingEntity.handleHandSwap(Map<EquipmentSlotType, ItemStack> p_241342_1_) -
Uses of ItemStack in net.minecraft.entity.ai.brain
Methods in net.minecraft.entity.ai.brain with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidBrainUtil.throwItem(LivingEntity p_233865_0_, ItemStack p_233865_1_, Vector3d p_233865_2_) -
Uses of ItemStack in net.minecraft.entity.ai.brain.task
Fields in net.minecraft.entity.ai.brain.task declared as ItemStackFields in net.minecraft.entity.ai.brain.task with type parameters of type ItemStackMethods in net.minecraft.entity.ai.brain.task that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackCelebrateRaidVictoryTask.getFirework(DyeColor p_220391_1_, int p_220391_2_) Methods in net.minecraft.entity.ai.brain.task that return types with arguments of type ItemStack -
Uses of ItemStack in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal declared as ItemStackMethods in net.minecraft.entity.ai.goal that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackTriggerSkeletonTrapGoal.disenchant(ItemStack p_242327_1_) Methods in net.minecraft.entity.ai.goal with parameters of type ItemStackModifier and TypeMethodDescriptionprivate ItemStackTriggerSkeletonTrapGoal.disenchant(ItemStack p_242327_1_) protected booleanTemptGoal.shouldFollowItem(ItemStack p_188508_1_) Constructors in net.minecraft.entity.ai.goal with parameters of type ItemStackModifierConstructorDescriptionUseItemGoal(T p_i50319_1_, ItemStack p_i50319_2_, SoundEvent p_i50319_3_, Predicate<? super T> p_i50319_4_) -
Uses of ItemStack in net.minecraft.entity.item
Fields in net.minecraft.entity.item with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final NonNullList<ItemStack>ArmorStandEntity.armorItemsprivate static final DataParameter<ItemStack>ItemEntity.DATA_ITEMprivate static final DataParameter<ItemStack>ItemFrameEntity.DATA_ITEMprivate final NonNullList<ItemStack>ArmorStandEntity.handItemsMethods in net.minecraft.entity.item that return ItemStackModifier and TypeMethodDescriptionItemEntity.getItem()ItemFrameEntity.getItem()ArmorStandEntity.getItemBySlot(EquipmentSlotType p_184582_1_) static ItemStackMethods in net.minecraft.entity.item that return types with arguments of type ItemStackModifier and TypeMethodDescriptionArmorStandEntity.getArmorSlots()ArmorStandEntity.getHandSlots()Methods in net.minecraft.entity.item with parameters of type ItemStackModifier and TypeMethodDescriptionstatic booleanItemEntity.areMergable(ItemStack p_226532_0_, ItemStack p_226532_1_) booleanArmorStandEntity.canTakeItem(ItemStack p_213365_1_) private static voidItemEntity.merge(ItemEntity p_213858_0_, ItemStack p_213858_1_, ItemEntity p_213858_2_, ItemStack p_213858_3_) private static voidItemEntity.merge(ItemEntity p_226531_0_, ItemStack p_226531_1_, ItemStack p_226531_2_) static ItemStackprivate voidItemFrameEntity.removeFramedMap(ItemStack p_110131_1_) voidvoidvoidvoidArmorStandEntity.setItemSlot(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) booleanbooleanHangingEntity.spawnAtLocation(ItemStack p_70099_1_, float p_70099_2_) private booleanArmorStandEntity.swapItem(PlayerEntity p_226529_1_, EquipmentSlotType p_226529_2_, ItemStack p_226529_3_, Hand p_226529_4_) Constructors in net.minecraft.entity.item with parameters of type ItemStackModifierConstructorDescriptionItemEntity(World p_i1710_1_, double p_i1710_2_, double p_i1710_4_, double p_i1710_6_, ItemStack p_i1710_8_) -
Uses of ItemStack in net.minecraft.entity.item.minecart
Fields in net.minecraft.entity.item.minecart with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate NonNullList<ItemStack>ContainerMinecartEntity.itemStacksMethods in net.minecraft.entity.item.minecart that return ItemStackModifier and TypeMethodDescriptionContainerMinecartEntity.getItem(int p_70301_1_) ContainerMinecartEntity.removeItem(int p_70298_1_, int p_70298_2_) ContainerMinecartEntity.removeItemNoUpdate(int p_70304_1_) Methods in net.minecraft.entity.item.minecart with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.entity.merchant
Methods in net.minecraft.entity.merchant with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.entity.merchant.villager
Fields in net.minecraft.entity.merchant.villager declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackVillagerTrades.ItemsForEmeraldsAndItemsTrade.fromItemprivate final ItemStackVillagerTrades.EnchantedItemForEmeraldsTrade.itemStackprivate final ItemStackVillagerTrades.ItemsForEmeraldsTrade.itemStackprivate final ItemStackVillagerTrades.ItemsForEmeraldsAndItemsTrade.toItemprivate final ItemStackVillagerTrades.ItemWithPotionForEmeraldsAndItemsTrade.toItemMethods in net.minecraft.entity.merchant.villager with parameters of type ItemStackModifier and TypeMethodDescriptionprotected SoundEventWanderingTraderEntity.getDrinkingSound(ItemStack p_213351_1_) voidAbstractVillagerEntity.notifyTradeUpdated(ItemStack p_110297_1_) booleanbooleanVillagerEntity.wantsToPickUp(ItemStack p_230293_1_) Constructors in net.minecraft.entity.merchant.villager with parameters of type ItemStackModifierConstructorDescriptionItemsForEmeraldsTrade(ItemStack p_i50531_1_, int p_i50531_2_, int p_i50531_3_, int p_i50531_4_, int p_i50531_5_) ItemsForEmeraldsTrade(ItemStack p_i50532_1_, int p_i50532_2_, int p_i50532_3_, int p_i50532_4_, int p_i50532_5_, float p_i50532_6_) -
Uses of ItemStack in net.minecraft.entity.monster
Methods in net.minecraft.entity.monster that return ItemStackModifier and TypeMethodDescriptionMonsterEntity.getProjectile(ItemStack p_213356_1_) protected ItemStackDrownedEntity.getSkull()protected ItemStackHuskEntity.getSkull()protected ItemStackZombieEntity.getSkull()protected ItemStackZombieVillagerEntity.getSkull()protected ItemStackZombifiedPiglinEntity.getSkull()Methods in net.minecraft.entity.monster with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanZombieEntity.canHoldItem(ItemStack p_175448_1_) protected booleanDrownedEntity.canReplaceCurrentItem(ItemStack p_208003_1_, ItemStack p_208003_2_) protected AbstractArrowEntityprotected AbstractArrowEntityprotected AbstractArrowEntityMonsterEntity.getProjectile(ItemStack p_213356_1_) booleanvoidAbstractSkeletonEntity.setItemSlot(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) booleanvoidPillagerEntity.shootCrossbowProjectile(LivingEntity p_230284_1_, ItemStack p_230284_2_, ProjectileEntity p_230284_3_, float p_230284_4_) -
Uses of ItemStack in net.minecraft.entity.monster.piglin
Methods in net.minecraft.entity.monster.piglin that return ItemStackModifier and TypeMethodDescriptionprotected ItemStackPiglinEntity.addToInventory(ItemStack p_234436_1_) private ItemStackPiglinEntity.createSpawnWeapon()private static ItemStackPiglinTasks.removeOneItemFromItemEntity(ItemEntity p_234465_0_) Methods in net.minecraft.entity.monster.piglin that return types with arguments of type ItemStackMethods in net.minecraft.entity.monster.piglin with parameters of type ItemStackModifier and TypeMethodDescriptionprotected ItemStackPiglinEntity.addToInventory(ItemStack p_234436_1_) protected booleanPiglinEntity.canAddToInventory(ItemStack p_234437_1_) protected static booleanPiglinTasks.canAdmire(PiglinEntity p_234489_0_, ItemStack p_234489_1_) protected booleanPiglinEntity.canReplaceCurrentItem(ItemStack p_234440_1_) protected booleanPiglinEntity.canReplaceCurrentItem(ItemStack p_208003_1_, ItemStack p_208003_2_) protected voidPiglinEntity.holdInMainHand(ItemStack p_234438_1_) private static voidPiglinTasks.holdInOffhand(PiglinEntity p_241427_0_, ItemStack p_241427_1_) protected voidPiglinEntity.holdInOffHand(ItemStack p_234439_1_) private voidPiglinEntity.maybeWearArmor(EquipmentSlotType p_234419_1_, ItemStack p_234419_2_) private static voidPiglinTasks.putInInventory(PiglinEntity p_234498_0_, ItemStack p_234498_1_) voidPiglinEntity.shootCrossbowProjectile(LivingEntity p_230284_1_, ItemStack p_230284_2_, ProjectileEntity p_230284_3_, float p_230284_4_) protected static booleanPiglinTasks.wantsToPickup(PiglinEntity p_234474_0_, ItemStack p_234474_1_) booleanPiglinBruteEntity.wantsToPickUp(ItemStack p_230293_1_) booleanPiglinEntity.wantsToPickUp(ItemStack p_230293_1_) Method parameters in net.minecraft.entity.monster.piglin with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate static voidPiglinTasks.throwItems(PiglinEntity p_234475_0_, List<ItemStack> p_234475_1_) private static voidPiglinTasks.throwItemsTowardPlayer(PiglinEntity p_234472_0_, PlayerEntity p_234472_1_, List<ItemStack> p_234472_2_) private static voidPiglinTasks.throwItemsTowardPos(PiglinEntity p_234476_0_, List<ItemStack> p_234476_1_, Vector3d p_234476_2_) private static voidPiglinTasks.throwItemsTowardRandomPos(PiglinEntity p_234490_0_, List<ItemStack> p_234490_1_) -
Uses of ItemStack in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive that return types with arguments of type ItemStackModifier and TypeMethodDescriptionMooshroomEntity.onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune) SheepEntity.onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune) SnowGolemEntity.onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune) Methods in net.minecraft.entity.passive with parameters of type ItemStackModifier and TypeMethodDescriptionprivate booleanbooleanFoxEntity.canHoldItem(ItemStack p_175448_1_) booleanDolphinEntity.canTakeItem(ItemStack p_213365_1_) booleanFoxEntity.canTakeItem(ItemStack p_213365_1_) booleanPandaEntity.canTakeItem(ItemStack p_213365_1_) private voidprivate voidFoxEntity.dropItemStack(ItemStack p_213486_1_) FoxEntity.getEatingSound(ItemStack p_213353_1_) MooshroomEntity.getEffectFromItemStack(ItemStack p_213443_1_) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanprivate booleanPandaEntity.isFoodOrCake(ItemStack p_213548_1_) booleanMooshroomEntity.isShearable(ItemStack item, World world, BlockPos pos) booleanSheepEntity.isShearable(ItemStack item, World world, BlockPos pos) booleanSnowGolemEntity.isShearable(ItemStack item, World world, BlockPos pos) MooshroomEntity.onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune) SheepEntity.onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune) SnowGolemEntity.onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune) private booleanTurtleEntity.PlayerTemptGoal.shouldFollowItem(ItemStack p_203131_1_) private voidFoxEntity.spitOutItem(ItemStack p_213495_1_) protected voidAnimalEntity.usePlayerItem(PlayerEntity p_175505_1_, ItemStack p_175505_2_) protected voidCatEntity.usePlayerItem(PlayerEntity p_175505_1_, ItemStack p_175505_2_) protected voidFoxEntity.usePlayerItem(PlayerEntity p_175505_1_, ItemStack p_175505_2_) -
Uses of ItemStack in net.minecraft.entity.passive.fish
Methods in net.minecraft.entity.passive.fish that return ItemStackModifier and TypeMethodDescriptionprotected abstract ItemStackAbstractFishEntity.getBucketItemStack()protected ItemStackCodEntity.getBucketItemStack()protected ItemStackPufferfishEntity.getBucketItemStack()protected ItemStackSalmonEntity.getBucketItemStack()protected ItemStackTropicalFishEntity.getBucketItemStack()Methods in net.minecraft.entity.passive.fish with parameters of type ItemStackModifier and TypeMethodDescriptionprotected voidAbstractFishEntity.saveToBucketTag(ItemStack p_204211_1_) protected voidTropicalFishEntity.saveToBucketTag(ItemStack p_204211_1_) -
Uses of ItemStack in net.minecraft.entity.passive.horse
Methods in net.minecraft.entity.passive.horse that return ItemStackMethods in net.minecraft.entity.passive.horse with parameters of type ItemStackModifier and TypeMethodDescriptionAbstractHorseEntity.fedFood(PlayerEntity p_241395_1_, ItemStack p_241395_2_) private static DyeColorLlamaEntity.getDyeColor(ItemStack p_195403_0_) protected booleanAbstractHorseEntity.handleEating(PlayerEntity p_190678_1_, ItemStack p_190678_2_) protected booleanLlamaEntity.handleEating(PlayerEntity p_190678_1_, ItemStack p_190678_2_) booleanbooleanbooleanbooleanbooleanprivate voidprivate voidHorseEntity.setArmorEquipment(ItemStack p_213804_1_) booleanboolean -
Uses of ItemStack in net.minecraft.entity.player
Fields in net.minecraft.entity.player declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackPlayerInventory.carriedprivate ItemStackPlayerEntity.lastItemInMainHandFields in net.minecraft.entity.player with type parameters of type ItemStackModifier and TypeFieldDescriptionfinal NonNullList<ItemStack>PlayerInventory.armorprivate final List<NonNullList<ItemStack>>PlayerInventory.compartmentsfinal NonNullList<ItemStack>PlayerInventory.itemsfinal NonNullList<ItemStack>PlayerInventory.offhandMethods in net.minecraft.entity.player that return ItemStackModifier and TypeMethodDescriptionPlayerInventory.getArmor(int p_70440_1_) PlayerInventory.getCarried()PlayerInventory.getItem(int p_70301_1_) PlayerEntity.getItemBySlot(EquipmentSlotType p_184582_1_) PlayerEntity.getProjectile(ItemStack p_213356_1_) PlayerInventory.getSelected()PlayerInventory.removeItem(int p_70298_1_, int p_70298_2_) PlayerInventory.removeItemNoUpdate(int p_70304_1_) Methods in net.minecraft.entity.player that return types with arguments of type ItemStackMethods in net.minecraft.entity.player with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanbooleanbooleanprivate intPlayerInventory.addResource(int p_191973_1_, ItemStack p_191973_2_) private intPlayerInventory.addResource(ItemStack p_70452_1_) booleanPlayerEntity.canTakeItem(ItemStack p_213365_1_) booleanintPlayerInventory.findSlotMatchingItem(ItemStack p_184429_1_) intPlayerInventory.findSlotMatchingUnusedItem(ItemStack p_194014_1_) PlayerEntity.getProjectile(ItemStack p_213356_1_) intPlayerInventory.getSlotWithRemainingSpace(ItemStack p_70432_1_) private booleanPlayerInventory.hasRemainingSpaceForItem(ItemStack p_184436_1_, ItemStack p_184436_2_) private booleanPlayerInventory.isSameItem(ItemStack p_184431_1_, ItemStack p_184431_2_) booleanPlayerEntity.mayUseItemAt(BlockPos p_175151_1_, Direction p_175151_2_, ItemStack p_175151_3_) voidPlayerEntity.onEnchantmentPerformed(ItemStack p_192024_1_, int p_192024_2_) voidServerPlayerEntity.onEnchantmentPerformed(ItemStack p_192024_1_, int p_192024_2_) voidPlayerEntity.openItemGui(ItemStack p_184814_1_, Hand p_184814_2_) voidServerPlayerEntity.openItemGui(ItemStack p_184814_1_, Hand p_184814_2_) voidPlayerInventory.placeItemBackInInventory(World p_191975_1_, ItemStack p_191975_2_) voidPlayerInventory.removeItem(ItemStack p_184437_1_) voidPlayerInventory.setCarried(ItemStack p_70437_1_) voidvoidPlayerEntity.setItemSlot(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) voidPlayerInventory.setPickedItem(ItemStack p_184434_1_) booleanvoidServerPlayerEntity.slotChanged(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_) Method parameters in net.minecraft.entity.player with type arguments of type ItemStackModifier and TypeMethodDescriptionintPlayerInventory.clearOrCountMatchingItems(Predicate<ItemStack> p_234564_1_, int p_234564_2_, IInventory p_234564_3_) voidServerPlayerEntity.refreshContainer(Container p_71110_1_, NonNullList<ItemStack> p_71110_2_) -
Uses of ItemStack in net.minecraft.entity.projectile
Fields in net.minecraft.entity.projectile declared as ItemStackFields in net.minecraft.entity.projectile with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate static final DataParameter<ItemStack>FireworkRocketEntity.DATA_ID_FIREWORKS_ITEMprivate static final DataParameter<ItemStack>AbstractFireballEntity.DATA_ITEM_STACKprivate static final DataParameter<ItemStack>EyeOfEnderEntity.DATA_ITEM_STACKprivate static final DataParameter<ItemStack>ProjectileItemEntity.DATA_ITEM_STACKMethods in net.minecraft.entity.projectile that return ItemStackModifier and TypeMethodDescriptionAbstractFireballEntity.getItem()EyeOfEnderEntity.getItem()FireworkRocketEntity.getItem()ProjectileItemEntity.getItem()protected ItemStackAbstractFireballEntity.getItemRaw()private ItemStackEyeOfEnderEntity.getItemRaw()protected ItemStackProjectileItemEntity.getItemRaw()protected abstract ItemStackAbstractArrowEntity.getPickupItem()protected ItemStackArrowEntity.getPickupItem()protected ItemStackSpectralArrowEntity.getPickupItem()protected ItemStackTridentEntity.getPickupItem()Methods in net.minecraft.entity.projectile with parameters of type ItemStackModifier and TypeMethodDescriptionstatic intArrowEntity.getCustomColor(ItemStack p_191508_0_) static AbstractArrowEntityProjectileHelper.getMobArrow(LivingEntity p_221272_0_, ItemStack p_221272_1_, float p_221272_2_) private voidPotionEntity.makeAreaOfEffectCloud(ItemStack p_190542_1_, Potion p_190542_2_) intvoidArrowEntity.setEffectsFromItem(ItemStack p_184555_1_) voidvoidvoidConstructors in net.minecraft.entity.projectile with parameters of type ItemStackModifierConstructorDescriptionFireworkRocketEntity(World p_i1763_1_, double p_i1763_2_, double p_i1763_4_, double p_i1763_6_, ItemStack p_i1763_8_) FireworkRocketEntity(World p_i231581_1_, Entity p_i231581_2_, double p_i231581_3_, double p_i231581_5_, double p_i231581_7_, ItemStack p_i231581_9_) FireworkRocketEntity(World p_i50165_1_, ItemStack p_i50165_2_, double p_i50165_3_, double p_i50165_5_, double p_i50165_7_, boolean p_i50165_9_) FireworkRocketEntity(World p_i231582_1_, ItemStack p_i231582_2_, Entity p_i231582_3_, double p_i231582_4_, double p_i231582_6_, double p_i231582_8_, boolean p_i231582_10_) FireworkRocketEntity(World p_i47367_1_, ItemStack p_i47367_2_, LivingEntity p_i47367_3_) TridentEntity(World p_i48790_1_, LivingEntity p_i48790_2_, ItemStack p_i48790_3_) -
Uses of ItemStack in net.minecraft.inventory
Fields in net.minecraft.inventory with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final NonNullList<ItemStack>CraftingInventory.itemsprivate final NonNullList<ItemStack>Inventory.itemsprivate final NonNullList<ItemStack>CraftResultInventory.itemStacksprivate final NonNullList<ItemStack>MerchantInventory.itemStacksMethods in net.minecraft.inventory that return ItemStackModifier and TypeMethodDescriptionCraftingInventory.getItem(int p_70301_1_) CraftResultInventory.getItem(int p_70301_1_) DoubleSidedInventory.getItem(int p_70301_1_) IInventory.getItem(int p_70301_1_) Inventory.getItem(int p_70301_1_) MerchantInventory.getItem(int p_70301_1_) CraftingInventory.removeItem(int p_70298_1_, int p_70298_2_) CraftResultInventory.removeItem(int p_70298_1_, int p_70298_2_) DoubleSidedInventory.removeItem(int p_70298_1_, int p_70298_2_) IInventory.removeItem(int p_70298_1_, int p_70298_2_) Inventory.removeItem(int p_70298_1_, int p_70298_2_) static ItemStackItemStackHelper.removeItem(List<ItemStack> p_188382_0_, int p_188382_1_, int p_188382_2_) MerchantInventory.removeItem(int p_70298_1_, int p_70298_2_) CraftingInventory.removeItemNoUpdate(int p_70304_1_) CraftResultInventory.removeItemNoUpdate(int p_70304_1_) DoubleSidedInventory.removeItemNoUpdate(int p_70304_1_) IInventory.removeItemNoUpdate(int p_70304_1_) Inventory.removeItemNoUpdate(int p_70304_1_) MerchantInventory.removeItemNoUpdate(int p_70304_1_) Inventory.removeItemType(Item p_223374_1_, int p_223374_2_) static ItemStackMethods in net.minecraft.inventory that return types with arguments of type ItemStackMethods in net.minecraft.inventory with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanInventory.canAddItem(ItemStack p_233541_1_) booleanDoubleSidedInventory.canPlaceItem(int p_94041_1_, ItemStack p_94041_2_) default booleanIInventory.canPlaceItem(int p_94041_1_, ItemStack p_94041_2_) booleanISidedInventory.canPlaceItemThroughFace(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) booleanISidedInventory.canTakeItemThroughFace(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) static intItemStackHelper.clearOrCountMatchingItems(ItemStack p_233535_0_, Predicate<ItemStack> p_233535_1_, int p_233535_2_, boolean p_233535_3_) static voidInventoryHelper.dropItemStack(World p_180173_0_, double p_180173_1_, double p_180173_3_, double p_180173_5_, ItemStack p_180173_7_) private booleanInventory.isSameItem(ItemStack p_233540_1_, ItemStack p_233540_2_) private voidInventory.moveItemsBetweenStacks(ItemStack p_223373_1_, ItemStack p_223373_2_) private voidInventory.moveItemToEmptySlots(ItemStack p_223375_1_) private voidInventory.moveItemToOccupiedSlotsWithSameType(ItemStack p_223372_1_) voidvoidvoidvoidvoidvoidMethod parameters in net.minecraft.inventory with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic intItemStackHelper.clearOrCountMatchingItems(IInventory p_233534_0_, Predicate<ItemStack> p_233534_1_, int p_233534_2_, boolean p_233534_3_) static intItemStackHelper.clearOrCountMatchingItems(ItemStack p_233535_0_, Predicate<ItemStack> p_233535_1_, int p_233535_2_, boolean p_233535_3_) static voidInventoryHelper.dropContents(World p_219961_0_, BlockPos p_219961_1_, NonNullList<ItemStack> p_219961_2_) static voidItemStackHelper.loadAllItems(CompoundNBT p_191283_0_, NonNullList<ItemStack> p_191283_1_) static ItemStackItemStackHelper.removeItem(List<ItemStack> p_188382_0_, int p_188382_1_, int p_188382_2_) static CompoundNBTItemStackHelper.saveAllItems(CompoundNBT p_191282_0_, NonNullList<ItemStack> p_191282_1_) static CompoundNBTItemStackHelper.saveAllItems(CompoundNBT p_191281_0_, NonNullList<ItemStack> p_191281_1_, boolean p_191281_2_) static ItemStackConstructors in net.minecraft.inventory with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.inventory.container
Fields in net.minecraft.inventory.container declared as ItemStackFields in net.minecraft.inventory.container with type parameters of type ItemStackMethods in net.minecraft.inventory.container that return ItemStackModifier and TypeMethodDescriptionContainer.clicked(int p_184996_1_, int p_184996_2_, ClickType p_184996_3_, PlayerEntity p_184996_4_) private ItemStackContainer.doClick(int p_241440_1_, int p_241440_2_, ClickType p_241440_3_, PlayerEntity p_241440_4_) LecternContainer.getBook()Slot.getItem()private ItemStackGrindstoneContainer.mergeEnchants(ItemStack p_217011_1_, ItemStack p_217011_2_) protected abstract ItemStackAbstractRepairContainer.onTake(PlayerEntity p_230301_1_, ItemStack p_230301_2_) BrewingStandContainer.PotionSlot.onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_) CraftingResultSlot.onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_) FurnaceResultSlot.onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_) MerchantResultSlot.onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_) protected ItemStackRepairContainer.onTake(PlayerEntity p_230301_1_, ItemStack p_230301_2_) Slot.onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_) protected ItemStackSmithingTableContainer.onTake(PlayerEntity p_230301_1_, ItemStack p_230301_2_) AbstractFurnaceContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) AbstractRepairContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) BeaconContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) BrewingStandContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) CartographyContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) ChestContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) Container.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) DispenserContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) EnchantmentContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) GrindstoneContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) HopperContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) HorseInventoryContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) LoomContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) MerchantContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) PlayerContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) ShulkerBoxContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) StonecutterContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) WorkbenchContainer.quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_) CraftingResultSlot.remove(int p_75209_1_) FurnaceResultSlot.remove(int p_75209_1_) MerchantResultSlot.remove(int p_75209_1_) Slot.remove(int p_75209_1_) private ItemStackGrindstoneContainer.removeNonCurses(ItemStack p_217007_1_, int p_217007_2_, int p_217007_3_) Methods in net.minecraft.inventory.container that return types with arguments of type ItemStackMethods in net.minecraft.inventory.container with parameters of type ItemStackModifier and TypeMethodDescriptionstatic booleanContainer.canItemQuickReplace(Slot p_94527_0_, ItemStack p_94527_1_, boolean p_94527_2_) protected booleanbooleanCartographyContainer.canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_) booleanContainer.canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_) booleanMerchantContainer.canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_) booleanPlayerContainer.canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_) booleanSmithingTableContainer.canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_) booleanStonecutterContainer.canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_) booleanWorkbenchContainer.canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_) protected voidCraftingResultSlot.checkTakeAchievements(ItemStack p_75208_1_) protected voidFurnaceResultSlot.checkTakeAchievements(ItemStack p_75208_1_) protected voidMerchantResultSlot.checkTakeAchievements(ItemStack p_75208_1_) protected voidSlot.checkTakeAchievements(ItemStack p_75208_1_) static booleanContainer.consideredTheSameItem(ItemStack p_195929_0_, ItemStack p_195929_1_) private List<EnchantmentData>EnchantmentContainer.getEnchantmentList(ItemStack p_178148_1_, int p_178148_2_, int p_178148_3_) intFurnaceFuelSlot.getMaxStackSize(ItemStack p_178170_1_) intSlot.getMaxStackSize(ItemStack p_178170_1_) static voidContainer.getQuickCraftSlotCount(Set<Slot> p_94525_0_, int p_94525_1_, ItemStack p_94525_2_, int p_94525_3_) static booleanprotected booleanprivate booleanMerchantContainer.isSameItem(ItemStack p_217050_1_, ItemStack p_217050_2_) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanstatic booleanBrewingStandContainer.FuelSlot.mayPlaceItem(ItemStack p_185004_0_) static booleanBrewingStandContainer.PotionSlot.mayPlaceItem(ItemStack p_75243_0_) private ItemStackGrindstoneContainer.mergeEnchants(ItemStack p_217011_1_, ItemStack p_217011_2_) private voidMerchantContainer.moveFromInventoryToPaymentSlot(int p_217053_1_, ItemStack p_217053_2_) protected booleanContainer.moveItemStackTo(ItemStack p_75135_1_, int p_75135_2_, int p_75135_3_, boolean p_75135_4_) protected voidCraftingResultSlot.onQuickCraft(ItemStack p_75210_1_, int p_75210_2_) protected voidFurnaceResultSlot.onQuickCraft(ItemStack p_75210_1_, int p_75210_2_) protected voidMerchantResultSlot.onQuickCraft(ItemStack p_75210_1_, int p_75210_2_) protected voidSlot.onQuickCraft(ItemStack p_75210_1_, int p_75210_2_) voidSlot.onQuickCraft(ItemStack p_75220_1_, ItemStack p_75220_2_) protected abstract ItemStackAbstractRepairContainer.onTake(PlayerEntity p_230301_1_, ItemStack p_230301_2_) BrewingStandContainer.PotionSlot.onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_) CraftingResultSlot.onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_) FurnaceResultSlot.onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_) MerchantResultSlot.onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_) protected ItemStackRepairContainer.onTake(PlayerEntity p_230301_1_, ItemStack p_230301_2_) Slot.onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_) protected ItemStackSmithingTableContainer.onTake(PlayerEntity p_230301_1_, ItemStack p_230301_2_) private ItemStackGrindstoneContainer.removeNonCurses(ItemStack p_217007_1_, int p_217007_2_, int p_217007_3_) voidvoidprivate voidStonecutterContainer.setupRecipeList(IInventory p_217074_1_, ItemStack p_217074_2_) private voidCartographyContainer.setupResultSlot(ItemStack p_216993_1_, ItemStack p_216993_2_, ItemStack p_216993_3_) protected booleanAbstractRepairContainer.shouldQuickMoveToAdditionalSlot(ItemStack p_241210_1_) protected booleanSmithingTableContainer.shouldQuickMoveToAdditionalSlot(ItemStack p_241210_1_) voidIContainerListener.slotChanged(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_) Method parameters in net.minecraft.inventory.container with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidIContainerListener.refreshContainer(Container p_71110_1_, NonNullList<ItemStack> p_71110_2_) void -
Uses of ItemStack in net.minecraft.item
Fields in net.minecraft.item declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackMerchantOffer.baseCostAprivate final ItemStackMerchantOffer.costBstatic final ItemStackItemStack.EMPTYprivate ItemStackItemGroup.iconItemStackprivate final ItemStackItemUseContext.itemStackprivate final ItemStackMerchantOffer.resultFields in net.minecraft.item with type parameters of type ItemStackModifier and TypeFieldDescriptionShootableItem.ARROW_ONLYShootableItem.ARROW_OR_FIREWORKstatic final com.mojang.serialization.Codec<ItemStack>ItemStack.CODECMethods in net.minecraft.item that return ItemStackModifier and TypeMethodDescriptionMerchantOffer.assemble()ItemStack.copy()static ItemStackFilledMapItem.create(World p_195952_0_, int p_195952_1_, int p_195952_2_, byte p_195952_3_, boolean p_195952_4_, boolean p_195952_5_) static ItemStackEnchantedBookItem.createForEnchantment(EnchantmentData p_92111_0_) static ItemStackChorusFruitItem.finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_) HoneyBottleItem.finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_) Item.finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_) ItemStack.finishUsingItem(World p_77950_1_, LivingEntity p_77950_2_) MilkBucketItem.finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_) PotionItem.finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_) SoupItem.finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_) SuspiciousStewItem.finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_) MerchantOffer.getBaseCostA()MerchantOffer.getCostA()MerchantOffer.getCostB()Item.getDefaultInstance()PotionItem.getDefaultInstance()TippedArrowItem.getDefaultInstance()protected ItemStackBucketItem.getEmptySuccessItem(ItemStack p_203790_1_, PlayerEntity p_203790_2_) static ItemStackShootableItem.getHeldProjectile(LivingEntity p_220005_0_, Predicate<ItemStack> p_220005_1_) ItemGroup.getIconItem()ItemUseContext.getItemInHand()MerchantOffer.getResult()abstract ItemStackItemGroup.makeIcon()static ItemStackItemStack.of(CompoundNBT p_199557_0_) ItemStack.setHoverName(ITextComponent p_200302_1_) ItemStack.split(int p_77979_1_) protected ItemStackGlassBottleItem.turnBottleIntoItem(ItemStack p_185061_1_, PlayerEntity p_185061_2_, ItemStack p_185061_3_) Methods in net.minecraft.item that return types with arguments of type ItemStackModifier and TypeMethodDescriptionBowItem.getAllSupportedProjectiles()CrossbowItem.getAllSupportedProjectiles()ShootableItem.getAllSupportedProjectiles()CrossbowItem.getChargedProjectiles(ItemStack p_220018_0_) CrossbowItem.getSupportedHeldProjectiles()ShootableItem.getSupportedHeldProjectiles()ArmorItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) BoatItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) BowItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) BucketItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) CrossbowItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) EggItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) ElytraItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) EnderEyeItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) EnderPearlItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) ExperienceBottleItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) FireworkRocketItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) FishingRodItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) GlassBottleItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) HoneyBottleItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) Item.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) ItemStack.use(World p_77957_1_, PlayerEntity p_77957_2_, Hand p_77957_3_) KnowledgeBookItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) LilyPadItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) LingeringPotionItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) MapItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) MilkBucketItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) OnAStickItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) PotionItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) ShieldItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) SnowballItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) SpawnEggItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) SplashPotionItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) ThrowablePotionItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) TridentItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) WritableBookItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) WrittenBookItem.use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_) Methods in net.minecraft.item with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static voidCrossbowItem.addChargedProjectile(ItemStack p_220029_0_, ItemStack p_220029_1_) static voidEnchantedBookItem.addEnchantment(ItemStack p_92115_0_, EnchantmentData p_92115_1_) voidAirItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidBannerItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidBannerPatternItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidBlockItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidCrossbowItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidEnchantedBookItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidFilledMapItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidFireworkRocketItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidFireworkStarItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidFishBucketItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidLingeringPotionItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidMusicDiscItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidPotionItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidShieldItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidTippedArrowItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) voidWrittenBookItem.appendHoverText(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) static voidBannerItem.appendHoverTextFromBannerBlockEntityTag(ItemStack p_185054_0_, List<ITextComponent> p_185054_1_) static booleanBoneMealItem.applyBonemeal(ItemStack p_195966_0_, World p_195966_1_, BlockPos p_195966_2_, PlayerEntity player) floatIItemPropertyGetter.call(ItemStack p_call_1_, ClientWorld p_call_2_, LivingEntity p_call_3_) booleanElytraItem.canElytraFly(ItemStack stack, LivingEntity entity) voidBucketItem.checkExtraContent(World p_203792_1_, ItemStack p_203792_2_, BlockPos p_203792_3_) voidFishBucketItem.checkExtraContent(World p_203792_1_, ItemStack p_203792_2_, BlockPos p_203792_3_) private static voidCrossbowItem.clearChargedProjectiles(ItemStack p_220027_0_) default voidIDyeableArmorItem.clearColor(ItemStack p_200884_1_) static booleanCrossbowItem.containsChargedProjectile(ItemStack p_220019_0_, Item p_220019_1_) private static MapDataFilledMapItem.createAndStoreSavedData(ItemStack p_195951_0_, World p_195951_1_, int p_195951_2_, int p_195951_3_, int p_195951_4_, boolean p_195951_5_, boolean p_195951_6_, RegistryKey<World> p_195951_7_) ArrowItem.createArrow(World p_200887_1_, ItemStack p_200887_2_, LivingEntity p_200887_3_) SpectralArrowItem.createArrow(World p_200887_1_, ItemStack p_200887_2_, LivingEntity p_200887_3_) static booleanArmorItem.dispenseArmor(IBlockSource p_226626_0_, ItemStack p_226626_1_) static ItemStackbooleanElytraItem.elytraFlightTick(ItemStack stack, LivingEntity entity, int flightTicks) ChorusFruitItem.finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_) HoneyBottleItem.finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_) Item.finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_) MilkBucketItem.finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_) PotionItem.finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_) SoupItem.finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_) SuspiciousStewItem.finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_) private static AbstractArrowEntityCrossbowItem.getArrow(World p_220024_0_, LivingEntity p_220024_1_, ItemStack p_220024_2_, ItemStack p_220024_3_) CrossbowItem.getChargedProjectiles(ItemStack p_220018_0_) static intCrossbowItem.getChargeDuration(ItemStack p_220026_0_) static DyeColorstatic intdefault intstatic DyeColorprotected MapDataFilledMapItem.getCustomMapData(ItemStack p_195950_0_, World p_195950_1_) CompassItem.getDescriptionId(ItemStack p_77667_1_) Item.getDescriptionId(ItemStack p_77667_1_) PotionItem.getDescriptionId(ItemStack p_77667_1_) ShieldItem.getDescriptionId(ItemStack p_77667_1_) TippedArrowItem.getDescriptionId(ItemStack p_77667_1_) floatAxeItem.getDestroySpeed(ItemStack p_150893_1_, BlockState p_150893_2_) floatItem.getDestroySpeed(ItemStack p_150893_1_, BlockState p_150893_2_) floatPickaxeItem.getDestroySpeed(ItemStack p_150893_1_, BlockState p_150893_2_) floatShearsItem.getDestroySpeed(ItemStack p_150893_1_, BlockState p_150893_2_) floatSwordItem.getDestroySpeed(ItemStack p_150893_1_, BlockState p_150893_2_) floatToolItem.getDestroySpeed(ItemStack p_150893_1_, BlockState p_150893_2_) protected ItemStackBucketItem.getEmptySuccessItem(ItemStack p_203790_1_, PlayerEntity p_203790_2_) static ListNBTEnchantedBookItem.getEnchantments(ItemStack p_92110_0_) static intWrittenBookItem.getGeneration(ItemStack p_179230_0_) intItem.getHarvestLevel(ItemStack stack, ToolType tool, PlayerEntity player, BlockState blockState) static intstatic MapDataFilledMapItem.getOrCreateSavedData(ItemStack p_195950_0_, World p_195950_1_) static intWrittenBookItem.getPageCount(ItemStack p_220049_0_) private static floatCrossbowItem.getPowerForTime(int p_220031_0_, ItemStack p_220031_1_) MerchantOffers.getRecipeFor(ItemStack p_222197_1_, ItemStack p_222197_2_, int p_222197_3_) static MapDataFilledMapItem.getSavedData(ItemStack p_219994_0_, World p_219994_1_) private static floatCrossbowItem.getShootingPower(ItemStack p_220013_0_) Item.getToolTypes(ItemStack stack) IPacket<?>AbstractMapItem.getUpdatePacket(ItemStack p_150911_1_, World p_150911_2_, PlayerEntity p_150911_3_) IPacket<?>FilledMapItem.getUpdatePacket(ItemStack p_150911_1_, World p_150911_2_, PlayerEntity p_150911_3_) BowItem.getUseAnimation(ItemStack p_77661_1_) CrossbowItem.getUseAnimation(ItemStack p_77661_1_) HoneyBottleItem.getUseAnimation(ItemStack p_77661_1_) Item.getUseAnimation(ItemStack p_77661_1_) MilkBucketItem.getUseAnimation(ItemStack p_77661_1_) PotionItem.getUseAnimation(ItemStack p_77661_1_) ShieldItem.getUseAnimation(ItemStack p_77661_1_) TridentItem.getUseAnimation(ItemStack p_77661_1_) intBowItem.getUseDuration(ItemStack p_77626_1_) intCrossbowItem.getUseDuration(ItemStack p_77626_1_) intHoneyBottleItem.getUseDuration(ItemStack p_77626_1_) intItem.getUseDuration(ItemStack p_77626_1_) intMilkBucketItem.getUseDuration(ItemStack p_77626_1_) intPotionItem.getUseDuration(ItemStack p_77626_1_) intShieldItem.getUseDuration(ItemStack p_77626_1_) intTridentItem.getUseDuration(ItemStack p_77626_1_) static booleanDeprecated.static booleanBoneMealItem.growWaterPlant(ItemStack p_203173_0_, World p_203173_1_, BlockPos p_203173_2_, Direction p_203173_3_) private voidDebugStickItem.handleInteraction(PlayerEntity p_195958_1_, BlockState p_195958_2_, IWorld p_195958_3_, BlockPos p_195958_4_, boolean p_195958_5_, ItemStack p_195958_6_) default booleanIDyeableArmorItem.hasCustomColor(ItemStack p_200883_1_) booleanItem.hurtEnemy(ItemStack p_77644_1_, LivingEntity p_77644_2_, LivingEntity p_77644_3_) booleanSwordItem.hurtEnemy(ItemStack p_77644_1_, LivingEntity p_77644_2_, LivingEntity p_77644_3_) booleanToolItem.hurtEnemy(ItemStack p_77644_1_, LivingEntity p_77644_2_, LivingEntity p_77644_3_) booleanTridentItem.hurtEnemy(ItemStack p_77644_1_, LivingEntity p_77644_2_, LivingEntity p_77644_3_) BucketItem.initCapabilities(ItemStack stack, CompoundNBT nbt) MilkBucketItem.initCapabilities(ItemStack stack, CompoundNBT nbt) DyeItem.interactLivingEntity(ItemStack p_111207_1_, PlayerEntity p_111207_2_, LivingEntity p_111207_3_, Hand p_111207_4_) Item.interactLivingEntity(ItemStack p_111207_1_, PlayerEntity p_111207_2_, LivingEntity p_111207_3_, Hand p_111207_4_) NameTagItem.interactLivingEntity(ItemStack p_111207_1_, PlayerEntity p_111207_2_, LivingEntity p_111207_3_, Hand p_111207_4_) SaddleItem.interactLivingEntity(ItemStack p_111207_1_, PlayerEntity p_111207_2_, LivingEntity p_111207_3_, Hand p_111207_4_) ShearsItem.interactLivingEntity(ItemStack stack, PlayerEntity playerIn, LivingEntity entity, Hand hand) voidCompassItem.inventoryTick(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_) voidFilledMapItem.inventoryTick(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_) voidItem.inventoryTick(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_) static booleanbooleanBookItem.isEnchantable(ItemStack p_77616_1_) booleanEnchantedBookItem.isEnchantable(ItemStack p_77616_1_) booleanItem.isEnchantable(ItemStack p_77616_1_) static booleanElytraItem.isFlyEnabled(ItemStack p_185069_0_) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanArrowItem.isInfinite(ItemStack stack, ItemStack bow, PlayerEntity player) static booleanCompassItem.isLodestoneCompass(ItemStack p_234670_0_) booleanItem.isRepairable(ItemStack stack) private booleanMerchantOffer.isRequiredItem(ItemStack p_222201_1_, ItemStack p_222201_2_) static booleanstatic booleanItemStack.isSameIgnoreDurability(ItemStack p_185132_0_, ItemStack p_185132_1_) booleanArmorItem.isValidRepairItem(ItemStack p_82789_1_, ItemStack p_82789_2_) booleanElytraItem.isValidRepairItem(ItemStack p_82789_1_, ItemStack p_82789_2_) booleanItem.isValidRepairItem(ItemStack p_82789_1_, ItemStack p_82789_2_) booleanShieldItem.isValidRepairItem(ItemStack p_82789_1_, ItemStack p_82789_2_) booleanTieredItem.isValidRepairItem(ItemStack p_82789_1_, ItemStack p_82789_2_) private static booleanCrossbowItem.loadProjectile(LivingEntity p_220023_0_, ItemStack p_220023_1_, ItemStack p_220023_2_, boolean p_220023_3_, boolean p_220023_4_) static voidprivate booleanstatic booleanprotected booleanHangingEntityItem.mayPlace(PlayerEntity p_200127_1_, Direction p_200127_2_, ItemStack p_200127_3_, BlockPos p_200127_4_) protected booleanItemFrameItem.mayPlace(PlayerEntity p_200127_1_, Direction p_200127_2_, ItemStack p_200127_3_, BlockPos p_200127_4_) booleanItem.mineBlock(ItemStack p_179218_1_, World p_179218_2_, BlockState p_179218_3_, BlockPos p_179218_4_, LivingEntity p_179218_5_) booleanShearsItem.mineBlock(ItemStack p_179218_1_, World p_179218_2_, BlockState p_179218_3_, BlockPos p_179218_4_, LivingEntity p_179218_5_) booleanSwordItem.mineBlock(ItemStack p_179218_1_, World p_179218_2_, BlockState p_179218_3_, BlockPos p_179218_4_, LivingEntity p_179218_5_) booleanToolItem.mineBlock(ItemStack p_179218_1_, World p_179218_2_, BlockState p_179218_3_, BlockPos p_179218_4_, LivingEntity p_179218_5_) booleanTridentItem.mineBlock(ItemStack p_179218_1_, World p_179218_2_, BlockState p_179218_3_, BlockPos p_179218_4_, LivingEntity p_179218_5_) voidFilledMapItem.onCraftedBy(ItemStack p_77622_1_, World p_77622_2_, PlayerEntity p_77622_3_) voidItem.onCraftedBy(ItemStack p_77622_1_, World p_77622_2_, PlayerEntity p_77622_3_) private static voidCrossbowItem.onCrossbowShot(World p_220015_0_, LivingEntity p_220015_1_, ItemStack p_220015_2_) voidCrossbowItem.onUseTick(World p_219972_1_, LivingEntity p_219972_2_, ItemStack p_219972_3_, int p_219972_4_) voidItem.onUseTick(World p_219972_1_, LivingEntity p_219972_2_, ItemStack p_219972_3_, int p_219972_4_) static voidCrossbowItem.performShooting(World p_220014_0_, LivingEntity p_220014_1_, Hand p_220014_2_, ItemStack p_220014_3_, float p_220014_4_, float p_220014_5_) voidBowItem.releaseUsing(ItemStack p_77615_1_, World p_77615_2_, LivingEntity p_77615_3_, int p_77615_4_) voidCrossbowItem.releaseUsing(ItemStack p_77615_1_, World p_77615_2_, LivingEntity p_77615_3_, int p_77615_4_) voidItem.releaseUsing(ItemStack p_77615_1_, World p_77615_2_, LivingEntity p_77615_3_, int p_77615_4_) voidTridentItem.releaseUsing(ItemStack p_77615_1_, World p_77615_2_, LivingEntity p_77615_3_, int p_77615_4_) static voidFilledMapItem.renderBiomePreviewMap(ServerWorld p_226642_0_, ItemStack p_226642_1_) static booleanWrittenBookItem.resolveBookComponents(ItemStack p_220050_0_, CommandSource p_220050_1_, PlayerEntity p_220050_2_) booleanbooleanItemStack.sameItemStackIgnoreDurability(ItemStack p_185136_1_) booleanMerchantOffer.satisfiedBy(ItemStack p_222204_1_, ItemStack p_222204_2_) static voidSuspiciousStewItem.saveMobEffect(ItemStack p_220037_0_, Effect p_220037_1_, int p_220037_2_) protected static voidstatic voidCrossbowItem.setCharged(ItemStack p_220011_0_, boolean p_220011_1_) default voidprivate static voidCrossbowItem.shootProjectile(World p_220016_0_, LivingEntity p_220016_1_, Hand p_220016_2_, ItemStack p_220016_3_, ItemStack p_220016_4_, float p_220016_5_, boolean p_220016_6_, float p_220016_7_, float p_220016_8_, float p_220016_9_) private voidFishBucketItem.spawn(ServerWorld p_205357_1_, ItemStack p_205357_2_, BlockPos p_205357_3_) SpawnEggItem.spawnOffspringFromSpawnEgg(PlayerEntity p_234809_1_, MobEntity p_234809_2_, EntityType<? extends MobEntity> p_234809_3_, ServerWorld p_234809_4_, Vector3d p_234809_5_, ItemStack p_234809_6_) static booleanItemStack.tagMatches(ItemStack p_77970_0_, ItemStack p_77970_1_) booleanprivate static booleanCrossbowItem.tryLoadProjectiles(LivingEntity p_220021_0_, ItemStack p_220021_1_) protected ItemStackGlassBottleItem.turnBottleIntoItem(ItemStack p_185061_1_, PlayerEntity p_185061_2_, ItemStack p_185061_3_) private BlockStateBlockItem.updateBlockStateFromTag(BlockPos p_219985_1_, World p_219985_2_, ItemStack p_219985_3_, BlockState p_219985_4_) protected booleanBlockItem.updateCustomBlockEntityTag(BlockPos p_195943_1_, World p_195943_2_, PlayerEntity p_195943_3_, ItemStack p_195943_4_, BlockState p_195943_5_) static booleanBlockItem.updateCustomBlockEntityTag(World p_179224_0_, PlayerEntity p_179224_1_, BlockPos p_179224_2_, ItemStack p_179224_3_) protected booleanSignItem.updateCustomBlockEntityTag(BlockPos p_195943_1_, World p_195943_2_, PlayerEntity p_195943_3_, ItemStack p_195943_4_, BlockState p_195943_5_) booleanItem.useOnRelease(ItemStack p_219970_1_) Method parameters in net.minecraft.item with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidBlockItem.fillItemCategory(ItemGroup p_150895_1_, NonNullList<ItemStack> p_150895_2_) voidEnchantedBookItem.fillItemCategory(ItemGroup p_150895_1_, NonNullList<ItemStack> p_150895_2_) voidItem.fillItemCategory(ItemGroup p_150895_1_, NonNullList<ItemStack> p_150895_2_) voidPotionItem.fillItemCategory(ItemGroup p_150895_1_, NonNullList<ItemStack> p_150895_2_) voidTippedArrowItem.fillItemCategory(ItemGroup p_150895_1_, NonNullList<ItemStack> p_150895_2_) voidItemGroup.fillItemList(NonNullList<ItemStack> p_78018_1_) static ItemStackShootableItem.getHeldProjectile(LivingEntity p_220005_0_, Predicate<ItemStack> p_220005_1_) Constructors in net.minecraft.item with parameters of type ItemStackModifierConstructorDescriptionBlockItemUseContext(PlayerEntity p_i241237_1_, Hand p_i241237_2_, ItemStack p_i241237_3_, BlockRayTraceResult p_i241237_4_) BlockItemUseContext(World p_i50056_1_, PlayerEntity p_i50056_2_, Hand p_i50056_3_, ItemStack p_i50056_4_, BlockRayTraceResult p_i50056_5_) DirectionalPlaceContext(World p_i50051_1_, BlockPos p_i50051_2_, Direction p_i50051_3_, ItemStack p_i50051_4_, Direction p_i50051_5_) ItemUseContext(World p_i50034_1_, PlayerEntity p_i50034_2_, Hand p_i50034_3_, ItemStack p_i50034_4_, BlockRayTraceResult p_i50034_5_) MerchantOffer(ItemStack p_i50013_1_, ItemStack p_i50013_2_, int p_i50013_3_, int p_i50013_4_, float p_i50013_5_) MerchantOffer(ItemStack p_i50014_1_, ItemStack p_i50014_2_, ItemStack p_i50014_3_, int p_i50014_4_, int p_i50014_5_, float p_i50014_6_) MerchantOffer(ItemStack p_i50015_1_, ItemStack p_i50015_2_, ItemStack p_i50015_3_, int p_i50015_4_, int p_i50015_5_, int p_i50015_6_, float p_i50015_7_) MerchantOffer(ItemStack p_i51550_1_, ItemStack p_i51550_2_, ItemStack p_i51550_3_, int p_i51550_4_, int p_i51550_5_, int p_i51550_6_, float p_i51550_7_, int p_i51550_8_) -
Uses of ItemStack in net.minecraft.item.crafting
Fields in net.minecraft.item.crafting declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackIngredient.SingleItemList.itemprivate ItemStack[]Ingredient.itemStacksprotected final ItemStackAbstractCookingRecipe.resultprivate final ItemStackShapedRecipe.resultprivate final ItemStackShapelessRecipe.resultprotected final ItemStackSingleItemRecipe.resultprivate final ItemStackSmithingRecipe.resultMethods in net.minecraft.item.crafting that return ItemStackModifier and TypeMethodDescriptionAbstractCookingRecipe.assemble(IInventory p_77572_1_) ArmorDyeRecipe.assemble(CraftingInventory p_77572_1_) BannerDuplicateRecipe.assemble(CraftingInventory p_77572_1_) BookCloningRecipe.assemble(CraftingInventory p_77572_1_) FireworkRocketRecipe.assemble(CraftingInventory p_77572_1_) FireworkStarFadeRecipe.assemble(CraftingInventory p_77572_1_) FireworkStarRecipe.assemble(CraftingInventory p_77572_1_) MapCloningRecipe.assemble(CraftingInventory p_77572_1_) MapExtendingRecipe.assemble(CraftingInventory p_77572_1_) RepairItemRecipe.assemble(CraftingInventory p_77572_1_) ShapedRecipe.assemble(CraftingInventory p_77572_1_) ShapelessRecipe.assemble(CraftingInventory p_77572_1_) ShieldRecipes.assemble(CraftingInventory p_77572_1_) ShulkerBoxColoringRecipe.assemble(CraftingInventory p_77572_1_) SingleItemRecipe.assemble(IInventory p_77572_1_) SmithingRecipe.assemble(IInventory p_77572_1_) SuspiciousStewRecipe.assemble(CraftingInventory p_77572_1_) TippedArrowRecipe.assemble(CraftingInventory p_77572_1_) static ItemStackRecipeItemHelper.fromStackingIndex(int p_194115_0_) Ingredient.getItems()AbstractCookingRecipe.getResultItem()FireworkRocketRecipe.getResultItem()FireworkStarRecipe.getResultItem()IRecipe.getResultItem()ShapedRecipe.getResultItem()ShapelessRecipe.getResultItem()SingleItemRecipe.getResultItem()SmithingRecipe.getResultItem()SpecialRecipe.getResultItem()BlastingRecipe.getToastSymbol()CampfireCookingRecipe.getToastSymbol()FurnaceRecipe.getToastSymbol()default ItemStackIRecipe.getToastSymbol()SmithingRecipe.getToastSymbol()SmokingRecipe.getToastSymbol()StonecuttingRecipe.getToastSymbol()static ItemStackShapedRecipe.itemFromJson(com.google.gson.JsonObject p_199798_0_) Methods in net.minecraft.item.crafting that return types with arguments of type ItemStackModifier and TypeMethodDescriptionIngredient.IItemList.getItems()Ingredient.SingleItemList.getItems()Ingredient.TagList.getItems()BannerDuplicateRecipe.getRemainingItems(CraftingInventory p_179532_1_) BookCloningRecipe.getRemainingItems(CraftingInventory p_179532_1_) default NonNullList<ItemStack>IRecipe.getRemainingItems(C p_179532_1_) <C extends IInventory,T extends IRecipe<C>>
NonNullList<ItemStack>RecipeManager.getRemainingItemsFor(IRecipeType<T> p_215369_1_, C p_215369_2_, World p_215369_3_) Methods in net.minecraft.item.crafting with parameters of type ItemStackModifier and TypeMethodDescriptionvoidRecipeItemHelper.accountSimpleStack(ItemStack p_195932_1_) voidRecipeItemHelper.accountStack(ItemStack p_194112_1_) voidRecipeItemHelper.accountStack(ItemStack p_221264_1_, int p_221264_2_) CookingRecipeSerializer.IFactory.create(ResourceLocation p_create_1_, String p_create_2_, Ingredient p_create_3_, ItemStack p_create_4_, float p_create_5_, int p_create_6_) SingleItemRecipe.Serializer.IRecipeFactory.create(ResourceLocation p_create_1_, String p_create_2_, Ingredient p_create_3_, ItemStack p_create_4_) static intRecipeItemHelper.getStackingIndex(ItemStack p_194113_0_) booleanSmithingRecipe.isAdditionIngredient(ItemStack p_241456_1_) protected voidServerRecipePlacer.moveItemToGrid(Slot p_194325_1_, ItemStack p_194325_2_) static IngredientbooleanMethod parameters in net.minecraft.item.crafting with type arguments of type ItemStackConstructors in net.minecraft.item.crafting with parameters of type ItemStackModifierConstructorDescriptionAbstractCookingRecipe(IRecipeType<?> p_i50032_1_, ResourceLocation p_i50032_2_, String p_i50032_3_, Ingredient p_i50032_4_, ItemStack p_i50032_5_, float p_i50032_6_, int p_i50032_7_) BlastingRecipe(ResourceLocation p_i50031_1_, String p_i50031_2_, Ingredient p_i50031_3_, ItemStack p_i50031_4_, float p_i50031_5_, int p_i50031_6_) CampfireCookingRecipe(ResourceLocation p_i50030_1_, String p_i50030_2_, Ingredient p_i50030_3_, ItemStack p_i50030_4_, float p_i50030_5_, int p_i50030_6_) FurnaceRecipe(ResourceLocation p_i48715_1_, String p_i48715_2_, Ingredient p_i48715_3_, ItemStack p_i48715_4_, float p_i48715_5_, int p_i48715_6_) ShapedRecipe(ResourceLocation p_i48162_1_, String p_i48162_2_, int p_i48162_3_, int p_i48162_4_, NonNullList<Ingredient> p_i48162_5_, ItemStack p_i48162_6_) ShapelessRecipe(ResourceLocation p_i48161_1_, String p_i48161_2_, ItemStack p_i48161_3_, NonNullList<Ingredient> p_i48161_4_) SingleItemList(ItemStack p_i48195_1_) SingleItemRecipe(IRecipeType<?> p_i50023_1_, IRecipeSerializer<?> p_i50023_2_, ResourceLocation p_i50023_3_, String p_i50023_4_, Ingredient p_i50023_5_, ItemStack p_i50023_6_) SmithingRecipe(ResourceLocation p_i231600_1_, Ingredient p_i231600_2_, Ingredient p_i231600_3_, ItemStack p_i231600_4_) SmokingRecipe(ResourceLocation p_i50022_1_, String p_i50022_2_, Ingredient p_i50022_3_, ItemStack p_i50022_4_, float p_i50022_5_, int p_i50022_6_) StonecuttingRecipe(ResourceLocation p_i50021_1_, String p_i50021_2_, Ingredient p_i50021_3_, ItemStack p_i50021_4_) -
Uses of ItemStack in net.minecraft.loot
Fields in net.minecraft.loot with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate final BiFunction<ItemStack,LootContext, ItemStack> LootPool.compositeFunctionprivate final BiFunction<ItemStack,LootContext, ItemStack> LootPool.compositeFunctionprivate final BiFunction<ItemStack,LootContext, ItemStack> LootTable.compositeFunctionprivate final BiFunction<ItemStack,LootContext, ItemStack> LootTable.compositeFunctionprivate final BiFunction<ItemStack,LootContext, ItemStack> StandaloneLootEntry.compositeFunctionprivate final BiFunction<ItemStack,LootContext, ItemStack> StandaloneLootEntry.compositeFunctionstatic final LootParameter<ItemStack>LootParameters.TOOLMethods in net.minecraft.loot that return ItemStackModifier and TypeMethodDescriptionfinal ItemStackLootFunction.apply(ItemStack p_apply_1_, LootContext p_apply_2_) protected abstract ItemStackLootFunction.run(ItemStack p_215859_1_, LootContext p_215859_2_) Methods in net.minecraft.loot that return types with arguments of type ItemStackModifier and TypeMethodDescriptionLootTable.createStackSplitter(Consumer<ItemStack> p_216124_0_) LootTable.getRandomItems(LootContext p_216113_1_) Methods in net.minecraft.loot with parameters of type ItemStackModifier and TypeMethodDescriptionfinal ItemStackLootFunction.apply(ItemStack p_apply_1_, LootContext p_apply_2_) protected abstract ItemStackLootFunction.run(ItemStack p_215859_1_, LootContext p_215859_2_) Method parameters in net.minecraft.loot with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidLootContext.IDynamicDropProvider.add(LootContext p_add_1_, Consumer<ItemStack> p_add_2_) voidLootContext.addDynamicDrops(ResourceLocation p_216034_1_, Consumer<ItemStack> p_216034_2_) private voidLootPool.addRandomItem(Consumer<ItemStack> p_216095_1_, LootContext p_216095_2_) voidLootPool.addRandomItems(Consumer<ItemStack> p_216091_1_, LootContext p_216091_2_) voidDynamicLootEntry.createItemStack(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) voidEmptyLootEntry.createItemStack(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) voidILootGenerator.createItemStack(Consumer<ItemStack> p_216188_1_, LootContext p_216188_2_) voidItemLootEntry.createItemStack(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) protected abstract voidStandaloneLootEntry.createItemStack(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) voidTableLootEntry.createItemStack(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) voidTagLootEntry.createItemStack(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) LootTable.createStackSplitter(Consumer<ItemStack> p_216124_0_) voidLootTable.getRandomItems(LootContext p_216120_1_, Consumer<ItemStack> p_216120_2_) Deprecated.voidLootTable.getRandomItemsRaw(LootContext p_216114_1_, Consumer<ItemStack> p_216114_2_) private voidLootTable.shuffleAndSplitItems(List<ItemStack> p_186463_1_, int p_186463_2_, Random p_186463_3_) -
Uses of ItemStack in net.minecraft.loot.functions
Fields in net.minecraft.loot.functions with type parameters of type ItemStackModifier and TypeFieldDescriptionstatic final BiFunction<ItemStack,LootContext, ItemStack> LootFunctionManager.IDENTITYstatic final BiFunction<ItemStack,LootContext, ItemStack> LootFunctionManager.IDENTITYMethods in net.minecraft.loot.functions that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackEnchantRandomly.enchantItem(ItemStack p_237420_0_, Enchantment p_237420_1_, Random p_237420_2_) ApplyBonus.run(ItemStack p_215859_1_, LootContext p_215859_2_) protected ItemStackCopyBlockState.run(ItemStack p_215859_1_, LootContext p_215859_2_) CopyName.run(ItemStack p_215859_1_, LootContext p_215859_2_) CopyNbt.run(ItemStack p_215859_1_, LootContext p_215859_2_) EnchantRandomly.run(ItemStack p_215859_1_, LootContext p_215859_2_) EnchantWithLevels.run(ItemStack p_215859_1_, LootContext p_215859_2_) ExplorationMap.run(ItemStack p_215859_1_, LootContext p_215859_2_) ExplosionDecay.run(ItemStack p_215859_1_, LootContext p_215859_2_) FillPlayerHead.run(ItemStack p_215859_1_, LootContext p_215859_2_) LimitCount.run(ItemStack p_215859_1_, LootContext p_215859_2_) LootingEnchantBonus.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetAttributes.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetContents.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetCount.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetDamage.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetLootTable.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetLore.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetName.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetNBT.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetStewEffect.run(ItemStack p_215859_1_, LootContext p_215859_2_) Smelt.run(ItemStack p_215859_1_, LootContext p_215859_2_) Methods in net.minecraft.loot.functions that return types with arguments of type ItemStackModifier and TypeMethodDescriptionstatic BiFunction<ItemStack,LootContext, ItemStack> LootFunctionManager.compose(BiFunction<ItemStack, LootContext, ItemStack>[] p_216241_0_) static BiFunction<ItemStack,LootContext, ItemStack> LootFunctionManager.compose(BiFunction<ItemStack, LootContext, ItemStack>[] p_216241_0_) ILootFunction.decorate(BiFunction<ItemStack, LootContext, ItemStack> p_215858_0_, Consumer<ItemStack> p_215858_1_, LootContext p_215858_2_) Methods in net.minecraft.loot.functions with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static ItemStackEnchantRandomly.enchantItem(ItemStack p_237420_0_, Enchantment p_237420_1_, Random p_237420_2_) private ListNBTSetLore.getLoreTag(ItemStack p_215942_1_, boolean p_215942_2_) ApplyBonus.run(ItemStack p_215859_1_, LootContext p_215859_2_) protected ItemStackCopyBlockState.run(ItemStack p_215859_1_, LootContext p_215859_2_) CopyName.run(ItemStack p_215859_1_, LootContext p_215859_2_) CopyNbt.run(ItemStack p_215859_1_, LootContext p_215859_2_) EnchantRandomly.run(ItemStack p_215859_1_, LootContext p_215859_2_) EnchantWithLevels.run(ItemStack p_215859_1_, LootContext p_215859_2_) ExplorationMap.run(ItemStack p_215859_1_, LootContext p_215859_2_) ExplosionDecay.run(ItemStack p_215859_1_, LootContext p_215859_2_) FillPlayerHead.run(ItemStack p_215859_1_, LootContext p_215859_2_) LimitCount.run(ItemStack p_215859_1_, LootContext p_215859_2_) LootingEnchantBonus.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetAttributes.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetContents.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetCount.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetDamage.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetLootTable.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetLore.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetName.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetNBT.run(ItemStack p_215859_1_, LootContext p_215859_2_) SetStewEffect.run(ItemStack p_215859_1_, LootContext p_215859_2_) Smelt.run(ItemStack p_215859_1_, LootContext p_215859_2_) Method parameters in net.minecraft.loot.functions with type arguments of type ItemStackModifier and TypeMethodDescriptionILootFunction.decorate(BiFunction<ItemStack, LootContext, ItemStack> p_215858_0_, Consumer<ItemStack> p_215858_1_, LootContext p_215858_2_) ILootFunction.decorate(BiFunction<ItemStack, LootContext, ItemStack> p_215858_0_, Consumer<ItemStack> p_215858_1_, LootContext p_215858_2_) ILootFunction.decorate(BiFunction<ItemStack, LootContext, ItemStack> p_215858_0_, Consumer<ItemStack> p_215858_1_, LootContext p_215858_2_) -
Uses of ItemStack in net.minecraft.network
Methods in net.minecraft.network that return ItemStackMethods in net.minecraft.network with parameters of type ItemStackModifier and TypeMethodDescriptionPacketBuffer.writeItemStack(ItemStack p_150788_1_, 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.datasync
Fields in net.minecraft.network.datasync with type parameters of type ItemStackModifier and TypeFieldDescriptionstatic final IDataSerializer<ItemStack>DataSerializers.ITEM_STACK -
Uses of ItemStack in net.minecraft.network.play
Methods in net.minecraft.network.play with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static booleanServerPlayNetHandler.wasBlockPlacementAttempt(ServerPlayerEntity p_241166_0_, ItemStack p_241166_1_) -
Uses of ItemStack in net.minecraft.network.play.client
Fields in net.minecraft.network.play.client declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackCEditBookPacket.bookprivate ItemStackCClickWindowPacket.itemStackprivate ItemStackCCreativeInventoryActionPacket.itemStackMethods in net.minecraft.network.play.client that return ItemStackModifier and TypeMethodDescriptionCEditBookPacket.getBook()CClickWindowPacket.getItem()CCreativeInventoryActionPacket.getItem()Constructors in net.minecraft.network.play.client with parameters of type ItemStackModifierConstructorDescriptionCClickWindowPacket(int p_i46882_1_, int p_i46882_2_, int p_i46882_3_, ClickType p_i46882_4_, ItemStack p_i46882_5_, short p_i46882_6_) CCreativeInventoryActionPacket(int p_i46862_1_, ItemStack p_i46862_2_) CEditBookPacket(ItemStack p_i244520_1_, boolean p_i244520_2_, int p_i244520_3_) -
Uses of ItemStack in net.minecraft.network.play.server
Fields in net.minecraft.network.play.server declared as ItemStackFields in net.minecraft.network.play.server with type parameters of type ItemStackModifier and TypeFieldDescriptionSWindowItemsPacket.itemsprivate final List<com.mojang.datafixers.util.Pair<EquipmentSlotType,ItemStack>> SEntityEquipmentPacket.slotsMethods in net.minecraft.network.play.server that return ItemStackMethods in net.minecraft.network.play.server that return types with arguments of type ItemStackModifier and TypeMethodDescriptionSWindowItemsPacket.getItems()List<com.mojang.datafixers.util.Pair<EquipmentSlotType,ItemStack>> SEntityEquipmentPacket.getSlots()Constructors in net.minecraft.network.play.server with parameters of type ItemStackModifierConstructorDescriptionSSetSlotPacket(int p_i46951_1_, int p_i46951_2_, ItemStack p_i46951_3_) Constructor parameters in net.minecraft.network.play.server with type arguments of type ItemStackModifierConstructorDescriptionSEntityEquipmentPacket(int p_i241270_1_, List<com.mojang.datafixers.util.Pair<EquipmentSlotType, ItemStack>> p_i241270_2_) SWindowItemsPacket(int p_i47317_1_, NonNullList<ItemStack> p_i47317_2_) -
Uses of ItemStack in net.minecraft.particles
Fields in net.minecraft.particles declared as ItemStackMethods in net.minecraft.particles that return ItemStackConstructors in net.minecraft.particles with parameters of type ItemStackModifierConstructorDescriptionItemParticleData(ParticleType<ItemParticleData> p_i47952_1_, ItemStack p_i47952_2_) -
Uses of ItemStack in net.minecraft.potion
Fields in net.minecraft.potion with type parameters of type ItemStackMethods in net.minecraft.potion that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackstatic ItemStackPotionUtils.setCustomEffects(ItemStack p_185184_0_, Collection<EffectInstance> p_185184_1_) static ItemStackMethods in net.minecraft.potion that return types with arguments of type ItemStackMethods in net.minecraft.potion with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidPotionUtils.addPotionTooltip(ItemStack p_185182_0_, List<ITextComponent> p_185182_1_, float p_185182_2_) static intstatic List<EffectInstance>PotionUtils.getCustomEffects(ItemStack p_185190_0_) static List<EffectInstance>PotionUtils.getMobEffects(ItemStack p_185189_0_) static Potionprotected static booleanPotionBrewing.hasContainerMix(ItemStack p_185206_0_, ItemStack p_185206_1_) static booleanprotected static booleanPotionBrewing.hasPotionMix(ItemStack p_185209_0_, ItemStack p_185209_1_) protected static booleanPotionBrewing.isContainerIngredient(ItemStack p_185203_0_) static booleanPotionBrewing.isIngredient(ItemStack p_185205_0_) protected static booleanPotionBrewing.isPotionIngredient(ItemStack p_185211_0_) static ItemStackstatic ItemStackPotionUtils.setCustomEffects(ItemStack p_185184_0_, Collection<EffectInstance> p_185184_1_) static ItemStackMethod parameters in net.minecraft.potion with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidEffectInstance.setCurativeItems(List<ItemStack> curativeItems) -
Uses of ItemStack in net.minecraft.server.management
Methods in net.minecraft.server.management with parameters of type ItemStackModifier and TypeMethodDescriptionDemoPlayerInteractionManager.useItem(ServerPlayerEntity p_187250_1_, World p_187250_2_, ItemStack p_187250_3_, Hand p_187250_4_) PlayerInteractionManager.useItem(ServerPlayerEntity p_187250_1_, World p_187250_2_, ItemStack p_187250_3_, Hand p_187250_4_) DemoPlayerInteractionManager.useItemOn(ServerPlayerEntity p_219441_1_, World p_219441_2_, ItemStack p_219441_3_, Hand p_219441_4_, BlockRayTraceResult p_219441_5_) PlayerInteractionManager.useItemOn(ServerPlayerEntity p_219441_1_, World p_219441_2_, ItemStack p_219441_3_, Hand p_219441_4_, BlockRayTraceResult p_219441_5_) -
Uses of ItemStack in net.minecraft.test
Methods in net.minecraft.test that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackTestUtils.createBook(String p_229546_0_, boolean p_229546_1_, String p_229546_2_) -
Uses of ItemStack in net.minecraft.tileentity
Fields in net.minecraft.tileentity declared as ItemStackModifier and TypeFieldDescriptionprivate ItemStackLecternTileEntity.bookprivate ItemStackJukeboxTileEntity.recordFields in net.minecraft.tileentity with type parameters of type ItemStackModifier and TypeFieldDescriptionprotected NonNullList<ItemStack>AbstractFurnaceTileEntity.itemsprivate NonNullList<ItemStack>BarrelTileEntity.itemsprivate NonNullList<ItemStack>BrewingStandTileEntity.itemsprivate final NonNullList<ItemStack>CampfireTileEntity.itemsprivate NonNullList<ItemStack>ChestTileEntity.itemsprivate NonNullList<ItemStack>DispenserTileEntity.itemsprivate NonNullList<ItemStack>HopperTileEntity.itemsprivate NonNullList<ItemStack>ShulkerBoxTileEntity.itemStacksMethods in net.minecraft.tileentity that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackHopperTileEntity.addItem(IInventory p_174918_0_, IInventory p_174918_1_, ItemStack p_174918_2_, Direction p_174918_3_) LecternTileEntity.getBook()AbstractFurnaceTileEntity.getItem(int p_70301_1_) BannerTileEntity.getItem(BlockState p_190615_1_) BrewingStandTileEntity.getItem(int p_70301_1_) LockableLootTileEntity.getItem(int p_70301_1_) JukeboxTileEntity.getRecord()AbstractFurnaceTileEntity.removeItem(int p_70298_1_, int p_70298_2_) BrewingStandTileEntity.removeItem(int p_70298_1_, int p_70298_2_) HopperTileEntity.removeItem(int p_70298_1_, int p_70298_2_) LockableLootTileEntity.removeItem(int p_70298_1_, int p_70298_2_) AbstractFurnaceTileEntity.removeItemNoUpdate(int p_70304_1_) BrewingStandTileEntity.removeItemNoUpdate(int p_70304_1_) LockableLootTileEntity.removeItemNoUpdate(int p_70304_1_) private ItemStackLecternTileEntity.resolveBook(ItemStack p_214047_1_, PlayerEntity p_214047_2_) private static ItemStackHopperTileEntity.tryMoveInItem(IInventory p_174916_0_, IInventory p_174916_1_, ItemStack p_174916_2_, int p_174916_3_, Direction p_174916_4_) Methods in net.minecraft.tileentity that return types with arguments of type ItemStackModifier and TypeMethodDescriptionprotected NonNullList<ItemStack>BarrelTileEntity.getItems()CampfireTileEntity.getItems()protected NonNullList<ItemStack>ChestTileEntity.getItems()protected NonNullList<ItemStack>DispenserTileEntity.getItems()protected NonNullList<ItemStack>HopperTileEntity.getItems()protected abstract NonNullList<ItemStack>LockableLootTileEntity.getItems()protected NonNullList<ItemStack>ShulkerBoxTileEntity.getItems()Methods in net.minecraft.tileentity with parameters of type ItemStackModifier and TypeMethodDescriptionintstatic ItemStackHopperTileEntity.addItem(IInventory p_174918_0_, IInventory p_174918_1_, ItemStack p_174918_2_, Direction p_174918_3_) private static booleanHopperTileEntity.canMergeItems(ItemStack p_145894_0_, ItemStack p_145894_1_) booleanAbstractFurnaceTileEntity.canPlaceItem(int p_94041_1_, ItemStack p_94041_2_) booleanBrewingStandTileEntity.canPlaceItem(int p_94041_1_, ItemStack p_94041_2_) private static booleanHopperTileEntity.canPlaceItemInContainer(IInventory p_174920_0_, ItemStack p_174920_1_, int p_174920_2_, Direction p_174920_3_) booleanAbstractFurnaceTileEntity.canPlaceItemThroughFace(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) booleanBrewingStandTileEntity.canPlaceItemThroughFace(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) booleanShulkerBoxTileEntity.canPlaceItemThroughFace(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) private static booleanHopperTileEntity.canTakeItemFromContainer(IInventory p_174921_0_, ItemStack p_174921_1_, int p_174921_2_, Direction p_174921_3_) booleanAbstractFurnaceTileEntity.canTakeItemThroughFace(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) booleanBrewingStandTileEntity.canTakeItemThroughFace(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) booleanShulkerBoxTileEntity.canTakeItemThroughFace(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) voidprotected intAbstractFurnaceTileEntity.getBurnDuration(ItemStack p_213997_1_) protected intBlastFurnaceTileEntity.getBurnDuration(ItemStack p_213997_1_) protected intSmokerTileEntity.getBurnDuration(ItemStack p_213997_1_) CampfireTileEntity.getCookableRecipe(ItemStack p_213980_1_) static ListNBTBannerTileEntity.getItemPatterns(ItemStack p_230139_0_) static intBannerTileEntity.getPatternCount(ItemStack p_175113_0_) static booleanbooleanstatic voidBannerTileEntity.removeLastPattern(ItemStack p_175117_0_) private ItemStackLecternTileEntity.resolveBook(ItemStack p_214047_1_, PlayerEntity p_214047_2_) voidvoidLecternTileEntity.setBook(ItemStack p_214040_1_, PlayerEntity p_214040_2_) voidvoidvoidvoidvoidprivate static ItemStackHopperTileEntity.tryMoveInItem(IInventory p_174916_0_, IInventory p_174916_1_, ItemStack p_174916_2_, int p_174916_3_, Direction p_174916_4_) Method parameters in net.minecraft.tileentity with type arguments of type ItemStackModifier and TypeMethodDescriptionprotected voidBarrelTileEntity.setItems(NonNullList<ItemStack> p_199721_1_) protected voidChestTileEntity.setItems(NonNullList<ItemStack> p_199721_1_) protected voidDispenserTileEntity.setItems(NonNullList<ItemStack> p_199721_1_) protected voidHopperTileEntity.setItems(NonNullList<ItemStack> p_199721_1_) protected abstract voidLockableLootTileEntity.setItems(NonNullList<ItemStack> p_199721_1_) protected voidShulkerBoxTileEntity.setItems(NonNullList<ItemStack> p_199721_1_) -
Uses of ItemStack in net.minecraft.util
Fields in net.minecraft.util declared as ItemStackMethods in net.minecraft.util that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackDrinkHelper.createFilledResult(ItemStack p_242398_0_, PlayerEntity p_242398_1_, ItemStack p_242398_2_) static ItemStackDrinkHelper.createFilledResult(ItemStack p_241445_0_, PlayerEntity p_241445_1_, ItemStack p_241445_2_, boolean p_241445_3_) Methods in net.minecraft.util that return types with arguments of type ItemStackModifier and TypeMethodDescriptionstatic ActionResult<ItemStack>DrinkHelper.useDrink(World p_234707_0_, PlayerEntity p_234707_1_, Hand p_234707_2_) Methods in net.minecraft.util with parameters of type ItemStackModifier and TypeMethodDescriptionstatic ItemStackDrinkHelper.createFilledResult(ItemStack p_242398_0_, PlayerEntity p_242398_1_, ItemStack p_242398_2_) static ItemStackDrinkHelper.createFilledResult(ItemStack p_241445_0_, PlayerEntity p_241445_1_, ItemStack p_241445_2_, boolean p_241445_3_) voidConstructors in net.minecraft.util with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.util.text.event
Fields in net.minecraft.util.text.event declared as ItemStackMethods in net.minecraft.util.text.event that return ItemStackConstructors in net.minecraft.util.text.event with parameters of type ItemStack -
Uses of ItemStack in net.minecraft.world
Methods in net.minecraft.world with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static voidExplosion.addBlockDrops(it.unimi.dsi.fastutil.objects.ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> p_229976_0_, ItemStack p_229976_1_, BlockPos p_229976_2_) booleanLockCode.unlocksWith(ItemStack p_219964_1_) Method parameters in net.minecraft.world with type arguments of type ItemStackModifier and TypeMethodDescriptionprivate static voidExplosion.addBlockDrops(it.unimi.dsi.fastutil.objects.ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack, BlockPos>> p_229976_0_, ItemStack p_229976_1_, BlockPos p_229976_2_) -
Uses of ItemStack in net.minecraft.world.raid
Methods in net.minecraft.world.raid that return ItemStack -
Uses of ItemStack in net.minecraft.world.storage
Methods in net.minecraft.world.storage with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidMapData.addTargetDecoration(ItemStack p_191094_0_, BlockPos p_191094_1_, String p_191094_2_, MapDecoration.Type p_191094_3_) IPacket<?>MapData.getUpdatePacket(ItemStack p_176052_1_, IBlockReader p_176052_2_, PlayerEntity p_176052_3_) IPacket<?>MapData.MapInfo.nextUpdatePacket(ItemStack p_176101_1_) voidMapData.tickCarriedBy(PlayerEntity p_76191_1_, ItemStack p_76191_2_) -
Uses of ItemStack in net.minecraftforge.client
Methods in net.minecraftforge.client with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidForgeHooksClient.drawItemLayered(ItemRenderer renderer, IBakedModel modelIn, ItemStack itemStackIn, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int combinedLightIn, int combinedOverlayIn, boolean fabulous) static <A extends BipedModel<?>>
AForgeHooksClient.getArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlotType slot, A _default) static StringForgeHooksClient.getArmorTexture(Entity entity, ItemStack armor, String _default, EquipmentSlotType slot, String type) intItemModelMesherForge.getLocation(ItemStack stack) static booleanForgeHooksClient.renderSpecificFirstPersonHand(Hand hand, MatrixStack mat, IRenderTypeBuffer buffers, int light, float partialTicks, float interpPitch, float swingProgress, float equipProgress, ItemStack stack) static booleanForgeHooksClient.shouldCauseReequipAnimation(ItemStack from, ItemStack to, int slot) -
Uses of ItemStack in net.minecraftforge.client.event
Fields in net.minecraftforge.client.event declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackRenderItemInFrameEvent.itemprivate final ItemStackRenderHandEvent.stackprotected final ItemStackRenderTooltipEvent.stackMethods in net.minecraftforge.client.event that return ItemStackModifier and TypeMethodDescriptionRenderItemInFrameEvent.getItem()RenderHandEvent.getItemStack()RenderTooltipEvent.getStack()Constructors in net.minecraftforge.client.event with parameters of type ItemStackModifierConstructorDescriptionColor(ItemStack stack, List<? extends ITextProperties> textLines, MatrixStack matrixStack, int x, int y, FontRenderer fr, int background, int borderStart, int borderEnd) Post(ItemStack stack, List<? extends ITextProperties> textLines, MatrixStack matrixStack, int x, int y, FontRenderer fr, int width, int height) PostBackground(ItemStack stack, List<? extends ITextProperties> textLines, MatrixStack matrixStack, int x, int y, FontRenderer fr, int width, int height) PostText(ItemStack stack, List<? extends ITextProperties> textLines, MatrixStack matrixStack, int x, int y, FontRenderer fr, int width, int height) Pre(ItemStack stack, List<? extends ITextProperties> lines, MatrixStack matrixStack, int x, int y, int screenWidth, int screenHeight, int maxWidth, FontRenderer fr) RenderHandEvent(Hand hand, MatrixStack mat, IRenderTypeBuffer buffers, int light, float partialTicks, float interpolatedPitch, float swingProgress, float equipProgress, ItemStack stack) RenderTooltipEvent(ItemStack stack, List<? extends ITextProperties> lines, MatrixStack matrixStack, int x, int y, FontRenderer fr) -
Uses of ItemStack in net.minecraftforge.client.extensions
Methods in net.minecraftforge.client.extensions with parameters of type ItemStackModifier and TypeMethodDescriptiondefault List<com.mojang.datafixers.util.Pair<IBakedModel,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
Methods in net.minecraftforge.client.model with parameters of type ItemStackModifier and TypeMethodDescriptionList<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>> ItemMultiLayerBakedModel.getLayerModels(ItemStack itemStack, boolean fabulous) List<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>> MultiLayerModel.MultiLayerBakedModel.getLayerModels(ItemStack itemStack, boolean fabulous) DynamicBucketModel.ContainedFluidOverrideHandler.resolve(IBakedModel originalModel, ItemStack stack, ClientWorld world, LivingEntity entity) PerspectiveMapWrapper.OverrideListWrapper.resolve(IBakedModel model, ItemStack stack, ClientWorld worldIn, LivingEntity entityIn) -
Uses of ItemStack in net.minecraftforge.client.model.animation
Methods in net.minecraftforge.client.model.animation with parameters of type ItemStackModifier and TypeMethodDescriptionAnimationItemOverrideList.resolve(IBakedModel originalModel, ItemStack stack, ClientWorld world, LivingEntity entity) -
Uses of ItemStack in net.minecraftforge.common
Fields in net.minecraftforge.common declared as ItemStackModifier and TypeFieldDescriptionprotected final ItemStackBasicTrade.forSaleprotected final ItemStackBasicTrade.priceprotected final ItemStackBasicTrade.price2Methods in net.minecraftforge.common that return ItemStackMethods in net.minecraftforge.common that return types with arguments of type ItemStackModifier 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.IForgeShearable.onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune) Performs the shear function on this object.Methods in net.minecraftforge.common with parameters of type ItemStackModifier and TypeMethodDescriptionstatic booleanForgeHooks.canContinueUsing(ItemStack from, ItemStack to) static com.google.common.collect.Multimap<Attribute,AttributeModifier> ForgeHooks.getAttributeModifiers(ItemStack stack, EquipmentSlotType equipmentSlot, com.google.common.collect.Multimap<Attribute, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent.static intForgeHooks.getBurnTime(ItemStack stack) Deprecated.static intForgeHooks.getBurnTime(ItemStack stack, IRecipeType<?> recipeType) Gets the burn time of this itemstack.static ItemStackForgeHooks.getContainerItem(ItemStack stack) static StringForgeHooks.getDefaultCreatorModId(ItemStack itemStack) Used as the default implementation ofIForgeItem.getCreatorModId(net.minecraft.item.ItemStack).default booleanIForgeShearable.isShearable(ItemStack item, World world, BlockPos pos) Checks if the object is currently shearable Example: Sheep return false when they have no woolstatic booleanForgeHooks.isToolEffective(IWorldReader world, BlockPos pos, ItemStack stack) static booleanForgeHooks.onAnvilChange(RepairContainer container, ItemStack left, ItemStack right, IInventory outputSlot, String name, int baseCost) Deprecated.static booleanForgeHooks.onAnvilChange(RepairContainer container, ItemStack left, ItemStack right, IInventory outputSlot, String name, int baseCost, PlayerEntity player) static floatForgeHooks.onAnvilRepair(PlayerEntity player, ItemStack output, ItemStack left, ItemStack right) static ItemEntityForgeHooks.onPlayerTossEvent(PlayerEntity player, ItemStack item, boolean includeName) IForgeShearable.onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune) Performs the shear function on this object.Method parameters in net.minecraftforge.common with type arguments of type ItemStackModifier 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.Constructors in net.minecraftforge.common with parameters of type ItemStackModifierConstructorDescriptionBasicTrade(int emeralds, ItemStack forSale, int maxTrades, int xp) BasicTrade(int emeralds, ItemStack forSale, int maxTrades, int xp, float mult) BasicTrade(ItemStack price, ItemStack forSale, int maxTrades, int xp, float priceMult) BasicTrade(ItemStack price, ItemStack price2, ItemStack forSale, int maxTrades, int xp, float priceMult) -
Uses of ItemStack in net.minecraftforge.common.brewing
Fields in net.minecraftforge.common.brewing declared as ItemStackMethods in net.minecraftforge.common.brewing that return ItemStackModifier and TypeMethodDescriptionBrewingRecipe.getOutput()static ItemStackReturns 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.Methods in net.minecraftforge.common.brewing with parameters of type ItemStackModifier and TypeMethodDescriptionstatic booleanBrewingRecipeRegistry.addRecipe(Ingredient input, Ingredient ingredient, ItemStack output) Adds a recipe to the registry.static voidBrewingRecipeRegistry.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 booleanBrewingRecipeRegistry.canBrew(NonNullList<ItemStack> inputs, ItemStack ingredient, int[] inputIndexes) Used by the brewing stand to determine if its contents can be brewed.static ItemStackReturns 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 booleanReturns true if the passed input and ingredient have an outputbooleanBrewingRecipe.isIngredient(ItemStack ingredient) booleanIBrewingRecipe.isIngredient(ItemStack ingredient) Returns true if the passed ItemStack is an ingredient for this recipe.booleanVanillaBrewingRecipe.isIngredient(ItemStack stack) Code adapted from TileEntityBrewingStand.isItemValidForSlot(int index, ItemStack stack)booleanbooleanReturns true is the passed ItemStack is an input for this recipe.booleanCode adapted from TileEntityBrewingStand.isItemValidForSlot(int index, ItemStack stack)static booleanBrewingRecipeRegistry.isValidIngredient(ItemStack stack) Returns true if the passed ItemStack is a valid ingredient for any of the recipes in the registry.static booleanBrewingRecipeRegistry.isValidInput(ItemStack stack) Returns true if the passed ItemStack is a valid input for any of the recipes in the registry.Method parameters in net.minecraftforge.common.brewing with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic voidBrewingRecipeRegistry.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 booleanBrewingRecipeRegistry.canBrew(NonNullList<ItemStack> inputs, ItemStack ingredient, int[] inputIndexes) Used by the brewing stand to determine if its contents can be brewed.Constructors in net.minecraftforge.common.brewing with parameters of type ItemStackModifierConstructorDescriptionBrewingRecipe(Ingredient input, Ingredient ingredient, ItemStack output) -
Uses of ItemStack in net.minecraftforge.common.capabilities
Fields in net.minecraftforge.common.capabilities with type parameters of type ItemStackModifier and TypeFieldDescriptionLazyCapabilitiesOnItemsTest.NO_CAPS_DISABLED_RESULTSLazyCapabilitiesOnItemsTest.NO_CAPS_ENABLED_RESULTSLazyCapabilitiesOnItemsTest.WARMUP_RESULTSLazyCapabilitiesOnItemsTest.WITH_CAPS_DISABLED_RESULTSLazyCapabilitiesOnItemsTest.WITH_CAPS_ENABLED_RESULTS -
Uses of ItemStack in net.minecraftforge.common.crafting
Fields in net.minecraftforge.common.crafting declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackNBTIngredient.stackprivate ItemStack[]CompoundIngredient.stacksFields in net.minecraftforge.common.crafting with type parameters of type ItemStackMethods in net.minecraftforge.common.crafting that return ItemStackModifier and TypeMethodDescriptionCompoundIngredient.getItems()static ItemStackCraftingHelper.getItemStack(com.google.gson.JsonObject json, boolean readNBT) Methods in net.minecraftforge.common.crafting that return types with arguments of type ItemStackMethods in net.minecraftforge.common.crafting with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanbooleanprivate com.google.gson.JsonObjectConstructors in net.minecraftforge.common.crafting with parameters of type ItemStackConstructor parameters in net.minecraftforge.common.crafting with type arguments of type ItemStack -
Uses of ItemStack in net.minecraftforge.common.data
Methods in net.minecraftforge.common.data with parameters of type ItemStackMethod parameters in net.minecraftforge.common.data with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidLanguageProvider.addItemStack(Supplier<ItemStack> key, String name) -
Uses of ItemStack in net.minecraftforge.common.extensions
Methods in net.minecraftforge.common.extensions that return ItemStackModifier and TypeMethodDescriptiondefault ItemStackIForgeEntityMinecart.getCartItem()This function returns an ItemStack that represents this cart.default ItemStackIForgeItem.getContainerItem(ItemStack itemStack) ItemStack sensitive version of getContainerItem.default ItemStackIForgeItemStack.getContainerItem()ItemStack sensitive version of getContainerItem.default ItemStackIForgeBlock.getPickBlock(BlockState state, RayTraceResult target, IBlockReader world, BlockPos pos, PlayerEntity player) Called when A user uses the creative pick block button on this blockdefault ItemStackIForgeBlockState.getPickBlock(RayTraceResult target, IBlockReader world, BlockPos pos, PlayerEntity player) Called when A user uses the creative pick block button on this blockdefault ItemStackIForgeEntity.getPickedResult(RayTraceResult target) Called when a user uses the creative pick block button on this entity.default ItemStackIForgeItemStack.getStack()Methods in net.minecraftforge.common.extensions that return types with arguments of type ItemStackModifier and TypeMethodDescriptionIForgeEffect.getCurativeItems()Get a fresh list of items that can cure this Potion.IForgeEffectInstance.getCurativeItems()Returns a list of curative items for the potion effect By default, this list is initialized usingPotion#getCurativeItemsMethods in net.minecraftforge.common.extensions with parameters of type ItemStackModifier and TypeMethodDescriptiondefault voidIForgeEffectInstance.addCurativeItem(ItemStack stack) Adds the given stack to the list of curative items for this PotionEffectdefault booleanIForgeItemStack.areShareTagsEqual(ItemStack other) Modeled after ItemStack.areItemStackTagsEqual Uses Item.getNBTShareTag for comparison instead of NBT and capabilities.default booleanIForgeItem.canApplyAtEnchantingTable(ItemStack stack, Enchantment enchantment) Checks whether an item can be enchanted with a certain enchantment.default booleanIForgeItem.canContinueUsing(ItemStack oldStack, ItemStack newStack) Called while an item is in 'active' use to determine if usage should continue.default booleanIForgeItem.canDisableShield(ItemStack stack, ItemStack shield, LivingEntity entity, LivingEntity attacker) Can this Item disable a shielddefault booleanIForgeItemStack.canDisableShield(ItemStack shield, LivingEntity entity, LivingEntity attacker) Can this Item disable a shielddefault booleanIForgeItem.canElytraFly(ItemStack stack, LivingEntity entity) Used to determine if the player can use Elytra flight.default booleanIForgeItem.canEquip(ItemStack stack, EquipmentSlotType armorType, Entity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default booleanIForgeItem.canHarvestBlock(ItemStack stack, BlockState state) ItemStack sensitive version of#canHarvestBlock(IBlockState)default EntityIForgeItem.createEntity(World world, Entity location, ItemStack itemstack) 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 booleanIForgeItem.doesSneakBypassUse(ItemStack stack, IWorldReader world, BlockPos pos, PlayerEntity player) Should this item, when held, allow sneak-clicks to pass through to the underlying block?default booleanIForgeItem.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 booleanDetermines if the ItemStack is equal to the other item stack, including Item, Count, and NBT.default <A extends BipedModel<?>>
AIForgeItem.getArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlotType armorSlot, A _default) Override this method to have an item handle its own armor rendering.default StringIForgeItem.getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType 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(EquipmentSlotType slot, ItemStack stack) ItemStack sensitive version of getItemAttributeModifiersdefault intIForgeItem.getBurnTime(ItemStack stack) Deprecated.default intIForgeItem.getBurnTime(ItemStack itemStack, IRecipeType<?> recipeType) default ItemStackIForgeItem.getContainerItem(ItemStack itemStack) ItemStack sensitive version of getContainerItem.default StringIForgeItem.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 intReturn the itemDamage represented by this ItemStack.default doubleIForgeItem.getDurabilityForDisplay(ItemStack stack) Queries the percentage of the 'Durability' bar that should be drawn.default intIForgeItem.getEntityLifespan(ItemStack itemStack, World world) Retrieves the normal 'lifespan' of this item when it is dropped on the ground as a EntityItem.default EquipmentSlotTypeIForgeItem.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, usenet.minecraft.entity.LivingEntity#getSlotForItemStack(ItemStack).default FontRendererIForgeItem.getFontRenderer(ItemStack stack) Returns the font renderer used to render tooltips and overlays for this item.intIForgeItem.getHarvestLevel(ItemStack stack, ToolType tool, PlayerEntity player, BlockState blockState) Queries the harvest level of this item stack for the specified tool class, Returns -1 if this tool is not of the specified typedefault ITextComponentIForgeItem.getHighlightTip(ItemStack item, ITextComponent 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 intIForgeItem.getItemEnchantability(ItemStack stack) ItemStack sensitive version of getItemEnchantabilitydefault intIForgeItem.getItemStackLimit(ItemStack stack) Gets the maximum number of items that this stack should be able to hold.default intIForgeItem.getMaxDamage(ItemStack stack) Return the maxDamage for this ItemStack.default intIForgeItem.getRGBDurabilityForDisplay(ItemStack stack) Returns the packed int RGB value used to render the durability bar in the GUI.default CompoundNBTIForgeItem.getShareTag(ItemStack stack) Override this method to change the NBT data being sent to the client.default floatIForgeItem.getSmeltingExperience(ItemStack item) Determines the base experience for a player when they remove this item from a furnace slot.default BlockStateIForgeBlock.getToolModifiedState(BlockState state, World world, BlockPos pos, PlayerEntity player, ItemStack stack, ToolType toolType) Returns the state that this block should transform into when right clicked by a tool.default BlockStateIForgeBlockState.getToolModifiedState(World world, BlockPos pos, PlayerEntity player, ItemStack stack, ToolType toolType) Returns the state that this block should transform into when right clicked by a tool.IForgeItem.getToolTypes(ItemStack stack) default floatIForgeItem.getXpRepairRatio(ItemStack stack) Determines the amount of durability the mending enchantment will repair, on average, per point of experience.default booleanIForgeItem.hasContainerItem(ItemStack stack) ItemStack sensitive version of hasContainerItemdefault booleanIForgeItem.hasCustomEntity(ItemStack stack) Determines if this Item has a special entity for when they are in the world.default ICapabilityProviderIForgeItem.initCapabilities(ItemStack stack, CompoundNBT nbt) Called from ItemStack.setItem, will hold extra data for the life of this ItemStack.default booleanIForgeItem.isBookEnchantable(ItemStack stack, ItemStack book) Allow or forbid the specific book/item combination as an anvil enchantdefault booleanIForgeItemStack.isBookEnchantable(ItemStack book) Allow or forbid the specific book/item combination as an anvil enchantdefault booleanIForgeEffectInstance.isCurativeItem(ItemStack stack) Checks the given ItemStack to see if it is in the list of curative items for the potion effectdefault booleanIForgeItem.isDamageable(ItemStack stack) Used to test if this item can be damaged, but with the ItemStack in question.default booleanReturn if this itemstack is damaged.default booleanIForgeItem.isEnderMask(ItemStack stack, PlayerEntity player, EndermanEntity endermanEntity) Whether this Item can be used to hide player head for enderman.default booleanIForgeItem.isPiglinCurrency(ItemStack stack) Called by Piglins when checking to see if they will give an item or something in exchange for this item.booleanIForgeItem.isRepairable(ItemStack stack) Called by CraftingManager to determine if an item is reparable.default booleanIForgeItem.isShield(ItemStack stack, LivingEntity entity) Is this Item a shielddefault booleanIForgeItem.makesPiglinsNeutral(ItemStack stack, LivingEntity wearer) Called by Piglins to check if a given item prevents hostility on sight.default voidIForgeItem.onArmorTick(ItemStack stack, World world, PlayerEntity player) Called to tick armor in the armor slot.default booleanIForgeItem.onBlockStartBreak(ItemStack itemstack, BlockPos pos, PlayerEntity player) Called before a block is broken.default booleanIForgeItem.onDroppedByPlayer(ItemStack item, PlayerEntity 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 booleanIForgeItem.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 booleanIForgeItem.onEntitySwing(ItemStack stack, LivingEntity entity) Called when a entity tries to play the 'swing' animation.default voidIForgeItem.onHorseArmorTick(ItemStack stack, World world, MobEntity horse) Called every tick fromEntityHorse#onUpdate()on the item in the armor slot.default ActionResultTypeIForgeItem.onItemUseFirst(ItemStack stack, ItemUseContext context) This is called when the item is used, before the block is activated.default booleanIForgeItem.onLeftClickEntity(ItemStack stack, PlayerEntity player, Entity entity) Called when the player Left Clicks (attacks) an entity.default voidIForgeItem.onUsingTick(ItemStack stack, LivingEntity player, int count) Called each tick while using an item.default voidIForgeItem.readShareTag(ItemStack stack, CompoundNBT nbt) Override this method to decide what to do with the NBT data received from getNBTShareTag().default voidIForgeItem.renderHelmetOverlay(ItemStack stack, PlayerEntity player, int width, int height, float partialTicks) Called when the client starts rendering the HUD, for whatever item the player currently has as a helmet.default voidSet the damage for this itemstack.default booleanIForgeItem.shouldCauseBlockBreakReset(ItemStack oldStack, ItemStack newStack) Called when the player is mining a block and the item in his hand changes.default booleanIForgeItemStack.shouldCauseBlockBreakReset(ItemStack newStack) Called when the player is mining a block and the item in his hand changes.default booleanIForgeItem.shouldCauseReequipAnimation(ItemStack oldStack, ItemStack newStack, boolean slotChanged) Determine if the player switching between these two item stacksdefault booleanIForgeItem.showDurabilityBar(ItemStack stack) Determines if the durability bar should be rendered for this item.Method parameters in net.minecraftforge.common.extensions with type arguments of type ItemStackModifier and TypeMethodDescriptionvoidIForgeEffectInstance.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
Methods in net.minecraftforge.common.loot that return types with arguments of type ItemStackModifier 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).Method parameters in net.minecraftforge.common.loot with type arguments of type ItemStackModifier 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.gameplay.loot
Methods in net.minecraftforge.debug.gameplay.loot that return ItemStackModifier and TypeMethodDescriptionprivate static ItemStackGlobalLootModifiersTest.SmeltingEnchantmentModifier.smelt(ItemStack stack, LootContext context) Methods in net.minecraftforge.debug.gameplay.loot that return types with arguments of type ItemStackModifier 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) Methods in net.minecraftforge.debug.gameplay.loot with parameters of type ItemStackModifier and TypeMethodDescriptionprivate static ItemStackGlobalLootModifiersTest.SmeltingEnchantmentModifier.smelt(ItemStack stack, LootContext context) Method parameters in net.minecraftforge.debug.gameplay.loot with type arguments of type ItemStackModifier 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
Methods in net.minecraftforge.debug.item with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanCustomElytraTest.CustomElytra.canElytraFly(ItemStack stack, LivingEntity entity) booleanCustomElytraTest.CustomElytra.elytraFlightTick(ItemStack stack, LivingEntity entity, int flightTicks) CustomElytraTest.CustomElytraLayer.getElytraTexture(ItemStack stack, AbstractClientPlayerEntity entity) CustomElytraTest.CustomElytra.getEquipmentSlot(ItemStack stack) booleanCustomElytraTest.CustomElytraLayer.shouldRender(ItemStack stack, AbstractClientPlayerEntity entity) -
Uses of ItemStack in net.minecraftforge.event
Fields in net.minecraftforge.event declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackAnvilUpdateEvent.leftprivate ItemStackAnvilUpdateEvent.outputprivate final ItemStackAnvilUpdateEvent.rightprivate final ItemStackItemAttributeModifierEvent.stackMethods in net.minecraftforge.event that return ItemStackModifier and TypeMethodDescriptionItemAttributeModifierEvent.getItemStack()Gets the item stack instanceAnvilUpdateEvent.getLeft()AnvilUpdateEvent.getOutput()This is the output as determined by the event, not by the vanilla behavior between these two items.AnvilUpdateEvent.getRight()static ItemStackForgeEventFactory.onItemUseFinish(LivingEntity entity, ItemStack item, int duration, ItemStack result) Methods in net.minecraftforge.event that return types with arguments of type ItemStackModifier and TypeMethodDescriptionstatic ActionResult<ItemStack>ForgeEventFactory.onArrowNock(ItemStack item, World world, PlayerEntity player, Hand hand, boolean hasAmmo) static ActionResult<ItemStack>ForgeEventFactory.onBucketUse(PlayerEntity player, World world, ItemStack stack, RayTraceResult target) Methods in net.minecraftforge.event with parameters of type ItemStackModifier and TypeMethodDescriptionstatic intForgeEventFactory.getItemBurnTime(ItemStack itemStack, int burnTime) Deprecated.static intForgeEventFactory.getItemBurnTime(ItemStack itemStack, int burnTime, IRecipeType<?> recipeType) static intForgeEventFactory.onApplyBonemeal(PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack) static intForgeEventFactory.onArrowLoose(ItemStack stack, World world, PlayerEntity player, int charge, boolean hasAmmo) static ActionResult<ItemStack>ForgeEventFactory.onArrowNock(ItemStack item, World world, PlayerEntity player, Hand hand, boolean hasAmmo) static ActionResult<ItemStack>ForgeEventFactory.onBucketUse(PlayerEntity player, World world, ItemStack stack, RayTraceResult target) static intForgeEventFactory.onEnchantmentLevelSet(World world, BlockPos pos, int enchantRow, int power, ItemStack itemStack, int level) static intForgeEventFactory.onItemExpire(ItemEntity entity, ItemStack item) static ItemTooltipEventForgeEventFactory.onItemTooltip(ItemStack itemStack, PlayerEntity entityPlayer, List<ITextComponent> list, ITooltipFlag flags) static ItemStackForgeEventFactory.onItemUseFinish(LivingEntity entity, ItemStack item, int duration, ItemStack result) static intForgeEventFactory.onItemUseStart(LivingEntity entity, ItemStack item, int duration) static intForgeEventFactory.onItemUseTick(LivingEntity entity, ItemStack item, int duration) static voidForgeEventFactory.onPlayerBrewedPotion(PlayerEntity player, ItemStack stack) static voidForgeEventFactory.onPlayerDestroyItem(PlayerEntity player, ItemStack stack, Hand hand) static BlockStateForgeEventFactory.onToolUse(BlockState originalState, World world, BlockPos pos, PlayerEntity player, ItemStack stack, ToolType toolType) static booleanForgeEventFactory.onUseItemStop(LivingEntity entity, ItemStack item, int duration) voidSets the output slot to a specific itemstack.Method parameters in net.minecraftforge.event with type arguments of type ItemStackModifier and TypeMethodDescriptionstatic booleanForgeEventFactory.onPotionAttemptBrew(NonNullList<ItemStack> stacks) static voidForgeEventFactory.onPotionBrewed(NonNullList<ItemStack> brewingItemStacks) Constructors in net.minecraftforge.event with parameters of type ItemStackModifierConstructorDescriptionAnvilUpdateEvent(ItemStack left, ItemStack right, String name, int cost) Deprecated.AnvilUpdateEvent(ItemStack left, ItemStack right, String name, int cost, PlayerEntity player) ItemAttributeModifierEvent(ItemStack stack, EquipmentSlotType slotType, com.google.common.collect.Multimap<Attribute, AttributeModifier> modifiers) -
Uses of ItemStack in net.minecraftforge.event.brewing
Fields in net.minecraftforge.event.brewing declared as ItemStackFields in net.minecraftforge.event.brewing with type parameters of type ItemStackMethods in net.minecraftforge.event.brewing that return ItemStackModifier and TypeMethodDescriptionPotionBrewEvent.getItem(int index) PlayerBrewedPotionEvent.getStack()The ItemStack of the potion.Methods in net.minecraftforge.event.brewing with parameters of type ItemStackConstructors in net.minecraftforge.event.brewing with parameters of type ItemStackConstructor parameters in net.minecraftforge.event.brewing with type arguments of type ItemStackModifierConstructorDescriptionPost(NonNullList<ItemStack> stacks) protectedPotionBrewEvent(NonNullList<ItemStack> stacks) Pre(NonNullList<ItemStack> stacks) -
Uses of ItemStack in net.minecraftforge.event.enchanting
Fields in net.minecraftforge.event.enchanting declared as ItemStackMethods in net.minecraftforge.event.enchanting that return ItemStackModifier and TypeMethodDescriptionEnchantmentLevelSetEvent.getItem()Get the item being enchantedConstructors in net.minecraftforge.event.enchanting with parameters of type ItemStackModifierConstructorDescriptionEnchantmentLevelSetEvent(World world, BlockPos pos, int enchantRow, int power, ItemStack itemStack, int level) -
Uses of ItemStack in net.minecraftforge.event.entity.living
Fields in net.minecraftforge.event.entity.living declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackLivingEquipmentChangeEvent.fromprivate final ItemStackLivingEntityUseItemEvent.itemprivate ItemStackLivingEntityUseItemEvent.Finish.resultprivate final ItemStackLivingEquipmentChangeEvent.toMethods in net.minecraftforge.event.entity.living that return ItemStackModifier and TypeMethodDescriptionLivingEquipmentChangeEvent.getFrom()LivingEntityUseItemEvent.getItem()LivingEntityUseItemEvent.Finish.getResultStack()LivingEquipmentChangeEvent.getTo()Methods in net.minecraftforge.event.entity.living with parameters of type ItemStackModifier and TypeMethodDescriptionvoidLivingEntityUseItemEvent.Finish.setResultStack(ItemStack result) Constructors in net.minecraftforge.event.entity.living with parameters of type ItemStackModifierConstructorDescriptionFinish(LivingEntity entity, ItemStack item, int duration, ItemStack result) privateLivingEntityUseItemEvent(LivingEntity entity, ItemStack item, int duration) LivingEquipmentChangeEvent(LivingEntity entity, EquipmentSlotType slot, ItemStack from, ItemStack to) 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
Fields in net.minecraftforge.event.entity.player declared as ItemStackModifier and TypeFieldDescriptionprivate final ItemStackArrowLooseEvent.bowprivate final ItemStackArrowNockEvent.bowprivate final ItemStackPlayerEvent.ItemCraftedEvent.craftingprivate final ItemStackFillBucketEvent.currentprivate final ItemStackItemTooltipEvent.itemStackprivate final ItemStackAnvilRepairEvent.leftprivate final ItemStackPlayerDestroyItemEvent.originalprivate final ItemStackAnvilRepairEvent.outputprivate ItemStackFillBucketEvent.resultprivate final ItemStackAnvilRepairEvent.rightprivate final ItemStackPlayerEvent.ItemSmeltedEvent.smeltingprivate final ItemStackBonemealEvent.stackprivate final ItemStackPlayerEvent.ItemPickupEvent.stackClone item stack, containing the item and amount picked upFields in net.minecraftforge.event.entity.player with type parameters of type ItemStackModifier and TypeFieldDescriptionprivate ActionResult<ItemStack>ArrowNockEvent.actionprivate final NonNullList<ItemStack>ItemFishedEvent.stacksMethods in net.minecraftforge.event.entity.player that return ItemStackModifier 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()TheItemStackwith the tooltip.PlayerInteractEvent.getItemStack()PlayerDestroyItemEvent.getOriginal()PlayerEvent.ItemSmeltedEvent.getSmelting()BonemealEvent.getStack()PlayerEvent.ItemPickupEvent.getStack()Methods in net.minecraftforge.event.entity.player that return types with arguments of type ItemStackModifier and TypeMethodDescriptionArrowNockEvent.getAction()ItemFishedEvent.getDrops()Use this to get the items the player will receive.Methods in net.minecraftforge.event.entity.player with parameters of type ItemStackMethod parameters in net.minecraftforge.event.entity.player with type arguments of type ItemStackConstructors in net.minecraftforge.event.entity.player with parameters of type ItemStackModifierConstructorDescriptionAnvilRepairEvent(PlayerEntity player, ItemStack left, ItemStack right, ItemStack output) ArrowLooseEvent(PlayerEntity player, ItemStack bow, World world, int charge, boolean hasAmmo) ArrowNockEvent(PlayerEntity player, ItemStack item, Hand hand, World world, boolean hasAmmo) BonemealEvent(PlayerEntity player, World world, BlockPos pos, BlockState block, ItemStack stack) FillBucketEvent(PlayerEntity player, ItemStack current, World world, RayTraceResult target) ItemCraftedEvent(PlayerEntity player, ItemStack crafting, IInventory craftMatrix) ItemPickupEvent(PlayerEntity player, ItemEntity entPickedUp, ItemStack stack) ItemSmeltedEvent(PlayerEntity player, ItemStack crafting) ItemTooltipEvent(ItemStack itemStack, PlayerEntity entityPlayer, List<ITextComponent> list, ITooltipFlag flags) This event is fired inItemStack#getTooltip(EntityPlayer, ITooltipFlag), which in turn is called from it's respective GUIContainer.PlayerDestroyItemEvent(PlayerEntity player, ItemStack original, Hand hand) Constructor parameters in net.minecraftforge.event.entity.player with type arguments of type ItemStackModifierConstructorDescriptionItemFishedEvent(List<ItemStack> stacks, int rodDamage, FishingBobberEntity hook) -
Uses of ItemStack in net.minecraftforge.event.furnace
Fields in net.minecraftforge.event.furnace declared as ItemStackMethods in net.minecraftforge.event.furnace that return ItemStackModifier and TypeMethodDescriptionFurnaceFuelBurnTimeEvent.getItemStack()Get the ItemStack "fuel" in question.Constructors in net.minecraftforge.event.furnace with parameters of type ItemStackModifierConstructorDescriptionFurnaceFuelBurnTimeEvent(ItemStack itemStack, int burnTime) Deprecated.FurnaceFuelBurnTimeEvent(ItemStack itemStack, int burnTime, IRecipeType<?> recipeType) -
Uses of ItemStack in net.minecraftforge.event.world
Fields in net.minecraftforge.event.world declared as ItemStackMethods in net.minecraftforge.event.world that return ItemStackModifier and TypeMethodDescriptionBlockEvent.BlockToolInteractEvent.getHeldItemStack()Gets the tool being used.Constructors in net.minecraftforge.event.world with parameters of type ItemStackModifierConstructorDescriptionBlockToolInteractEvent(IWorld world, BlockPos pos, BlockState originalState, PlayerEntity player, ItemStack stack, ToolType toolType) -
Uses of ItemStack in net.minecraftforge.fluids
Fields in net.minecraftforge.fluids declared as ItemStackMethods in net.minecraftforge.fluids that return ItemStackModifier and TypeMethodDescriptionprivate ItemStackDispenseFluidContainer.dumpContainer(IBlockSource source, ItemStack stack) Drains a filled container and places the fluid in front of the Dispenser.DispenseFluidContainer.execute(IBlockSource source, ItemStack stack) private ItemStackDispenseFluidContainer.fillContainer(IBlockSource source, ItemStack stack) Picks up fluid in front of a Dispenser and fills a container with it.FluidAttributes.getBucket(FluidStack stack) static ItemStackFluidUtil.getFilledBucket(FluidStack fluidStack) FluidActionResult.getResult()Methods in net.minecraftforge.fluids with parameters of type ItemStackModifier and TypeMethodDescriptionprivate ItemStackDispenseFluidContainer.dumpContainer(IBlockSource source, ItemStack stack) Drains a filled container and places the fluid in front of the Dispenser.DispenseFluidContainer.execute(IBlockSource source, ItemStack stack) private ItemStackDispenseFluidContainer.fillContainer(IBlockSource 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 anIFluidHandlerItemfor an itemStack.booleanFluidStack.isFluidEqual(ItemStack other) Determines if the FluidIDs and NBT Tags are equal compared to a registered container ItemStack.static FluidActionResultFluidUtil.tryEmptyContainer(ItemStack container, IFluidHandler fluidDestination, int maxAmount, PlayerEntity player, boolean doDrain) Takes a filled container and tries to empty it into the given tank.static FluidActionResultFluidUtil.tryEmptyContainerAndStow(ItemStack container, IFluidHandler fluidDestination, IItemHandler inventory, int maxAmount, PlayerEntity player, boolean doDrain) Takes an Fluid Container Item, tries to empty it into the fluid handler, and stows it in the given inventory.static FluidActionResultFluidUtil.tryFillContainer(ItemStack container, IFluidHandler fluidSource, int maxAmount, PlayerEntity player, boolean doFill) Fill a container from the given fluidSource.static FluidActionResultFluidUtil.tryFillContainerAndStow(ItemStack container, IFluidHandler fluidSource, IItemHandler inventory, int maxAmount, PlayerEntity player, boolean doFill) Takes an Fluid Container Item and tries to fill it from the given tank.static FluidActionResultFluidUtil.tryPickUpFluid(ItemStack emptyContainer, PlayerEntity playerIn, World worldIn, BlockPos pos, Direction side) Attempts to pick up a fluid in the world and put it in an empty container item.static FluidActionResultFluidUtil.tryPlaceFluid(PlayerEntity player, World world, Hand hand, BlockPos pos, ItemStack container, FluidStack resource) ItemStack version ofFluidUtil.tryPlaceFluid(PlayerEntity, World, Hand, BlockPos, IFluidHandler, FluidStack).Constructors in net.minecraftforge.fluids with parameters of type ItemStackModifierConstructorDescriptionprivateFluidActionResult(boolean success, ItemStack result) FluidActionResult(ItemStack result) -
Uses of ItemStack in net.minecraftforge.fluids.capability
Methods in net.minecraftforge.fluids.capability that return ItemStackModifier and TypeMethodDescriptionIFluidHandlerItem.getContainer()Get the container currently acted on by this fluid handler.Methods in net.minecraftforge.fluids.capability with parameters of type ItemStackModifier and TypeMethodDescriptionItemFluidContainer.initCapabilities(ItemStack stack, CompoundNBT nbt) -
Uses of ItemStack in net.minecraftforge.fluids.capability.templates
Fields in net.minecraftforge.fluids.capability.templates declared as ItemStackModifier and TypeFieldDescriptionprotected ItemStackFluidHandlerItemStack.containerprotected ItemStackFluidHandlerItemStackSimple.containerprotected final ItemStackFluidHandlerItemStack.SwapEmpty.emptyContainerprotected final ItemStackFluidHandlerItemStackSimple.SwapEmpty.emptyContainerMethods in net.minecraftforge.fluids.capability.templates that return ItemStackModifier and TypeMethodDescriptionFluidHandlerItemStack.getContainer()FluidHandlerItemStackSimple.getContainer()Constructors in net.minecraftforge.fluids.capability.templates with parameters of type ItemStackModifierConstructorDescriptionConsumable(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
Fields in net.minecraftforge.fluids.capability.wrappers declared as ItemStackMethods in net.minecraftforge.fluids.capability.wrappers that return ItemStackConstructors in net.minecraftforge.fluids.capability.wrappers with parameters of type ItemStack -
Uses of ItemStack in net.minecraftforge.fml.client.gui
Fields in net.minecraftforge.fml.client.gui declared as ItemStackMethods in net.minecraftforge.fml.client.gui with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidGuiUtils.drawHoveringText(ItemStack stack, MatrixStack mStack, List<? extends ITextProperties> textLines, int mouseX, int mouseY, int screenWidth, int screenHeight, int maxTextWidth, int backgroundColor, int borderColorStart, int borderColorEnd, FontRenderer font) Use this version if calling from somewhere where ItemStack context is available.static voidGuiUtils.drawHoveringText(ItemStack stack, MatrixStack mStack, List<? extends ITextProperties> textLines, int mouseX, int mouseY, int screenWidth, int screenHeight, int maxTextWidth, FontRenderer font) static voidGuiUtils.preItemToolTip(ItemStack stack) Must be called fromGuiScreen.renderToolTipbeforeGuiScreen.drawHoveringTextis called. -
Uses of ItemStack in net.minecraftforge.fml.hooks
Methods in net.minecraftforge.fml.hooks with parameters of type ItemStackModifier and TypeMethodDescriptionstatic voidBasicEventHooks.firePlayerCraftingEvent(PlayerEntity player, ItemStack crafted, IInventory craftMatrix) static voidBasicEventHooks.firePlayerItemPickupEvent(PlayerEntity player, ItemEntity item, ItemStack clone) static voidBasicEventHooks.firePlayerSmeltedEvent(PlayerEntity player, ItemStack smelted) -
Uses of ItemStack in net.minecraftforge.items
Fields in net.minecraftforge.items with type parameters of type ItemStackMethods in net.minecraftforge.items that return ItemStackModifier and TypeMethodDescriptionstatic ItemStackItemHandlerHelper.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 ItemStackItemHandlerHelper.insertItem(IItemHandler dest, ItemStack stack, boolean simulate) ItemStackHandler.insertItem(int slot, ItemStack stack, boolean simulate) VanillaHopperItemHandler.insertItem(int slot, ItemStack stack, boolean simulate) static ItemStackItemHandlerHelper.insertItemStacked(IItemHandler inventory, ItemStack stack, boolean simulate) Inserts the ItemStack into the inventory, filling up already present stacks first.private static ItemStackVanillaInventoryCodeHooks.insertStack(TileEntity source, Object destination, IItemHandler destInventory, ItemStack stack, int slot) Copied from TileEntityHopper#insertStack and added capability supportprivate static ItemStackVanillaInventoryCodeHooks.putStackInInventoryAllSlots(TileEntity source, Object destination, IItemHandler destInventory, ItemStack stack) SlotItemHandler.remove(int amount) Methods in net.minecraftforge.items with parameters of type ItemStackModifier and TypeMethodDescriptionstatic booleanItemHandlerHelper.canItemStacksStack(ItemStack a, ItemStack b) static booleanItemHandlerHelper.canItemStacksStackRelaxed(ItemStack a, ItemStack b) A relaxed version of canItemStacksStack that stacks itemstacks with different metadata if they don't have subtypes.static ItemStackItemHandlerHelper.copyStackWithSize(ItemStack itemStack, int size) static booleanVanillaInventoryCodeHooks.dropperInsertHook(World world, BlockPos pos, DispenserTileEntity dropper, int slot, ItemStack stack) Copied from BlockDropper#dispense and added capability supportintSlotItemHandler.getMaxStackSize(ItemStack stack) protected intItemStackHandler.getStackLimit(int slot, ItemStack stack) static voidItemHandlerHelper.giveItemToPlayer(PlayerEntity player, ItemStack stack) giveItemToPlayer without preferred slotstatic voidItemHandlerHelper.giveItemToPlayer(PlayerEntity 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 ItemStackItemHandlerHelper.insertItem(IItemHandler dest, ItemStack stack, boolean simulate) ItemStackHandler.insertItem(int slot, ItemStack stack, boolean simulate) VanillaHopperItemHandler.insertItem(int slot, ItemStack stack, boolean simulate) static ItemStackItemHandlerHelper.insertItemStacked(IItemHandler inventory, ItemStack stack, boolean simulate) Inserts the ItemStack into the inventory, filling up already present stacks first.private static ItemStackVanillaInventoryCodeHooks.insertStack(TileEntity source, Object destination, IItemHandler destInventory, ItemStack stack, int slot) Copied from TileEntityHopper#insertStack and added capability supportbooleanIItemHandler.isItemValid(int slot, ItemStack stack) This function re-implements the vanilla functionIInventory#isItemValidForSlot(int, ItemStack).booleanItemStackHandler.isItemValid(int slot, ItemStack stack) booleanvoidSlotItemHandler.onQuickCraft(ItemStack oldStackIn, ItemStack newStackIn) private static ItemStackVanillaInventoryCodeHooks.putStackInInventoryAllSlots(TileEntity source, Object destination, IItemHandler destInventory, ItemStack stack) voidvoidIItemHandlerModifiable.setStackInSlot(int slot, ItemStack stack) Overrides the stack in the given slot.voidItemStackHandler.setStackInSlot(int slot, ItemStack stack) Constructor parameters in net.minecraftforge.items with type arguments of type ItemStack -
Uses of ItemStack in net.minecraftforge.items.wrapper
Methods in net.minecraftforge.items.wrapper that return ItemStackModifier 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.Methods in net.minecraftforge.items.wrapper with parameters of type ItemStackModifier and TypeMethodDescriptionbooleanRecipeWrapper.canPlaceItem(int slot, ItemStack stack) protected intEntityEquipmentInvWrapper.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) booleanCombinedInvWrapper.isItemValid(int slot, ItemStack stack) booleanEmptyHandler.isItemValid(int slot, ItemStack stack) booleanEntityEquipmentInvWrapper.isItemValid(int slot, ItemStack stack) booleanInvWrapper.isItemValid(int slot, ItemStack stack) booleanRangedWrapper.isItemValid(int slot, ItemStack stack) booleanSidedInvWrapper.isItemValid(int slot, ItemStack stack) private voidSidedInvWrapper.setInventorySlotContents(int slot, ItemStack stack) voidSets the contents of this slot to the provided stack.voidCombinedInvWrapper.setStackInSlot(int slot, ItemStack stack) voidEmptyHandler.setStackInSlot(int slot, ItemStack stack) voidEntityEquipmentInvWrapper.setStackInSlot(int slot, ItemStack stack) voidInvWrapper.setStackInSlot(int slot, ItemStack stack) voidRangedWrapper.setStackInSlot(int slot, ItemStack stack) voidSidedInvWrapper.setStackInSlot(int slot, ItemStack stack)
ForgeHooks.modifyLoot(ResourceLocation, List, LootContext)instead.