Uses of Class
net.minecraft.item.ItemStack
-
-
Uses of ItemStack in net.minecraft.advancements
Fields in net.minecraft.advancements declared as ItemStack Modifier and Type Field Description private ItemStack
DisplayInfo. icon
Methods in net.minecraft.advancements that return ItemStack Modifier and Type Method Description ItemStack
DisplayInfo. getIcon()
private static ItemStack
DisplayInfo. getIcon(com.google.gson.JsonObject p_193221_0_)
Methods in net.minecraft.advancements with parameters of type ItemStack Modifier and Type Method Description Advancement.Builder
Advancement.Builder. display(ItemStack p_215092_1_, ITextComponent p_215092_2_, ITextComponent p_215092_3_, ResourceLocation p_215092_4_, FrameType p_215092_5_, boolean p_215092_6_, boolean p_215092_7_, boolean p_215092_8_)
Constructors in net.minecraft.advancements with parameters of type ItemStack Constructor Description DisplayInfo(ItemStack p_i47586_1_, ITextComponent p_i47586_2_, ITextComponent p_i47586_3_, ResourceLocation p_i47586_4_, FrameType p_i47586_5_, boolean p_i47586_6_, boolean p_i47586_7_, boolean p_i47586_8_)
-
Uses of ItemStack in net.minecraft.advancements.criterion
Methods in net.minecraft.advancements.criterion with parameters of type ItemStack Modifier and Type Method Description boolean
BeeNestDestroyedTrigger.Instance. matches(Block p_226228_1_, ItemStack p_226228_2_, int p_226228_3_)
boolean
ConsumeItemTrigger.Instance. matches(ItemStack p_193193_1_)
boolean
EnchantedItemTrigger.Instance. matches(ItemStack p_192257_1_, int p_192257_2_)
boolean
FilledBucketTrigger.Instance. matches(ItemStack p_204826_1_)
boolean
FishingRodHookedTrigger.Instance. matches(ItemStack p_234659_1_, LootContext p_234659_2_, java.util.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
ItemDurabilityTrigger.Instance. matches(ItemStack p_193197_1_, int p_193197_2_)
boolean
ItemPredicate. matches(ItemStack p_192493_1_)
boolean
NBTPredicate. matches(ItemStack p_193478_1_)
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
ShotCrossbowTrigger.Instance. matches(ItemStack p_215121_1_)
boolean
ThrownItemPickedUpByEntityTrigger.Instance. matches(ServerPlayerEntity p_234836_1_, ItemStack p_234836_2_, LootContext p_234836_3_)
boolean
UsedTotemTrigger.Instance. matches(ItemStack p_193218_1_)
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_, java.util.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_)
Method parameters in net.minecraft.advancements.criterion with type arguments of type ItemStack Modifier and Type Method Description boolean
FishingRodHookedTrigger.Instance. matches(ItemStack p_234659_1_, LootContext p_234659_2_, java.util.Collection<ItemStack> p_234659_3_)
void
FishingRodHookedTrigger. trigger(ServerPlayerEntity p_204820_1_, ItemStack p_204820_2_, FishingBobberEntity p_204820_3_, java.util.Collection<ItemStack> p_204820_4_)
-
Uses of ItemStack in net.minecraft.block
Methods in net.minecraft.block that return ItemStack Modifier and Type Method Description ItemStack
AbstractBannerBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
AbstractBodyPlantBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
AttachedStemBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
BambooSaplingBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
Block. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
Deprecated.ItemStack
CropsBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
EndGatewayBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
EndPortalBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
FlowerPotBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
FrostedIceBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
MovingPistonBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
NetherPortalBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
NetherWartBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
PistonHeadBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
ShulkerBoxBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
SpawnerBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
StemBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
SweetBerryBushBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
ItemStack
TallSeaGrassBlock. getCloneItemStack(IBlockReader p_185473_1_, BlockPos p_185473_2_, BlockState p_185473_3_)
static ItemStack
ShulkerBoxBlock. getColoredItemStack(DyeColor p_190953_0_)
Methods in net.minecraft.block that return types with arguments of type ItemStack Modifier and Type Method Description java.util.List<ItemStack>
AbstractBlock.AbstractBlockState. getDrops(LootContext.Builder p_215693_1_)
java.util.List<ItemStack>
AbstractBlock. getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_)
Deprecated.java.util.List<ItemStack>
BeehiveBlock. getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_)
static java.util.List<ItemStack>
Block. getDrops(BlockState p_220070_0_, ServerWorld p_220070_1_, BlockPos p_220070_2_, TileEntity p_220070_3_)
static java.util.List<ItemStack>
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_)
java.util.List<ItemStack>
FlowingFluidBlock. getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_)
java.util.List<ItemStack>
MovingPistonBlock. getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_)
java.util.List<ItemStack>
ShulkerBoxBlock. getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_)
java.util.List<ItemStack>
SkullWallPlayerBlock. getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_)
Methods in net.minecraft.block with parameters of type ItemStack Modifier and Type Method Description private 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_, java.util.List<ITextComponent> p_190948_3_, ITooltipFlag p_190948_4_)
void
ShulkerBoxBlock. appendHoverText(ItemStack p_190948_1_, IBlockReader p_190948_2_, java.util.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_)
static java.util.List<ItemStack>
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_)
Method parameters in net.minecraft.block with type arguments of type ItemStack Modifier and Type Method Description void
Block. fillItemCategory(ItemGroup p_149666_1_, NonNullList<ItemStack> p_149666_2_)
Constructors in net.minecraft.block with parameters of type ItemStack Constructor Description FullInventory(BlockState p_i50463_1_, IWorld p_i50463_2_, BlockPos p_i50463_3_, ItemStack p_i50463_4_)
-
Uses of ItemStack in net.minecraft.client
Methods in net.minecraft.client that return ItemStack Modifier and Type Method Description ItemStack
Minecraft. addCustomNbtData(ItemStack p_184119_1_, TileEntity p_184119_2_)
Methods in net.minecraft.client with parameters of type ItemStack Modifier and Type Method Description ItemStack
Minecraft. addCustomNbtData(ItemStack p_184119_1_, TileEntity p_184119_2_)
-
Uses of ItemStack in net.minecraft.client.entity.player
Methods in net.minecraft.client.entity.player with parameters of type ItemStack Modifier and Type Method Description void
ClientPlayerEntity. openItemGui(ItemStack p_184814_1_, Hand p_184814_2_)
-
Uses of ItemStack in net.minecraft.client.gui
Fields in net.minecraft.client.gui declared as ItemStack Modifier and Type Field Description protected ItemStack
IngameGui. lastToolHighlight
Methods in net.minecraft.client.gui with parameters of type ItemStack Modifier and Type Method Description private 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
Fields in net.minecraft.client.gui.advancements declared as ItemStack Modifier and Type Field Description private ItemStack
AdvancementTabGui. icon
Methods in net.minecraft.client.gui.advancements with parameters of type ItemStack Modifier and Type Method Description void
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
Fields in net.minecraft.client.gui.recipebook declared as ItemStack Modifier and Type Field Description ItemStack[]
RecipeOverlayGui.RecipeButtonWidget.Child. ingredients
Methods in net.minecraft.client.gui.recipebook that return ItemStack Modifier and Type Method Description ItemStack
GhostRecipe.GhostIngredient. getItem()
Constructors in net.minecraft.client.gui.recipebook with parameters of type ItemStack Constructor Description Child(int p_i48748_2_, int p_i48748_3_, ItemStack[] p_i48748_4_)
-
Uses of ItemStack in net.minecraft.client.gui.screen
Fields in net.minecraft.client.gui.screen declared as ItemStack Modifier and Type Field Description private ItemStack
LoomScreen. bannerStack
private ItemStack
EditBookScreen. book
private ItemStack
LoomScreen. dyeStack
private ItemStack
EnchantmentScreen. last
private ItemStack
LoomScreen. patternStack
(package private) ItemStack
GamemodeSelectionScreen.Mode. renderStack
Methods in net.minecraft.client.gui.screen with parameters of type ItemStack Modifier and Type Method Description private void
CreateFlatWorldScreen.DetailsList.LayerEntry. blitSlot(MatrixStack p_238605_1_, int p_238605_2_, int p_238605_3_, ItemStack p_238605_4_)
static ReadBookScreen.IBookInfo
ReadBookScreen.IBookInfo. fromItem(ItemStack p_216917_0_)
java.util.List<ITextComponent>
Screen. getTooltipFromItem(ItemStack p_231151_1_)
private static java.util.List<java.lang.String>
ReadBookScreen.UnwrittenBookInfo. readPages(ItemStack p_216919_0_)
private static java.util.List<java.lang.String>
ReadBookScreen.WrittenBookInfo. readPages(ItemStack p_216921_0_)
protected void
Screen. renderTooltip(MatrixStack p_230457_1_, ItemStack p_230457_2_, int p_230457_3_, int p_230457_4_)
Constructors in net.minecraft.client.gui.screen with parameters of type ItemStack Constructor Description EditBookScreen(PlayerEntity p_i51100_1_, ItemStack p_i51100_2_, Hand p_i51100_3_)
Mode(ITextComponent p_i232285_3_, java.lang.String p_i232285_4_, ItemStack p_i232285_5_)
UnwrittenBookInfo(ItemStack p_i50617_1_)
WrittenBookInfo(ItemStack p_i50616_1_)
-
Uses of ItemStack in net.minecraft.client.gui.screen.inventory
Fields in net.minecraft.client.gui.screen.inventory declared as ItemStack Modifier and Type Field Description private ItemStack
ContainerScreen. draggingItem
private ItemStack
ContainerScreen. lastQuickMoved
private ItemStack
ContainerScreen. snapbackItem
Fields in net.minecraft.client.gui.screen.inventory with type parameters of type ItemStack Modifier and Type Field Description NonNullList<ItemStack>
CreativeScreen.CreativeContainer. items
Methods in net.minecraft.client.gui.screen.inventory that return ItemStack Modifier and Type Method Description ItemStack
CreativeScreen.CreativeSlot. getItem()
ItemStack
CreativeScreen.CreativeSlot. onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_)
ItemStack
CreativeScreen.CreativeContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
CreativeScreen.CreativeSlot. remove(int p_75209_1_)
Methods in net.minecraft.client.gui.screen.inventory with parameters of type ItemStack Modifier and Type Method Description boolean
CreativeScreen.CreativeContainer. canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_)
int
CreativeScreen.CreativeSlot. getMaxStackSize(ItemStack p_178170_1_)
boolean
CreativeScreen.CreativeSlot. mayPlace(ItemStack p_75214_1_)
ItemStack
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_, java.lang.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
CreativeScreen.CreativeSlot. set(ItemStack p_75215_1_)
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_)
Method parameters in net.minecraft.client.gui.screen.inventory with type arguments of type ItemStack Modifier and Type Method Description void
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
Fields in net.minecraft.client.multiplayer declared as ItemStack Modifier and Type Field Description private ItemStack
PlayerController. destroyingItem
Methods in net.minecraft.client.multiplayer that return ItemStack Modifier and Type Method Description ItemStack
PlayerController. handleInventoryMouseClick(int p_187098_1_, int p_187098_2_, int p_187098_3_, ClickType p_187098_4_, PlayerEntity p_187098_5_)
Methods in net.minecraft.client.multiplayer with parameters of type ItemStack Modifier and Type Method Description void
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
Methods in net.minecraft.client.network.play that return ItemStack Modifier and Type Method Description private static ItemStack
ClientPlayNetHandler. findTotem(PlayerEntity p_217282_0_)
-
Uses of ItemStack in net.minecraft.client.particle
Constructors in net.minecraft.client.particle with parameters of type ItemStack Constructor Description 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_)
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
Fields in net.minecraft.client.renderer declared as ItemStack Modifier and Type Field Description private ItemStack
GameRenderer. itemActivationItem
private ItemStack
FirstPersonRenderer. mainHandItem
private ItemStack
FirstPersonRenderer. offHandItem
Methods in net.minecraft.client.renderer with parameters of type ItemStack Modifier and Type Method Description private 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_)
IBakedModel
ItemModelMesher. getItemModel(ItemStack p_178089_1_)
IBakedModel
ItemRenderer. getModel(ItemStack p_184393_1_, World p_184393_2_, LivingEntity p_184393_3_)
TextureAtlasSprite
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_, java.lang.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_, java.util.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
Methods in net.minecraft.client.renderer.color with parameters of type ItemStack Modifier and Type Method Description int
IItemColor. getColor(ItemStack p_getColor_1_, int p_getColor_2_)
int
ItemColors. getColor(ItemStack p_186728_1_, int p_186728_2_)
-
Uses of ItemStack in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity with parameters of type ItemStack Modifier and Type Method Description protected int
ItemRenderer. getRenderAmount(ItemStack p_177078_1_)
-
Uses of ItemStack in net.minecraft.client.renderer.entity.layers
Methods in net.minecraft.client.renderer.entity.layers with parameters of type ItemStack Modifier and Type Method Description protected A
BipedArmorLayer. getArmorModelHook(T entity, ItemStack itemStack, EquipmentSlotType slot, A model)
Hook to allow item-sensitive armor model.ResourceLocation
BipedArmorLayer. getArmorResource(Entity entity, ItemStack stack, EquipmentSlotType slot, java.lang.String type)
More generic ForgeHook version of the above function, it allows for Items to have more control over what texture they provide.ResourceLocation
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
Methods in net.minecraft.client.renderer.model with parameters of type ItemStack Modifier and Type Method Description IBakedModel
ItemOverrideList. 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
Methods in net.minecraft.client.renderer.tileentity with parameters of type ItemStack Modifier and Type Method Description void
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
Fields in net.minecraft.client.settings with type parameters of type ItemStack Modifier and Type Field Description private NonNullList<ItemStack>
HotbarSnapshot. items
Methods in net.minecraft.client.settings that return types with arguments of type ItemStack Modifier and Type Method Description protected java.util.List<ItemStack>
HotbarSnapshot. delegate()
-
Uses of ItemStack in net.minecraft.client.tutorial
Methods in net.minecraft.client.tutorial with parameters of type ItemStack Modifier and Type Method Description void
CraftPlanksStep. onGetItem(ItemStack p_193252_1_)
void
FindTreeStep. onGetItem(ItemStack p_193252_1_)
default void
ITutorialStep. onGetItem(ItemStack p_193252_1_)
void
PunchTreeStep. onGetItem(ItemStack p_193252_1_)
void
Tutorial. onGetItem(ItemStack p_193301_1_)
-
Uses of ItemStack in net.minecraft.client.util
Fields in net.minecraft.client.util with type parameters of type ItemStack Modifier and Type Field Description static SearchTreeManager.Key<ItemStack>
SearchTreeManager. CREATIVE_NAMES
static SearchTreeManager.Key<ItemStack>
SearchTreeManager. CREATIVE_TAGS
private java.util.List<ItemStack>
RecipeBookCategories. itemIcons
Methods in net.minecraft.client.util that return types with arguments of type ItemStack Modifier and Type Method Description java.util.List<ItemStack>
RecipeBookCategories. getIconItems()
Constructors in net.minecraft.client.util with parameters of type ItemStack Constructor Description RecipeBookCategories(ItemStack... p_i48836_3_)
-
Uses of ItemStack in net.minecraft.command.arguments
Methods in net.minecraft.command.arguments that return ItemStack Modifier and Type Method Description ItemStack
ItemInput. createItemStack(int p_197320_1_, boolean p_197320_2_)
Methods in net.minecraft.command.arguments that return types with arguments of type ItemStack Modifier and Type Method Description java.util.function.Predicate<ItemStack>
ItemPredicateArgument.IResult. create(com.mojang.brigadier.context.CommandContext<CommandSource> p_create_1_)
static java.util.function.Predicate<ItemStack>
ItemPredicateArgument. getItemPredicate(com.mojang.brigadier.context.CommandContext<CommandSource> p_199847_0_, java.lang.String p_199847_1_)
Methods in net.minecraft.command.arguments with parameters of type ItemStack Modifier and Type Method Description boolean
ItemInput. test(ItemStack p_test_1_)
boolean
ItemPredicateArgument.ItemPredicate. test(ItemStack p_test_1_)
boolean
ItemPredicateArgument.TagPredicate. test(ItemStack p_test_1_)
-
Uses of ItemStack in net.minecraft.command.impl
Methods in net.minecraft.command.impl that return ItemStack Modifier and Type Method Description private static ItemStack
LootCommand. getSourceHandItem(CommandSource p_218872_0_, EquipmentSlotType p_218872_1_)
Methods in net.minecraft.command.impl with parameters of type ItemStack Modifier and Type Method Description private 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_, java.util.Collection<? extends Entity> p_198604_1_, int p_198604_2_, ItemStack p_198604_3_)
Method parameters in net.minecraft.command.impl with type arguments of type ItemStack Modifier and Type Method Description void
LootCommand.ISuccessListener. accept(java.util.List<ItemStack> p_accept_1_)
int
LootCommand.ITargetHandler. accept(com.mojang.brigadier.context.CommandContext<CommandSource> p_accept_1_, java.util.List<ItemStack> p_accept_2_, LootCommand.ISuccessListener p_accept_3_)
private static int
LootCommand. blockDistribute(CommandSource p_218900_0_, BlockPos p_218900_1_, java.util.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_, java.util.List<ItemStack> p_218894_4_, LootCommand.ISuccessListener p_218894_5_)
private static void
LootCommand. callback(CommandSource p_218875_0_, java.util.List<ItemStack> p_218875_1_)
private static void
LootCommand. callback(CommandSource p_218860_0_, java.util.List<ItemStack> p_218860_1_, ResourceLocation p_218860_2_)
private static int
ClearCommand. clearInventory(CommandSource p_198244_0_, java.util.Collection<ServerPlayerEntity> p_198244_1_, java.util.function.Predicate<ItemStack> p_198244_2_, int p_198244_3_)
private static int
LootCommand. dropInWorld(CommandSource p_218881_0_, Vector3d p_218881_1_, java.util.List<ItemStack> p_218881_2_, LootCommand.ISuccessListener p_218881_3_)
private static int
LootCommand. entityReplace(java.util.Collection<? extends Entity> p_218865_0_, int p_218865_1_, int p_218865_2_, java.util.List<ItemStack> p_218865_3_, LootCommand.ISuccessListener p_218865_4_)
private static int
LootCommand. playerGive(java.util.Collection<ServerPlayerEntity> p_218859_0_, java.util.List<ItemStack> p_218859_1_, LootCommand.ISuccessListener p_218859_2_)
private static void
LootCommand. setSlots(Entity p_218901_0_, java.util.List<ItemStack> p_218901_1_, int p_218901_2_, int p_218901_3_, java.util.List<ItemStack> p_218901_4_)
-
Uses of ItemStack in net.minecraft.dispenser
Methods in net.minecraft.dispenser that return ItemStack Modifier and Type Method Description ItemStack
DefaultDispenseItemBehavior. dispense(IBlockSource p_dispense_1_, ItemStack p_dispense_2_)
ItemStack
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_)
ItemStack
DispenseBoatBehavior. execute(IBlockSource p_82487_1_, ItemStack p_82487_2_)
ItemStack
ProjectileDispenseBehavior. execute(IBlockSource p_82487_1_, ItemStack p_82487_2_)
protected ItemStack
ShulkerBoxDispenseBehavior. execute(IBlockSource p_82487_1_, ItemStack p_82487_2_)
Methods in net.minecraft.dispenser with parameters of type ItemStack Modifier and Type Method Description ItemStack
DefaultDispenseItemBehavior. dispense(IBlockSource p_dispense_1_, ItemStack p_dispense_2_)
ItemStack
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_)
ItemStack
DispenseBoatBehavior. execute(IBlockSource p_82487_1_, ItemStack p_82487_2_)
ItemStack
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
Methods in net.minecraft.enchantment that return ItemStack Modifier and Type Method Description static ItemStack
EnchantmentHelper. enchantItem(java.util.Random p_77504_0_, ItemStack p_77504_1_, int p_77504_2_, boolean p_77504_3_)
Methods in net.minecraft.enchantment that return types with arguments of type ItemStack Modifier and Type Method Description static java.util.Map.Entry<EquipmentSlotType,ItemStack>
EnchantmentHelper. getRandomItemWith(Enchantment p_222189_0_, LivingEntity p_222189_1_)
static java.util.Map.Entry<EquipmentSlotType,ItemStack>
EnchantmentHelper. getRandomItemWith(Enchantment p_234844_0_, LivingEntity p_234844_1_, java.util.function.Predicate<ItemStack> p_234844_2_)
java.util.Map<EquipmentSlotType,ItemStack>
Enchantment. getSlotItems(LivingEntity p_222181_1_)
Methods in net.minecraft.enchantment with parameters of type ItemStack Modifier and Type Method Description boolean
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(java.util.Random p_77504_0_, ItemStack p_77504_1_, int p_77504_2_, boolean p_77504_3_)
static java.util.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(java.util.Random p_77514_0_, int p_77514_1_, int p_77514_2_, ItemStack p_77514_3_)
static java.util.Map<Enchantment,java.lang.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 java.util.List<EnchantmentData>
EnchantmentHelper. selectEnchantment(java.util.Random p_77513_0_, ItemStack p_77513_1_, int p_77513_2_, boolean p_77513_3_)
static void
EnchantmentHelper. setEnchantments(java.util.Map<Enchantment,java.lang.Integer> p_82782_0_, ItemStack p_82782_1_)
static boolean
UnbreakingEnchantment. shouldIgnoreDurabilityDrop(ItemStack p_92097_0_, int p_92097_1_, java.util.Random p_92097_2_)
Method parameters in net.minecraft.enchantment with type arguments of type ItemStack Modifier and Type Method Description static int
EnchantmentHelper. getDamageProtection(java.lang.Iterable<ItemStack> p_77508_0_, DamageSource p_77508_1_)
static java.util.Map.Entry<EquipmentSlotType,ItemStack>
EnchantmentHelper. getRandomItemWith(Enchantment p_234844_0_, LivingEntity p_234844_1_, java.util.function.Predicate<ItemStack> p_234844_2_)
private static void
EnchantmentHelper. runIterationOnInventory(EnchantmentHelper.IEnchantmentVisitor p_77516_0_, java.lang.Iterable<ItemStack> p_77516_1_)
-
Uses of ItemStack in net.minecraft.entity
Fields in net.minecraft.entity declared as ItemStack Modifier and Type Field Description protected ItemStack
LivingEntity. useItem
Fields in net.minecraft.entity with type parameters of type ItemStack Modifier and Type Field Description private NonNullList<ItemStack>
MobEntity. armorItems
private static java.util.List<ItemStack>
Entity. EMPTY_LIST
private NonNullList<ItemStack>
MobEntity. handItems
private NonNullList<ItemStack>
LivingEntity. lastArmorItemStacks
private NonNullList<ItemStack>
LivingEntity. lastHandItemStacks
Methods in net.minecraft.entity that return ItemStack Modifier and Type Method Description ItemStack
LivingEntity. eat(World p_213357_1_, ItemStack p_213357_2_)
ItemStack
IRendersAsItem. getItem()
abstract ItemStack
LivingEntity. getItemBySlot(EquipmentSlotType p_184582_1_)
ItemStack
MobEntity. getItemBySlot(EquipmentSlotType p_184582_1_)
ItemStack
LivingEntity. getItemInHand(Hand p_184586_1_)
private ItemStack
LivingEntity. getLastArmorItem(EquipmentSlotType p_241346_1_)
private ItemStack
LivingEntity. getLastHandItem(EquipmentSlotType p_241347_1_)
ItemStack
LivingEntity. getMainHandItem()
ItemStack
LivingEntity. getOffhandItem()
ItemStack
LivingEntity. getProjectile(ItemStack p_213356_1_)
ItemStack
LivingEntity. getUseItem()
Methods in net.minecraft.entity that return types with arguments of type ItemStack Modifier and Type Method Description private java.util.Map<EquipmentSlotType,ItemStack>
LivingEntity. collectEquipmentChanges()
java.lang.Iterable<ItemStack>
Entity. getAllSlots()
java.lang.Iterable<ItemStack>
Entity. getArmorSlots()
abstract java.lang.Iterable<ItemStack>
LivingEntity. getArmorSlots()
java.lang.Iterable<ItemStack>
MobEntity. getArmorSlots()
java.lang.Iterable<ItemStack>
Entity. getHandSlots()
java.lang.Iterable<ItemStack>
MobEntity. getHandSlots()
Methods in net.minecraft.entity with parameters of type ItemStack Modifier and Type Method Description private void
LivingEntity. addEatEffect(ItemStack p_213349_1_, World p_213349_2_, LivingEntity p_213349_3_)
private void
LivingEntity. breakItem(ItemStack p_70669_1_)
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 effectItemStack
LivingEntity. eat(World p_213357_1_, ItemStack p_213357_2_)
boolean
MobEntity. equipItemIfPossible(ItemStack p_233665_1_)
protected SoundEvent
LivingEntity. getDrinkingSound(ItemStack p_213351_1_)
SoundEvent
LivingEntity. getEatingSound(ItemStack p_213353_1_)
static EquipmentSlotType
MobEntity. getEquipmentSlotForItem(ItemStack p_184640_0_)
ItemStack
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
Entity. setSlot(int p_174820_1_, ItemStack p_174820_2_)
boolean
MobEntity. setSlot(int p_174820_1_, ItemStack p_174820_2_)
void
ICrossbowUser. shootCrossbowProjectile(LivingEntity p_230284_1_, ItemStack p_230284_2_, ProjectileEntity p_230284_3_, float p_230284_4_)
Entity
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_)
ItemEntity
Entity. spawnAtLocation(ItemStack p_199701_1_)
ItemEntity
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_)
Method parameters in net.minecraft.entity with type arguments of type ItemStack Modifier and Type Method Description private void
LivingEntity. handleEquipmentChanges(java.util.Map<EquipmentSlotType,ItemStack> p_241344_1_)
private void
LivingEntity. handleHandSwap(java.util.Map<EquipmentSlotType,ItemStack> p_241342_1_)
-
Uses of ItemStack in net.minecraft.entity.ai.brain
Methods in net.minecraft.entity.ai.brain with parameters of type ItemStack Modifier and Type Method Description static 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
Fields in net.minecraft.entity.ai.brain.task declared as ItemStack Modifier and Type Field Description private ItemStack
ShowWaresTask. playerItemStack
Fields in net.minecraft.entity.ai.brain.task with type parameters of type ItemStack Modifier and Type Field Description private java.util.List<ItemStack>
ShowWaresTask. displayItems
Methods in net.minecraft.entity.ai.brain.task that return ItemStack Modifier and Type Method Description private ItemStack
CelebrateRaidVictoryTask. getFirework(DyeColor p_220391_1_, int p_220391_2_)
Methods in net.minecraft.entity.ai.brain.task that return types with arguments of type ItemStack Modifier and Type Method Description private java.util.List<ItemStack>
GiveHeroGiftsTask. getItemToThrow(VillagerEntity p_220399_1_)
-
Uses of ItemStack in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal declared as ItemStack Modifier and Type Field Description private ItemStack
UseItemGoal. item
Methods in net.minecraft.entity.ai.goal that return ItemStack Modifier and Type Method Description private ItemStack
TriggerSkeletonTrapGoal. disenchant(ItemStack p_242327_1_)
Methods in net.minecraft.entity.ai.goal with parameters of type ItemStack Modifier and Type Method Description private ItemStack
TriggerSkeletonTrapGoal. disenchant(ItemStack p_242327_1_)
protected boolean
TemptGoal. shouldFollowItem(ItemStack p_188508_1_)
Constructors in net.minecraft.entity.ai.goal with parameters of type ItemStack Constructor Description UseItemGoal(T p_i50319_1_, ItemStack p_i50319_2_, SoundEvent p_i50319_3_, java.util.function.Predicate<? super T> p_i50319_4_)
-
Uses of ItemStack in net.minecraft.entity.item
Fields in net.minecraft.entity.item with type parameters of type ItemStack Modifier and Type Field Description private NonNullList<ItemStack>
ArmorStandEntity. armorItems
private static DataParameter<ItemStack>
ItemEntity. DATA_ITEM
private static DataParameter<ItemStack>
ItemFrameEntity. DATA_ITEM
private NonNullList<ItemStack>
ArmorStandEntity. handItems
Methods in net.minecraft.entity.item that return ItemStack Modifier and Type Method Description ItemStack
ItemEntity. getItem()
ItemStack
ItemFrameEntity. getItem()
ItemStack
ArmorStandEntity. getItemBySlot(EquipmentSlotType p_184582_1_)
static ItemStack
ItemEntity. merge(ItemStack p_226533_0_, ItemStack p_226533_1_, int p_226533_2_)
Methods in net.minecraft.entity.item that return types with arguments of type ItemStack Modifier and Type Method Description java.lang.Iterable<ItemStack>
ArmorStandEntity. getArmorSlots()
java.lang.Iterable<ItemStack>
ArmorStandEntity. getHandSlots()
Methods in net.minecraft.entity.item with parameters of type ItemStack Modifier and Type Method Description static 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
ItemEntity. merge(ItemStack p_226533_0_, ItemStack p_226533_1_, int p_226533_2_)
private void
ItemFrameEntity. removeFramedMap(ItemStack p_110131_1_)
void
ItemEntity. setItem(ItemStack p_92058_1_)
void
ItemFrameEntity. setItem(ItemStack p_82334_1_)
void
ItemFrameEntity. setItem(ItemStack p_174864_1_, boolean p_174864_2_)
void
ArmorStandEntity. setItemSlot(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_)
boolean
ArmorStandEntity. setSlot(int p_174820_1_, ItemStack p_174820_2_)
boolean
ItemFrameEntity. setSlot(int p_174820_1_, ItemStack p_174820_2_)
ItemEntity
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_)
Constructors in net.minecraft.entity.item with parameters of type ItemStack Constructor Description ItemEntity(World p_i1710_1_, double p_i1710_2_, double p_i1710_4_, double p_i1710_6_, ItemStack p_i1710_8_)
-
Uses of ItemStack in net.minecraft.entity.item.minecart
Fields in net.minecraft.entity.item.minecart with type parameters of type ItemStack Modifier and Type Field Description private NonNullList<ItemStack>
ContainerMinecartEntity. itemStacks
Methods in net.minecraft.entity.item.minecart that return ItemStack Modifier and Type Method Description ItemStack
ContainerMinecartEntity. getItem(int p_70301_1_)
ItemStack
ContainerMinecartEntity. removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
ContainerMinecartEntity. removeItemNoUpdate(int p_70304_1_)
Methods in net.minecraft.entity.item.minecart with parameters of type ItemStack Modifier and Type Method Description void
ContainerMinecartEntity. setItem(int p_70299_1_, ItemStack p_70299_2_)
boolean
ContainerMinecartEntity. setSlot(int p_174820_1_, ItemStack p_174820_2_)
-
Uses of ItemStack in net.minecraft.entity.merchant
Methods in net.minecraft.entity.merchant with parameters of type ItemStack Modifier and Type Method Description void
IMerchant. notifyTradeUpdated(ItemStack p_110297_1_)
-
Uses of ItemStack in net.minecraft.entity.merchant.villager
Fields in net.minecraft.entity.merchant.villager declared as ItemStack Modifier and Type Field Description private ItemStack
VillagerTrades.ItemsForEmeraldsAndItemsTrade. fromItem
private ItemStack
VillagerTrades.EnchantedItemForEmeraldsTrade. itemStack
private ItemStack
VillagerTrades.ItemsForEmeraldsTrade. itemStack
private ItemStack
VillagerTrades.ItemsForEmeraldsAndItemsTrade. toItem
private ItemStack
VillagerTrades.ItemWithPotionForEmeraldsAndItemsTrade. toItem
Methods in net.minecraft.entity.merchant.villager with parameters of type ItemStack Modifier and Type Method Description protected SoundEvent
WanderingTraderEntity. getDrinkingSound(ItemStack p_213351_1_)
void
AbstractVillagerEntity. notifyTradeUpdated(ItemStack p_110297_1_)
boolean
AbstractVillagerEntity. setSlot(int p_174820_1_, ItemStack p_174820_2_)
boolean
VillagerEntity. wantsToPickUp(ItemStack p_230293_1_)
Constructors in net.minecraft.entity.merchant.villager with parameters of type ItemStack Constructor Description ItemsForEmeraldsTrade(ItemStack p_i50531_1_, int p_i50531_2_, int p_i50531_3_, int p_i50531_4_, int p_i50531_5_)
ItemsForEmeraldsTrade(ItemStack p_i50532_1_, int p_i50532_2_, int p_i50532_3_, int p_i50532_4_, int p_i50532_5_, float p_i50532_6_)
-
Uses of ItemStack in net.minecraft.entity.monster
Methods in net.minecraft.entity.monster that return ItemStack Modifier and Type Method Description ItemStack
MonsterEntity. 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()
Methods in net.minecraft.entity.monster with parameters of type ItemStack Modifier and Type Method Description boolean
ZombieEntity. canHoldItem(ItemStack p_175448_1_)
protected boolean
DrownedEntity. canReplaceCurrentItem(ItemStack p_208003_1_, ItemStack p_208003_2_)
protected AbstractArrowEntity
AbstractSkeletonEntity. getArrow(ItemStack p_213624_1_, float p_213624_2_)
protected AbstractArrowEntity
StrayEntity. getArrow(ItemStack p_213624_1_, float p_213624_2_)
protected AbstractArrowEntity
WitherSkeletonEntity. getArrow(ItemStack p_213624_1_, float p_213624_2_)
ItemStack
MonsterEntity. getProjectile(ItemStack p_213356_1_)
boolean
HoglinEntity. isFood(ItemStack p_70877_1_)
void
AbstractSkeletonEntity. setItemSlot(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_)
boolean
PillagerEntity. setSlot(int p_174820_1_, ItemStack p_174820_2_)
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
Methods in net.minecraft.entity.monster.piglin that return ItemStack Modifier and Type Method Description protected ItemStack
PiglinEntity. addToInventory(ItemStack p_234436_1_)
private ItemStack
PiglinEntity. createSpawnWeapon()
private static ItemStack
PiglinTasks. removeOneItemFromItemEntity(ItemEntity p_234465_0_)
Methods in net.minecraft.entity.monster.piglin that return types with arguments of type ItemStack Modifier and Type Method Description private static java.util.List<ItemStack>
PiglinTasks. getBarterResponseItems(PiglinEntity p_234524_0_)
Methods in net.minecraft.entity.monster.piglin with parameters of type ItemStack Modifier and Type Method Description protected 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_)
Method parameters in net.minecraft.entity.monster.piglin with type arguments of type ItemStack Modifier and Type Method Description private static void
PiglinTasks. throwItems(PiglinEntity p_234475_0_, java.util.List<ItemStack> p_234475_1_)
private static void
PiglinTasks. throwItemsTowardPlayer(PiglinEntity p_234472_0_, PlayerEntity p_234472_1_, java.util.List<ItemStack> p_234472_2_)
private static void
PiglinTasks. throwItemsTowardPos(PiglinEntity p_234476_0_, java.util.List<ItemStack> p_234476_1_, Vector3d p_234476_2_)
private static void
PiglinTasks. throwItemsTowardRandomPos(PiglinEntity p_234490_0_, java.util.List<ItemStack> p_234490_1_)
-
Uses of ItemStack in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive that return types with arguments of type ItemStack Modifier and Type Method Description java.util.List<ItemStack>
MooshroomEntity. onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune)
java.util.List<ItemStack>
SheepEntity. onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune)
java.util.List<ItemStack>
SnowGolemEntity. onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune)
Methods in net.minecraft.entity.passive with parameters of type ItemStack Modifier and Type Method Description private boolean
FoxEntity. canEat(ItemStack p_213464_1_)
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
DolphinEntity.PlayWithItemsGoal. drop(ItemStack p_220810_1_)
private void
FoxEntity. dropItemStack(ItemStack p_213486_1_)
SoundEvent
FoxEntity. getEatingSound(ItemStack p_213353_1_)
private java.util.Optional<org.apache.commons.lang3.tuple.Pair<Effect,java.lang.Integer>>
MooshroomEntity. getEffectFromItemStack(ItemStack p_213443_1_)
boolean
AnimalEntity. isFood(ItemStack p_70877_1_)
boolean
BeeEntity. isFood(ItemStack p_70877_1_)
boolean
CatEntity. isFood(ItemStack p_70877_1_)
boolean
ChickenEntity. isFood(ItemStack p_70877_1_)
boolean
FoxEntity. isFood(ItemStack p_70877_1_)
boolean
OcelotEntity. isFood(ItemStack p_70877_1_)
boolean
PandaEntity. isFood(ItemStack p_70877_1_)
boolean
ParrotEntity. isFood(ItemStack p_70877_1_)
boolean
PigEntity. isFood(ItemStack p_70877_1_)
boolean
PolarBearEntity. isFood(ItemStack p_70877_1_)
boolean
RabbitEntity. isFood(ItemStack p_70877_1_)
boolean
StriderEntity. isFood(ItemStack p_70877_1_)
boolean
TurtleEntity. isFood(ItemStack p_70877_1_)
boolean
WolfEntity. isFood(ItemStack p_70877_1_)
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)
java.util.List<ItemStack>
MooshroomEntity. onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune)
java.util.List<ItemStack>
SheepEntity. onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune)
java.util.List<ItemStack>
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
Methods in net.minecraft.entity.passive.fish that return ItemStack Modifier and Type Method Description protected abstract ItemStack
AbstractFishEntity. getBucketItemStack()
protected ItemStack
CodEntity. getBucketItemStack()
protected ItemStack
PufferfishEntity. getBucketItemStack()
protected ItemStack
SalmonEntity. getBucketItemStack()
protected ItemStack
TropicalFishEntity. getBucketItemStack()
Methods in net.minecraft.entity.passive.fish with parameters of type ItemStack Modifier and Type Method Description protected void
AbstractFishEntity. saveToBucketTag(ItemStack p_204211_1_)
protected void
TropicalFishEntity. saveToBucketTag(ItemStack p_204211_1_)
-
Uses of ItemStack in net.minecraft.entity.passive.horse
Methods in net.minecraft.entity.passive.horse that return ItemStack Modifier and Type Method Description ItemStack
HorseEntity. getArmor()
Methods in net.minecraft.entity.passive.horse with parameters of type ItemStack Modifier and Type Method Description ActionResultType
AbstractHorseEntity. 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
AbstractHorseEntity. isArmor(ItemStack p_190682_1_)
boolean
HorseEntity. isArmor(ItemStack p_190682_1_)
boolean
LlamaEntity. isArmor(ItemStack p_190682_1_)
boolean
AbstractHorseEntity. isFood(ItemStack p_70877_1_)
boolean
LlamaEntity. isFood(ItemStack p_70877_1_)
private void
HorseEntity. setArmor(ItemStack p_213805_1_)
private void
HorseEntity. setArmorEquipment(ItemStack p_213804_1_)
boolean
AbstractChestedHorseEntity. setSlot(int p_174820_1_, ItemStack p_174820_2_)
boolean
AbstractHorseEntity. setSlot(int p_174820_1_, ItemStack p_174820_2_)
-
Uses of ItemStack in net.minecraft.entity.player
Fields in net.minecraft.entity.player declared as ItemStack Modifier and Type Field Description private ItemStack
PlayerInventory. carried
private ItemStack
PlayerEntity. lastItemInMainHand
Fields in net.minecraft.entity.player with type parameters of type ItemStack Modifier and Type Field Description NonNullList<ItemStack>
PlayerInventory. armor
private java.util.List<NonNullList<ItemStack>>
PlayerInventory. compartments
NonNullList<ItemStack>
PlayerInventory. items
NonNullList<ItemStack>
PlayerInventory. offhand
Methods in net.minecraft.entity.player that return ItemStack Modifier and Type Method Description ItemStack
PlayerEntity. eat(World p_213357_1_, ItemStack p_213357_2_)
ItemStack
PlayerInventory. getArmor(int p_70440_1_)
ItemStack
PlayerInventory. getCarried()
ItemStack
PlayerInventory. getItem(int p_70301_1_)
ItemStack
PlayerEntity. getItemBySlot(EquipmentSlotType p_184582_1_)
ItemStack
PlayerEntity. getProjectile(ItemStack p_213356_1_)
ItemStack
PlayerInventory. getSelected()
ItemStack
PlayerInventory. removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
PlayerInventory. removeItemNoUpdate(int p_70304_1_)
Methods in net.minecraft.entity.player that return types with arguments of type ItemStack Modifier and Type Method Description java.lang.Iterable<ItemStack>
PlayerEntity. getArmorSlots()
java.lang.Iterable<ItemStack>
PlayerEntity. getHandSlots()
Methods in net.minecraft.entity.player with parameters of type ItemStack Modifier and Type Method Description boolean
PlayerInventory. add(int p_191971_1_, ItemStack p_191971_2_)
boolean
PlayerInventory. add(ItemStack p_70441_1_)
boolean
PlayerEntity. addItem(ItemStack p_191521_1_)
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
PlayerInventory. contains(ItemStack p_70431_1_)
ItemEntity
PlayerEntity. drop(ItemStack p_71019_1_, boolean p_71019_2_)
ItemEntity
PlayerEntity. drop(ItemStack p_146097_1_, boolean p_146097_2_, boolean p_146097_3_)
ItemEntity
ServerPlayerEntity. drop(ItemStack p_146097_1_, boolean p_146097_2_, boolean p_146097_3_)
ItemStack
PlayerEntity. eat(World p_213357_1_, ItemStack p_213357_2_)
int
PlayerInventory. findSlotMatchingItem(ItemStack p_184429_1_)
int
PlayerInventory. findSlotMatchingUnusedItem(ItemStack p_194014_1_)
ItemStack
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
PlayerInventory. setItem(int p_70299_1_, ItemStack p_70299_2_)
void
PlayerEntity. setItemSlot(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_)
void
PlayerInventory. setPickedItem(ItemStack p_184434_1_)
boolean
PlayerEntity. setSlot(int p_174820_1_, ItemStack p_174820_2_)
void
ServerPlayerEntity. slotChanged(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_)
Method parameters in net.minecraft.entity.player with type arguments of type ItemStack Modifier and Type Method Description int
PlayerInventory. clearOrCountMatchingItems(java.util.function.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
Fields in net.minecraft.entity.projectile declared as ItemStack Modifier and Type Field Description private ItemStack
TridentEntity. tridentItem
Fields in net.minecraft.entity.projectile with type parameters of type ItemStack Modifier and Type Field Description private static DataParameter<ItemStack>
FireworkRocketEntity. DATA_ID_FIREWORKS_ITEM
private static DataParameter<ItemStack>
AbstractFireballEntity. DATA_ITEM_STACK
private static DataParameter<ItemStack>
EyeOfEnderEntity. DATA_ITEM_STACK
private static DataParameter<ItemStack>
ProjectileItemEntity. DATA_ITEM_STACK
Methods in net.minecraft.entity.projectile that return ItemStack Modifier and Type Method Description ItemStack
AbstractFireballEntity. getItem()
ItemStack
EyeOfEnderEntity. getItem()
ItemStack
FireworkRocketEntity. getItem()
ItemStack
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()
Methods in net.minecraft.entity.projectile with parameters of type ItemStack Modifier and Type Method Description static 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
FishingBobberEntity. retrieve(ItemStack p_146034_1_)
void
ArrowEntity. setEffectsFromItem(ItemStack p_184555_1_)
void
AbstractFireballEntity. setItem(ItemStack p_213898_1_)
void
EyeOfEnderEntity. setItem(ItemStack p_213863_1_)
void
ProjectileItemEntity. setItem(ItemStack p_213884_1_)
Constructors in net.minecraft.entity.projectile with parameters of type ItemStack Constructor Description FireworkRocketEntity(World p_i1763_1_, double p_i1763_2_, double p_i1763_4_, double p_i1763_6_, ItemStack p_i1763_8_)
FireworkRocketEntity(World p_i231581_1_, Entity p_i231581_2_, double p_i231581_3_, double p_i231581_5_, double p_i231581_7_, ItemStack p_i231581_9_)
FireworkRocketEntity(World p_i50165_1_, ItemStack p_i50165_2_, double p_i50165_3_, double p_i50165_5_, double p_i50165_7_, boolean p_i50165_9_)
FireworkRocketEntity(World p_i231582_1_, ItemStack p_i231582_2_, Entity p_i231582_3_, double p_i231582_4_, double p_i231582_6_, double p_i231582_8_, boolean p_i231582_10_)
FireworkRocketEntity(World p_i47367_1_, ItemStack p_i47367_2_, LivingEntity p_i47367_3_)
TridentEntity(World p_i48790_1_, LivingEntity p_i48790_2_, ItemStack p_i48790_3_)
-
Uses of ItemStack in net.minecraft.inventory
Fields in net.minecraft.inventory with type parameters of type ItemStack Modifier and Type Field Description private NonNullList<ItemStack>
CraftingInventory. items
private NonNullList<ItemStack>
Inventory. items
private NonNullList<ItemStack>
CraftResultInventory. itemStacks
private NonNullList<ItemStack>
MerchantInventory. itemStacks
Methods in net.minecraft.inventory that return ItemStack Modifier and Type Method Description ItemStack
Inventory. addItem(ItemStack p_174894_1_)
ItemStack
CraftingInventory. getItem(int p_70301_1_)
ItemStack
CraftResultInventory. getItem(int p_70301_1_)
ItemStack
DoubleSidedInventory. getItem(int p_70301_1_)
ItemStack
IInventory. getItem(int p_70301_1_)
ItemStack
Inventory. getItem(int p_70301_1_)
ItemStack
MerchantInventory. getItem(int p_70301_1_)
ItemStack
CraftingInventory. removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
CraftResultInventory. removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
DoubleSidedInventory. removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
IInventory. removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
Inventory. removeItem(int p_70298_1_, int p_70298_2_)
static ItemStack
ItemStackHelper. removeItem(java.util.List<ItemStack> p_188382_0_, int p_188382_1_, int p_188382_2_)
ItemStack
MerchantInventory. removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
CraftingInventory. removeItemNoUpdate(int p_70304_1_)
ItemStack
CraftResultInventory. removeItemNoUpdate(int p_70304_1_)
ItemStack
DoubleSidedInventory. removeItemNoUpdate(int p_70304_1_)
ItemStack
IInventory. removeItemNoUpdate(int p_70304_1_)
ItemStack
Inventory. removeItemNoUpdate(int p_70304_1_)
ItemStack
MerchantInventory. removeItemNoUpdate(int p_70304_1_)
ItemStack
Inventory. removeItemType(Item p_223374_1_, int p_223374_2_)
static ItemStack
ItemStackHelper. takeItem(java.util.List<ItemStack> p_188383_0_, int p_188383_1_)
Methods in net.minecraft.inventory that return types with arguments of type ItemStack Modifier and Type Method Description java.util.List<ItemStack>
Inventory. removeAllItems()
Methods in net.minecraft.inventory with parameters of type ItemStack Modifier and Type Method Description ItemStack
Inventory. addItem(ItemStack p_174894_1_)
boolean
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_, java.util.function.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
CraftingInventory. setItem(int p_70299_1_, ItemStack p_70299_2_)
void
CraftResultInventory. setItem(int p_70299_1_, ItemStack p_70299_2_)
void
DoubleSidedInventory. setItem(int p_70299_1_, ItemStack p_70299_2_)
void
IInventory. setItem(int p_70299_1_, ItemStack p_70299_2_)
void
Inventory. setItem(int p_70299_1_, ItemStack p_70299_2_)
void
MerchantInventory. setItem(int p_70299_1_, ItemStack p_70299_2_)
Method parameters in net.minecraft.inventory with type arguments of type ItemStack Modifier and Type Method Description static int
ItemStackHelper. clearOrCountMatchingItems(IInventory p_233534_0_, java.util.function.Predicate<ItemStack> p_233534_1_, int p_233534_2_, boolean p_233534_3_)
static int
ItemStackHelper. clearOrCountMatchingItems(ItemStack p_233535_0_, java.util.function.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(java.util.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
ItemStackHelper. takeItem(java.util.List<ItemStack> p_188383_0_, int p_188383_1_)
Constructors in net.minecraft.inventory with parameters of type ItemStack Constructor Description Inventory(ItemStack... p_i50398_1_)
-
Uses of ItemStack in net.minecraft.inventory.container
Fields in net.minecraft.inventory.container declared as ItemStack Modifier and Type Field Description private ItemStack
StonecutterContainer. input
Fields in net.minecraft.inventory.container with type parameters of type ItemStack Modifier and Type Field Description private NonNullList<ItemStack>
Container. lastSlots
Methods in net.minecraft.inventory.container that return ItemStack Modifier and Type Method Description ItemStack
Container. 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_)
ItemStack
LecternContainer. getBook()
ItemStack
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_)
ItemStack
BrewingStandContainer.PotionSlot. onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_)
ItemStack
CraftingResultSlot. onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_)
ItemStack
FurnaceResultSlot. onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_)
ItemStack
MerchantResultSlot. onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_)
protected ItemStack
RepairContainer. onTake(PlayerEntity p_230301_1_, ItemStack p_230301_2_)
ItemStack
Slot. onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_)
protected ItemStack
SmithingTableContainer. onTake(PlayerEntity p_230301_1_, ItemStack p_230301_2_)
ItemStack
AbstractFurnaceContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
AbstractRepairContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
BeaconContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
BrewingStandContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
CartographyContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
ChestContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
Container. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
DispenserContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
EnchantmentContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
GrindstoneContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
HopperContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
HorseInventoryContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
LoomContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
MerchantContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
PlayerContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
ShulkerBoxContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
StonecutterContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
WorkbenchContainer. quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
ItemStack
CraftingResultSlot. remove(int p_75209_1_)
ItemStack
FurnaceResultSlot. remove(int p_75209_1_)
ItemStack
MerchantResultSlot. remove(int p_75209_1_)
ItemStack
Slot. remove(int p_75209_1_)
private ItemStack
GrindstoneContainer. removeNonCurses(ItemStack p_217007_1_, int p_217007_2_, int p_217007_3_)
Methods in net.minecraft.inventory.container that return types with arguments of type ItemStack Modifier and Type Method Description NonNullList<ItemStack>
Container. getItems()
Methods in net.minecraft.inventory.container with parameters of type ItemStack Modifier and Type Method Description static boolean
Container. canItemQuickReplace(Slot p_94527_0_, ItemStack p_94527_1_, boolean p_94527_2_)
protected boolean
AbstractFurnaceContainer. canSmelt(ItemStack p_217057_1_)
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 java.util.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(java.util.Set<Slot> p_94525_0_, int p_94525_1_, ItemStack p_94525_2_, int p_94525_3_)
static boolean
FurnaceFuelSlot. isBucket(ItemStack p_178173_0_)
protected boolean
AbstractFurnaceContainer. isFuel(ItemStack p_217058_1_)
private boolean
MerchantContainer. isSameItem(ItemStack p_217050_1_, ItemStack p_217050_2_)
boolean
BeaconContainer.BeaconSlot. mayPlace(ItemStack p_75214_1_)
boolean
BrewingStandContainer.FuelSlot. mayPlace(ItemStack p_75214_1_)
boolean
BrewingStandContainer.IngredientSlot. mayPlace(ItemStack p_75214_1_)
boolean
BrewingStandContainer.PotionSlot. mayPlace(ItemStack p_75214_1_)
boolean
CraftingResultSlot. mayPlace(ItemStack p_75214_1_)
boolean
FurnaceFuelSlot. mayPlace(ItemStack p_75214_1_)
boolean
FurnaceResultSlot. mayPlace(ItemStack p_75214_1_)
boolean
MerchantResultSlot. mayPlace(ItemStack p_75214_1_)
boolean
ShulkerBoxSlot. mayPlace(ItemStack p_75214_1_)
boolean
Slot. mayPlace(ItemStack p_75214_1_)
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_)
ItemStack
BrewingStandContainer.PotionSlot. onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_)
ItemStack
CraftingResultSlot. onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_)
ItemStack
FurnaceResultSlot. onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_)
ItemStack
MerchantResultSlot. onTake(PlayerEntity p_190901_1_, ItemStack p_190901_2_)
protected ItemStack
RepairContainer. onTake(PlayerEntity p_230301_1_, ItemStack p_230301_2_)
ItemStack
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
Slot. set(ItemStack p_75215_1_)
void
Container. setItem(int p_75141_1_, ItemStack p_75141_2_)
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_)
Method parameters in net.minecraft.inventory.container with type arguments of type ItemStack Modifier and Type Method Description void
IContainerListener. refreshContainer(Container p_71110_1_, NonNullList<ItemStack> p_71110_2_)
void
Container. setAll(java.util.List<ItemStack> p_190896_1_)
-
Uses of ItemStack in net.minecraft.item
Fields in net.minecraft.item declared as ItemStack Modifier and Type Field Description private ItemStack
MerchantOffer. baseCostA
private ItemStack
MerchantOffer. costB
static ItemStack
ItemStack. EMPTY
private ItemStack
ItemGroup. iconItemStack
private ItemStack
ItemUseContext. itemStack
private ItemStack
MerchantOffer. result
Fields in net.minecraft.item with type parameters of type ItemStack Modifier and Type Field Description static java.util.function.Predicate<ItemStack>
ShootableItem. ARROW_ONLY
static java.util.function.Predicate<ItemStack>
ShootableItem. ARROW_OR_FIREWORK
static com.mojang.serialization.Codec<ItemStack>
ItemStack. CODEC
Methods in net.minecraft.item that return ItemStack Modifier and Type Method Description ItemStack
MerchantOffer. assemble()
ItemStack
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
IDyeableArmorItem. dyeArmor(ItemStack p_219975_0_, java.util.List<DyeItem> p_219975_1_)
ItemStack
ChorusFruitItem. finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_)
ItemStack
HoneyBottleItem. finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_)
ItemStack
Item. finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_)
ItemStack
ItemStack. finishUsingItem(World p_77950_1_, LivingEntity p_77950_2_)
ItemStack
MilkBucketItem. finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_)
ItemStack
PotionItem. finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_)
ItemStack
SoupItem. finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_)
ItemStack
SuspiciousStewItem. finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_)
ItemStack
MerchantOffer. getBaseCostA()
ItemStack
MerchantOffer. getCostA()
ItemStack
MerchantOffer. getCostB()
ItemStack
Item. getDefaultInstance()
ItemStack
PotionItem. getDefaultInstance()
ItemStack
TippedArrowItem. getDefaultInstance()
protected ItemStack
BucketItem. getEmptySuccessItem(ItemStack p_203790_1_, PlayerEntity p_203790_2_)
static ItemStack
ShootableItem. getHeldProjectile(LivingEntity p_220005_0_, java.util.function.Predicate<ItemStack> p_220005_1_)
ItemStack
ItemGroup. getIconItem()
ItemStack
ItemUseContext. getItemInHand()
ItemStack
MerchantOffer. getResult()
abstract ItemStack
ItemGroup. makeIcon()
static ItemStack
ItemStack. of(CompoundNBT p_199557_0_)
ItemStack
ItemStack. setHoverName(ITextComponent p_200302_1_)
ItemStack
ItemStack. split(int p_77979_1_)
protected ItemStack
GlassBottleItem. turnBottleIntoItem(ItemStack p_185061_1_, PlayerEntity p_185061_2_, ItemStack p_185061_3_)
Methods in net.minecraft.item that return types with arguments of type ItemStack Modifier and Type Method Description java.util.function.Predicate<ItemStack>
BowItem. getAllSupportedProjectiles()
java.util.function.Predicate<ItemStack>
CrossbowItem. getAllSupportedProjectiles()
abstract java.util.function.Predicate<ItemStack>
ShootableItem. getAllSupportedProjectiles()
private static java.util.List<ItemStack>
CrossbowItem. getChargedProjectiles(ItemStack p_220018_0_)
java.util.function.Predicate<ItemStack>
CrossbowItem. getSupportedHeldProjectiles()
java.util.function.Predicate<ItemStack>
ShootableItem. getSupportedHeldProjectiles()
ActionResult<ItemStack>
ArmorItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
BoatItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
BowItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
BucketItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
CrossbowItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
EggItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
ElytraItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
EnderEyeItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
EnderPearlItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
ExperienceBottleItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
FireworkRocketItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
FishingRodItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
GlassBottleItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
HoneyBottleItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
Item. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
ItemStack. use(World p_77957_1_, PlayerEntity p_77957_2_, Hand p_77957_3_)
ActionResult<ItemStack>
KnowledgeBookItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
LilyPadItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
LingeringPotionItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
MapItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
MilkBucketItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
OnAStickItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
PotionItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
ShieldItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
SnowballItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
SpawnEggItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
SplashPotionItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
ThrowablePotionItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
TridentItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
WritableBookItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
ActionResult<ItemStack>
WrittenBookItem. use(World p_77659_1_, PlayerEntity p_77659_2_, Hand p_77659_3_)
Methods in net.minecraft.item with parameters of type ItemStack Modifier and Type Method Description private 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_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
BannerItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
BannerPatternItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
BlockItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
CrossbowItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
EnchantedBookItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
FilledMapItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
FireworkRocketItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
FireworkStarItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
FishBucketItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
Item. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
LingeringPotionItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
MusicDiscItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
PotionItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
ShieldItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
TippedArrowItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
void
WrittenBookItem. appendHoverText(ItemStack p_77624_1_, World p_77624_2_, java.util.List<ITextComponent> p_77624_3_, ITooltipFlag p_77624_4_)
static void
BannerItem. appendHoverTextFromBannerBlockEntityTag(ItemStack p_185054_0_, java.util.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_)
AbstractArrowEntity
ArrowItem. createArrow(World p_200887_1_, ItemStack p_200887_2_, LivingEntity p_200887_3_)
AbstractArrowEntity
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
IDyeableArmorItem. dyeArmor(ItemStack p_219975_0_, java.util.List<DyeItem> p_219975_1_)
boolean
ElytraItem. elytraFlightTick(ItemStack stack, LivingEntity entity, int flightTicks)
ItemStack
ChorusFruitItem. finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_)
ItemStack
HoneyBottleItem. finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_)
ItemStack
Item. finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_)
ItemStack
MilkBucketItem. finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_)
ItemStack
PotionItem. finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_)
ItemStack
SoupItem. finishUsingItem(ItemStack p_77654_1_, World p_77654_2_, LivingEntity p_77654_3_)
ItemStack
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_)
private static java.util.List<ItemStack>
CrossbowItem. getChargedProjectiles(ItemStack p_220018_0_)
static int
CrossbowItem. getChargeDuration(ItemStack p_220026_0_)
static DyeColor
DyeColor. getColor(ItemStack stack)
static int
FilledMapItem. getColor(ItemStack p_190907_0_)
default int
IDyeableArmorItem. getColor(ItemStack p_200886_1_)
static DyeColor
ShieldItem. getColor(ItemStack p_195979_0_)
protected MapData
FilledMapItem. getCustomMapData(ItemStack p_195950_0_, World p_195950_1_)
java.lang.String
CompassItem. getDescriptionId(ItemStack p_77667_1_)
java.lang.String
Item. getDescriptionId(ItemStack p_77667_1_)
java.lang.String
PotionItem. getDescriptionId(ItemStack p_77667_1_)
java.lang.String
ShieldItem. getDescriptionId(ItemStack p_77667_1_)
java.lang.String
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
FilledMapItem. getMapId(ItemStack p_195949_0_)
ITextComponent
Item. getName(ItemStack p_200295_1_)
ITextComponent
SkullItem. getName(ItemStack p_200295_1_)
ITextComponent
WrittenBookItem. getName(ItemStack p_200295_1_)
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_)
Rarity
Item. getRarity(ItemStack p_77613_1_)
MerchantOffer
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_)
java.util.Set<ToolType>
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_)
UseAction
BowItem. getUseAnimation(ItemStack p_77661_1_)
UseAction
CrossbowItem. getUseAnimation(ItemStack p_77661_1_)
UseAction
HoneyBottleItem. getUseAnimation(ItemStack p_77661_1_)
UseAction
Item. getUseAnimation(ItemStack p_77661_1_)
UseAction
MilkBucketItem. getUseAnimation(ItemStack p_77661_1_)
UseAction
PotionItem. getUseAnimation(ItemStack p_77661_1_)
UseAction
ShieldItem. getUseAnimation(ItemStack p_77661_1_)
UseAction
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
BoneMealItem. growCrop(ItemStack p_195966_0_, World p_195966_1_, BlockPos p_195966_2_)
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_)
ICapabilityProvider
BucketItem. initCapabilities(ItemStack stack, CompoundNBT nbt)
ICapabilityProvider
MilkBucketItem. initCapabilities(ItemStack stack, CompoundNBT nbt)
ActionResultType
DyeItem. interactLivingEntity(ItemStack p_111207_1_, PlayerEntity p_111207_2_, LivingEntity p_111207_3_, Hand p_111207_4_)
ActionResultType
Item. interactLivingEntity(ItemStack p_111207_1_, PlayerEntity p_111207_2_, LivingEntity p_111207_3_, Hand p_111207_4_)
ActionResultType
NameTagItem. interactLivingEntity(ItemStack p_111207_1_, PlayerEntity p_111207_2_, LivingEntity p_111207_3_, Hand p_111207_4_)
ActionResultType
SaddleItem. interactLivingEntity(ItemStack p_111207_1_, PlayerEntity p_111207_2_, LivingEntity p_111207_3_, Hand p_111207_4_)
ActionResultType
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
CrossbowItem. isCharged(ItemStack p_220012_0_)
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
CompassItem. isFoil(ItemStack p_77636_1_)
boolean
DebugStickItem. isFoil(ItemStack p_77636_1_)
boolean
EnchantedBookItem. isFoil(ItemStack p_77636_1_)
boolean
EnchantedGoldenAppleItem. isFoil(ItemStack p_77636_1_)
boolean
EnderCrystalItem. isFoil(ItemStack p_77636_1_)
boolean
ExperienceBottleItem. isFoil(ItemStack p_77636_1_)
boolean
Item. isFoil(ItemStack p_77636_1_)
boolean
PotionItem. isFoil(ItemStack p_77636_1_)
boolean
SimpleFoiledItem. isFoil(ItemStack p_77636_1_)
boolean
WrittenBookItem. isFoil(ItemStack p_77636_1_)
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
ItemStack. isSame(ItemStack p_179545_0_, ItemStack p_179545_1_)
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
FilledMapItem. lockMap(World p_219992_0_, ItemStack p_219992_1_)
private boolean
ItemStack. matches(ItemStack p_77959_1_)
static boolean
ItemStack. matches(ItemStack p_77989_0_, ItemStack p_77989_1_)
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
ItemStack. sameItem(ItemStack p_77969_1_)
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
FilledMapItem. scaleMap(ItemStack p_185063_0_, World p_185063_1_, int p_185063_2_)
static void
CrossbowItem. setCharged(ItemStack p_220011_0_, boolean p_220011_1_)
default void
IDyeableArmorItem. setColor(ItemStack p_200885_1_, int p_200885_2_)
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_)
java.util.Optional<MobEntity>
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
MerchantOffer. take(ItemStack p_222215_1_, ItemStack p_222215_2_)
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_)
Method parameters in net.minecraft.item with type arguments of type ItemStack Modifier and Type Method Description void
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_, java.util.function.Predicate<ItemStack> p_220005_1_)
Constructors in net.minecraft.item with parameters of type ItemStack Constructor Description BlockItemUseContext(PlayerEntity p_i241237_1_, Hand p_i241237_2_, ItemStack p_i241237_3_, BlockRayTraceResult p_i241237_4_)
BlockItemUseContext(World p_i50056_1_, PlayerEntity p_i50056_2_, Hand p_i50056_3_, ItemStack p_i50056_4_, BlockRayTraceResult p_i50056_5_)
DirectionalPlaceContext(World p_i50051_1_, BlockPos p_i50051_2_, Direction p_i50051_3_, ItemStack p_i50051_4_, Direction p_i50051_5_)
ItemUseContext(World p_i50034_1_, PlayerEntity p_i50034_2_, Hand p_i50034_3_, ItemStack p_i50034_4_, BlockRayTraceResult p_i50034_5_)
MerchantOffer(ItemStack p_i50013_1_, ItemStack p_i50013_2_, int p_i50013_3_, int p_i50013_4_, float p_i50013_5_)
MerchantOffer(ItemStack p_i50014_1_, ItemStack p_i50014_2_, ItemStack p_i50014_3_, int p_i50014_4_, int p_i50014_5_, float p_i50014_6_)
MerchantOffer(ItemStack p_i50015_1_, ItemStack p_i50015_2_, ItemStack p_i50015_3_, int p_i50015_4_, int p_i50015_5_, int p_i50015_6_, float p_i50015_7_)
MerchantOffer(ItemStack p_i51550_1_, ItemStack p_i51550_2_, ItemStack p_i51550_3_, int p_i51550_4_, int p_i51550_5_, int p_i51550_6_, float p_i51550_7_, int p_i51550_8_)
-
Uses of ItemStack in net.minecraft.item.crafting
Fields in net.minecraft.item.crafting declared as ItemStack Modifier and Type Field Description private ItemStack
Ingredient.SingleItemList. item
private ItemStack[]
Ingredient. itemStacks
protected ItemStack
AbstractCookingRecipe. result
private ItemStack
ShapedRecipe. result
private ItemStack
ShapelessRecipe. result
protected ItemStack
SingleItemRecipe. result
private ItemStack
SmithingRecipe. result
Methods in net.minecraft.item.crafting that return ItemStack Modifier and Type Method Description ItemStack
AbstractCookingRecipe. assemble(IInventory p_77572_1_)
ItemStack
ArmorDyeRecipe. assemble(CraftingInventory p_77572_1_)
ItemStack
BannerDuplicateRecipe. assemble(CraftingInventory p_77572_1_)
ItemStack
BookCloningRecipe. assemble(CraftingInventory p_77572_1_)
ItemStack
FireworkRocketRecipe. assemble(CraftingInventory p_77572_1_)
ItemStack
FireworkStarFadeRecipe. assemble(CraftingInventory p_77572_1_)
ItemStack
FireworkStarRecipe. assemble(CraftingInventory p_77572_1_)
ItemStack
IRecipe. assemble(C p_77572_1_)
ItemStack
MapCloningRecipe. assemble(CraftingInventory p_77572_1_)
ItemStack
MapExtendingRecipe. assemble(CraftingInventory p_77572_1_)
ItemStack
RepairItemRecipe. assemble(CraftingInventory p_77572_1_)
ItemStack
ShapedRecipe. assemble(CraftingInventory p_77572_1_)
ItemStack
ShapelessRecipe. assemble(CraftingInventory p_77572_1_)
ItemStack
ShieldRecipes. assemble(CraftingInventory p_77572_1_)
ItemStack
ShulkerBoxColoringRecipe. assemble(CraftingInventory p_77572_1_)
ItemStack
SingleItemRecipe. assemble(IInventory p_77572_1_)
ItemStack
SmithingRecipe. assemble(IInventory p_77572_1_)
ItemStack
SuspiciousStewRecipe. assemble(CraftingInventory p_77572_1_)
ItemStack
TippedArrowRecipe. assemble(CraftingInventory p_77572_1_)
static ItemStack
RecipeItemHelper. fromStackingIndex(int p_194115_0_)
ItemStack[]
Ingredient. getItems()
ItemStack
AbstractCookingRecipe. getResultItem()
ItemStack
FireworkRocketRecipe. getResultItem()
ItemStack
FireworkStarRecipe. getResultItem()
ItemStack
IRecipe. getResultItem()
ItemStack
ShapedRecipe. getResultItem()
ItemStack
ShapelessRecipe. getResultItem()
ItemStack
SingleItemRecipe. getResultItem()
ItemStack
SmithingRecipe. getResultItem()
ItemStack
SpecialRecipe. getResultItem()
ItemStack
BlastingRecipe. getToastSymbol()
ItemStack
CampfireCookingRecipe. getToastSymbol()
ItemStack
FurnaceRecipe. getToastSymbol()
default ItemStack
IRecipe. getToastSymbol()
ItemStack
SmithingRecipe. getToastSymbol()
ItemStack
SmokingRecipe. getToastSymbol()
ItemStack
StonecuttingRecipe. getToastSymbol()
static ItemStack
ShapedRecipe. itemFromJson(com.google.gson.JsonObject p_199798_0_)
Methods in net.minecraft.item.crafting that return types with arguments of type ItemStack Modifier and Type Method Description java.util.Collection<ItemStack>
Ingredient.IItemList. getItems()
java.util.Collection<ItemStack>
Ingredient.SingleItemList. getItems()
java.util.Collection<ItemStack>
Ingredient.TagList. getItems()
NonNullList<ItemStack>
BannerDuplicateRecipe. getRemainingItems(CraftingInventory p_179532_1_)
NonNullList<ItemStack>
BookCloningRecipe. getRemainingItems(CraftingInventory p_179532_1_)
default NonNullList<ItemStack>
IRecipe. getRemainingItems(C p_179532_1_)
<C extends IInventory,T extends IRecipe<C>>
NonNullList<ItemStack>RecipeManager. getRemainingItemsFor(IRecipeType<T> p_215369_1_, C p_215369_2_, World p_215369_3_)
Methods in net.minecraft.item.crafting with parameters of type ItemStack Modifier and Type Method Description void
RecipeItemHelper. accountSimpleStack(ItemStack p_195932_1_)
void
RecipeItemHelper. accountStack(ItemStack p_194112_1_)
void
RecipeItemHelper. accountStack(ItemStack p_221264_1_, int p_221264_2_)
T
CookingRecipeSerializer.IFactory. create(ResourceLocation p_create_1_, java.lang.String p_create_2_, Ingredient p_create_3_, ItemStack p_create_4_, float p_create_5_, int p_create_6_)
T
SingleItemRecipe.Serializer.IRecipeFactory. create(ResourceLocation p_create_1_, java.lang.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
Ingredient. of(ItemStack... p_193369_0_)
boolean
Ingredient. test(ItemStack p_test_1_)
Method parameters in net.minecraft.item.crafting with type arguments of type ItemStack Modifier and Type Method Description static Ingredient
Ingredient. of(java.util.stream.Stream<ItemStack> p_234819_0_)
Constructors in net.minecraft.item.crafting with parameters of type ItemStack Constructor Description AbstractCookingRecipe(IRecipeType<?> p_i50032_1_, ResourceLocation p_i50032_2_, java.lang.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_, java.lang.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_, java.lang.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_, java.lang.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_, java.lang.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_, java.lang.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_, java.lang.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_, java.lang.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_, java.lang.String p_i50021_2_, Ingredient p_i50021_3_, ItemStack p_i50021_4_)
-
Uses of ItemStack in net.minecraft.loot
Fields in net.minecraft.loot with type parameters of type ItemStack Modifier and Type Field Description private java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
LootPool. compositeFunction
private java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
LootPool. compositeFunction
private java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
LootTable. compositeFunction
private java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
LootTable. compositeFunction
private java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
StandaloneLootEntry. compositeFunction
private java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
StandaloneLootEntry. compositeFunction
static LootParameter<ItemStack>
LootParameters. TOOL
Methods in net.minecraft.loot that return ItemStack Modifier and Type Method Description ItemStack
LootFunction. apply(ItemStack p_apply_1_, LootContext p_apply_2_)
protected abstract ItemStack
LootFunction. run(ItemStack p_215859_1_, LootContext p_215859_2_)
Methods in net.minecraft.loot that return types with arguments of type ItemStack Modifier and Type Method Description static java.util.function.Consumer<ItemStack>
LootTable. createStackSplitter(java.util.function.Consumer<ItemStack> p_216124_0_)
java.util.List<ItemStack>
LootTable. getRandomItems(LootContext p_216113_1_)
Methods in net.minecraft.loot with parameters of type ItemStack Modifier and Type Method Description ItemStack
LootFunction. apply(ItemStack p_apply_1_, LootContext p_apply_2_)
protected abstract ItemStack
LootFunction. run(ItemStack p_215859_1_, LootContext p_215859_2_)
Method parameters in net.minecraft.loot with type arguments of type ItemStack Modifier and Type Method Description void
LootContext.IDynamicDropProvider. add(LootContext p_add_1_, java.util.function.Consumer<ItemStack> p_add_2_)
void
LootContext. addDynamicDrops(ResourceLocation p_216034_1_, java.util.function.Consumer<ItemStack> p_216034_2_)
private void
LootPool. addRandomItem(java.util.function.Consumer<ItemStack> p_216095_1_, LootContext p_216095_2_)
void
LootPool. addRandomItems(java.util.function.Consumer<ItemStack> p_216091_1_, LootContext p_216091_2_)
void
DynamicLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
void
EmptyLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
void
ILootGenerator. createItemStack(java.util.function.Consumer<ItemStack> p_216188_1_, LootContext p_216188_2_)
void
ItemLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
protected abstract void
StandaloneLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
void
TableLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
void
TagLootEntry. createItemStack(java.util.function.Consumer<ItemStack> p_216154_1_, LootContext p_216154_2_)
static java.util.function.Consumer<ItemStack>
LootTable. createStackSplitter(java.util.function.Consumer<ItemStack> p_216124_0_)
void
LootTable. getRandomItems(LootContext p_216120_1_, java.util.function.Consumer<ItemStack> p_216120_2_)
Deprecated.void
LootTable. getRandomItemsRaw(LootContext p_216114_1_, java.util.function.Consumer<ItemStack> p_216114_2_)
private void
LootTable. shuffleAndSplitItems(java.util.List<ItemStack> p_186463_1_, int p_186463_2_, java.util.Random p_186463_3_)
-
Uses of ItemStack in net.minecraft.loot.functions
Fields in net.minecraft.loot.functions with type parameters of type ItemStack Modifier and Type Field Description static java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionManager. IDENTITY
static java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionManager. IDENTITY
Methods in net.minecraft.loot.functions that return ItemStack Modifier and Type Method Description private static ItemStack
EnchantRandomly. enchantItem(ItemStack p_237420_0_, Enchantment p_237420_1_, java.util.Random p_237420_2_)
ItemStack
ApplyBonus. run(ItemStack p_215859_1_, LootContext p_215859_2_)
protected ItemStack
CopyBlockState. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
CopyName. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
CopyNbt. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
EnchantRandomly. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
EnchantWithLevels. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
ExplorationMap. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
ExplosionDecay. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
FillPlayerHead. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
LimitCount. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
LootingEnchantBonus. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetAttributes. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetContents. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetCount. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetDamage. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetLootTable. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetLore. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetName. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetNBT. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetStewEffect. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
Smelt. run(ItemStack p_215859_1_, LootContext p_215859_2_)
Methods in net.minecraft.loot.functions that return types with arguments of type ItemStack Modifier and Type Method Description static java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionManager. compose(java.util.function.BiFunction<ItemStack,LootContext,ItemStack>[] p_216241_0_)
static java.util.function.BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionManager. compose(java.util.function.BiFunction<ItemStack,LootContext,ItemStack>[] p_216241_0_)
static java.util.function.Consumer<ItemStack>
ILootFunction. decorate(java.util.function.BiFunction<ItemStack,LootContext,ItemStack> p_215858_0_, java.util.function.Consumer<ItemStack> p_215858_1_, LootContext p_215858_2_)
Methods in net.minecraft.loot.functions with parameters of type ItemStack Modifier and Type Method Description private static ItemStack
EnchantRandomly. enchantItem(ItemStack p_237420_0_, Enchantment p_237420_1_, java.util.Random p_237420_2_)
private ListNBT
SetLore. getLoreTag(ItemStack p_215942_1_, boolean p_215942_2_)
ItemStack
ApplyBonus. run(ItemStack p_215859_1_, LootContext p_215859_2_)
protected ItemStack
CopyBlockState. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
CopyName. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
CopyNbt. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
EnchantRandomly. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
EnchantWithLevels. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
ExplorationMap. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
ExplosionDecay. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
FillPlayerHead. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
LimitCount. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
LootingEnchantBonus. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetAttributes. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetContents. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetCount. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetDamage. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetLootTable. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetLore. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetName. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetNBT. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
SetStewEffect. run(ItemStack p_215859_1_, LootContext p_215859_2_)
ItemStack
Smelt. run(ItemStack p_215859_1_, LootContext p_215859_2_)
Method parameters in net.minecraft.loot.functions with type arguments of type ItemStack Modifier and Type Method Description static java.util.function.Consumer<ItemStack>
ILootFunction. decorate(java.util.function.BiFunction<ItemStack,LootContext,ItemStack> p_215858_0_, java.util.function.Consumer<ItemStack> p_215858_1_, LootContext p_215858_2_)
static java.util.function.Consumer<ItemStack>
ILootFunction. decorate(java.util.function.BiFunction<ItemStack,LootContext,ItemStack> p_215858_0_, java.util.function.Consumer<ItemStack> p_215858_1_, LootContext p_215858_2_)
static java.util.function.Consumer<ItemStack>
ILootFunction. decorate(java.util.function.BiFunction<ItemStack,LootContext,ItemStack> p_215858_0_, java.util.function.Consumer<ItemStack> p_215858_1_, LootContext p_215858_2_)
-
Uses of ItemStack in net.minecraft.network
Methods in net.minecraft.network that return ItemStack Modifier and Type Method Description ItemStack
PacketBuffer. readItem()
Methods in net.minecraft.network with parameters of type ItemStack Modifier and Type Method Description PacketBuffer
PacketBuffer. writeItem(ItemStack p_150788_1_)
PacketBuffer
PacketBuffer. writeItemStack(ItemStack p_150788_1_, boolean limitedTag)
Most ItemStack serialization is Server to Client,and doesn't need to know the FULL tag details. -
Uses of ItemStack in net.minecraft.network.datasync
Fields in net.minecraft.network.datasync with type parameters of type ItemStack Modifier and Type Field Description static IDataSerializer<ItemStack>
DataSerializers. ITEM_STACK
-
Uses of ItemStack in net.minecraft.network.play
Methods in net.minecraft.network.play with parameters of type ItemStack Modifier and Type Method Description private static boolean
ServerPlayNetHandler. wasBlockPlacementAttempt(ServerPlayerEntity p_241166_0_, ItemStack p_241166_1_)
-
Uses of ItemStack in net.minecraft.network.play.client
Fields in net.minecraft.network.play.client declared as ItemStack Modifier and Type Field Description private ItemStack
CEditBookPacket. book
private ItemStack
CClickWindowPacket. itemStack
private ItemStack
CCreativeInventoryActionPacket. itemStack
Methods in net.minecraft.network.play.client that return ItemStack Modifier and Type Method Description ItemStack
CEditBookPacket. getBook()
ItemStack
CClickWindowPacket. getItem()
ItemStack
CCreativeInventoryActionPacket. getItem()
Constructors in net.minecraft.network.play.client with parameters of type ItemStack Constructor Description CClickWindowPacket(int p_i46882_1_, int p_i46882_2_, int p_i46882_3_, ClickType p_i46882_4_, ItemStack p_i46882_5_, short p_i46882_6_)
CCreativeInventoryActionPacket(int p_i46862_1_, ItemStack p_i46862_2_)
CEditBookPacket(ItemStack p_i244520_1_, boolean p_i244520_2_, int p_i244520_3_)
-
Uses of ItemStack in net.minecraft.network.play.server
Fields in net.minecraft.network.play.server declared as ItemStack Modifier and Type Field Description private ItemStack
SSetSlotPacket. itemStack
Fields in net.minecraft.network.play.server with type parameters of type ItemStack Modifier and Type Field Description private java.util.List<ItemStack>
SWindowItemsPacket. items
private java.util.List<com.mojang.datafixers.util.Pair<EquipmentSlotType,ItemStack>>
SEntityEquipmentPacket. slots
Methods in net.minecraft.network.play.server that return ItemStack Modifier and Type Method Description ItemStack
SSetSlotPacket. getItem()
Methods in net.minecraft.network.play.server that return types with arguments of type ItemStack Modifier and Type Method Description java.util.List<ItemStack>
SWindowItemsPacket. getItems()
java.util.List<com.mojang.datafixers.util.Pair<EquipmentSlotType,ItemStack>>
SEntityEquipmentPacket. getSlots()
Constructors in net.minecraft.network.play.server with parameters of type ItemStack Constructor Description SSetSlotPacket(int p_i46951_1_, int p_i46951_2_, ItemStack p_i46951_3_)
Constructor parameters in net.minecraft.network.play.server with type arguments of type ItemStack Constructor Description SEntityEquipmentPacket(int p_i241270_1_, java.util.List<com.mojang.datafixers.util.Pair<EquipmentSlotType,ItemStack>> p_i241270_2_)
SWindowItemsPacket(int p_i47317_1_, NonNullList<ItemStack> p_i47317_2_)
-
Uses of ItemStack in net.minecraft.particles
Fields in net.minecraft.particles declared as ItemStack Modifier and Type Field Description private ItemStack
ItemParticleData. itemStack
Methods in net.minecraft.particles that return ItemStack Modifier and Type Method Description ItemStack
ItemParticleData. getItem()
Constructors in net.minecraft.particles with parameters of type ItemStack Constructor Description ItemParticleData(ParticleType<ItemParticleData> p_i47952_1_, ItemStack p_i47952_2_)
-
Uses of ItemStack in net.minecraft.potion
Fields in net.minecraft.potion with type parameters of type ItemStack Modifier and Type Field Description private static java.util.function.Predicate<ItemStack>
PotionBrewing. ALLOWED_CONTAINER
private java.util.List<ItemStack>
EffectInstance. curativeItems
Methods in net.minecraft.potion that return ItemStack Modifier and Type Method Description static ItemStack
PotionBrewing. mix(ItemStack p_185212_0_, ItemStack p_185212_1_)
static ItemStack
PotionUtils. setCustomEffects(ItemStack p_185184_0_, java.util.Collection<EffectInstance> p_185184_1_)
static ItemStack
PotionUtils. setPotion(ItemStack p_185188_0_, Potion p_185188_1_)
Methods in net.minecraft.potion that return types with arguments of type ItemStack Modifier and Type Method Description java.util.List<ItemStack>
EffectInstance. getCurativeItems()
Methods in net.minecraft.potion with parameters of type ItemStack Modifier and Type Method Description static void
PotionUtils. addPotionTooltip(ItemStack p_185182_0_, java.util.List<ITextComponent> p_185182_1_, float p_185182_2_)
static int
PotionUtils. getColor(ItemStack p_190932_0_)
static java.util.List<EffectInstance>
PotionUtils. getCustomEffects(ItemStack p_185190_0_)
static java.util.List<EffectInstance>
PotionUtils. getMobEffects(ItemStack p_185189_0_)
static Potion
PotionUtils. getPotion(ItemStack p_185191_0_)
protected static boolean
PotionBrewing. hasContainerMix(ItemStack p_185206_0_, ItemStack p_185206_1_)
static boolean
PotionBrewing. hasMix(ItemStack p_185208_0_, ItemStack p_185208_1_)
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
PotionBrewing. mix(ItemStack p_185212_0_, ItemStack p_185212_1_)
static ItemStack
PotionUtils. setCustomEffects(ItemStack p_185184_0_, java.util.Collection<EffectInstance> p_185184_1_)
static ItemStack
PotionUtils. setPotion(ItemStack p_185188_0_, Potion p_185188_1_)
Method parameters in net.minecraft.potion with type arguments of type ItemStack Modifier and Type Method Description void
EffectInstance. setCurativeItems(java.util.List<ItemStack> curativeItems)
-
Uses of ItemStack in net.minecraft.server.management
Methods in net.minecraft.server.management with parameters of type ItemStack Modifier and Type Method Description ActionResultType
DemoPlayerInteractionManager. useItem(ServerPlayerEntity p_187250_1_, World p_187250_2_, ItemStack p_187250_3_, Hand p_187250_4_)
ActionResultType
PlayerInteractionManager. useItem(ServerPlayerEntity p_187250_1_, World p_187250_2_, ItemStack p_187250_3_, Hand p_187250_4_)
ActionResultType
DemoPlayerInteractionManager. useItemOn(ServerPlayerEntity p_219441_1_, World p_219441_2_, ItemStack p_219441_3_, Hand p_219441_4_, BlockRayTraceResult p_219441_5_)
ActionResultType
PlayerInteractionManager. useItemOn(ServerPlayerEntity p_219441_1_, World p_219441_2_, ItemStack p_219441_3_, Hand p_219441_4_, BlockRayTraceResult p_219441_5_)
-
Uses of ItemStack in net.minecraft.test
Methods in net.minecraft.test that return ItemStack Modifier and Type Method Description private static ItemStack
TestUtils. createBook(java.lang.String p_229546_0_, boolean p_229546_1_, java.lang.String p_229546_2_)
-
Uses of ItemStack in net.minecraft.tileentity
Fields in net.minecraft.tileentity declared as ItemStack Modifier and Type Field Description private ItemStack
LecternTileEntity. book
private ItemStack
JukeboxTileEntity. record
Fields in net.minecraft.tileentity with type parameters of type ItemStack Modifier and Type Field Description protected NonNullList<ItemStack>
AbstractFurnaceTileEntity. items
private NonNullList<ItemStack>
BarrelTileEntity. items
private NonNullList<ItemStack>
BrewingStandTileEntity. items
private NonNullList<ItemStack>
CampfireTileEntity. items
private NonNullList<ItemStack>
ChestTileEntity. items
private NonNullList<ItemStack>
DispenserTileEntity. items
private NonNullList<ItemStack>
HopperTileEntity. items
private NonNullList<ItemStack>
ShulkerBoxTileEntity. itemStacks
Methods in net.minecraft.tileentity that return ItemStack Modifier and Type Method Description static ItemStack
HopperTileEntity. addItem(IInventory p_174918_0_, IInventory p_174918_1_, ItemStack p_174918_2_, Direction p_174918_3_)
ItemStack
LecternTileEntity. getBook()
ItemStack
AbstractFurnaceTileEntity. getItem(int p_70301_1_)
ItemStack
BannerTileEntity. getItem(BlockState p_190615_1_)
ItemStack
BrewingStandTileEntity. getItem(int p_70301_1_)
ItemStack
LockableLootTileEntity. getItem(int p_70301_1_)
ItemStack
JukeboxTileEntity. getRecord()
ItemStack
AbstractFurnaceTileEntity. removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
BrewingStandTileEntity. removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
HopperTileEntity. removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
LockableLootTileEntity. removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
AbstractFurnaceTileEntity. removeItemNoUpdate(int p_70304_1_)
ItemStack
BrewingStandTileEntity. removeItemNoUpdate(int p_70304_1_)
ItemStack
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_)
Methods in net.minecraft.tileentity that return types with arguments of type ItemStack Modifier and Type Method Description protected NonNullList<ItemStack>
BarrelTileEntity. getItems()
NonNullList<ItemStack>
CampfireTileEntity. getItems()
protected NonNullList<ItemStack>
ChestTileEntity. getItems()
protected NonNullList<ItemStack>
DispenserTileEntity. getItems()
protected NonNullList<ItemStack>
HopperTileEntity. getItems()
protected abstract NonNullList<ItemStack>
LockableLootTileEntity. getItems()
protected NonNullList<ItemStack>
ShulkerBoxTileEntity. getItems()
Methods in net.minecraft.tileentity with parameters of type ItemStack Modifier and Type Method Description int
DispenserTileEntity. addItem(ItemStack p_146019_1_)
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
BannerTileEntity. fromItem(ItemStack p_195534_1_, DyeColor p_195534_2_)
protected int
AbstractFurnaceTileEntity. getBurnDuration(ItemStack p_213997_1_)
protected int
BlastFurnaceTileEntity. getBurnDuration(ItemStack p_213997_1_)
protected int
SmokerTileEntity. getBurnDuration(ItemStack p_213997_1_)
java.util.Optional<CampfireCookingRecipe>
CampfireTileEntity. getCookableRecipe(ItemStack p_213980_1_)
static ListNBT
BannerTileEntity. getItemPatterns(ItemStack p_230139_0_)
static int
BannerTileEntity. getPatternCount(ItemStack p_175113_0_)
static boolean
AbstractFurnaceTileEntity. isFuel(ItemStack p_213991_0_)
boolean
CampfireTileEntity. placeFood(ItemStack p_213984_1_, int p_213984_2_)
static void
BannerTileEntity. removeLastPattern(ItemStack p_175117_0_)
private ItemStack
LecternTileEntity. resolveBook(ItemStack p_214047_1_, PlayerEntity p_214047_2_)
void
LecternTileEntity. setBook(ItemStack p_214045_1_)
void
LecternTileEntity. setBook(ItemStack p_214040_1_, PlayerEntity p_214040_2_)
void
AbstractFurnaceTileEntity. setItem(int p_70299_1_, ItemStack p_70299_2_)
void
BrewingStandTileEntity. setItem(int p_70299_1_, ItemStack p_70299_2_)
void
HopperTileEntity. setItem(int p_70299_1_, ItemStack p_70299_2_)
void
LockableLootTileEntity. setItem(int p_70299_1_, ItemStack p_70299_2_)
void
JukeboxTileEntity. setRecord(ItemStack p_195535_1_)
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_)
Method parameters in net.minecraft.tileentity with type arguments of type ItemStack Modifier and Type Method Description protected 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
Fields in net.minecraft.util declared as ItemStack Modifier and Type Field Description private ItemStack
EntityPredicates.ArmoredMob. itemStack
Methods in net.minecraft.util that return ItemStack Modifier and Type Method Description static 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_)
Methods in net.minecraft.util that return types with arguments of type ItemStack Modifier and Type Method Description static ActionResult<ItemStack>
DrinkHelper. useDrink(World p_234707_0_, PlayerEntity p_234707_1_, Hand p_234707_2_)
Methods in net.minecraft.util with parameters of type ItemStack Modifier and Type Method Description static 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
FoodStats. eat(Item p_221410_1_, ItemStack p_221410_2_)
Constructors in net.minecraft.util with parameters of type ItemStack Constructor Description ArmoredMob(ItemStack p_i1584_1_)
-
Uses of ItemStack in net.minecraft.util.text.event
Fields in net.minecraft.util.text.event declared as ItemStack Modifier and Type Field Description private ItemStack
HoverEvent.ItemHover. itemStack
Methods in net.minecraft.util.text.event that return ItemStack Modifier and Type Method Description ItemStack
HoverEvent.ItemHover. getItemStack()
Constructors in net.minecraft.util.text.event with parameters of type ItemStack Constructor Description ItemHover(ItemStack p_i232568_1_)
-
Uses of ItemStack in net.minecraft.world
Methods in net.minecraft.world with parameters of type ItemStack Modifier and Type Method Description private 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_)
Method parameters in net.minecraft.world with type arguments of type ItemStack Modifier and Type Method Description private 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
Methods in net.minecraft.world.raid that return ItemStack Modifier and Type Method Description static ItemStack
Raid. getLeaderBannerInstance()
-
Uses of ItemStack in net.minecraft.world.storage
Methods in net.minecraft.world.storage with parameters of type ItemStack Modifier and Type Method Description static void
MapData. addTargetDecoration(ItemStack p_191094_0_, BlockPos p_191094_1_, java.lang.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
Methods in net.minecraftforge.client with parameters of type ItemStack Modifier and Type Method Description static 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 java.lang.String
ForgeHooksClient. getArmorTexture(Entity entity, ItemStack armor, java.lang.String _default, EquipmentSlotType slot, java.lang.String type)
int
FluidContainerColorer. getColor(ItemStack stack, int tintIndex)
ModelResourceLocation
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
Fields in net.minecraftforge.client.event declared as ItemStack Modifier and Type Field Description private ItemStack
RenderItemInFrameEvent. item
private ItemStack
RenderHandEvent. stack
protected ItemStack
RenderTooltipEvent. stack
Methods in net.minecraftforge.client.event that return ItemStack Modifier and Type Method Description ItemStack
RenderItemInFrameEvent. getItem()
ItemStack
RenderHandEvent. getItemStack()
ItemStack
RenderTooltipEvent. getStack()
Constructors in net.minecraftforge.client.event with parameters of type ItemStack Constructor Description Color(ItemStack stack, java.util.List<? extends ITextProperties> textLines, MatrixStack matrixStack, int x, int y, FontRenderer fr, int background, int borderStart, int borderEnd)
Post(ItemStack stack, java.util.List<? extends ITextProperties> textLines, MatrixStack matrixStack, int x, int y, FontRenderer fr, int width, int height)
PostBackground(ItemStack stack, java.util.List<? extends ITextProperties> textLines, MatrixStack matrixStack, int x, int y, FontRenderer fr, int width, int height)
PostText(ItemStack stack, java.util.List<? extends ITextProperties> textLines, MatrixStack matrixStack, int x, int y, FontRenderer fr, int width, int height)
Pre(ItemStack stack, java.util.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, java.util.List<? extends ITextProperties> lines, MatrixStack matrixStack, int x, int y, FontRenderer fr)
-
Uses of ItemStack in net.minecraftforge.client.extensions
Methods in net.minecraftforge.client.extensions with parameters of type ItemStack Modifier and Type Method Description default java.util.List<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>>
IForgeBakedModel. getLayerModels(ItemStack itemStack, boolean fabulous)
If {@see isLayered()} returns true, this is called to get the list of layers to draw. -
Uses of ItemStack in net.minecraftforge.client.model
Methods in net.minecraftforge.client.model with parameters of type ItemStack Modifier and Type Method Description java.util.List<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>>
ItemMultiLayerBakedModel. getLayerModels(ItemStack itemStack, boolean fabulous)
java.util.List<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>>
MultiLayerModel.MultiLayerBakedModel. getLayerModels(ItemStack itemStack, boolean fabulous)
IBakedModel
DynamicBucketModel.ContainedFluidOverrideHandler. resolve(IBakedModel originalModel, ItemStack stack, ClientWorld world, LivingEntity entity)
IBakedModel
PerspectiveMapWrapper.OverrideListWrapper. resolve(IBakedModel model, ItemStack stack, ClientWorld worldIn, LivingEntity entityIn)
-
Uses of ItemStack in net.minecraftforge.client.model.animation
Methods in net.minecraftforge.client.model.animation with parameters of type ItemStack Modifier and Type Method Description IBakedModel
AnimationItemOverrideList. resolve(IBakedModel originalModel, ItemStack stack, ClientWorld world, LivingEntity entity)
-
Uses of ItemStack in net.minecraftforge.common
Fields in net.minecraftforge.common declared as ItemStack Modifier and Type Field Description protected ItemStack
BasicTrade. forSale
protected ItemStack
BasicTrade. price
protected ItemStack
BasicTrade. price2
Methods in net.minecraftforge.common that return ItemStack Modifier and Type Method Description static ItemStack
ForgeHooks. getContainerItem(ItemStack stack)
Methods in net.minecraftforge.common that return types with arguments of type ItemStack Modifier and Type Method Description static java.util.List<ItemStack>
ForgeHooks. modifyLoot(java.util.List<ItemStack> list, LootContext context)
Deprecated.static java.util.List<ItemStack>
ForgeHooks. modifyLoot(ResourceLocation lootTableId, java.util.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.default java.util.List<ItemStack>
IForgeShearable. onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune)
Performs the shear function on this object.Methods in net.minecraftforge.common with parameters of type ItemStack Modifier and Type Method Description static 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 java.lang.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, java.lang.String name, int baseCost)
Deprecated.static boolean
ForgeHooks. onAnvilChange(RepairContainer container, ItemStack left, ItemStack right, IInventory outputSlot, java.lang.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)
default java.util.List<ItemStack>
IForgeShearable. onSheared(PlayerEntity player, ItemStack item, World world, BlockPos pos, int fortune)
Performs the shear function on this object.Method parameters in net.minecraftforge.common with type arguments of type ItemStack Modifier and Type Method Description static java.util.List<ItemStack>
ForgeHooks. modifyLoot(java.util.List<ItemStack> list, LootContext context)
Deprecated.static java.util.List<ItemStack>
ForgeHooks. modifyLoot(ResourceLocation lootTableId, java.util.List<ItemStack> generatedLoot, LootContext context)
Handles the modification of loot table drops via the registered Global Loot Modifiers, so that custom effects can be processed.Constructors in net.minecraftforge.common with parameters of type ItemStack Constructor Description BasicTrade(int emeralds, ItemStack forSale, int maxTrades, int xp)
BasicTrade(int emeralds, ItemStack forSale, int maxTrades, int xp, float mult)
BasicTrade(ItemStack price, ItemStack forSale, int maxTrades, int xp, float priceMult)
BasicTrade(ItemStack price, ItemStack price2, ItemStack forSale, int maxTrades, int xp, float priceMult)
-
Uses of ItemStack in net.minecraftforge.common.brewing
Fields in net.minecraftforge.common.brewing declared as ItemStack Modifier and Type Field Description private ItemStack
BrewingRecipe. output
Methods in net.minecraftforge.common.brewing that return ItemStack Modifier and Type Method Description ItemStack
BrewingRecipe. getOutput()
ItemStack
BrewingRecipe. getOutput(ItemStack input, ItemStack ingredient)
static ItemStack
BrewingRecipeRegistry. getOutput(ItemStack input, ItemStack ingredient)
Returns the output ItemStack obtained by brewing the passed input and ingredient.ItemStack
IBrewingRecipe. getOutput(ItemStack input, ItemStack ingredient)
Returns the output when the passed input is brewed with the passed ingredient.ItemStack
VanillaBrewingRecipe. getOutput(ItemStack input, ItemStack ingredient)
Code copied from TileEntityBrewingStand.brewPotions() It brews the potion by doing the bit-shifting magic and then checking if the new PotionEffect list is different to the old one, or if the new potion is a splash potion when the old one wasn't.Methods in net.minecraftforge.common.brewing with parameters of type ItemStack Modifier and Type Method Description static 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.ItemStack
BrewingRecipe. getOutput(ItemStack input, ItemStack ingredient)
static ItemStack
BrewingRecipeRegistry. getOutput(ItemStack input, ItemStack ingredient)
Returns the output ItemStack obtained by brewing the passed input and ingredient.ItemStack
IBrewingRecipe. getOutput(ItemStack input, ItemStack ingredient)
Returns the output when the passed input is brewed with the passed ingredient.ItemStack
VanillaBrewingRecipe. getOutput(ItemStack input, ItemStack 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
BrewingRecipeRegistry. hasOutput(ItemStack input, ItemStack ingredient)
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
BrewingRecipe. isInput(ItemStack stack)
boolean
IBrewingRecipe. isInput(ItemStack input)
Returns true is the passed ItemStack is an input for this recipe.boolean
VanillaBrewingRecipe. isInput(ItemStack stack)
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.Method parameters in net.minecraftforge.common.brewing with type arguments of type ItemStack Modifier and Type Method Description 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.Constructors in net.minecraftforge.common.brewing with parameters of type ItemStack Constructor Description BrewingRecipe(Ingredient input, Ingredient ingredient, ItemStack output)
-
Uses of ItemStack in net.minecraftforge.common.capabilities
Fields in net.minecraftforge.common.capabilities with type parameters of type ItemStack Modifier and Type Field Description private static java.util.List<ItemStack>
LazyCapabilitiesOnItemsTest. NO_CAPS_DISABLED_RESULTS
private static java.util.List<ItemStack>
LazyCapabilitiesOnItemsTest. NO_CAPS_ENABLED_RESULTS
private static java.util.List<ItemStack>
LazyCapabilitiesOnItemsTest. WARMUP_RESULTS
private static java.util.List<ItemStack>
LazyCapabilitiesOnItemsTest. WITH_CAPS_DISABLED_RESULTS
private static java.util.List<ItemStack>
LazyCapabilitiesOnItemsTest. WITH_CAPS_ENABLED_RESULTS
-
Uses of ItemStack in net.minecraftforge.common.crafting
Fields in net.minecraftforge.common.crafting declared as ItemStack Modifier and Type Field Description private ItemStack
NBTIngredient. stack
private ItemStack[]
CompoundIngredient. stacks
Fields in net.minecraftforge.common.crafting with type parameters of type ItemStack Modifier and Type Field Description private java.util.Collection<ItemStack>
StackList. items
Methods in net.minecraftforge.common.crafting that return ItemStack Modifier and Type Method Description ItemStack[]
CompoundIngredient. getItems()
static ItemStack
CraftingHelper. getItemStack(com.google.gson.JsonObject json, boolean readNBT)
Methods in net.minecraftforge.common.crafting that return types with arguments of type ItemStack Modifier and Type Method Description java.util.Collection<ItemStack>
StackList. getItems()
Methods in net.minecraftforge.common.crafting with parameters of type ItemStack Modifier and Type Method Description boolean
CompoundIngredient. test(ItemStack target)
boolean
NBTIngredient. test(ItemStack input)
private com.google.gson.JsonObject
StackList. toJson(ItemStack stack)
Constructors in net.minecraftforge.common.crafting with parameters of type ItemStack Constructor Description NBTIngredient(ItemStack stack)
Constructor parameters in net.minecraftforge.common.crafting with type arguments of type ItemStack Constructor Description StackList(java.util.Collection<ItemStack> items)
-
Uses of ItemStack in net.minecraftforge.common.data
Methods in net.minecraftforge.common.data with parameters of type ItemStack Modifier and Type Method Description void
LanguageProvider. add(ItemStack key, java.lang.String name)
Method parameters in net.minecraftforge.common.data with type arguments of type ItemStack Modifier and Type Method Description void
LanguageProvider. addItemStack(java.util.function.Supplier<ItemStack> key, java.lang.String name)
-
Uses of ItemStack in net.minecraftforge.common.extensions
Methods in net.minecraftforge.common.extensions that return ItemStack Modifier and Type Method Description default 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()
Methods in net.minecraftforge.common.extensions that return types with arguments of type ItemStack Modifier and Type Method Description default java.util.List<ItemStack>
IForgeEffect. getCurativeItems()
Get a fresh list of items that can cure this Potion.java.util.List<ItemStack>
IForgeEffectInstance. getCurativeItems()
Returns a list of curative items for the potion effect By default, this list is initialized usingPotion#getCurativeItems
Methods in net.minecraftforge.common.extensions with parameters of type ItemStack Modifier and Type Method Description default 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, java.util.function.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
IForgeItemStack. equals(ItemStack other, boolean limitTags)
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 java.lang.String
IForgeItem. getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType slot, java.lang.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 java.lang.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
IForgeItem. getDamage(ItemStack stack)
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.java.util.Set<ToolType>
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
IForgeItem. isDamaged(ItemStack stack)
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
IForgeItem. setDamage(ItemStack stack, int damage)
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.Method parameters in net.minecraftforge.common.extensions with type arguments of type ItemStack Modifier and Type Method Description void
IForgeEffectInstance. setCurativeItems(java.util.List<ItemStack> curativeItems)
Sets the list of curative items for this potion effect, overwriting any already present -
Uses of ItemStack in net.minecraftforge.common.loot
Methods in net.minecraftforge.common.loot that return types with arguments of type ItemStack Modifier and Type Method Description java.util.List<ItemStack>
IGlobalLootModifier. apply(java.util.List<ItemStack> generatedLoot, LootContext context)
Applies the modifier to the list of generated loot.java.util.List<ItemStack>
LootModifier. apply(java.util.List<ItemStack> generatedLoot, LootContext context)
protected abstract java.util.List<ItemStack>
LootModifier. doApply(java.util.List<ItemStack> generatedLoot, LootContext context)
Applies the modifier to the generated loot (all loot conditions have already been checked and have returned true).Method parameters in net.minecraftforge.common.loot with type arguments of type ItemStack Modifier and Type Method Description java.util.List<ItemStack>
IGlobalLootModifier. apply(java.util.List<ItemStack> generatedLoot, LootContext context)
Applies the modifier to the list of generated loot.java.util.List<ItemStack>
LootModifier. apply(java.util.List<ItemStack> generatedLoot, LootContext context)
protected abstract java.util.List<ItemStack>
LootModifier. doApply(java.util.List<ItemStack> generatedLoot, LootContext context)
Applies the modifier to the generated loot (all loot conditions have already been checked and have returned true). -
Uses of ItemStack in net.minecraftforge.debug.gameplay.loot
Methods in net.minecraftforge.debug.gameplay.loot that return ItemStack Modifier and Type Method Description private static ItemStack
GlobalLootModifiersTest.SmeltingEnchantmentModifier. smelt(ItemStack stack, LootContext context)
Methods in net.minecraftforge.debug.gameplay.loot that return types with arguments of type ItemStack Modifier and Type Method Description protected java.util.List<ItemStack>
GlobalLootModifiersTest.DungeonLootEnhancerModifier. doApply(java.util.List<ItemStack> generatedLoot, LootContext context)
java.util.List<ItemStack>
GlobalLootModifiersTest.SilkTouchTestModifier. doApply(java.util.List<ItemStack> generatedLoot, LootContext context)
java.util.List<ItemStack>
GlobalLootModifiersTest.SmeltingEnchantmentModifier. doApply(java.util.List<ItemStack> generatedLoot, LootContext context)
java.util.List<ItemStack>
GlobalLootModifiersTest.WheatSeedsConverterModifier. doApply(java.util.List<ItemStack> generatedLoot, LootContext context)
Methods in net.minecraftforge.debug.gameplay.loot with parameters of type ItemStack Modifier and Type Method Description private static ItemStack
GlobalLootModifiersTest.SmeltingEnchantmentModifier. smelt(ItemStack stack, LootContext context)
Method parameters in net.minecraftforge.debug.gameplay.loot with type arguments of type ItemStack Modifier and Type Method Description protected java.util.List<ItemStack>
GlobalLootModifiersTest.DungeonLootEnhancerModifier. doApply(java.util.List<ItemStack> generatedLoot, LootContext context)
java.util.List<ItemStack>
GlobalLootModifiersTest.SilkTouchTestModifier. doApply(java.util.List<ItemStack> generatedLoot, LootContext context)
java.util.List<ItemStack>
GlobalLootModifiersTest.SmeltingEnchantmentModifier. doApply(java.util.List<ItemStack> generatedLoot, LootContext context)
java.util.List<ItemStack>
GlobalLootModifiersTest.WheatSeedsConverterModifier. doApply(java.util.List<ItemStack> generatedLoot, LootContext context)
-
Uses of ItemStack in net.minecraftforge.debug.item
Methods in net.minecraftforge.debug.item with parameters of type ItemStack Modifier and Type Method Description boolean
CustomElytraTest.CustomElytra. canElytraFly(ItemStack stack, LivingEntity entity)
boolean
CustomElytraTest.CustomElytra. elytraFlightTick(ItemStack stack, LivingEntity entity, int flightTicks)
ResourceLocation
CustomElytraTest.CustomElytraLayer. getElytraTexture(ItemStack stack, AbstractClientPlayerEntity entity)
EquipmentSlotType
CustomElytraTest.CustomElytra. getEquipmentSlot(ItemStack stack)
boolean
CustomElytraTest.CustomElytraLayer. shouldRender(ItemStack stack, AbstractClientPlayerEntity entity)
-
Uses of ItemStack in net.minecraftforge.event
Fields in net.minecraftforge.event declared as ItemStack Modifier and Type Field Description private ItemStack
AnvilUpdateEvent. left
private ItemStack
AnvilUpdateEvent. output
private ItemStack
AnvilUpdateEvent. right
private ItemStack
ItemAttributeModifierEvent. stack
Methods in net.minecraftforge.event that return ItemStack Modifier and Type Method Description ItemStack
ItemAttributeModifierEvent. getItemStack()
Gets the item stack instanceItemStack
AnvilUpdateEvent. getLeft()
ItemStack
AnvilUpdateEvent. getOutput()
This is the output as determined by the event, not by the vanilla behavior between these two items.ItemStack
AnvilUpdateEvent. getRight()
static ItemStack
ForgeEventFactory. onItemUseFinish(LivingEntity entity, ItemStack item, int duration, ItemStack result)
Methods in net.minecraftforge.event that return types with arguments of type ItemStack Modifier and Type Method Description 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)
Methods in net.minecraftforge.event with parameters of type ItemStack Modifier and Type Method Description static 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, java.util.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
AnvilUpdateEvent. setOutput(ItemStack output)
Sets the output slot to a specific itemstack.Method parameters in net.minecraftforge.event with type arguments of type ItemStack Modifier and Type Method Description static boolean
ForgeEventFactory. onPotionAttemptBrew(NonNullList<ItemStack> stacks)
static void
ForgeEventFactory. onPotionBrewed(NonNullList<ItemStack> brewingItemStacks)
Constructors in net.minecraftforge.event with parameters of type ItemStack Constructor Description AnvilUpdateEvent(ItemStack left, ItemStack right, java.lang.String name, int cost)
Deprecated.AnvilUpdateEvent(ItemStack left, ItemStack right, java.lang.String name, int cost, PlayerEntity player)
ItemAttributeModifierEvent(ItemStack stack, EquipmentSlotType slotType, com.google.common.collect.Multimap<Attribute,AttributeModifier> modifiers)
-
Uses of ItemStack in net.minecraftforge.event.brewing
Fields in net.minecraftforge.event.brewing declared as ItemStack Modifier and Type Field Description private ItemStack
PlayerBrewedPotionEvent. stack
Fields in net.minecraftforge.event.brewing with type parameters of type ItemStack Modifier and Type Field Description private NonNullList<ItemStack>
PotionBrewEvent. stacks
Methods in net.minecraftforge.event.brewing that return ItemStack Modifier and Type Method Description ItemStack
PotionBrewEvent. getItem(int index)
ItemStack
PlayerBrewedPotionEvent. getStack()
The ItemStack of the potion.Methods in net.minecraftforge.event.brewing with parameters of type ItemStack Modifier and Type Method Description void
PotionBrewEvent. setItem(int index, ItemStack stack)
Constructors in net.minecraftforge.event.brewing with parameters of type ItemStack Constructor Description PlayerBrewedPotionEvent(PlayerEntity player, ItemStack stack)
Constructor parameters in net.minecraftforge.event.brewing with type arguments of type ItemStack Constructor Description Post(NonNullList<ItemStack> stacks)
PotionBrewEvent(NonNullList<ItemStack> stacks)
Pre(NonNullList<ItemStack> stacks)
-
Uses of ItemStack in net.minecraftforge.event.enchanting
Fields in net.minecraftforge.event.enchanting declared as ItemStack Modifier and Type Field Description private ItemStack
EnchantmentLevelSetEvent. itemStack
Methods in net.minecraftforge.event.enchanting that return ItemStack Modifier and Type Method Description ItemStack
EnchantmentLevelSetEvent. getItem()
Get the item being enchantedConstructors in net.minecraftforge.event.enchanting with parameters of type ItemStack Constructor Description EnchantmentLevelSetEvent(World world, BlockPos pos, int enchantRow, int power, ItemStack itemStack, int level)
-
Uses of ItemStack in net.minecraftforge.event.entity.living
Fields in net.minecraftforge.event.entity.living declared as ItemStack Modifier and Type Field Description private ItemStack
LivingEquipmentChangeEvent. from
private ItemStack
LivingEntityUseItemEvent. item
private ItemStack
LivingEntityUseItemEvent.Finish. result
private ItemStack
LivingEquipmentChangeEvent. to
Methods in net.minecraftforge.event.entity.living that return ItemStack Modifier and Type Method Description ItemStack
LivingEquipmentChangeEvent. getFrom()
ItemStack
LivingEntityUseItemEvent. getItem()
ItemStack
LivingEntityUseItemEvent.Finish. getResultStack()
ItemStack
LivingEquipmentChangeEvent. getTo()
Methods in net.minecraftforge.event.entity.living with parameters of type ItemStack Modifier and Type Method Description void
LivingEntityUseItemEvent.Finish. setResultStack(ItemStack result)
Constructors in net.minecraftforge.event.entity.living with parameters of type ItemStack Constructor Description Finish(LivingEntity entity, ItemStack item, int duration, ItemStack result)
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
Fields in net.minecraftforge.event.entity.player declared as ItemStack Modifier and Type Field Description private ItemStack
ArrowLooseEvent. bow
private ItemStack
ArrowNockEvent. bow
private ItemStack
PlayerEvent.ItemCraftedEvent. crafting
private ItemStack
FillBucketEvent. current
private ItemStack
ItemTooltipEvent. itemStack
private ItemStack
AnvilRepairEvent. left
private ItemStack
PlayerDestroyItemEvent. original
private ItemStack
AnvilRepairEvent. output
private ItemStack
FillBucketEvent. result
private ItemStack
AnvilRepairEvent. right
private ItemStack
PlayerEvent.ItemSmeltedEvent. smelting
private ItemStack
BonemealEvent. stack
private ItemStack
PlayerEvent.ItemPickupEvent. stack
Clone item stack, containing the item and amount picked upFields in net.minecraftforge.event.entity.player with type parameters of type ItemStack Modifier and Type Field Description private ActionResult<ItemStack>
ArrowNockEvent. action
private NonNullList<ItemStack>
ItemFishedEvent. stacks
Methods in net.minecraftforge.event.entity.player that return ItemStack Modifier and Type Method Description ItemStack
ArrowLooseEvent. getBow()
ItemStack
ArrowNockEvent. getBow()
ItemStack
PlayerEvent.ItemCraftedEvent. getCrafting()
ItemStack
FillBucketEvent. getEmptyBucket()
ItemStack
FillBucketEvent. getFilledBucket()
ItemStack
AnvilRepairEvent. getIngredientInput()
Get the second item input into the anvilItemStack
AnvilRepairEvent. getItemInput()
Get the first item input into the anvilItemStack
AnvilRepairEvent. getItemResult()
Get the output result from the anvilItemStack
ItemTooltipEvent. getItemStack()
TheItemStack
with the tooltip.ItemStack
PlayerInteractEvent. getItemStack()
ItemStack
PlayerDestroyItemEvent. getOriginal()
ItemStack
PlayerEvent.ItemSmeltedEvent. getSmelting()
ItemStack
BonemealEvent. getStack()
ItemStack
PlayerEvent.ItemPickupEvent. getStack()
Methods in net.minecraftforge.event.entity.player that return types with arguments of type ItemStack Modifier and Type Method Description ActionResult<ItemStack>
ArrowNockEvent. getAction()
NonNullList<ItemStack>
ItemFishedEvent. getDrops()
Use this to get the items the player will receive.Methods in net.minecraftforge.event.entity.player with parameters of type ItemStack Modifier and Type Method Description void
FillBucketEvent. setFilledBucket(ItemStack bucket)
Method parameters in net.minecraftforge.event.entity.player with type arguments of type ItemStack Modifier and Type Method Description void
ArrowNockEvent. setAction(ActionResult<ItemStack> action)
Constructors in net.minecraftforge.event.entity.player with parameters of type ItemStack Constructor Description AnvilRepairEvent(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, java.util.List<ITextComponent> list, ITooltipFlag flags)
This event is fired inItemStack#getTooltip(EntityPlayer, ITooltipFlag)
, which in turn is called from it's respective GUIContainer.PlayerDestroyItemEvent(PlayerEntity player, ItemStack original, Hand hand)
Constructor parameters in net.minecraftforge.event.entity.player with type arguments of type ItemStack Constructor Description ItemFishedEvent(java.util.List<ItemStack> stacks, int rodDamage, FishingBobberEntity hook)
-
Uses of ItemStack in net.minecraftforge.event.furnace
Fields in net.minecraftforge.event.furnace declared as ItemStack Modifier and Type Field Description private ItemStack
FurnaceFuelBurnTimeEvent. itemStack
Methods in net.minecraftforge.event.furnace that return ItemStack Modifier and Type Method Description ItemStack
FurnaceFuelBurnTimeEvent. getItemStack()
Get the ItemStack "fuel" in question.Constructors in net.minecraftforge.event.furnace with parameters of type ItemStack Constructor Description FurnaceFuelBurnTimeEvent(ItemStack itemStack, int burnTime)
Deprecated.FurnaceFuelBurnTimeEvent(ItemStack itemStack, int burnTime, IRecipeType<?> recipeType)
-
Uses of ItemStack in net.minecraftforge.event.world
Fields in net.minecraftforge.event.world declared as ItemStack Modifier and Type Field Description private ItemStack
BlockEvent.BlockToolInteractEvent. stack
Methods in net.minecraftforge.event.world that return ItemStack Modifier and Type Method Description ItemStack
BlockEvent.BlockToolInteractEvent. getHeldItemStack()
Gets the tool being used.Constructors in net.minecraftforge.event.world with parameters of type ItemStack Constructor Description BlockToolInteractEvent(IWorld world, BlockPos pos, BlockState originalState, PlayerEntity player, ItemStack stack, ToolType toolType)
-
Uses of ItemStack in net.minecraftforge.fluids
Fields in net.minecraftforge.fluids declared as ItemStack Modifier and Type Field Description ItemStack
FluidActionResult. result
Methods in net.minecraftforge.fluids that return ItemStack Modifier and Type Method Description private ItemStack
DispenseFluidContainer. dumpContainer(IBlockSource source, ItemStack stack)
Drains a filled container and places the fluid in front of the Dispenser.ItemStack
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.ItemStack
FluidAttributes. getBucket(FluidStack stack)
static ItemStack
FluidUtil. getFilledBucket(FluidStack fluidStack)
ItemStack
FluidActionResult. getResult()
Methods in net.minecraftforge.fluids with parameters of type ItemStack Modifier and Type Method Description private ItemStack
DispenseFluidContainer. dumpContainer(IBlockSource source, ItemStack stack)
Drains a filled container and places the fluid in front of the Dispenser.ItemStack
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 java.util.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)
.Constructors in net.minecraftforge.fluids with parameters of type ItemStack Constructor Description FluidActionResult(boolean success, ItemStack result)
FluidActionResult(ItemStack result)
-
Uses of ItemStack in net.minecraftforge.fluids.capability
Methods in net.minecraftforge.fluids.capability that return ItemStack Modifier and Type Method Description ItemStack
IFluidHandlerItem. getContainer()
Get the container currently acted on by this fluid handler.Methods in net.minecraftforge.fluids.capability with parameters of type ItemStack Modifier and Type Method Description ICapabilityProvider
ItemFluidContainer. initCapabilities(ItemStack stack, CompoundNBT nbt)
-
Uses of ItemStack in net.minecraftforge.fluids.capability.templates
Fields in net.minecraftforge.fluids.capability.templates declared as ItemStack Modifier and Type Field Description protected ItemStack
FluidHandlerItemStack. container
protected ItemStack
FluidHandlerItemStackSimple. container
protected ItemStack
FluidHandlerItemStack.SwapEmpty. emptyContainer
protected ItemStack
FluidHandlerItemStackSimple.SwapEmpty. emptyContainer
Methods in net.minecraftforge.fluids.capability.templates that return ItemStack Modifier and Type Method Description ItemStack
FluidHandlerItemStack. getContainer()
ItemStack
FluidHandlerItemStackSimple. getContainer()
Constructors in net.minecraftforge.fluids.capability.templates with parameters of type ItemStack Constructor Description Consumable(ItemStack container, int capacity)
Consumable(ItemStack container, int capacity)
FluidHandlerItemStack(ItemStack container, int capacity)
FluidHandlerItemStackSimple(ItemStack container, int capacity)
SwapEmpty(ItemStack container, ItemStack emptyContainer, int capacity)
SwapEmpty(ItemStack container, ItemStack emptyContainer, int capacity)
-
Uses of ItemStack in net.minecraftforge.fluids.capability.wrappers
Fields in net.minecraftforge.fluids.capability.wrappers declared as ItemStack Modifier and Type Field Description protected ItemStack
FluidBucketWrapper. container
Methods in net.minecraftforge.fluids.capability.wrappers that return ItemStack Modifier and Type Method Description ItemStack
FluidBucketWrapper. getContainer()
Constructors in net.minecraftforge.fluids.capability.wrappers with parameters of type ItemStack Constructor Description FluidBucketWrapper(ItemStack container)
-
Uses of ItemStack in net.minecraftforge.fml.client.gui
Fields in net.minecraftforge.fml.client.gui declared as ItemStack Modifier and Type Field Description private static ItemStack
GuiUtils. cachedTooltipStack
Methods in net.minecraftforge.fml.client.gui with parameters of type ItemStack Modifier and Type Method Description static void
GuiUtils. drawHoveringText(ItemStack stack, MatrixStack mStack, java.util.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, java.util.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
Methods in net.minecraftforge.fml.hooks with parameters of type ItemStack Modifier and Type Method Description static 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
Fields in net.minecraftforge.items with type parameters of type ItemStack Modifier and Type Field Description protected NonNullList<ItemStack>
ItemStackHandler. stacks
Methods in net.minecraftforge.items that return ItemStack Modifier and Type Method Description static ItemStack
ItemHandlerHelper. copyStackWithSize(ItemStack itemStack, int size)
ItemStack
IItemHandler. extractItem(int slot, int amount, boolean simulate)
Extracts an ItemStack from the given slot.ItemStack
ItemStackHandler. extractItem(int slot, int amount, boolean simulate)
ItemStack
SlotItemHandler. getItem()
ItemStack
IItemHandler. getStackInSlot(int slot)
Returns the ItemStack in a given slot.ItemStack
ItemStackHandler. getStackInSlot(int slot)
ItemStack
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)
ItemStack
ItemStackHandler. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
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, java.lang.Object destination, IItemHandler destInventory, ItemStack stack, int slot)
Copied from TileEntityHopper#insertStack and added capability supportprivate static ItemStack
VanillaInventoryCodeHooks. putStackInInventoryAllSlots(TileEntity source, java.lang.Object destination, IItemHandler destInventory, ItemStack stack)
ItemStack
SlotItemHandler. remove(int amount)
Methods in net.minecraftforge.items with parameters of type ItemStack Modifier and Type Method Description static 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.ItemStack
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)
ItemStack
ItemStackHandler. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
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, java.lang.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
SlotItemHandler. mayPlace(ItemStack stack)
void
SlotItemHandler. onQuickCraft(ItemStack oldStackIn, ItemStack newStackIn)
private static ItemStack
VanillaInventoryCodeHooks. putStackInInventoryAllSlots(TileEntity source, java.lang.Object destination, IItemHandler destInventory, ItemStack stack)
void
SlotItemHandler. set(ItemStack stack)
void
IItemHandlerModifiable. setStackInSlot(int slot, ItemStack stack)
Overrides the stack in the given slot.void
ItemStackHandler. setStackInSlot(int slot, ItemStack stack)
Constructor parameters in net.minecraftforge.items with type arguments of type ItemStack Constructor Description ItemStackHandler(NonNullList<ItemStack> stacks)
-
Uses of ItemStack in net.minecraftforge.items.wrapper
Methods in net.minecraftforge.items.wrapper that return ItemStack Modifier and Type Method Description ItemStack
CombinedInvWrapper. extractItem(int slot, int amount, boolean simulate)
ItemStack
EmptyHandler. extractItem(int slot, int amount, boolean simulate)
ItemStack
EntityEquipmentInvWrapper. extractItem(int slot, int amount, boolean simulate)
ItemStack
InvWrapper. extractItem(int slot, int amount, boolean simulate)
ItemStack
RangedWrapper. extractItem(int slot, int amount, boolean simulate)
ItemStack
SidedInvWrapper. extractItem(int slot, int amount, boolean simulate)
ItemStack
RecipeWrapper. getItem(int slot)
Returns the stack in this slot.ItemStack
CombinedInvWrapper. getStackInSlot(int slot)
ItemStack
EmptyHandler. getStackInSlot(int slot)
ItemStack
EntityEquipmentInvWrapper. getStackInSlot(int slot)
ItemStack
InvWrapper. getStackInSlot(int slot)
ItemStack
RangedWrapper. getStackInSlot(int slot)
ItemStack
SidedInvWrapper. getStackInSlot(int slot)
ItemStack
CombinedInvWrapper. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
EmptyHandler. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
EntityEquipmentInvWrapper. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
InvWrapper. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
PlayerArmorInvWrapper. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
PlayerMainInvWrapper. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
RangedWrapper. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
SidedInvWrapper. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
RecipeWrapper. removeItem(int slot, int count)
Attempts to remove n items from the specified slot.ItemStack
RecipeWrapper. removeItemNoUpdate(int index)
Removes the stack contained in this slot from the underlying handler, and returns it.Methods in net.minecraftforge.items.wrapper with parameters of type ItemStack Modifier and Type Method Description boolean
RecipeWrapper. canPlaceItem(int slot, ItemStack stack)
protected int
EntityEquipmentInvWrapper. getStackLimit(int slot, ItemStack stack)
ItemStack
CombinedInvWrapper. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
EmptyHandler. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
EntityEquipmentInvWrapper. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
InvWrapper. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
PlayerArmorInvWrapper. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
PlayerMainInvWrapper. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
RangedWrapper. insertItem(int slot, ItemStack stack, boolean simulate)
ItemStack
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
RecipeWrapper. setItem(int slot, ItemStack stack)
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)
-