Uses of Class
net.minecraft.item.ItemStack
Package
Description
-
Uses of ItemStack in net.minecraft.advancements
Modifier and TypeMethodDescriptionDisplayInfo.getIcon()
private static ItemStack
DisplayInfo.getIcon
(com.google.gson.JsonObject p_193221_0_) Modifier 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_) ModifierConstructorDescriptionDisplayInfo
(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
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
FishingRodHookedTrigger.Instance.matches
(ItemStack p_234659_1_, LootContext p_234659_2_, Collection<ItemStack> p_234659_3_) boolean
InventoryChangeTrigger.Instance.matches
(PlayerInventory p_234805_1_, ItemStack p_234805_2_, int p_234805_3_, int p_234805_4_, int p_234805_5_) boolean
boolean
boolean
boolean
PlacedBlockTrigger.Instance.matches
(BlockState p_193210_1_, BlockPos p_193210_2_, ServerWorld p_193210_3_, ItemStack p_193210_4_) boolean
PlayerEntityInteractionTrigger.Instance.matches
(ItemStack p_241481_1_, LootContext p_241481_2_) boolean
RightClickBlockWithItemTrigger.Instance.matches
(BlockState p_226700_1_, ServerWorld p_226700_2_, BlockPos p_226700_3_, ItemStack p_226700_4_) boolean
boolean
ThrownItemPickedUpByEntityTrigger.Instance.matches
(ServerPlayerEntity p_234836_1_, ItemStack p_234836_2_, LootContext p_234836_3_) boolean
boolean
VillagerTradeTrigger.Instance.matches
(LootContext p_236575_1_, ItemStack p_236575_2_) void
BeeNestDestroyedTrigger.trigger
(ServerPlayerEntity p_226223_1_, Block p_226223_2_, ItemStack p_226223_3_, int p_226223_4_) void
ConsumeItemTrigger.trigger
(ServerPlayerEntity p_193148_1_, ItemStack p_193148_2_) void
EnchantedItemTrigger.trigger
(ServerPlayerEntity p_192190_1_, ItemStack p_192190_2_, int p_192190_3_) void
FilledBucketTrigger.trigger
(ServerPlayerEntity p_204817_1_, ItemStack p_204817_2_) void
FishingRodHookedTrigger.trigger
(ServerPlayerEntity p_204820_1_, ItemStack p_204820_2_, FishingBobberEntity p_204820_3_, Collection<ItemStack> p_204820_4_) void
InventoryChangeTrigger.trigger
(ServerPlayerEntity p_234803_1_, PlayerInventory p_234803_2_, ItemStack p_234803_3_) private void
InventoryChangeTrigger.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_) void
ItemDurabilityTrigger.trigger
(ServerPlayerEntity p_193158_1_, ItemStack p_193158_2_, int p_193158_3_) void
PlacedBlockTrigger.trigger
(ServerPlayerEntity p_193173_1_, BlockPos p_193173_2_, ItemStack p_193173_3_) void
PlayerEntityInteractionTrigger.trigger
(ServerPlayerEntity p_241476_1_, ItemStack p_241476_2_, Entity p_241476_3_) void
RightClickBlockWithItemTrigger.trigger
(ServerPlayerEntity p_226695_1_, BlockPos p_226695_2_, ItemStack p_226695_3_) void
ShotCrossbowTrigger.trigger
(ServerPlayerEntity p_215111_1_, ItemStack p_215111_2_) void
ThrownItemPickedUpByEntityTrigger.trigger
(ServerPlayerEntity p_234830_1_, ItemStack p_234830_2_, Entity p_234830_3_) void
UsedTotemTrigger.trigger
(ServerPlayerEntity p_193187_1_, ItemStack p_193187_2_) void
VillagerTradeTrigger.trigger
(ServerPlayerEntity p_215114_1_, AbstractVillagerEntity p_215114_2_, ItemStack p_215114_3_) Modifier and TypeMethodDescriptionboolean
FishingRodHookedTrigger.Instance.matches
(ItemStack p_234659_1_, LootContext p_234659_2_, Collection<ItemStack> p_234659_3_) void
FishingRodHookedTrigger.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
Modifier 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 ItemStack
ShulkerBoxBlock.getColoredItemStack
(DyeColor p_190953_0_) Modifier 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_) Modifier and TypeMethodDescriptionprivate static BlockState
ComposterBlock.addItem
(BlockState p_235487_0_, IWorld p_235487_1_, BlockPos p_235487_2_, ItemStack p_235487_3_) void
Block.appendHoverText
(ItemStack p_190948_1_, IBlockReader p_190948_2_, List<ITextComponent> p_190948_3_, ITooltipFlag p_190948_4_) void
ShulkerBoxBlock.appendHoverText
(ItemStack p_190948_1_, IBlockReader p_190948_2_, List<ITextComponent> p_190948_3_, ITooltipFlag p_190948_4_) boolean
ComposterBlock.EmptyInventory.canPlaceItemThroughFace
(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) boolean
ComposterBlock.FullInventory.canPlaceItemThroughFace
(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) boolean
ComposterBlock.PartialInventory.canPlaceItemThroughFace
(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) static boolean
WitherSkeletonSkullBlock.canSpawnMob
(World p_196299_0_, BlockPos p_196299_1_, ItemStack p_196299_2_) boolean
ComposterBlock.EmptyInventory.canTakeItemThroughFace
(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) boolean
ComposterBlock.FullInventory.canTakeItemThroughFace
(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) boolean
ComposterBlock.PartialInventory.canTakeItemThroughFace
(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) static void
Block.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 IDispenseItemBehavior
DispenserBlock.getDispenseMethod
(ItemStack p_149940_1_) protected IDispenseItemBehavior
DropperBlock.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 BlockState
ComposterBlock.insertItem
(BlockState p_235486_0_, ServerWorld p_235486_1_, ItemStack p_235486_2_, BlockPos p_235486_3_) private static boolean
RespawnAnchorBlock.isRespawnFuel
(ItemStack p_235561_0_) private static void
LecternBlock.placeBook
(World p_220148_0_, BlockPos p_220148_1_, BlockState p_220148_2_, ItemStack p_220148_3_) void
BeehiveBlock.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_) void
Block.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_) void
DoublePlantBlock.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_) void
IceBlock.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_) void
TurtleEggBlock.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 void
Block.popResource
(World p_180635_0_, BlockPos p_180635_1_, ItemStack p_180635_2_) void
AbstractBannerBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
AbstractFurnaceBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
BarrelBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
BeaconBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
BedBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
Block.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
BrewingStandBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
ChestBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
CommandBlockBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
ConduitBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
DispenserBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
DoorBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
DoublePlantBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
EnchantingTableBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
HopperBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
JukeboxBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
PistonBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
RedstoneDiodeBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
ShulkerBoxBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
SkullPlayerBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
SkullWallPlayerBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
StructureBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
TripWireHookBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
WitherSkeletonSkullBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
WitherSkeletonWallSkullBlock.setPlacedBy
(World p_180633_1_, BlockPos p_180633_2_, BlockState p_180633_3_, LivingEntity p_180633_4_, ItemStack p_180633_5_) void
JukeboxBlock.setRecord
(IWorld p_176431_1_, BlockPos p_176431_2_, BlockState p_176431_3_, ItemStack p_176431_4_) void
AbstractBlock.AbstractBlockState.spawnAfterBreak
(ServerWorld p_215706_1_, BlockPos p_215706_2_, ItemStack p_215706_3_) void
AbstractBlock.spawnAfterBreak
(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) Deprecated.void
OreBlock.spawnAfterBreak
(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) void
RedstoneOreBlock.spawnAfterBreak
(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) void
SilverfishBlock.spawnAfterBreak
(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) void
SpawnerBlock.spawnAfterBreak
(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) static boolean
LecternBlock.tryPlaceBook
(World p_220151_0_, BlockPos p_220151_1_, BlockState p_220151_2_, ItemStack p_220151_3_) Modifier and TypeMethodDescriptionvoid
Block.fillItemCategory
(ItemGroup p_149666_1_, NonNullList<ItemStack> p_149666_2_) ModifierConstructorDescriptionFullInventory
(BlockState p_i50463_1_, IWorld p_i50463_2_, BlockPos p_i50463_3_, ItemStack p_i50463_4_) -
Uses of ItemStack in net.minecraft.client
Modifier and TypeMethodDescriptionMinecraft.addCustomNbtData
(ItemStack p_184119_1_, TileEntity p_184119_2_) Modifier and TypeMethodDescriptionMinecraft.addCustomNbtData
(ItemStack p_184119_1_, TileEntity p_184119_2_) -
Uses of ItemStack in net.minecraft.client.entity.player
Modifier and TypeMethodDescriptionvoid
ClientPlayerEntity.openItemGui
(ItemStack p_184814_1_, Hand p_184814_2_) -
Uses of ItemStack in net.minecraft.client.gui
Modifier and TypeMethodDescriptionprivate void
IngameGui.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
Modifier and TypeMethodDescriptionvoid
AdvancementTabType.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
Modifier and TypeFieldDescriptionfinal ItemStack[]
RecipeOverlayGui.RecipeButtonWidget.Child.ingredients
-
Uses of ItemStack in net.minecraft.client.gui.screen
Modifier and TypeFieldDescriptionprivate ItemStack
LoomScreen.bannerStack
private final ItemStack
EditBookScreen.book
private ItemStack
LoomScreen.dyeStack
private ItemStack
EnchantmentScreen.last
private ItemStack
LoomScreen.patternStack
(package private) final ItemStack
GamemodeSelectionScreen.Mode.renderStack
Modifier and TypeMethodDescriptionprivate void
CreateFlatWorldScreen.DetailsList.LayerEntry.blitSlot
(MatrixStack p_238605_1_, int p_238605_2_, int p_238605_3_, ItemStack p_238605_4_) static ReadBookScreen.IBookInfo
Screen.getTooltipFromItem
(ItemStack p_231151_1_) protected void
Screen.renderTooltip
(MatrixStack p_230457_1_, ItemStack p_230457_2_, int p_230457_3_, int p_230457_4_) ModifierConstructorDescriptionEditBookScreen
(PlayerEntity p_i51100_1_, ItemStack p_i51100_2_, Hand p_i51100_3_) private
Mode
(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
Modifier and TypeFieldDescriptionprivate ItemStack
ContainerScreen.draggingItem
private ItemStack
ContainerScreen.lastQuickMoved
private ItemStack
ContainerScreen.snapbackItem
Modifier and TypeFieldDescriptionfinal NonNullList<ItemStack>
CreativeScreen.CreativeContainer.items
Modifier 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_) Modifier and TypeMethodDescriptionboolean
CreativeScreen.CreativeContainer.canTakeItemForPickAll
(ItemStack p_94530_1_, Slot p_94530_2_) int
CreativeScreen.CreativeSlot.getMaxStackSize
(ItemStack p_178170_1_) boolean
CreativeScreen.CreativeSlot.onTake
(PlayerEntity p_190901_1_, ItemStack p_190901_2_) private void
MerchantScreen.renderAndDecorateCostA
(MatrixStack p_238841_1_, ItemStack p_238841_2_, ItemStack p_238841_3_, int p_238841_4_, int p_238841_5_) private void
ContainerScreen.renderFloatingItem
(ItemStack p_146982_1_, int p_146982_2_, int p_146982_3_, String p_146982_4_) protected void
CreativeScreen.renderTooltip
(MatrixStack p_230457_1_, ItemStack p_230457_2_, int p_230457_3_, int p_230457_4_) void
void
AbstractRepairScreen.slotChanged
(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_) void
AnvilScreen.slotChanged
(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_) void
CreativeCraftingListener.slotChanged
(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_) Modifier and TypeMethodDescriptionvoid
AbstractRepairScreen.refreshContainer
(Container p_71110_1_, NonNullList<ItemStack> p_71110_2_) void
CreativeCraftingListener.refreshContainer
(Container p_71110_1_, NonNullList<ItemStack> p_71110_2_) -
Uses of ItemStack in net.minecraft.client.multiplayer
Modifier and TypeMethodDescriptionPlayerController.handleInventoryMouseClick
(int p_187098_1_, int p_187098_2_, int p_187098_3_, ClickType p_187098_4_, PlayerEntity p_187098_5_) Modifier and TypeMethodDescriptionvoid
PlayerController.handleCreativeModeItemAdd
(ItemStack p_78761_1_, int p_78761_2_) void
PlayerController.handleCreativeModeItemDrop
(ItemStack p_78752_1_) -
Uses of ItemStack in net.minecraft.client.network.play
Modifier and TypeMethodDescriptionprivate static ItemStack
ClientPlayNetHandler.findTotem
(PlayerEntity p_217282_0_) -
Uses of ItemStack in net.minecraft.client.particle
ModifierConstructorDescriptionprivate
BreakingParticle
(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_) protected
BreakingParticle
(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
Modifier and TypeFieldDescriptionprivate ItemStack
GameRenderer.itemActivationItem
private ItemStack
FirstPersonRenderer.mainHandItem
private ItemStack
FirstPersonRenderer.offHandItem
Modifier and TypeMethodDescriptionprivate void
FirstPersonRenderer.applyEatTransform
(MatrixStack p_228398_1_, float p_228398_2_, HandSide p_228398_3_, ItemStack p_228398_4_) void
GameRenderer.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 RenderType
RenderTypeLookup.getRenderType
(ItemStack p_239219_0_, boolean p_239219_1_) void
ItemRenderer.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_) void
ItemRenderer.renderAndDecorateFakeItem
(ItemStack p_239390_1_, int p_239390_2_, int p_239390_3_) void
ItemRenderer.renderAndDecorateItem
(LivingEntity p_184391_1_, ItemStack p_184391_2_, int p_184391_3_, int p_184391_4_) void
ItemRenderer.renderAndDecorateItem
(ItemStack p_180450_1_, int p_180450_2_, int p_180450_3_) private void
FirstPersonRenderer.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_) void
ItemRenderer.renderGuiItem
(ItemStack p_175042_1_, int p_175042_2_, int p_175042_3_) protected void
ItemRenderer.renderGuiItem
(ItemStack p_191962_1_, int p_191962_2_, int p_191962_3_, IBakedModel p_191962_4_) void
ItemRenderer.renderGuiItemDecorations
(FontRenderer p_175030_1_, ItemStack p_175030_2_, int p_175030_3_, int p_175030_4_) void
ItemRenderer.renderGuiItemDecorations
(FontRenderer p_180453_1_, ItemStack p_180453_2_, int p_180453_3_, int p_180453_4_, String p_180453_5_) void
FirstPersonRenderer.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 void
FirstPersonRenderer.renderMap
(MatrixStack p_228404_1_, IRenderTypeBuffer p_228404_2_, int p_228404_3_, ItemStack p_228404_4_) void
ItemRenderer.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 void
FirstPersonRenderer.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_) void
ItemRenderer.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_) void
ItemRenderer.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_) void
ItemRenderer.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 void
ItemRenderer.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
-
Uses of ItemStack in net.minecraft.client.renderer.entity
Modifier and TypeMethodDescriptionprotected int
ItemRenderer.getRenderAmount
(ItemStack p_177078_1_) -
Uses of ItemStack in net.minecraft.client.renderer.entity.layers
Modifier and TypeMethodDescriptionprotected A
BipedArmorLayer.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 void
HeldItemLayer.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_) boolean
ElytraLayer.shouldRender
(ItemStack stack, T entity) Determines if the ElytraLayer should render. -
Uses of ItemStack in net.minecraft.client.renderer.model
Modifier and TypeMethodDescriptionItemOverrideList.resolve
(IBakedModel p_239290_1_, ItemStack p_239290_2_, ClientWorld p_239290_3_, LivingEntity p_239290_4_) (package private) boolean
ItemOverride.test
(ItemStack p_239289_1_, ClientWorld p_239289_2_, LivingEntity p_239289_3_) -
Uses of ItemStack in net.minecraft.client.renderer.tileentity
Modifier and TypeMethodDescriptionvoid
ItemStackTileEntityRenderer.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
-
Uses of ItemStack in net.minecraft.client.tutorial
Modifier and TypeMethodDescriptionvoid
void
default void
void
void
-
Uses of ItemStack in net.minecraft.client.util
Modifier and TypeFieldDescriptionstatic final SearchTreeManager.Key<ItemStack>
SearchTreeManager.CREATIVE_NAMES
static final SearchTreeManager.Key<ItemStack>
SearchTreeManager.CREATIVE_TAGS
RecipeBookCategories.itemIcons
-
Uses of ItemStack in net.minecraft.command.arguments
Modifier and TypeMethodDescriptionItemInput.createItemStack
(int p_197320_1_, boolean p_197320_2_) Modifier 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_) -
Uses of ItemStack in net.minecraft.command.impl
Modifier and TypeMethodDescriptionprivate static ItemStack
LootCommand.getSourceHandItem
(CommandSource p_218872_0_, EquipmentSlotType p_218872_1_) Modifier and TypeMethodDescriptionprivate static boolean
LootCommand.canMergeItems
(ItemStack p_218883_0_, ItemStack p_218883_1_) private static boolean
LootCommand.distributeToContainer
(IInventory p_218890_0_, ItemStack p_218890_1_) private static int
LootCommand.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 int
LootCommand.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 int
ReplaceItemCommand.setBlockItem
(CommandSource p_198603_0_, BlockPos p_198603_1_, int p_198603_2_, ItemStack p_198603_3_) private static int
ReplaceItemCommand.setEntityItem
(CommandSource p_198604_0_, Collection<? extends Entity> p_198604_1_, int p_198604_2_, ItemStack p_198604_3_) Modifier and TypeMethodDescriptionvoid
int
LootCommand.ITargetHandler.accept
(com.mojang.brigadier.context.CommandContext<CommandSource> p_accept_1_, List<ItemStack> p_accept_2_, LootCommand.ISuccessListener p_accept_3_) private static int
LootCommand.blockDistribute
(CommandSource p_218900_0_, BlockPos p_218900_1_, List<ItemStack> p_218900_2_, LootCommand.ISuccessListener p_218900_3_) private static int
LootCommand.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 void
LootCommand.callback
(CommandSource p_218875_0_, List<ItemStack> p_218875_1_) private static void
LootCommand.callback
(CommandSource p_218860_0_, List<ItemStack> p_218860_1_, ResourceLocation p_218860_2_) private static int
ClearCommand.clearInventory
(CommandSource p_198244_0_, Collection<ServerPlayerEntity> p_198244_1_, Predicate<ItemStack> p_198244_2_, int p_198244_3_) private static int
LootCommand.dropInWorld
(CommandSource p_218881_0_, Vector3d p_218881_1_, List<ItemStack> p_218881_2_, LootCommand.ISuccessListener p_218881_3_) private static int
LootCommand.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 int
LootCommand.playerGive
(Collection<ServerPlayerEntity> p_218859_0_, List<ItemStack> p_218859_1_, LootCommand.ISuccessListener p_218859_2_) private static void
LootCommand.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
Modifier and TypeMethodDescriptionfinal ItemStack
DefaultDispenseItemBehavior.dispense
(IBlockSource p_dispense_1_, ItemStack p_dispense_2_) IDispenseItemBehavior.dispense
(IBlockSource p_dispense_1_, ItemStack p_dispense_2_) protected ItemStack
BeehiveDispenseBehavior.execute
(IBlockSource p_82487_1_, ItemStack p_82487_2_) protected ItemStack
DefaultDispenseItemBehavior.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 ItemStack
ShulkerBoxDispenseBehavior.execute
(IBlockSource p_82487_1_, ItemStack p_82487_2_) Modifier and TypeMethodDescriptionfinal ItemStack
DefaultDispenseItemBehavior.dispense
(IBlockSource p_dispense_1_, ItemStack p_dispense_2_) IDispenseItemBehavior.dispense
(IBlockSource p_dispense_1_, ItemStack p_dispense_2_) protected ItemStack
BeehiveDispenseBehavior.execute
(IBlockSource p_82487_1_, ItemStack p_82487_2_) protected ItemStack
DefaultDispenseItemBehavior.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 ItemStack
ShulkerBoxDispenseBehavior.execute
(IBlockSource p_82487_1_, ItemStack p_82487_2_) protected abstract ProjectileEntity
ProjectileDispenseBehavior.getProjectile
(World p_82499_1_, IPosition p_82499_2_, ItemStack p_82499_3_) static void
DefaultDispenseItemBehavior.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
Modifier and TypeMethodDescriptionstatic ItemStack
EnchantmentHelper.enchantItem
(Random p_77504_0_, ItemStack p_77504_1_, int p_77504_2_, boolean p_77504_3_) Modifier 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_) Modifier and TypeMethodDescriptionboolean
Enchantment.canApplyAtEnchantingTable
(ItemStack stack) This applies specifically to applying at the enchanting table.boolean
DamageEnchantment.canEnchant
(ItemStack p_92089_1_) boolean
EfficiencyEnchantment.canEnchant
(ItemStack p_92089_1_) boolean
Enchantment.canEnchant
(ItemStack p_92089_1_) boolean
ThornsEnchantment.canEnchant
(ItemStack p_92089_1_) boolean
UnbreakingEnchantment.canEnchant
(ItemStack p_92089_1_) static ItemStack
EnchantmentHelper.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 float
EnchantmentHelper.getDamageBonus
(ItemStack p_152377_0_, CreatureAttribute p_152377_1_) static int
EnchantmentHelper.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 int
EnchantmentHelper.getFishingLuckBonus
(ItemStack p_191529_0_) static int
EnchantmentHelper.getFishingSpeedBonus
(ItemStack p_191528_0_) static int
EnchantmentHelper.getItemEnchantmentLevel
(Enchantment p_77506_0_, ItemStack p_77506_1_) static int
EnchantmentHelper.getLoyalty
(ItemStack p_203191_0_) static int
EnchantmentHelper.getRiptide
(ItemStack p_203190_0_) static boolean
EnchantmentHelper.hasBindingCurse
(ItemStack p_190938_0_) static boolean
EnchantmentHelper.hasChanneling
(ItemStack p_203192_0_) static boolean
EnchantmentHelper.hasVanishingCurse
(ItemStack p_190939_0_) private static void
EnchantmentHelper.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 void
EnchantmentHelper.setEnchantments
(Map<Enchantment, Integer> p_82782_0_, ItemStack p_82782_1_) static boolean
UnbreakingEnchantment.shouldIgnoreDurabilityDrop
(ItemStack p_92097_0_, int p_92097_1_, Random p_92097_2_) Modifier and TypeMethodDescriptionstatic int
EnchantmentHelper.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 void
EnchantmentHelper.runIterationOnInventory
(EnchantmentHelper.IEnchantmentVisitor p_77516_0_, Iterable<ItemStack> p_77516_1_) -
Uses of ItemStack in net.minecraft.entity
Modifier and TypeFieldDescriptionprivate final NonNullList<ItemStack>
MobEntity.armorItems
Entity.EMPTY_LIST
private final NonNullList<ItemStack>
MobEntity.handItems
private final NonNullList<ItemStack>
LivingEntity.lastArmorItemStacks
private final NonNullList<ItemStack>
LivingEntity.lastHandItemStacks
Modifier and TypeMethodDescriptionIRendersAsItem.getItem()
abstract ItemStack
LivingEntity.getItemBySlot
(EquipmentSlotType p_184582_1_) MobEntity.getItemBySlot
(EquipmentSlotType p_184582_1_) LivingEntity.getItemInHand
(Hand p_184586_1_) private ItemStack
LivingEntity.getLastArmorItem
(EquipmentSlotType p_241346_1_) private ItemStack
LivingEntity.getLastHandItem
(EquipmentSlotType p_241347_1_) LivingEntity.getMainHandItem()
LivingEntity.getOffhandItem()
LivingEntity.getProjectile
(ItemStack p_213356_1_) LivingEntity.getUseItem()
Modifier and TypeMethodDescriptionprivate Map<EquipmentSlotType,
ItemStack> LivingEntity.collectEquipmentChanges()
Entity.getAllSlots()
Entity.getArmorSlots()
LivingEntity.getArmorSlots()
MobEntity.getArmorSlots()
Entity.getHandSlots()
MobEntity.getHandSlots()
Modifier and TypeMethodDescriptionprivate void
LivingEntity.addEatEffect
(ItemStack p_213349_1_, World p_213349_2_, LivingEntity p_213349_3_) private void
boolean
MobEntity.canHoldItem
(ItemStack p_175448_1_) protected boolean
MobEntity.canReplaceCurrentItem
(ItemStack p_208003_1_, ItemStack p_208003_2_) boolean
MobEntity.canReplaceEqualItem
(ItemStack p_233659_1_, ItemStack p_233659_2_) boolean
LivingEntity.canTakeItem
(ItemStack p_213365_1_) boolean
MobEntity.canTakeItem
(ItemStack p_213365_1_) boolean
LivingEntity.curePotionEffects
(ItemStack curativeItem) Removes all potion effects that have curativeItem as a curative item for its effectboolean
MobEntity.equipItemIfPossible
(ItemStack p_233665_1_) protected SoundEvent
LivingEntity.getDrinkingSound
(ItemStack p_213351_1_) LivingEntity.getEatingSound
(ItemStack p_213353_1_) static EquipmentSlotType
MobEntity.getEquipmentSlotForItem
(ItemStack p_184640_0_) LivingEntity.getProjectile
(ItemStack p_213356_1_) static boolean
MobEntity.isValidSlotForItem
(EquipmentSlotType p_184648_0_, ItemStack p_184648_1_) private void
MobEntity.maybeDisableShield
(PlayerEntity p_233655_1_, ItemStack p_233655_2_, ItemStack p_233655_3_) void
NPCMerchant.notifyTradeUpdated
(ItemStack p_110297_1_) protected void
LivingEntity.playEquipSound
(ItemStack p_184606_1_) void
LivingEntity.setItemInHand
(Hand p_184611_1_, ItemStack p_184611_2_) void
Entity.setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) abstract void
LivingEntity.setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) void
MobEntity.setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) protected void
MobEntity.setItemSlotAndDropWhenKilled
(EquipmentSlotType p_233657_1_, ItemStack p_233657_2_) private void
LivingEntity.setLastArmorItem
(EquipmentSlotType p_241343_1_, ItemStack p_241343_2_) private void
LivingEntity.setLastHandItem
(EquipmentSlotType p_241345_1_, ItemStack p_241345_2_) boolean
boolean
void
ICrossbowUser.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 void
LivingEntity.spawnItemParticles
(ItemStack p_195062_1_, int p_195062_2_) protected void
LivingEntity.triggerItemUseEffects
(ItemStack p_226293_1_, int p_226293_2_) boolean
MobEntity.wantsToPickUp
(ItemStack p_230293_1_) Modifier and TypeMethodDescriptionprivate void
LivingEntity.handleEquipmentChanges
(Map<EquipmentSlotType, ItemStack> p_241344_1_) private void
LivingEntity.handleHandSwap
(Map<EquipmentSlotType, ItemStack> p_241342_1_) -
Uses of ItemStack in net.minecraft.entity.ai.brain
Modifier and TypeMethodDescriptionstatic void
BrainUtil.throwItem
(LivingEntity p_233865_0_, ItemStack p_233865_1_, Vector3d p_233865_2_) -
Uses of ItemStack in net.minecraft.entity.ai.brain.task
Modifier and TypeMethodDescriptionprivate ItemStack
CelebrateRaidVictoryTask.getFirework
(DyeColor p_220391_1_, int p_220391_2_) -
Uses of ItemStack in net.minecraft.entity.ai.goal
Modifier and TypeMethodDescriptionprivate ItemStack
TriggerSkeletonTrapGoal.disenchant
(ItemStack p_242327_1_) Modifier and TypeMethodDescriptionprivate ItemStack
TriggerSkeletonTrapGoal.disenchant
(ItemStack p_242327_1_) protected boolean
TemptGoal.shouldFollowItem
(ItemStack p_188508_1_) ModifierConstructorDescriptionUseItemGoal
(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
Modifier and TypeFieldDescriptionprivate final NonNullList<ItemStack>
ArmorStandEntity.armorItems
private static final DataParameter<ItemStack>
ItemEntity.DATA_ITEM
private static final DataParameter<ItemStack>
ItemFrameEntity.DATA_ITEM
private final NonNullList<ItemStack>
ArmorStandEntity.handItems
Modifier and TypeMethodDescriptionItemEntity.getItem()
ItemFrameEntity.getItem()
ArmorStandEntity.getItemBySlot
(EquipmentSlotType p_184582_1_) static ItemStack
Modifier and TypeMethodDescriptionArmorStandEntity.getArmorSlots()
ArmorStandEntity.getHandSlots()
Modifier and TypeMethodDescriptionstatic boolean
ItemEntity.areMergable
(ItemStack p_226532_0_, ItemStack p_226532_1_) boolean
ArmorStandEntity.canTakeItem
(ItemStack p_213365_1_) private static void
ItemEntity.merge
(ItemEntity p_213858_0_, ItemStack p_213858_1_, ItemEntity p_213858_2_, ItemStack p_213858_3_) private static void
ItemEntity.merge
(ItemEntity p_226531_0_, ItemStack p_226531_1_, ItemStack p_226531_2_) static ItemStack
private void
ItemFrameEntity.removeFramedMap
(ItemStack p_110131_1_) void
void
void
void
ArmorStandEntity.setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) boolean
boolean
HangingEntity.spawnAtLocation
(ItemStack p_70099_1_, float p_70099_2_) private boolean
ArmorStandEntity.swapItem
(PlayerEntity p_226529_1_, EquipmentSlotType p_226529_2_, ItemStack p_226529_3_, Hand p_226529_4_) ModifierConstructorDescriptionItemEntity
(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
Modifier and TypeFieldDescriptionprivate NonNullList<ItemStack>
ContainerMinecartEntity.itemStacks
Modifier and TypeMethodDescriptionContainerMinecartEntity.getItem
(int p_70301_1_) ContainerMinecartEntity.removeItem
(int p_70298_1_, int p_70298_2_) ContainerMinecartEntity.removeItemNoUpdate
(int p_70304_1_) -
Uses of ItemStack in net.minecraft.entity.merchant
-
Uses of ItemStack in net.minecraft.entity.merchant.villager
Modifier and TypeFieldDescriptionprivate final ItemStack
VillagerTrades.ItemsForEmeraldsAndItemsTrade.fromItem
private final ItemStack
VillagerTrades.EnchantedItemForEmeraldsTrade.itemStack
private final ItemStack
VillagerTrades.ItemsForEmeraldsTrade.itemStack
private final ItemStack
VillagerTrades.ItemsForEmeraldsAndItemsTrade.toItem
private final ItemStack
VillagerTrades.ItemWithPotionForEmeraldsAndItemsTrade.toItem
Modifier and TypeMethodDescriptionprotected SoundEvent
WanderingTraderEntity.getDrinkingSound
(ItemStack p_213351_1_) void
AbstractVillagerEntity.notifyTradeUpdated
(ItemStack p_110297_1_) boolean
boolean
VillagerEntity.wantsToPickUp
(ItemStack p_230293_1_) ModifierConstructorDescriptionItemsForEmeraldsTrade
(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
Modifier and TypeMethodDescriptionMonsterEntity.getProjectile
(ItemStack p_213356_1_) protected ItemStack
DrownedEntity.getSkull()
protected ItemStack
HuskEntity.getSkull()
protected ItemStack
ZombieEntity.getSkull()
protected ItemStack
ZombieVillagerEntity.getSkull()
protected ItemStack
ZombifiedPiglinEntity.getSkull()
Modifier and TypeMethodDescriptionboolean
ZombieEntity.canHoldItem
(ItemStack p_175448_1_) protected boolean
DrownedEntity.canReplaceCurrentItem
(ItemStack p_208003_1_, ItemStack p_208003_2_) protected AbstractArrowEntity
protected AbstractArrowEntity
protected AbstractArrowEntity
MonsterEntity.getProjectile
(ItemStack p_213356_1_) boolean
void
AbstractSkeletonEntity.setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) boolean
void
PillagerEntity.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
Modifier and TypeMethodDescriptionprotected ItemStack
PiglinEntity.addToInventory
(ItemStack p_234436_1_) private ItemStack
PiglinEntity.createSpawnWeapon()
private static ItemStack
PiglinTasks.removeOneItemFromItemEntity
(ItemEntity p_234465_0_) Modifier and TypeMethodDescriptionprotected ItemStack
PiglinEntity.addToInventory
(ItemStack p_234436_1_) protected boolean
PiglinEntity.canAddToInventory
(ItemStack p_234437_1_) protected static boolean
PiglinTasks.canAdmire
(PiglinEntity p_234489_0_, ItemStack p_234489_1_) protected boolean
PiglinEntity.canReplaceCurrentItem
(ItemStack p_234440_1_) protected boolean
PiglinEntity.canReplaceCurrentItem
(ItemStack p_208003_1_, ItemStack p_208003_2_) protected void
PiglinEntity.holdInMainHand
(ItemStack p_234438_1_) private static void
PiglinTasks.holdInOffhand
(PiglinEntity p_241427_0_, ItemStack p_241427_1_) protected void
PiglinEntity.holdInOffHand
(ItemStack p_234439_1_) private void
PiglinEntity.maybeWearArmor
(EquipmentSlotType p_234419_1_, ItemStack p_234419_2_) private static void
PiglinTasks.putInInventory
(PiglinEntity p_234498_0_, ItemStack p_234498_1_) void
PiglinEntity.shootCrossbowProjectile
(LivingEntity p_230284_1_, ItemStack p_230284_2_, ProjectileEntity p_230284_3_, float p_230284_4_) protected static boolean
PiglinTasks.wantsToPickup
(PiglinEntity p_234474_0_, ItemStack p_234474_1_) boolean
PiglinBruteEntity.wantsToPickUp
(ItemStack p_230293_1_) boolean
PiglinEntity.wantsToPickUp
(ItemStack p_230293_1_) Modifier and TypeMethodDescriptionprivate static void
PiglinTasks.throwItems
(PiglinEntity p_234475_0_, List<ItemStack> p_234475_1_) private static void
PiglinTasks.throwItemsTowardPlayer
(PiglinEntity p_234472_0_, PlayerEntity p_234472_1_, List<ItemStack> p_234472_2_) private static void
PiglinTasks.throwItemsTowardPos
(PiglinEntity p_234476_0_, List<ItemStack> p_234476_1_, Vector3d p_234476_2_) private static void
PiglinTasks.throwItemsTowardRandomPos
(PiglinEntity p_234490_0_, List<ItemStack> p_234490_1_) -
Uses of ItemStack in net.minecraft.entity.passive
Modifier 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) Modifier and TypeMethodDescriptionprivate boolean
boolean
FoxEntity.canHoldItem
(ItemStack p_175448_1_) boolean
DolphinEntity.canTakeItem
(ItemStack p_213365_1_) boolean
FoxEntity.canTakeItem
(ItemStack p_213365_1_) boolean
PandaEntity.canTakeItem
(ItemStack p_213365_1_) private void
private void
FoxEntity.dropItemStack
(ItemStack p_213486_1_) FoxEntity.getEatingSound
(ItemStack p_213353_1_) MooshroomEntity.getEffectFromItemStack
(ItemStack p_213443_1_) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
private boolean
PandaEntity.isFoodOrCake
(ItemStack p_213548_1_) boolean
MooshroomEntity.isShearable
(ItemStack item, World world, BlockPos pos) boolean
SheepEntity.isShearable
(ItemStack item, World world, BlockPos pos) boolean
SnowGolemEntity.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 boolean
TurtleEntity.PlayerTemptGoal.shouldFollowItem
(ItemStack p_203131_1_) private void
FoxEntity.spitOutItem
(ItemStack p_213495_1_) protected void
AnimalEntity.usePlayerItem
(PlayerEntity p_175505_1_, ItemStack p_175505_2_) protected void
CatEntity.usePlayerItem
(PlayerEntity p_175505_1_, ItemStack p_175505_2_) protected void
FoxEntity.usePlayerItem
(PlayerEntity p_175505_1_, ItemStack p_175505_2_) -
Uses of ItemStack in net.minecraft.entity.passive.fish
Modifier and TypeMethodDescriptionprotected abstract ItemStack
AbstractFishEntity.getBucketItemStack()
protected ItemStack
CodEntity.getBucketItemStack()
protected ItemStack
PufferfishEntity.getBucketItemStack()
protected ItemStack
SalmonEntity.getBucketItemStack()
protected ItemStack
TropicalFishEntity.getBucketItemStack()
Modifier and TypeMethodDescriptionprotected void
AbstractFishEntity.saveToBucketTag
(ItemStack p_204211_1_) protected void
TropicalFishEntity.saveToBucketTag
(ItemStack p_204211_1_) -
Uses of ItemStack in net.minecraft.entity.passive.horse
Modifier and TypeMethodDescriptionAbstractHorseEntity.fedFood
(PlayerEntity p_241395_1_, ItemStack p_241395_2_) private static DyeColor
LlamaEntity.getDyeColor
(ItemStack p_195403_0_) protected boolean
AbstractHorseEntity.handleEating
(PlayerEntity p_190678_1_, ItemStack p_190678_2_) protected boolean
LlamaEntity.handleEating
(PlayerEntity p_190678_1_, ItemStack p_190678_2_) boolean
boolean
boolean
boolean
boolean
private void
private void
HorseEntity.setArmorEquipment
(ItemStack p_213804_1_) boolean
boolean
-
Uses of ItemStack in net.minecraft.entity.player
Modifier and TypeFieldDescriptionprivate ItemStack
PlayerInventory.carried
private ItemStack
PlayerEntity.lastItemInMainHand
Modifier and TypeFieldDescriptionfinal NonNullList<ItemStack>
PlayerInventory.armor
private final List<NonNullList<ItemStack>>
PlayerInventory.compartments
final NonNullList<ItemStack>
PlayerInventory.items
final NonNullList<ItemStack>
PlayerInventory.offhand
Modifier 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_) Modifier and TypeMethodDescriptionboolean
boolean
boolean
private int
PlayerInventory.addResource
(int p_191973_1_, ItemStack p_191973_2_) private int
PlayerInventory.addResource
(ItemStack p_70452_1_) boolean
PlayerEntity.canTakeItem
(ItemStack p_213365_1_) boolean
int
PlayerInventory.findSlotMatchingItem
(ItemStack p_184429_1_) int
PlayerInventory.findSlotMatchingUnusedItem
(ItemStack p_194014_1_) PlayerEntity.getProjectile
(ItemStack p_213356_1_) int
PlayerInventory.getSlotWithRemainingSpace
(ItemStack p_70432_1_) private boolean
PlayerInventory.hasRemainingSpaceForItem
(ItemStack p_184436_1_, ItemStack p_184436_2_) private boolean
PlayerInventory.isSameItem
(ItemStack p_184431_1_, ItemStack p_184431_2_) boolean
PlayerEntity.mayUseItemAt
(BlockPos p_175151_1_, Direction p_175151_2_, ItemStack p_175151_3_) void
PlayerEntity.onEnchantmentPerformed
(ItemStack p_192024_1_, int p_192024_2_) void
ServerPlayerEntity.onEnchantmentPerformed
(ItemStack p_192024_1_, int p_192024_2_) void
PlayerEntity.openItemGui
(ItemStack p_184814_1_, Hand p_184814_2_) void
ServerPlayerEntity.openItemGui
(ItemStack p_184814_1_, Hand p_184814_2_) void
PlayerInventory.placeItemBackInInventory
(World p_191975_1_, ItemStack p_191975_2_) void
PlayerInventory.removeItem
(ItemStack p_184437_1_) void
PlayerInventory.setCarried
(ItemStack p_70437_1_) void
void
PlayerEntity.setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) void
PlayerInventory.setPickedItem
(ItemStack p_184434_1_) boolean
void
ServerPlayerEntity.slotChanged
(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_) Modifier and TypeMethodDescriptionint
PlayerInventory.clearOrCountMatchingItems
(Predicate<ItemStack> p_234564_1_, int p_234564_2_, IInventory p_234564_3_) void
ServerPlayerEntity.refreshContainer
(Container p_71110_1_, NonNullList<ItemStack> p_71110_2_) -
Uses of ItemStack in net.minecraft.entity.projectile
Modifier and TypeFieldDescriptionprivate static final DataParameter<ItemStack>
FireworkRocketEntity.DATA_ID_FIREWORKS_ITEM
private static final DataParameter<ItemStack>
AbstractFireballEntity.DATA_ITEM_STACK
private static final DataParameter<ItemStack>
EyeOfEnderEntity.DATA_ITEM_STACK
private static final DataParameter<ItemStack>
ProjectileItemEntity.DATA_ITEM_STACK
Modifier and TypeMethodDescriptionAbstractFireballEntity.getItem()
EyeOfEnderEntity.getItem()
FireworkRocketEntity.getItem()
ProjectileItemEntity.getItem()
protected ItemStack
AbstractFireballEntity.getItemRaw()
private ItemStack
EyeOfEnderEntity.getItemRaw()
protected ItemStack
ProjectileItemEntity.getItemRaw()
protected abstract ItemStack
AbstractArrowEntity.getPickupItem()
protected ItemStack
ArrowEntity.getPickupItem()
protected ItemStack
SpectralArrowEntity.getPickupItem()
protected ItemStack
TridentEntity.getPickupItem()
Modifier and TypeMethodDescriptionstatic int
ArrowEntity.getCustomColor
(ItemStack p_191508_0_) static AbstractArrowEntity
ProjectileHelper.getMobArrow
(LivingEntity p_221272_0_, ItemStack p_221272_1_, float p_221272_2_) private void
PotionEntity.makeAreaOfEffectCloud
(ItemStack p_190542_1_, Potion p_190542_2_) int
void
ArrowEntity.setEffectsFromItem
(ItemStack p_184555_1_) void
void
void
ModifierConstructorDescriptionFireworkRocketEntity
(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
Modifier and TypeFieldDescriptionprivate final NonNullList<ItemStack>
CraftingInventory.items
private final NonNullList<ItemStack>
Inventory.items
private final NonNullList<ItemStack>
CraftResultInventory.itemStacks
private final NonNullList<ItemStack>
MerchantInventory.itemStacks
Modifier 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 ItemStack
ItemStackHelper.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 ItemStack
Modifier and TypeMethodDescriptionboolean
Inventory.canAddItem
(ItemStack p_233541_1_) boolean
DoubleSidedInventory.canPlaceItem
(int p_94041_1_, ItemStack p_94041_2_) default boolean
IInventory.canPlaceItem
(int p_94041_1_, ItemStack p_94041_2_) boolean
ISidedInventory.canPlaceItemThroughFace
(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) boolean
ISidedInventory.canTakeItemThroughFace
(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) static int
ItemStackHelper.clearOrCountMatchingItems
(ItemStack p_233535_0_, Predicate<ItemStack> p_233535_1_, int p_233535_2_, boolean p_233535_3_) static void
InventoryHelper.dropItemStack
(World p_180173_0_, double p_180173_1_, double p_180173_3_, double p_180173_5_, ItemStack p_180173_7_) private boolean
Inventory.isSameItem
(ItemStack p_233540_1_, ItemStack p_233540_2_) private void
Inventory.moveItemsBetweenStacks
(ItemStack p_223373_1_, ItemStack p_223373_2_) private void
Inventory.moveItemToEmptySlots
(ItemStack p_223375_1_) private void
Inventory.moveItemToOccupiedSlotsWithSameType
(ItemStack p_223372_1_) void
void
void
void
void
void
Modifier and TypeMethodDescriptionstatic int
ItemStackHelper.clearOrCountMatchingItems
(IInventory p_233534_0_, Predicate<ItemStack> p_233534_1_, int p_233534_2_, boolean p_233534_3_) static int
ItemStackHelper.clearOrCountMatchingItems
(ItemStack p_233535_0_, Predicate<ItemStack> p_233535_1_, int p_233535_2_, boolean p_233535_3_) static void
InventoryHelper.dropContents
(World p_219961_0_, BlockPos p_219961_1_, NonNullList<ItemStack> p_219961_2_) static void
ItemStackHelper.loadAllItems
(CompoundNBT p_191283_0_, NonNullList<ItemStack> p_191283_1_) static ItemStack
ItemStackHelper.removeItem
(List<ItemStack> p_188382_0_, int p_188382_1_, int p_188382_2_) static CompoundNBT
ItemStackHelper.saveAllItems
(CompoundNBT p_191282_0_, NonNullList<ItemStack> p_191282_1_) static CompoundNBT
ItemStackHelper.saveAllItems
(CompoundNBT p_191281_0_, NonNullList<ItemStack> p_191281_1_, boolean p_191281_2_) static ItemStack
-
Uses of ItemStack in net.minecraft.inventory.container
Modifier and TypeMethodDescriptionContainer.clicked
(int p_184996_1_, int p_184996_2_, ClickType p_184996_3_, PlayerEntity p_184996_4_) private ItemStack
Container.doClick
(int p_241440_1_, int p_241440_2_, ClickType p_241440_3_, PlayerEntity p_241440_4_) LecternContainer.getBook()
Slot.getItem()
private ItemStack
GrindstoneContainer.mergeEnchants
(ItemStack p_217011_1_, ItemStack p_217011_2_) protected abstract ItemStack
AbstractRepairContainer.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 ItemStack
RepairContainer.onTake
(PlayerEntity p_230301_1_, ItemStack p_230301_2_) Slot.onTake
(PlayerEntity p_190901_1_, ItemStack p_190901_2_) protected ItemStack
SmithingTableContainer.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 ItemStack
GrindstoneContainer.removeNonCurses
(ItemStack p_217007_1_, int p_217007_2_, int p_217007_3_) Modifier and TypeMethodDescriptionstatic boolean
Container.canItemQuickReplace
(Slot p_94527_0_, ItemStack p_94527_1_, boolean p_94527_2_) protected boolean
boolean
CartographyContainer.canTakeItemForPickAll
(ItemStack p_94530_1_, Slot p_94530_2_) boolean
Container.canTakeItemForPickAll
(ItemStack p_94530_1_, Slot p_94530_2_) boolean
MerchantContainer.canTakeItemForPickAll
(ItemStack p_94530_1_, Slot p_94530_2_) boolean
PlayerContainer.canTakeItemForPickAll
(ItemStack p_94530_1_, Slot p_94530_2_) boolean
SmithingTableContainer.canTakeItemForPickAll
(ItemStack p_94530_1_, Slot p_94530_2_) boolean
StonecutterContainer.canTakeItemForPickAll
(ItemStack p_94530_1_, Slot p_94530_2_) boolean
WorkbenchContainer.canTakeItemForPickAll
(ItemStack p_94530_1_, Slot p_94530_2_) protected void
CraftingResultSlot.checkTakeAchievements
(ItemStack p_75208_1_) protected void
FurnaceResultSlot.checkTakeAchievements
(ItemStack p_75208_1_) protected void
MerchantResultSlot.checkTakeAchievements
(ItemStack p_75208_1_) protected void
Slot.checkTakeAchievements
(ItemStack p_75208_1_) static boolean
Container.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_) int
FurnaceFuelSlot.getMaxStackSize
(ItemStack p_178170_1_) int
Slot.getMaxStackSize
(ItemStack p_178170_1_) static void
Container.getQuickCraftSlotCount
(Set<Slot> p_94525_0_, int p_94525_1_, ItemStack p_94525_2_, int p_94525_3_) static boolean
protected boolean
private boolean
MerchantContainer.isSameItem
(ItemStack p_217050_1_, ItemStack p_217050_2_) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
static boolean
BrewingStandContainer.FuelSlot.mayPlaceItem
(ItemStack p_185004_0_) static boolean
BrewingStandContainer.PotionSlot.mayPlaceItem
(ItemStack p_75243_0_) private ItemStack
GrindstoneContainer.mergeEnchants
(ItemStack p_217011_1_, ItemStack p_217011_2_) private void
MerchantContainer.moveFromInventoryToPaymentSlot
(int p_217053_1_, ItemStack p_217053_2_) protected boolean
Container.moveItemStackTo
(ItemStack p_75135_1_, int p_75135_2_, int p_75135_3_, boolean p_75135_4_) protected void
CraftingResultSlot.onQuickCraft
(ItemStack p_75210_1_, int p_75210_2_) protected void
FurnaceResultSlot.onQuickCraft
(ItemStack p_75210_1_, int p_75210_2_) protected void
MerchantResultSlot.onQuickCraft
(ItemStack p_75210_1_, int p_75210_2_) protected void
Slot.onQuickCraft
(ItemStack p_75210_1_, int p_75210_2_) void
Slot.onQuickCraft
(ItemStack p_75220_1_, ItemStack p_75220_2_) protected abstract ItemStack
AbstractRepairContainer.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 ItemStack
RepairContainer.onTake
(PlayerEntity p_230301_1_, ItemStack p_230301_2_) Slot.onTake
(PlayerEntity p_190901_1_, ItemStack p_190901_2_) protected ItemStack
SmithingTableContainer.onTake
(PlayerEntity p_230301_1_, ItemStack p_230301_2_) private ItemStack
GrindstoneContainer.removeNonCurses
(ItemStack p_217007_1_, int p_217007_2_, int p_217007_3_) void
void
private void
StonecutterContainer.setupRecipeList
(IInventory p_217074_1_, ItemStack p_217074_2_) private void
CartographyContainer.setupResultSlot
(ItemStack p_216993_1_, ItemStack p_216993_2_, ItemStack p_216993_3_) protected boolean
AbstractRepairContainer.shouldQuickMoveToAdditionalSlot
(ItemStack p_241210_1_) protected boolean
SmithingTableContainer.shouldQuickMoveToAdditionalSlot
(ItemStack p_241210_1_) void
IContainerListener.slotChanged
(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_) Modifier and TypeMethodDescriptionvoid
IContainerListener.refreshContainer
(Container p_71110_1_, NonNullList<ItemStack> p_71110_2_) void
-
Uses of ItemStack in net.minecraft.item
Modifier and TypeFieldDescriptionprivate final ItemStack
MerchantOffer.baseCostA
private final ItemStack
MerchantOffer.costB
static final ItemStack
ItemStack.EMPTY
private ItemStack
ItemGroup.iconItemStack
private final ItemStack
ItemUseContext.itemStack
private final ItemStack
MerchantOffer.result
Modifier and TypeFieldDescriptionShootableItem.ARROW_ONLY
ShootableItem.ARROW_OR_FIREWORK
static final com.mojang.serialization.Codec<ItemStack>
ItemStack.CODEC
Modifier and TypeMethodDescriptionMerchantOffer.assemble()
ItemStack.copy()
static ItemStack
FilledMapItem.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 ItemStack
EnchantedBookItem.createForEnchantment
(EnchantmentData p_92111_0_) static ItemStack
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_) 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 ItemStack
BucketItem.getEmptySuccessItem
(ItemStack p_203790_1_, PlayerEntity p_203790_2_) static ItemStack
ShootableItem.getHeldProjectile
(LivingEntity p_220005_0_, Predicate<ItemStack> p_220005_1_) ItemGroup.getIconItem()
ItemUseContext.getItemInHand()
MerchantOffer.getResult()
abstract ItemStack
ItemGroup.makeIcon()
static ItemStack
ItemStack.of
(CompoundNBT p_199557_0_) ItemStack.setHoverName
(ITextComponent p_200302_1_) ItemStack.split
(int p_77979_1_) protected ItemStack
GlassBottleItem.turnBottleIntoItem
(ItemStack p_185061_1_, PlayerEntity p_185061_2_, ItemStack p_185061_3_) Modifier 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_) Modifier and TypeMethodDescriptionprivate static void
CrossbowItem.addChargedProjectile
(ItemStack p_220029_0_, ItemStack p_220029_1_) static void
EnchantedBookItem.addEnchantment
(ItemStack p_92115_0_, EnchantmentData p_92115_1_) void
AirItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
BannerItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
BannerPatternItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
BlockItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
CrossbowItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
EnchantedBookItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
FilledMapItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
FireworkRocketItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
FireworkStarItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
FishBucketItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
Item.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
LingeringPotionItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
MusicDiscItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
PotionItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
ShieldItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
TippedArrowItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) void
WrittenBookItem.appendHoverText
(ItemStack p_77624_1_, World p_77624_2_, List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_) static void
BannerItem.appendHoverTextFromBannerBlockEntityTag
(ItemStack p_185054_0_, List<ITextComponent> p_185054_1_) static boolean
BoneMealItem.applyBonemeal
(ItemStack p_195966_0_, World p_195966_1_, BlockPos p_195966_2_, PlayerEntity player) float
IItemPropertyGetter.call
(ItemStack p_call_1_, ClientWorld p_call_2_, LivingEntity p_call_3_) boolean
ElytraItem.canElytraFly
(ItemStack stack, LivingEntity entity) void
BucketItem.checkExtraContent
(World p_203792_1_, ItemStack p_203792_2_, BlockPos p_203792_3_) void
FishBucketItem.checkExtraContent
(World p_203792_1_, ItemStack p_203792_2_, BlockPos p_203792_3_) private static void
CrossbowItem.clearChargedProjectiles
(ItemStack p_220027_0_) default void
IDyeableArmorItem.clearColor
(ItemStack p_200884_1_) static boolean
CrossbowItem.containsChargedProjectile
(ItemStack p_220019_0_, Item p_220019_1_) private static MapData
FilledMapItem.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 boolean
ArmorItem.dispenseArmor
(IBlockSource p_226626_0_, ItemStack p_226626_1_) static ItemStack
boolean
ElytraItem.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 AbstractArrowEntity
CrossbowItem.getArrow
(World p_220024_0_, LivingEntity p_220024_1_, ItemStack p_220024_2_, ItemStack p_220024_3_) CrossbowItem.getChargedProjectiles
(ItemStack p_220018_0_) static int
CrossbowItem.getChargeDuration
(ItemStack p_220026_0_) static DyeColor
static int
default int
static DyeColor
protected MapData
FilledMapItem.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_) float
AxeItem.getDestroySpeed
(ItemStack p_150893_1_, BlockState p_150893_2_) float
Item.getDestroySpeed
(ItemStack p_150893_1_, BlockState p_150893_2_) float
PickaxeItem.getDestroySpeed
(ItemStack p_150893_1_, BlockState p_150893_2_) float
ShearsItem.getDestroySpeed
(ItemStack p_150893_1_, BlockState p_150893_2_) float
SwordItem.getDestroySpeed
(ItemStack p_150893_1_, BlockState p_150893_2_) float
ToolItem.getDestroySpeed
(ItemStack p_150893_1_, BlockState p_150893_2_) protected ItemStack
BucketItem.getEmptySuccessItem
(ItemStack p_203790_1_, PlayerEntity p_203790_2_) static ListNBT
EnchantedBookItem.getEnchantments
(ItemStack p_92110_0_) static int
WrittenBookItem.getGeneration
(ItemStack p_179230_0_) int
Item.getHarvestLevel
(ItemStack stack, ToolType tool, PlayerEntity player, BlockState blockState) static int
static MapData
FilledMapItem.getOrCreateSavedData
(ItemStack p_195950_0_, World p_195950_1_) static int
WrittenBookItem.getPageCount
(ItemStack p_220049_0_) private static float
CrossbowItem.getPowerForTime
(int p_220031_0_, ItemStack p_220031_1_) MerchantOffers.getRecipeFor
(ItemStack p_222197_1_, ItemStack p_222197_2_, int p_222197_3_) static MapData
FilledMapItem.getSavedData
(ItemStack p_219994_0_, World p_219994_1_) private static float
CrossbowItem.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_) int
BowItem.getUseDuration
(ItemStack p_77626_1_) int
CrossbowItem.getUseDuration
(ItemStack p_77626_1_) int
HoneyBottleItem.getUseDuration
(ItemStack p_77626_1_) int
Item.getUseDuration
(ItemStack p_77626_1_) int
MilkBucketItem.getUseDuration
(ItemStack p_77626_1_) int
PotionItem.getUseDuration
(ItemStack p_77626_1_) int
ShieldItem.getUseDuration
(ItemStack p_77626_1_) int
TridentItem.getUseDuration
(ItemStack p_77626_1_) static boolean
Deprecated.static boolean
BoneMealItem.growWaterPlant
(ItemStack p_203173_0_, World p_203173_1_, BlockPos p_203173_2_, Direction p_203173_3_) private void
DebugStickItem.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 boolean
IDyeableArmorItem.hasCustomColor
(ItemStack p_200883_1_) boolean
Item.hurtEnemy
(ItemStack p_77644_1_, LivingEntity p_77644_2_, LivingEntity p_77644_3_) boolean
SwordItem.hurtEnemy
(ItemStack p_77644_1_, LivingEntity p_77644_2_, LivingEntity p_77644_3_) boolean
ToolItem.hurtEnemy
(ItemStack p_77644_1_, LivingEntity p_77644_2_, LivingEntity p_77644_3_) boolean
TridentItem.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) void
CompassItem.inventoryTick
(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_) void
FilledMapItem.inventoryTick
(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_) void
Item.inventoryTick
(ItemStack p_77663_1_, World p_77663_2_, Entity p_77663_3_, int p_77663_4_, boolean p_77663_5_) static boolean
boolean
BookItem.isEnchantable
(ItemStack p_77616_1_) boolean
EnchantedBookItem.isEnchantable
(ItemStack p_77616_1_) boolean
Item.isEnchantable
(ItemStack p_77616_1_) static boolean
ElytraItem.isFlyEnabled
(ItemStack p_185069_0_) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
ArrowItem.isInfinite
(ItemStack stack, ItemStack bow, PlayerEntity player) static boolean
CompassItem.isLodestoneCompass
(ItemStack p_234670_0_) boolean
Item.isRepairable
(ItemStack stack) private boolean
MerchantOffer.isRequiredItem
(ItemStack p_222201_1_, ItemStack p_222201_2_) static boolean
static boolean
ItemStack.isSameIgnoreDurability
(ItemStack p_185132_0_, ItemStack p_185132_1_) boolean
ArmorItem.isValidRepairItem
(ItemStack p_82789_1_, ItemStack p_82789_2_) boolean
ElytraItem.isValidRepairItem
(ItemStack p_82789_1_, ItemStack p_82789_2_) boolean
Item.isValidRepairItem
(ItemStack p_82789_1_, ItemStack p_82789_2_) boolean
ShieldItem.isValidRepairItem
(ItemStack p_82789_1_, ItemStack p_82789_2_) boolean
TieredItem.isValidRepairItem
(ItemStack p_82789_1_, ItemStack p_82789_2_) private static boolean
CrossbowItem.loadProjectile
(LivingEntity p_220023_0_, ItemStack p_220023_1_, ItemStack p_220023_2_, boolean p_220023_3_, boolean p_220023_4_) static void
private boolean
static boolean
protected boolean
HangingEntityItem.mayPlace
(PlayerEntity p_200127_1_, Direction p_200127_2_, ItemStack p_200127_3_, BlockPos p_200127_4_) protected boolean
ItemFrameItem.mayPlace
(PlayerEntity p_200127_1_, Direction p_200127_2_, ItemStack p_200127_3_, BlockPos p_200127_4_) boolean
Item.mineBlock
(ItemStack p_179218_1_, World p_179218_2_, BlockState p_179218_3_, BlockPos p_179218_4_, LivingEntity p_179218_5_) boolean
ShearsItem.mineBlock
(ItemStack p_179218_1_, World p_179218_2_, BlockState p_179218_3_, BlockPos p_179218_4_, LivingEntity p_179218_5_) boolean
SwordItem.mineBlock
(ItemStack p_179218_1_, World p_179218_2_, BlockState p_179218_3_, BlockPos p_179218_4_, LivingEntity p_179218_5_) boolean
ToolItem.mineBlock
(ItemStack p_179218_1_, World p_179218_2_, BlockState p_179218_3_, BlockPos p_179218_4_, LivingEntity p_179218_5_) boolean
TridentItem.mineBlock
(ItemStack p_179218_1_, World p_179218_2_, BlockState p_179218_3_, BlockPos p_179218_4_, LivingEntity p_179218_5_) void
FilledMapItem.onCraftedBy
(ItemStack p_77622_1_, World p_77622_2_, PlayerEntity p_77622_3_) void
Item.onCraftedBy
(ItemStack p_77622_1_, World p_77622_2_, PlayerEntity p_77622_3_) private static void
CrossbowItem.onCrossbowShot
(World p_220015_0_, LivingEntity p_220015_1_, ItemStack p_220015_2_) void
CrossbowItem.onUseTick
(World p_219972_1_, LivingEntity p_219972_2_, ItemStack p_219972_3_, int p_219972_4_) void
Item.onUseTick
(World p_219972_1_, LivingEntity p_219972_2_, ItemStack p_219972_3_, int p_219972_4_) static void
CrossbowItem.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_) void
BowItem.releaseUsing
(ItemStack p_77615_1_, World p_77615_2_, LivingEntity p_77615_3_, int p_77615_4_) void
CrossbowItem.releaseUsing
(ItemStack p_77615_1_, World p_77615_2_, LivingEntity p_77615_3_, int p_77615_4_) void
Item.releaseUsing
(ItemStack p_77615_1_, World p_77615_2_, LivingEntity p_77615_3_, int p_77615_4_) void
TridentItem.releaseUsing
(ItemStack p_77615_1_, World p_77615_2_, LivingEntity p_77615_3_, int p_77615_4_) static void
FilledMapItem.renderBiomePreviewMap
(ServerWorld p_226642_0_, ItemStack p_226642_1_) static boolean
WrittenBookItem.resolveBookComponents
(ItemStack p_220050_0_, CommandSource p_220050_1_, PlayerEntity p_220050_2_) boolean
boolean
ItemStack.sameItemStackIgnoreDurability
(ItemStack p_185136_1_) boolean
MerchantOffer.satisfiedBy
(ItemStack p_222204_1_, ItemStack p_222204_2_) static void
SuspiciousStewItem.saveMobEffect
(ItemStack p_220037_0_, Effect p_220037_1_, int p_220037_2_) protected static void
static void
CrossbowItem.setCharged
(ItemStack p_220011_0_, boolean p_220011_1_) default void
private static void
CrossbowItem.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 void
FishBucketItem.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 boolean
ItemStack.tagMatches
(ItemStack p_77970_0_, ItemStack p_77970_1_) boolean
private static boolean
CrossbowItem.tryLoadProjectiles
(LivingEntity p_220021_0_, ItemStack p_220021_1_) protected ItemStack
GlassBottleItem.turnBottleIntoItem
(ItemStack p_185061_1_, PlayerEntity p_185061_2_, ItemStack p_185061_3_) private BlockState
BlockItem.updateBlockStateFromTag
(BlockPos p_219985_1_, World p_219985_2_, ItemStack p_219985_3_, BlockState p_219985_4_) protected boolean
BlockItem.updateCustomBlockEntityTag
(BlockPos p_195943_1_, World p_195943_2_, PlayerEntity p_195943_3_, ItemStack p_195943_4_, BlockState p_195943_5_) static boolean
BlockItem.updateCustomBlockEntityTag
(World p_179224_0_, PlayerEntity p_179224_1_, BlockPos p_179224_2_, ItemStack p_179224_3_) protected boolean
SignItem.updateCustomBlockEntityTag
(BlockPos p_195943_1_, World p_195943_2_, PlayerEntity p_195943_3_, ItemStack p_195943_4_, BlockState p_195943_5_) boolean
Item.useOnRelease
(ItemStack p_219970_1_) Modifier and TypeMethodDescriptionvoid
BlockItem.fillItemCategory
(ItemGroup p_150895_1_, NonNullList<ItemStack> p_150895_2_) void
EnchantedBookItem.fillItemCategory
(ItemGroup p_150895_1_, NonNullList<ItemStack> p_150895_2_) void
Item.fillItemCategory
(ItemGroup p_150895_1_, NonNullList<ItemStack> p_150895_2_) void
PotionItem.fillItemCategory
(ItemGroup p_150895_1_, NonNullList<ItemStack> p_150895_2_) void
TippedArrowItem.fillItemCategory
(ItemGroup p_150895_1_, NonNullList<ItemStack> p_150895_2_) void
ItemGroup.fillItemList
(NonNullList<ItemStack> p_78018_1_) static ItemStack
ShootableItem.getHeldProjectile
(LivingEntity p_220005_0_, Predicate<ItemStack> p_220005_1_) ModifierConstructorDescriptionBlockItemUseContext
(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
Modifier and TypeFieldDescriptionprivate final ItemStack
Ingredient.SingleItemList.item
private ItemStack[]
Ingredient.itemStacks
protected final ItemStack
AbstractCookingRecipe.result
private final ItemStack
ShapedRecipe.result
private final ItemStack
ShapelessRecipe.result
protected final ItemStack
SingleItemRecipe.result
private final ItemStack
SmithingRecipe.result
Modifier 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 ItemStack
RecipeItemHelper.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 ItemStack
IRecipe.getToastSymbol()
SmithingRecipe.getToastSymbol()
SmokingRecipe.getToastSymbol()
StonecuttingRecipe.getToastSymbol()
static ItemStack
ShapedRecipe.itemFromJson
(com.google.gson.JsonObject p_199798_0_) Modifier 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_) Modifier and TypeMethodDescriptionvoid
RecipeItemHelper.accountSimpleStack
(ItemStack p_195932_1_) void
RecipeItemHelper.accountStack
(ItemStack p_194112_1_) void
RecipeItemHelper.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 int
RecipeItemHelper.getStackingIndex
(ItemStack p_194113_0_) boolean
SmithingRecipe.isAdditionIngredient
(ItemStack p_241456_1_) protected void
ServerRecipePlacer.moveItemToGrid
(Slot p_194325_1_, ItemStack p_194325_2_) static Ingredient
boolean
ModifierConstructorDescriptionAbstractCookingRecipe
(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
Modifier and TypeFieldDescriptionprivate final BiFunction<ItemStack,
LootContext, ItemStack> LootPool.compositeFunction
private final BiFunction<ItemStack,
LootContext, ItemStack> LootPool.compositeFunction
private final BiFunction<ItemStack,
LootContext, ItemStack> LootTable.compositeFunction
private final BiFunction<ItemStack,
LootContext, ItemStack> LootTable.compositeFunction
private final BiFunction<ItemStack,
LootContext, ItemStack> StandaloneLootEntry.compositeFunction
private final BiFunction<ItemStack,
LootContext, ItemStack> StandaloneLootEntry.compositeFunction
static final LootParameter<ItemStack>
LootParameters.TOOL
Modifier and TypeMethodDescriptionfinal ItemStack
LootFunction.apply
(ItemStack p_apply_1_, LootContext p_apply_2_) protected abstract ItemStack
LootFunction.run
(ItemStack p_215859_1_, LootContext p_215859_2_) Modifier and TypeMethodDescriptionLootTable.createStackSplitter
(Consumer<ItemStack> p_216124_0_) LootTable.getRandomItems
(LootContext p_216113_1_) Modifier and TypeMethodDescriptionfinal ItemStack
LootFunction.apply
(ItemStack p_apply_1_, LootContext p_apply_2_) protected abstract ItemStack
LootFunction.run
(ItemStack p_215859_1_, LootContext p_215859_2_) Modifier and TypeMethodDescriptionvoid
LootContext.IDynamicDropProvider.add
(LootContext p_add_1_, Consumer<ItemStack> p_add_2_) void
LootContext.addDynamicDrops
(ResourceLocation p_216034_1_, Consumer<ItemStack> p_216034_2_) private void
LootPool.addRandomItem
(Consumer<ItemStack> p_216095_1_, LootContext p_216095_2_) void
LootPool.addRandomItems
(Consumer<ItemStack> p_216091_1_, LootContext p_216091_2_) void
DynamicLootEntry.createItemStack
(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) void
EmptyLootEntry.createItemStack
(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) void
ILootGenerator.createItemStack
(Consumer<ItemStack> p_216188_1_, LootContext p_216188_2_) void
ItemLootEntry.createItemStack
(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) protected abstract void
StandaloneLootEntry.createItemStack
(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) void
TableLootEntry.createItemStack
(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) void
TagLootEntry.createItemStack
(Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_) LootTable.createStackSplitter
(Consumer<ItemStack> p_216124_0_) void
LootTable.getRandomItems
(LootContext p_216120_1_, Consumer<ItemStack> p_216120_2_) Deprecated.void
LootTable.getRandomItemsRaw
(LootContext p_216114_1_, Consumer<ItemStack> p_216114_2_) private void
LootTable.shuffleAndSplitItems
(List<ItemStack> p_186463_1_, int p_186463_2_, Random p_186463_3_) -
Uses of ItemStack in net.minecraft.loot.functions
Modifier and TypeFieldDescriptionstatic final BiFunction<ItemStack,
LootContext, ItemStack> LootFunctionManager.IDENTITY
static final BiFunction<ItemStack,
LootContext, ItemStack> LootFunctionManager.IDENTITY
Modifier and TypeMethodDescriptionprivate static ItemStack
EnchantRandomly.enchantItem
(ItemStack p_237420_0_, Enchantment p_237420_1_, Random p_237420_2_) ApplyBonus.run
(ItemStack p_215859_1_, LootContext p_215859_2_) protected ItemStack
CopyBlockState.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_) Modifier 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_) Modifier and TypeMethodDescriptionprivate static ItemStack
EnchantRandomly.enchantItem
(ItemStack p_237420_0_, Enchantment p_237420_1_, Random p_237420_2_) private ListNBT
SetLore.getLoreTag
(ItemStack p_215942_1_, boolean p_215942_2_) ApplyBonus.run
(ItemStack p_215859_1_, LootContext p_215859_2_) protected ItemStack
CopyBlockState.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_) Modifier 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
Modifier 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
Modifier and TypeFieldDescriptionstatic final IDataSerializer<ItemStack>
DataSerializers.ITEM_STACK
-
Uses of ItemStack in net.minecraft.network.play
Modifier and TypeMethodDescriptionprivate static boolean
ServerPlayNetHandler.wasBlockPlacementAttempt
(ServerPlayerEntity p_241166_0_, ItemStack p_241166_1_) -
Uses of ItemStack in net.minecraft.network.play.client
Modifier and TypeFieldDescriptionprivate ItemStack
CEditBookPacket.book
private ItemStack
CClickWindowPacket.itemStack
private ItemStack
CCreativeInventoryActionPacket.itemStack
Modifier and TypeMethodDescriptionCEditBookPacket.getBook()
CClickWindowPacket.getItem()
CCreativeInventoryActionPacket.getItem()
ModifierConstructorDescriptionCClickWindowPacket
(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
Modifier and TypeFieldDescriptionSWindowItemsPacket.items
private final List<com.mojang.datafixers.util.Pair<EquipmentSlotType,
ItemStack>> SEntityEquipmentPacket.slots
Modifier and TypeMethodDescriptionSWindowItemsPacket.getItems()
List<com.mojang.datafixers.util.Pair<EquipmentSlotType,
ItemStack>> SEntityEquipmentPacket.getSlots()
ModifierConstructorDescriptionSSetSlotPacket
(int p_i46951_1_, int p_i46951_2_, ItemStack p_i46951_3_) ModifierConstructorDescriptionSEntityEquipmentPacket
(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
ModifierConstructorDescriptionItemParticleData
(ParticleType<ItemParticleData> p_i47952_1_, ItemStack p_i47952_2_) -
Uses of ItemStack in net.minecraft.potion
Modifier and TypeMethodDescriptionstatic ItemStack
static ItemStack
PotionUtils.setCustomEffects
(ItemStack p_185184_0_, Collection<EffectInstance> p_185184_1_) static ItemStack
Modifier and TypeMethodDescriptionstatic void
PotionUtils.addPotionTooltip
(ItemStack p_185182_0_, List<ITextComponent> p_185182_1_, float p_185182_2_) static int
static List<EffectInstance>
PotionUtils.getCustomEffects
(ItemStack p_185190_0_) static List<EffectInstance>
PotionUtils.getMobEffects
(ItemStack p_185189_0_) static Potion
protected static boolean
PotionBrewing.hasContainerMix
(ItemStack p_185206_0_, ItemStack p_185206_1_) static boolean
protected static boolean
PotionBrewing.hasPotionMix
(ItemStack p_185209_0_, ItemStack p_185209_1_) protected static boolean
PotionBrewing.isContainerIngredient
(ItemStack p_185203_0_) static boolean
PotionBrewing.isIngredient
(ItemStack p_185205_0_) protected static boolean
PotionBrewing.isPotionIngredient
(ItemStack p_185211_0_) static ItemStack
static ItemStack
PotionUtils.setCustomEffects
(ItemStack p_185184_0_, Collection<EffectInstance> p_185184_1_) static ItemStack
Modifier and TypeMethodDescriptionvoid
EffectInstance.setCurativeItems
(List<ItemStack> curativeItems) -
Uses of ItemStack in net.minecraft.server.management
Modifier 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
Modifier and TypeMethodDescriptionprivate static ItemStack
TestUtils.createBook
(String p_229546_0_, boolean p_229546_1_, String p_229546_2_) -
Uses of ItemStack in net.minecraft.tileentity
Modifier and TypeFieldDescriptionprivate ItemStack
LecternTileEntity.book
private ItemStack
JukeboxTileEntity.record
Modifier and TypeFieldDescriptionprotected NonNullList<ItemStack>
AbstractFurnaceTileEntity.items
private NonNullList<ItemStack>
BarrelTileEntity.items
private NonNullList<ItemStack>
BrewingStandTileEntity.items
private final NonNullList<ItemStack>
CampfireTileEntity.items
private NonNullList<ItemStack>
ChestTileEntity.items
private NonNullList<ItemStack>
DispenserTileEntity.items
private NonNullList<ItemStack>
HopperTileEntity.items
private NonNullList<ItemStack>
ShulkerBoxTileEntity.itemStacks
Modifier and TypeMethodDescriptionstatic ItemStack
HopperTileEntity.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 ItemStack
LecternTileEntity.resolveBook
(ItemStack p_214047_1_, PlayerEntity p_214047_2_) private static ItemStack
HopperTileEntity.tryMoveInItem
(IInventory p_174916_0_, IInventory p_174916_1_, ItemStack p_174916_2_, int p_174916_3_, Direction p_174916_4_) Modifier 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()
Modifier and TypeMethodDescriptionint
static ItemStack
HopperTileEntity.addItem
(IInventory p_174918_0_, IInventory p_174918_1_, ItemStack p_174918_2_, Direction p_174918_3_) private static boolean
HopperTileEntity.canMergeItems
(ItemStack p_145894_0_, ItemStack p_145894_1_) boolean
AbstractFurnaceTileEntity.canPlaceItem
(int p_94041_1_, ItemStack p_94041_2_) boolean
BrewingStandTileEntity.canPlaceItem
(int p_94041_1_, ItemStack p_94041_2_) private static boolean
HopperTileEntity.canPlaceItemInContainer
(IInventory p_174920_0_, ItemStack p_174920_1_, int p_174920_2_, Direction p_174920_3_) boolean
AbstractFurnaceTileEntity.canPlaceItemThroughFace
(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) boolean
BrewingStandTileEntity.canPlaceItemThroughFace
(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) boolean
ShulkerBoxTileEntity.canPlaceItemThroughFace
(int p_180462_1_, ItemStack p_180462_2_, Direction p_180462_3_) private static boolean
HopperTileEntity.canTakeItemFromContainer
(IInventory p_174921_0_, ItemStack p_174921_1_, int p_174921_2_, Direction p_174921_3_) boolean
AbstractFurnaceTileEntity.canTakeItemThroughFace
(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) boolean
BrewingStandTileEntity.canTakeItemThroughFace
(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) boolean
ShulkerBoxTileEntity.canTakeItemThroughFace
(int p_180461_1_, ItemStack p_180461_2_, Direction p_180461_3_) void
protected int
AbstractFurnaceTileEntity.getBurnDuration
(ItemStack p_213997_1_) protected int
BlastFurnaceTileEntity.getBurnDuration
(ItemStack p_213997_1_) protected int
SmokerTileEntity.getBurnDuration
(ItemStack p_213997_1_) CampfireTileEntity.getCookableRecipe
(ItemStack p_213980_1_) static ListNBT
BannerTileEntity.getItemPatterns
(ItemStack p_230139_0_) static int
BannerTileEntity.getPatternCount
(ItemStack p_175113_0_) static boolean
boolean
static void
BannerTileEntity.removeLastPattern
(ItemStack p_175117_0_) private ItemStack
LecternTileEntity.resolveBook
(ItemStack p_214047_1_, PlayerEntity p_214047_2_) void
void
LecternTileEntity.setBook
(ItemStack p_214040_1_, PlayerEntity p_214040_2_) void
void
void
void
void
private static ItemStack
HopperTileEntity.tryMoveInItem
(IInventory p_174916_0_, IInventory p_174916_1_, ItemStack p_174916_2_, int p_174916_3_, Direction p_174916_4_) Modifier and TypeMethodDescriptionprotected void
BarrelTileEntity.setItems
(NonNullList<ItemStack> p_199721_1_) protected void
ChestTileEntity.setItems
(NonNullList<ItemStack> p_199721_1_) protected void
DispenserTileEntity.setItems
(NonNullList<ItemStack> p_199721_1_) protected void
HopperTileEntity.setItems
(NonNullList<ItemStack> p_199721_1_) protected abstract void
LockableLootTileEntity.setItems
(NonNullList<ItemStack> p_199721_1_) protected void
ShulkerBoxTileEntity.setItems
(NonNullList<ItemStack> p_199721_1_) -
Uses of ItemStack in net.minecraft.util
Modifier and TypeMethodDescriptionstatic ItemStack
DrinkHelper.createFilledResult
(ItemStack p_242398_0_, PlayerEntity p_242398_1_, ItemStack p_242398_2_) static ItemStack
DrinkHelper.createFilledResult
(ItemStack p_241445_0_, PlayerEntity p_241445_1_, ItemStack p_241445_2_, boolean p_241445_3_) Modifier and TypeMethodDescriptionstatic ActionResult<ItemStack>
DrinkHelper.useDrink
(World p_234707_0_, PlayerEntity p_234707_1_, Hand p_234707_2_) Modifier and TypeMethodDescriptionstatic ItemStack
DrinkHelper.createFilledResult
(ItemStack p_242398_0_, PlayerEntity p_242398_1_, ItemStack p_242398_2_) static ItemStack
DrinkHelper.createFilledResult
(ItemStack p_241445_0_, PlayerEntity p_241445_1_, ItemStack p_241445_2_, boolean p_241445_3_) void
-
Uses of ItemStack in net.minecraft.util.text.event
-
Uses of ItemStack in net.minecraft.world
Modifier and TypeMethodDescriptionprivate static void
Explosion.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_) boolean
LockCode.unlocksWith
(ItemStack p_219964_1_) Modifier and TypeMethodDescriptionprivate static void
Explosion.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
-
Uses of ItemStack in net.minecraft.world.storage
Modifier and TypeMethodDescriptionstatic void
MapData.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_) void
MapData.tickCarriedBy
(PlayerEntity p_76191_1_, ItemStack p_76191_2_) -
Uses of ItemStack in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic void
ForgeHooksClient.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 String
ForgeHooksClient.getArmorTexture
(Entity entity, ItemStack armor, String _default, EquipmentSlotType slot, String type) int
ItemModelMesherForge.getLocation
(ItemStack stack) static boolean
ForgeHooksClient.renderSpecificFirstPersonHand
(Hand hand, MatrixStack mat, IRenderTypeBuffer buffers, int light, float partialTicks, float interpPitch, float swingProgress, float equipProgress, ItemStack stack) static boolean
ForgeHooksClient.shouldCauseReequipAnimation
(ItemStack from, ItemStack to, int slot) -
Uses of ItemStack in net.minecraftforge.client.event
Modifier and TypeFieldDescriptionprivate final ItemStack
RenderItemInFrameEvent.item
private final ItemStack
RenderHandEvent.stack
protected final ItemStack
RenderTooltipEvent.stack
Modifier and TypeMethodDescriptionRenderItemInFrameEvent.getItem()
RenderHandEvent.getItemStack()
RenderTooltipEvent.getStack()
ModifierConstructorDescriptionColor
(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
Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionAnimationItemOverrideList.resolve
(IBakedModel originalModel, ItemStack stack, ClientWorld world, LivingEntity entity) -
Uses of ItemStack in net.minecraftforge.common
Modifier and TypeFieldDescriptionprotected final ItemStack
BasicTrade.forSale
protected final ItemStack
BasicTrade.price
protected final ItemStack
BasicTrade.price2
Modifier and TypeMethodDescriptionForgeHooks.modifyLoot
(List<ItemStack> list, LootContext context) Deprecated.ForgeHooks.modifyLoot
(ResourceLocation lootTableId, List<ItemStack> generatedLoot, LootContext context) Handles the modification of loot table drops via the registered Global Loot Modifiers, so that custom effects can be processed.IForgeShearable.onSheared
(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune) Performs the shear function on this object.Modifier and TypeMethodDescriptionstatic boolean
ForgeHooks.canContinueUsing
(ItemStack from, ItemStack to) static com.google.common.collect.Multimap<Attribute,
AttributeModifier> ForgeHooks.getAttributeModifiers
(ItemStack stack, EquipmentSlotType equipmentSlot, com.google.common.collect.Multimap<Attribute, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent
.static int
ForgeHooks.getBurnTime
(ItemStack stack) Deprecated.static int
ForgeHooks.getBurnTime
(ItemStack stack, IRecipeType<?> recipeType) Gets the burn time of this itemstack.static ItemStack
ForgeHooks.getContainerItem
(ItemStack stack) static String
ForgeHooks.getDefaultCreatorModId
(ItemStack itemStack) Used as the default implementation ofIForgeItem.getCreatorModId(net.minecraft.item.ItemStack)
.default boolean
IForgeShearable.isShearable
(ItemStack item, World world, BlockPos pos) Checks if the object is currently shearable Example: Sheep return false when they have no woolstatic boolean
ForgeHooks.isToolEffective
(IWorldReader world, BlockPos pos, ItemStack stack) static boolean
ForgeHooks.onAnvilChange
(RepairContainer container, ItemStack left, ItemStack right, IInventory outputSlot, String name, int baseCost) Deprecated.static boolean
ForgeHooks.onAnvilChange
(RepairContainer container, ItemStack left, ItemStack right, IInventory outputSlot, String name, int baseCost, PlayerEntity player) static float
ForgeHooks.onAnvilRepair
(PlayerEntity player, ItemStack output, ItemStack left, ItemStack right) static ItemEntity
ForgeHooks.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.Modifier and TypeMethodDescriptionForgeHooks.modifyLoot
(List<ItemStack> list, LootContext context) Deprecated.ForgeHooks.modifyLoot
(ResourceLocation lootTableId, List<ItemStack> generatedLoot, LootContext context) Handles the modification of loot table drops via the registered Global Loot Modifiers, so that custom effects can be processed.ModifierConstructorDescriptionBasicTrade
(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
Modifier and TypeMethodDescriptionBrewingRecipe.getOutput()
static ItemStack
Returns the output ItemStack obtained by brewing the passed input and ingredient.Returns the output when the passed input is brewed with the passed ingredient.Code copied from TileEntityBrewingStand.brewPotions() It brews the potion by doing the bit-shifting magic and then checking if the new PotionEffect list is different to the old one, or if the new potion is a splash potion when the old one wasn't.Modifier and TypeMethodDescriptionstatic boolean
BrewingRecipeRegistry.addRecipe
(Ingredient input, Ingredient ingredient, ItemStack output) Adds a recipe to the registry.static void
BrewingRecipeRegistry.brewPotions
(NonNullList<ItemStack> inputs, ItemStack ingredient, int[] inputIndexes) Used by the brewing stand to brew its inventory Extra parameters exist to allow modders to create bigger brewing stands without much hasslestatic boolean
BrewingRecipeRegistry.canBrew
(NonNullList<ItemStack> inputs, ItemStack ingredient, int[] inputIndexes) Used by the brewing stand to determine if its contents can be brewed.static ItemStack
Returns the output ItemStack obtained by brewing the passed input and ingredient.Returns the output when the passed input is brewed with the passed ingredient.Code copied from TileEntityBrewingStand.brewPotions() It brews the potion by doing the bit-shifting magic and then checking if the new PotionEffect list is different to the old one, or if the new potion is a splash potion when the old one wasn't.static boolean
Returns true if the passed input and ingredient have an outputboolean
BrewingRecipe.isIngredient
(ItemStack ingredient) boolean
IBrewingRecipe.isIngredient
(ItemStack ingredient) Returns true if the passed ItemStack is an ingredient for this recipe.boolean
VanillaBrewingRecipe.isIngredient
(ItemStack stack) Code adapted from TileEntityBrewingStand.isItemValidForSlot(int index, ItemStack stack)boolean
boolean
Returns true is the passed ItemStack is an input for this recipe.boolean
Code adapted from TileEntityBrewingStand.isItemValidForSlot(int index, ItemStack stack)static boolean
BrewingRecipeRegistry.isValidIngredient
(ItemStack stack) Returns true if the passed ItemStack is a valid ingredient for any of the recipes in the registry.static boolean
BrewingRecipeRegistry.isValidInput
(ItemStack stack) Returns true if the passed ItemStack is a valid input for any of the recipes in the registry.Modifier and TypeMethodDescriptionstatic void
BrewingRecipeRegistry.brewPotions
(NonNullList<ItemStack> inputs, ItemStack ingredient, int[] inputIndexes) Used by the brewing stand to brew its inventory Extra parameters exist to allow modders to create bigger brewing stands without much hasslestatic boolean
BrewingRecipeRegistry.canBrew
(NonNullList<ItemStack> inputs, ItemStack ingredient, int[] inputIndexes) Used by the brewing stand to determine if its contents can be brewed.ModifierConstructorDescriptionBrewingRecipe
(Ingredient input, Ingredient ingredient, ItemStack output) -
Uses of ItemStack in net.minecraftforge.common.capabilities
Modifier and TypeFieldDescriptionLazyCapabilitiesOnItemsTest.NO_CAPS_DISABLED_RESULTS
LazyCapabilitiesOnItemsTest.NO_CAPS_ENABLED_RESULTS
LazyCapabilitiesOnItemsTest.WARMUP_RESULTS
LazyCapabilitiesOnItemsTest.WITH_CAPS_DISABLED_RESULTS
LazyCapabilitiesOnItemsTest.WITH_CAPS_ENABLED_RESULTS
-
Uses of ItemStack in net.minecraftforge.common.crafting
Modifier and TypeFieldDescriptionprivate final ItemStack
NBTIngredient.stack
private ItemStack[]
CompoundIngredient.stacks
Modifier and TypeMethodDescriptionCompoundIngredient.getItems()
static ItemStack
CraftingHelper.getItemStack
(com.google.gson.JsonObject json, boolean readNBT) Modifier and TypeMethodDescriptionboolean
boolean
private com.google.gson.JsonObject
-
Uses of ItemStack in net.minecraftforge.common.data
Modifier and TypeMethodDescriptionvoid
LanguageProvider.addItemStack
(Supplier<ItemStack> key, String name) -
Uses of ItemStack in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault ItemStack
IForgeEntityMinecart.getCartItem()
This function returns an ItemStack that represents this cart.default ItemStack
IForgeItem.getContainerItem
(ItemStack itemStack) ItemStack sensitive version of getContainerItem.default ItemStack
IForgeItemStack.getContainerItem()
ItemStack sensitive version of getContainerItem.default ItemStack
IForgeBlock.getPickBlock
(BlockState state, RayTraceResult target, IBlockReader world, BlockPos pos, PlayerEntity player) Called when A user uses the creative pick block button on this blockdefault ItemStack
IForgeBlockState.getPickBlock
(RayTraceResult target, IBlockReader world, BlockPos pos, PlayerEntity player) Called when A user uses the creative pick block button on this blockdefault ItemStack
IForgeEntity.getPickedResult
(RayTraceResult target) Called when a user uses the creative pick block button on this entity.default ItemStack
IForgeItemStack.getStack()
Modifier 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#getCurativeItems
Modifier and TypeMethodDescriptiondefault void
IForgeEffectInstance.addCurativeItem
(ItemStack stack) Adds the given stack to the list of curative items for this PotionEffectdefault boolean
IForgeItemStack.areShareTagsEqual
(ItemStack other) Modeled after ItemStack.areItemStackTagsEqual Uses Item.getNBTShareTag for comparison instead of NBT and capabilities.default boolean
IForgeItem.canApplyAtEnchantingTable
(ItemStack stack, Enchantment enchantment) Checks whether an item can be enchanted with a certain enchantment.default boolean
IForgeItem.canContinueUsing
(ItemStack oldStack, ItemStack newStack) Called while an item is in 'active' use to determine if usage should continue.default boolean
IForgeItem.canDisableShield
(ItemStack stack, ItemStack shield, LivingEntity entity, LivingEntity attacker) Can this Item disable a shielddefault boolean
IForgeItemStack.canDisableShield
(ItemStack shield, LivingEntity entity, LivingEntity attacker) Can this Item disable a shielddefault boolean
IForgeItem.canElytraFly
(ItemStack stack, LivingEntity entity) Used to determine if the player can use Elytra flight.default boolean
IForgeItem.canEquip
(ItemStack stack, EquipmentSlotType armorType, Entity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default boolean
IForgeItem.canHarvestBlock
(ItemStack stack, BlockState state) ItemStack sensitive version of#canHarvestBlock(IBlockState)
default Entity
IForgeItem.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 boolean
IForgeItem.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 boolean
IForgeItem.elytraFlightTick
(ItemStack stack, LivingEntity entity, int flightTicks) Used to determine if the player can continue Elytra flight, this is called each tick, and can be used to apply ItemStack damage, consume Energy, or what have you.default boolean
Determines 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 String
IForgeItem.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 int
IForgeItem.getBurnTime
(ItemStack stack) Deprecated.default int
IForgeItem.getBurnTime
(ItemStack itemStack, IRecipeType<?> recipeType) default ItemStack
IForgeItem.getContainerItem
(ItemStack itemStack) ItemStack sensitive version of getContainerItem.default String
IForgeItem.getCreatorModId
(ItemStack itemStack) Called to get the Mod ID of the mod that *created* the ItemStack, instead of the real Mod ID that *registered* it.default int
Return the itemDamage represented by this ItemStack.default double
IForgeItem.getDurabilityForDisplay
(ItemStack stack) Queries the percentage of the 'Durability' bar that should be drawn.default int
IForgeItem.getEntityLifespan
(ItemStack itemStack, World world) Retrieves the normal 'lifespan' of this item when it is dropped on the ground as a EntityItem.default EquipmentSlotType
IForgeItem.getEquipmentSlot
(ItemStack stack) Override this to set a non-default armor slot for an ItemStack, but do not use this to get the armor slot of said stack; for that, usenet.minecraft.entity.LivingEntity#getSlotForItemStack(ItemStack)
.default FontRenderer
IForgeItem.getFontRenderer
(ItemStack stack) Returns the font renderer used to render tooltips and overlays for this item.int
IForgeItem.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 ITextComponent
IForgeItem.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 int
IForgeItem.getItemEnchantability
(ItemStack stack) ItemStack sensitive version of getItemEnchantabilitydefault int
IForgeItem.getItemStackLimit
(ItemStack stack) Gets the maximum number of items that this stack should be able to hold.default int
IForgeItem.getMaxDamage
(ItemStack stack) Return the maxDamage for this ItemStack.default int
IForgeItem.getRGBDurabilityForDisplay
(ItemStack stack) Returns the packed int RGB value used to render the durability bar in the GUI.default CompoundNBT
IForgeItem.getShareTag
(ItemStack stack) Override this method to change the NBT data being sent to the client.default float
IForgeItem.getSmeltingExperience
(ItemStack item) Determines the base experience for a player when they remove this item from a furnace slot.default BlockState
IForgeBlock.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 BlockState
IForgeBlockState.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 float
IForgeItem.getXpRepairRatio
(ItemStack stack) Determines the amount of durability the mending enchantment will repair, on average, per point of experience.default boolean
IForgeItem.hasContainerItem
(ItemStack stack) ItemStack sensitive version of hasContainerItemdefault boolean
IForgeItem.hasCustomEntity
(ItemStack stack) Determines if this Item has a special entity for when they are in the world.default ICapabilityProvider
IForgeItem.initCapabilities
(ItemStack stack, CompoundNBT nbt) Called from ItemStack.setItem, will hold extra data for the life of this ItemStack.default boolean
IForgeItem.isBookEnchantable
(ItemStack stack, ItemStack book) Allow or forbid the specific book/item combination as an anvil enchantdefault boolean
IForgeItemStack.isBookEnchantable
(ItemStack book) Allow or forbid the specific book/item combination as an anvil enchantdefault boolean
IForgeEffectInstance.isCurativeItem
(ItemStack stack) Checks the given ItemStack to see if it is in the list of curative items for the potion effectdefault boolean
IForgeItem.isDamageable
(ItemStack stack) Used to test if this item can be damaged, but with the ItemStack in question.default boolean
Return if this itemstack is damaged.default boolean
IForgeItem.isEnderMask
(ItemStack stack, PlayerEntity player, EndermanEntity endermanEntity) Whether this Item can be used to hide player head for enderman.default boolean
IForgeItem.isPiglinCurrency
(ItemStack stack) Called by Piglins when checking to see if they will give an item or something in exchange for this item.boolean
IForgeItem.isRepairable
(ItemStack stack) Called by CraftingManager to determine if an item is reparable.default boolean
IForgeItem.isShield
(ItemStack stack, LivingEntity entity) Is this Item a shielddefault boolean
IForgeItem.makesPiglinsNeutral
(ItemStack stack, LivingEntity wearer) Called by Piglins to check if a given item prevents hostility on sight.default void
IForgeItem.onArmorTick
(ItemStack stack, World world, PlayerEntity player) Called to tick armor in the armor slot.default boolean
IForgeItem.onBlockStartBreak
(ItemStack itemstack, BlockPos pos, PlayerEntity player) Called before a block is broken.default boolean
IForgeItem.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 boolean
IForgeItem.onEntityItemUpdate
(ItemStack stack, ItemEntity entity) Called by the default implemetation of EntityItem's onUpdate method, allowing for cleaner control over the update of the item without having to write a subclass.default boolean
IForgeItem.onEntitySwing
(ItemStack stack, LivingEntity entity) Called when a entity tries to play the 'swing' animation.default void
IForgeItem.onHorseArmorTick
(ItemStack stack, World world, MobEntity horse) Called every tick fromEntityHorse#onUpdate()
on the item in the armor slot.default ActionResultType
IForgeItem.onItemUseFirst
(ItemStack stack, ItemUseContext context) This is called when the item is used, before the block is activated.default boolean
IForgeItem.onLeftClickEntity
(ItemStack stack, PlayerEntity player, Entity entity) Called when the player Left Clicks (attacks) an entity.default void
IForgeItem.onUsingTick
(ItemStack stack, LivingEntity player, int count) Called each tick while using an item.default void
IForgeItem.readShareTag
(ItemStack stack, CompoundNBT nbt) Override this method to decide what to do with the NBT data received from getNBTShareTag().default void
IForgeItem.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 void
Set the damage for this itemstack.default boolean
IForgeItem.shouldCauseBlockBreakReset
(ItemStack oldStack, ItemStack newStack) Called when the player is mining a block and the item in his hand changes.default boolean
IForgeItemStack.shouldCauseBlockBreakReset
(ItemStack newStack) Called when the player is mining a block and the item in his hand changes.default boolean
IForgeItem.shouldCauseReequipAnimation
(ItemStack oldStack, ItemStack newStack, boolean slotChanged) Determine if the player switching between these two item stacksdefault boolean
IForgeItem.showDurabilityBar
(ItemStack stack) Determines if the durability bar should be rendered for this item.Modifier and TypeMethodDescriptionvoid
IForgeEffectInstance.setCurativeItems
(List<ItemStack> curativeItems) Sets the list of curative items for this potion effect, overwriting any already present -
Uses of ItemStack in net.minecraftforge.common.loot
Modifier and TypeMethodDescriptionIGlobalLootModifier.apply
(List<ItemStack> generatedLoot, LootContext context) Applies the modifier to the list of generated loot.LootModifier.apply
(List<ItemStack> generatedLoot, LootContext context) LootModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) Applies the modifier to the generated loot (all loot conditions have already been checked and have returned true).Modifier and TypeMethodDescriptionIGlobalLootModifier.apply
(List<ItemStack> generatedLoot, LootContext context) Applies the modifier to the list of generated loot.LootModifier.apply
(List<ItemStack> generatedLoot, LootContext context) LootModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) Applies the modifier to the generated loot (all loot conditions have already been checked and have returned true). -
Uses of ItemStack in net.minecraftforge.debug.gameplay.loot
Modifier and TypeMethodDescriptionprivate static ItemStack
GlobalLootModifiersTest.SmeltingEnchantmentModifier.smelt
(ItemStack stack, LootContext context) Modifier and TypeMethodDescriptionGlobalLootModifiersTest.DungeonLootEnhancerModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.SilkTouchTestModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.SmeltingEnchantmentModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.WheatSeedsConverterModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) Modifier and TypeMethodDescriptionprivate static ItemStack
GlobalLootModifiersTest.SmeltingEnchantmentModifier.smelt
(ItemStack stack, LootContext context) Modifier and TypeMethodDescriptionGlobalLootModifiersTest.DungeonLootEnhancerModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.SilkTouchTestModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.SmeltingEnchantmentModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) GlobalLootModifiersTest.WheatSeedsConverterModifier.doApply
(List<ItemStack> generatedLoot, LootContext context) -
Uses of ItemStack in net.minecraftforge.debug.item
Modifier and TypeMethodDescriptionboolean
CustomElytraTest.CustomElytra.canElytraFly
(ItemStack stack, LivingEntity entity) boolean
CustomElytraTest.CustomElytra.elytraFlightTick
(ItemStack stack, LivingEntity entity, int flightTicks) CustomElytraTest.CustomElytraLayer.getElytraTexture
(ItemStack stack, AbstractClientPlayerEntity entity) CustomElytraTest.CustomElytra.getEquipmentSlot
(ItemStack stack) boolean
CustomElytraTest.CustomElytraLayer.shouldRender
(ItemStack stack, AbstractClientPlayerEntity entity) -
Uses of ItemStack in net.minecraftforge.event
Modifier and TypeFieldDescriptionprivate final ItemStack
AnvilUpdateEvent.left
private ItemStack
AnvilUpdateEvent.output
private final ItemStack
AnvilUpdateEvent.right
private final ItemStack
ItemAttributeModifierEvent.stack
Modifier 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 ItemStack
ForgeEventFactory.onItemUseFinish
(LivingEntity entity, ItemStack item, int duration, ItemStack result) Modifier 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) Modifier and TypeMethodDescriptionstatic int
ForgeEventFactory.getItemBurnTime
(ItemStack itemStack, int burnTime) Deprecated.static int
ForgeEventFactory.getItemBurnTime
(ItemStack itemStack, int burnTime, IRecipeType<?> recipeType) static int
ForgeEventFactory.onApplyBonemeal
(PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack) static int
ForgeEventFactory.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 int
ForgeEventFactory.onEnchantmentLevelSet
(World world, BlockPos pos, int enchantRow, int power, ItemStack itemStack, int level) static int
ForgeEventFactory.onItemExpire
(ItemEntity entity, ItemStack item) static ItemTooltipEvent
ForgeEventFactory.onItemTooltip
(ItemStack itemStack, PlayerEntity entityPlayer, List<ITextComponent> list, ITooltipFlag flags) static ItemStack
ForgeEventFactory.onItemUseFinish
(LivingEntity entity, ItemStack item, int duration, ItemStack result) static int
ForgeEventFactory.onItemUseStart
(LivingEntity entity, ItemStack item, int duration) static int
ForgeEventFactory.onItemUseTick
(LivingEntity entity, ItemStack item, int duration) static void
ForgeEventFactory.onPlayerBrewedPotion
(PlayerEntity player, ItemStack stack) static void
ForgeEventFactory.onPlayerDestroyItem
(PlayerEntity player, ItemStack stack, Hand hand) static BlockState
ForgeEventFactory.onToolUse
(BlockState originalState, World world, BlockPos pos, PlayerEntity player, ItemStack stack, ToolType toolType) static boolean
ForgeEventFactory.onUseItemStop
(LivingEntity entity, ItemStack item, int duration) void
Sets the output slot to a specific itemstack.Modifier and TypeMethodDescriptionstatic boolean
ForgeEventFactory.onPotionAttemptBrew
(NonNullList<ItemStack> stacks) static void
ForgeEventFactory.onPotionBrewed
(NonNullList<ItemStack> brewingItemStacks) ModifierConstructorDescriptionAnvilUpdateEvent
(ItemStack left, ItemStack right, String name, int cost) 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
Modifier and TypeMethodDescriptionPotionBrewEvent.getItem
(int index) PlayerBrewedPotionEvent.getStack()
The ItemStack of the potion.ModifierConstructorDescriptionPost
(NonNullList<ItemStack> stacks) protected
PotionBrewEvent
(NonNullList<ItemStack> stacks) Pre
(NonNullList<ItemStack> stacks) -
Uses of ItemStack in net.minecraftforge.event.enchanting
Modifier and TypeMethodDescriptionEnchantmentLevelSetEvent.getItem()
Get the item being enchantedModifierConstructorDescriptionEnchantmentLevelSetEvent
(World world, BlockPos pos, int enchantRow, int power, ItemStack itemStack, int level) -
Uses of ItemStack in net.minecraftforge.event.entity.living
Modifier and TypeFieldDescriptionprivate final ItemStack
LivingEquipmentChangeEvent.from
private final ItemStack
LivingEntityUseItemEvent.item
private ItemStack
LivingEntityUseItemEvent.Finish.result
private final ItemStack
LivingEquipmentChangeEvent.to
Modifier and TypeMethodDescriptionLivingEquipmentChangeEvent.getFrom()
LivingEntityUseItemEvent.getItem()
LivingEntityUseItemEvent.Finish.getResultStack()
LivingEquipmentChangeEvent.getTo()
Modifier and TypeMethodDescriptionvoid
LivingEntityUseItemEvent.Finish.setResultStack
(ItemStack result) ModifierConstructorDescriptionFinish
(LivingEntity entity, ItemStack item, int duration, ItemStack result) private
LivingEntityUseItemEvent
(LivingEntity entity, ItemStack item, int duration) LivingEquipmentChangeEvent
(LivingEntity entity, 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
Modifier and TypeFieldDescriptionprivate final ItemStack
ArrowLooseEvent.bow
private final ItemStack
ArrowNockEvent.bow
private final ItemStack
PlayerEvent.ItemCraftedEvent.crafting
private final ItemStack
FillBucketEvent.current
private final ItemStack
ItemTooltipEvent.itemStack
private final ItemStack
AnvilRepairEvent.left
private final ItemStack
PlayerDestroyItemEvent.original
private final ItemStack
AnvilRepairEvent.output
private ItemStack
FillBucketEvent.result
private final ItemStack
AnvilRepairEvent.right
private final ItemStack
PlayerEvent.ItemSmeltedEvent.smelting
private final ItemStack
BonemealEvent.stack
private final ItemStack
PlayerEvent.ItemPickupEvent.stack
Clone item stack, containing the item and amount picked upModifier and TypeFieldDescriptionprivate ActionResult<ItemStack>
ArrowNockEvent.action
private final NonNullList<ItemStack>
ItemFishedEvent.stacks
Modifier and TypeMethodDescriptionArrowLooseEvent.getBow()
ArrowNockEvent.getBow()
PlayerEvent.ItemCraftedEvent.getCrafting()
FillBucketEvent.getEmptyBucket()
FillBucketEvent.getFilledBucket()
AnvilRepairEvent.getIngredientInput()
Get the second item input into the anvilAnvilRepairEvent.getItemInput()
Get the first item input into the anvilAnvilRepairEvent.getItemResult()
Get the output result from the anvilItemTooltipEvent.getItemStack()
TheItemStack
with the tooltip.PlayerInteractEvent.getItemStack()
PlayerDestroyItemEvent.getOriginal()
PlayerEvent.ItemSmeltedEvent.getSmelting()
BonemealEvent.getStack()
PlayerEvent.ItemPickupEvent.getStack()
Modifier and TypeMethodDescriptionArrowNockEvent.getAction()
ItemFishedEvent.getDrops()
Use this to get the items the player will receive.ModifierConstructorDescriptionAnvilRepairEvent
(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) ModifierConstructorDescriptionItemFishedEvent
(List<ItemStack> stacks, int rodDamage, FishingBobberEntity hook) -
Uses of ItemStack in net.minecraftforge.event.furnace
Modifier and TypeMethodDescriptionFurnaceFuelBurnTimeEvent.getItemStack()
Get the ItemStack "fuel" in question.ModifierConstructorDescriptionFurnaceFuelBurnTimeEvent
(ItemStack itemStack, int burnTime) Deprecated.FurnaceFuelBurnTimeEvent
(ItemStack itemStack, int burnTime, IRecipeType<?> recipeType) -
Uses of ItemStack in net.minecraftforge.event.world
Modifier and TypeMethodDescriptionBlockEvent.BlockToolInteractEvent.getHeldItemStack()
Gets the tool being used.ModifierConstructorDescriptionBlockToolInteractEvent
(IWorld world, BlockPos pos, BlockState originalState, PlayerEntity player, ItemStack stack, ToolType toolType) -
Uses of ItemStack in net.minecraftforge.fluids
Modifier and TypeMethodDescriptionprivate ItemStack
DispenseFluidContainer.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 ItemStack
DispenseFluidContainer.fillContainer
(IBlockSource source, ItemStack stack) Picks up fluid in front of a Dispenser and fills a container with it.FluidAttributes.getBucket
(FluidStack stack) static ItemStack
FluidUtil.getFilledBucket
(FluidStack fluidStack) FluidActionResult.getResult()
Modifier and TypeMethodDescriptionprivate ItemStack
DispenseFluidContainer.dumpContainer
(IBlockSource source, ItemStack stack) Drains a filled container and places the fluid in front of the Dispenser.DispenseFluidContainer.execute
(IBlockSource source, ItemStack stack) private ItemStack
DispenseFluidContainer.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 anIFluidHandlerItem
for an itemStack.boolean
FluidStack.isFluidEqual
(ItemStack other) Determines if the FluidIDs and NBT Tags are equal compared to a registered container ItemStack.static FluidActionResult
FluidUtil.tryEmptyContainer
(ItemStack container, IFluidHandler fluidDestination, int maxAmount, PlayerEntity player, boolean doDrain) Takes a filled container and tries to empty it into the given tank.static FluidActionResult
FluidUtil.tryEmptyContainerAndStow
(ItemStack container, IFluidHandler fluidDestination, IItemHandler inventory, int maxAmount, 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 FluidActionResult
FluidUtil.tryFillContainer
(ItemStack container, IFluidHandler fluidSource, int maxAmount, PlayerEntity player, boolean doFill) Fill a container from the given fluidSource.static FluidActionResult
FluidUtil.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 FluidActionResult
FluidUtil.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 FluidActionResult
FluidUtil.tryPlaceFluid
(PlayerEntity player, World world, Hand hand, BlockPos pos, ItemStack container, FluidStack resource) ItemStack version ofFluidUtil.tryPlaceFluid(PlayerEntity, World, Hand, BlockPos, IFluidHandler, FluidStack)
.ModifierConstructorDescriptionprivate
FluidActionResult
(boolean success, ItemStack result) FluidActionResult
(ItemStack result) -
Uses of ItemStack in net.minecraftforge.fluids.capability
Modifier and TypeMethodDescriptionIFluidHandlerItem.getContainer()
Get the container currently acted on by this fluid handler.Modifier and TypeMethodDescriptionItemFluidContainer.initCapabilities
(ItemStack stack, CompoundNBT nbt) -
Uses of ItemStack in net.minecraftforge.fluids.capability.templates
Modifier and TypeFieldDescriptionprotected ItemStack
FluidHandlerItemStack.container
protected ItemStack
FluidHandlerItemStackSimple.container
protected final ItemStack
FluidHandlerItemStack.SwapEmpty.emptyContainer
protected final ItemStack
FluidHandlerItemStackSimple.SwapEmpty.emptyContainer
Modifier and TypeMethodDescriptionFluidHandlerItemStack.getContainer()
FluidHandlerItemStackSimple.getContainer()
ModifierConstructorDescriptionConsumable
(ItemStack container, int capacity) Consumable
(ItemStack container, int capacity) FluidHandlerItemStack
(ItemStack container, int capacity) FluidHandlerItemStackSimple
(ItemStack container, int capacity) -
Uses of ItemStack in net.minecraftforge.fluids.capability.wrappers
-
Uses of ItemStack in net.minecraftforge.fml.client.gui
Modifier and TypeMethodDescriptionstatic void
GuiUtils.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 void
GuiUtils.drawHoveringText
(ItemStack stack, MatrixStack mStack, List<? extends ITextProperties> textLines, int mouseX, int mouseY, int screenWidth, int screenHeight, int maxTextWidth, FontRenderer font) static void
GuiUtils.preItemToolTip
(ItemStack stack) Must be called fromGuiScreen.renderToolTip
beforeGuiScreen.drawHoveringText
is called. -
Uses of ItemStack in net.minecraftforge.fml.hooks
Modifier and TypeMethodDescriptionstatic void
BasicEventHooks.firePlayerCraftingEvent
(PlayerEntity player, ItemStack crafted, IInventory craftMatrix) static void
BasicEventHooks.firePlayerItemPickupEvent
(PlayerEntity player, ItemEntity item, ItemStack clone) static void
BasicEventHooks.firePlayerSmeltedEvent
(PlayerEntity player, ItemStack smelted) -
Uses of ItemStack in net.minecraftforge.items
Modifier and TypeMethodDescriptionstatic ItemStack
ItemHandlerHelper.copyStackWithSize
(ItemStack itemStack, int size) IItemHandler.extractItem
(int slot, int amount, boolean simulate) Extracts an ItemStack from the given slot.ItemStackHandler.extractItem
(int slot, int amount, boolean simulate) SlotItemHandler.getItem()
IItemHandler.getStackInSlot
(int slot) Returns the ItemStack in a given slot.ItemStackHandler.getStackInSlot
(int slot) IItemHandler.insertItem
(int slot, ItemStack stack, boolean simulate) Inserts an ItemStack into the given slot and return the remainder.static ItemStack
ItemHandlerHelper.insertItem
(IItemHandler dest, ItemStack stack, boolean simulate) ItemStackHandler.insertItem
(int slot, ItemStack stack, boolean simulate) VanillaHopperItemHandler.insertItem
(int slot, ItemStack stack, boolean simulate) static ItemStack
ItemHandlerHelper.insertItemStacked
(IItemHandler inventory, ItemStack stack, boolean simulate) Inserts the ItemStack into the inventory, filling up already present stacks first.private static ItemStack
VanillaInventoryCodeHooks.insertStack
(TileEntity source, Object destination, IItemHandler destInventory, ItemStack stack, int slot) Copied from TileEntityHopper#insertStack and added capability supportprivate static ItemStack
VanillaInventoryCodeHooks.putStackInInventoryAllSlots
(TileEntity source, Object destination, IItemHandler destInventory, ItemStack stack) SlotItemHandler.remove
(int amount) Modifier and TypeMethodDescriptionstatic boolean
ItemHandlerHelper.canItemStacksStack
(ItemStack a, ItemStack b) static boolean
ItemHandlerHelper.canItemStacksStackRelaxed
(ItemStack a, ItemStack b) A relaxed version of canItemStacksStack that stacks itemstacks with different metadata if they don't have subtypes.static ItemStack
ItemHandlerHelper.copyStackWithSize
(ItemStack itemStack, int size) static boolean
VanillaInventoryCodeHooks.dropperInsertHook
(World world, BlockPos pos, DispenserTileEntity dropper, int slot, ItemStack stack) Copied from BlockDropper#dispense and added capability supportint
SlotItemHandler.getMaxStackSize
(ItemStack stack) protected int
ItemStackHandler.getStackLimit
(int slot, ItemStack stack) static void
ItemHandlerHelper.giveItemToPlayer
(PlayerEntity player, ItemStack stack) giveItemToPlayer without preferred slotstatic void
ItemHandlerHelper.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 ItemStack
ItemHandlerHelper.insertItem
(IItemHandler dest, ItemStack stack, boolean simulate) ItemStackHandler.insertItem
(int slot, ItemStack stack, boolean simulate) VanillaHopperItemHandler.insertItem
(int slot, ItemStack stack, boolean simulate) static ItemStack
ItemHandlerHelper.insertItemStacked
(IItemHandler inventory, ItemStack stack, boolean simulate) Inserts the ItemStack into the inventory, filling up already present stacks first.private static ItemStack
VanillaInventoryCodeHooks.insertStack
(TileEntity source, Object destination, IItemHandler destInventory, ItemStack stack, int slot) Copied from TileEntityHopper#insertStack and added capability supportboolean
IItemHandler.isItemValid
(int slot, ItemStack stack) This function re-implements the vanilla functionIInventory#isItemValidForSlot(int, ItemStack)
.boolean
ItemStackHandler.isItemValid
(int slot, ItemStack stack) boolean
void
SlotItemHandler.onQuickCraft
(ItemStack oldStackIn, ItemStack newStackIn) private static ItemStack
VanillaInventoryCodeHooks.putStackInInventoryAllSlots
(TileEntity source, Object destination, IItemHandler destInventory, ItemStack stack) void
void
IItemHandlerModifiable.setStackInSlot
(int slot, ItemStack stack) Overrides the stack in the given slot.void
ItemStackHandler.setStackInSlot
(int slot, ItemStack stack) -
Uses of ItemStack in net.minecraftforge.items.wrapper
Modifier and TypeMethodDescriptionCombinedInvWrapper.extractItem
(int slot, int amount, boolean simulate) EmptyHandler.extractItem
(int slot, int amount, boolean simulate) EntityEquipmentInvWrapper.extractItem
(int slot, int amount, boolean simulate) InvWrapper.extractItem
(int slot, int amount, boolean simulate) RangedWrapper.extractItem
(int slot, int amount, boolean simulate) SidedInvWrapper.extractItem
(int slot, int amount, boolean simulate) RecipeWrapper.getItem
(int slot) Returns the stack in this slot.CombinedInvWrapper.getStackInSlot
(int slot) EmptyHandler.getStackInSlot
(int slot) EntityEquipmentInvWrapper.getStackInSlot
(int slot) InvWrapper.getStackInSlot
(int slot) RangedWrapper.getStackInSlot
(int slot) SidedInvWrapper.getStackInSlot
(int slot) CombinedInvWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) EmptyHandler.insertItem
(int slot, ItemStack stack, boolean simulate) EntityEquipmentInvWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) InvWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) PlayerArmorInvWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) PlayerMainInvWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) RangedWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) SidedInvWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) RecipeWrapper.removeItem
(int slot, int count) Attempts to remove n items from the specified slot.RecipeWrapper.removeItemNoUpdate
(int index) Removes the stack contained in this slot from the underlying handler, and returns it.Modifier and TypeMethodDescriptionboolean
RecipeWrapper.canPlaceItem
(int slot, ItemStack stack) protected int
EntityEquipmentInvWrapper.getStackLimit
(int slot, ItemStack stack) CombinedInvWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) EmptyHandler.insertItem
(int slot, ItemStack stack, boolean simulate) EntityEquipmentInvWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) InvWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) PlayerArmorInvWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) PlayerMainInvWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) RangedWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) SidedInvWrapper.insertItem
(int slot, ItemStack stack, boolean simulate) boolean
CombinedInvWrapper.isItemValid
(int slot, ItemStack stack) boolean
EmptyHandler.isItemValid
(int slot, ItemStack stack) boolean
EntityEquipmentInvWrapper.isItemValid
(int slot, ItemStack stack) boolean
InvWrapper.isItemValid
(int slot, ItemStack stack) boolean
RangedWrapper.isItemValid
(int slot, ItemStack stack) boolean
SidedInvWrapper.isItemValid
(int slot, ItemStack stack) private void
SidedInvWrapper.setInventorySlotContents
(int slot, ItemStack stack) void
Sets the contents of this slot to the provided stack.void
CombinedInvWrapper.setStackInSlot
(int slot, ItemStack stack) void
EmptyHandler.setStackInSlot
(int slot, ItemStack stack) void
EntityEquipmentInvWrapper.setStackInSlot
(int slot, ItemStack stack) void
InvWrapper.setStackInSlot
(int slot, ItemStack stack) void
RangedWrapper.setStackInSlot
(int slot, ItemStack stack) void
SidedInvWrapper.setStackInSlot
(int slot, ItemStack stack)
ForgeHooks.modifyLoot(ResourceLocation, List, LootContext)
instead.