Uses of Class
net.minecraft.item.ItemStack
-
Uses of ItemStack in net.minecraft.advancement
Fields in net.minecraft.advancement declared as ItemStack Modifier and Type Field Description private ItemStack
AdvancementDisplay. icon
Methods in net.minecraft.advancement that return ItemStack Modifier and Type Method Description ItemStack
AdvancementDisplay. getIcon()
private static ItemStack
AdvancementDisplay. iconFromJson(JsonObject json)
Methods in net.minecraft.advancement with parameters of type ItemStack Modifier and Type Method Description Advancement.Task
Advancement.Task. display(ItemStack icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden)
Constructors in net.minecraft.advancement with parameters of type ItemStack Constructor Description AdvancementDisplay(ItemStack icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden)
-
Uses of ItemStack in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type ItemStack Modifier and Type Method Description void
VillagerTradeCriterion. handle(ServerPlayerEntity player, MerchantEntity merchant, ItemStack stack)
boolean
ConsumeItemCriterion.Conditions. matches(ItemStack stack)
boolean
EnchantedItemCriterion.Conditions. matches(ItemStack stack, int levels)
boolean
FilledBucketCriterion.Conditions. matches(ItemStack stack)
boolean
FishingRodHookedCriterion.Conditions. matches(ItemStack rod, LootContext hookedEntityContext, Collection<ItemStack> fishingLoots)
boolean
InventoryChangedCriterion.Conditions. matches(PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied)
boolean
ItemDurabilityChangedCriterion.Conditions. matches(ItemStack stack, int durability)
boolean
PlacedBlockCriterion.Conditions. matches(BlockState state, BlockPos pos, ServerWorld world, ItemStack stack)
boolean
ShotCrossbowCriterion.Conditions. matches(ItemStack stack)
boolean
UsedTotemCriterion.Conditions. matches(ItemStack stack)
boolean
VillagerTradeCriterion.Conditions. matches(LootContext merchantContext, ItemStack stack)
boolean
BeeNestDestroyedCriterion.Conditions. test(BlockState state, ItemStack stack, int count)
void
BeeNestDestroyedCriterion. test(ServerPlayerEntity player, BlockState state, ItemStack stack, int beeCount)
boolean
ItemUsedOnBlockCriterion.Conditions. test(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)
void
ItemUsedOnBlockCriterion. test(ServerPlayerEntity player, BlockPos pos, ItemStack stack)
boolean
PlayerInteractedWithEntityCriterion.Conditions. test(ItemStack stack, LootContext context)
void
PlayerInteractedWithEntityCriterion. test(ServerPlayerEntity player, ItemStack stack, Entity entity)
boolean
ThrownItemPickedUpByEntityCriterion.Conditions. test(ServerPlayerEntity player, ItemStack stack, LootContext entityContext)
void
ConsumeItemCriterion. trigger(ServerPlayerEntity player, ItemStack stack)
void
EnchantedItemCriterion. trigger(ServerPlayerEntity player, ItemStack stack, int levels)
void
FilledBucketCriterion. trigger(ServerPlayerEntity player, ItemStack stack)
void
FishingRodHookedCriterion. trigger(ServerPlayerEntity player, ItemStack rod, FishingBobberEntity bobber, Collection<ItemStack> fishingLoots)
void
InventoryChangedCriterion. trigger(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack)
private void
InventoryChangedCriterion. trigger(ServerPlayerEntity player, PlayerInventory inventory, ItemStack stack, int full, int empty, int occupied)
void
ItemDurabilityChangedCriterion. trigger(ServerPlayerEntity player, ItemStack stack, int durability)
void
PlacedBlockCriterion. trigger(ServerPlayerEntity player, BlockPos blockPos, ItemStack stack)
void
ShotCrossbowCriterion. trigger(ServerPlayerEntity player, ItemStack stack)
void
ThrownItemPickedUpByEntityCriterion. trigger(ServerPlayerEntity player, ItemStack stack, Entity entity)
void
UsedTotemCriterion. trigger(ServerPlayerEntity player, ItemStack stack)
Method parameters in net.minecraft.advancement.criterion with type arguments of type ItemStack Modifier and Type Method Description boolean
FishingRodHookedCriterion.Conditions. matches(ItemStack rod, LootContext hookedEntityContext, Collection<ItemStack> fishingLoots)
void
FishingRodHookedCriterion. trigger(ServerPlayerEntity player, ItemStack rod, FishingBobberEntity bobber, Collection<ItemStack> fishingLoots)
-
Uses of ItemStack in net.minecraft.block
Fields in net.minecraft.block declared as ItemStack Modifier and Type Field Description private ItemStack
EntityShapeContext. boots
private ItemStack
EntityShapeContext. heldItem
Methods in net.minecraft.block with parameters of type ItemStack Modifier and Type Method Description private static BlockState
ComposterBlock. addToComposter(BlockState state, WorldAccess world, BlockPos pos, ItemStack item)
void
BeehiveBlock. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)
void
Block. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)
void
IceBlock. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)
void
TallPlantBlock. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)
void
TurtleEggBlock. afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)
void
Block. appendTooltip(ItemStack stack, @Nullable BlockView world, List<Text> tooltip, TooltipContext options)
void
ShulkerBoxBlock. appendTooltip(ItemStack stack, @Nullable BlockView world, List<Text> tooltip, TooltipContext options)
static boolean
WitherSkullBlock. canDispense(World world, BlockPos pos, ItemStack stack)
boolean
ComposterBlock.ComposterInventory. canExtract(int slot, ItemStack stack, Direction dir)
Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
ComposterBlock.DummyInventory. canExtract(int slot, ItemStack stack, Direction dir)
Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
ComposterBlock.FullComposterInventory. canExtract(int slot, ItemStack stack, Direction dir)
Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
ComposterBlock.ComposterInventory. canInsert(int slot, ItemStack stack, @Nullable Direction dir)
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.boolean
ComposterBlock.DummyInventory. canInsert(int slot, ItemStack stack, @Nullable Direction dir)
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.boolean
ComposterBlock.FullComposterInventory. canInsert(int slot, ItemStack stack, @Nullable Direction dir)
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.static BlockState
ComposterBlock. compost(BlockState state, ServerWorld world, ItemStack stack, BlockPos pos)
static void
Block. dropStack(World world, BlockPos pos, ItemStack stack)
static void
Block. dropStacks(BlockState state, World world, BlockPos pos, @Nullable BlockEntity blockEntity, Entity entity, ItemStack stack)
protected DispenserBehavior
DispenserBlock. getBehaviorForItem(ItemStack stack)
protected DispenserBehavior
DropperBlock. getBehaviorForItem(ItemStack stack)
static List<ItemStack>
Block. getDroppedStacks(BlockState state, ServerWorld world, BlockPos pos, @Nullable BlockEntity blockEntity, @Nullable Entity entity, ItemStack stack)
private static boolean
RespawnAnchorBlock. isChargeItem(ItemStack stack)
void
AbstractBannerBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)
void
AbstractFurnaceBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
AbstractRedstoneGateBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
BarrelBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)
void
BeaconBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
BedBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)
void
Block. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)
void
BrewingStandBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
ChestBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
CommandBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
ConduitBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)
void
DispenserBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
DoorBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
EnchantingTableBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
HopperBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
JukeboxBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)
void
PistonBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
PlayerSkullBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)
void
ShulkerBoxBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
SmallDripleafBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
StructureBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)
void
TallPlantBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
TripwireHookBlock. onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
void
WallPlayerSkullBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)
void
WallWitherSkullBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)
void
WitherSkullBlock. onPlaced(World world, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack itemStack)
void
AbstractBlock.AbstractBlockState. onStacksDropped(ServerWorld world, BlockPos pos, ItemStack stack)
void
AbstractBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)
Deprecated.void
InfestedBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)
void
OreBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)
void
RedstoneOreBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)
void
SpawnerBlock. onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)
private static void
LecternBlock. putBook(@Nullable PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack)
static boolean
LecternBlock. putBookIfAbsent(@Nullable PlayerEntity player, World world, BlockPos pos, BlockState state, ItemStack stack)
void
JukeboxBlock. setRecord(WorldAccess world, BlockPos pos, BlockState state, ItemStack stack)
Method parameters in net.minecraft.block with type arguments of type ItemStack Modifier and Type Method Description void
Block. addStacksForDisplay(ItemGroup group, DefaultedList<ItemStack> list)
Constructors in net.minecraft.block with parameters of type ItemStack Constructor Description EntityShapeContext(boolean descending, double minY, ItemStack boots, ItemStack heldItem, Predicate<Fluid> walkOnFluidPredicate, Optional<Entity> entity)
FullComposterInventory(BlockState state, WorldAccess world, BlockPos pos, ItemStack outputItem)
-
Uses of ItemStack in net.minecraft.block.cauldron
Methods in net.minecraft.block.cauldron with parameters of type ItemStack Modifier and Type Method Description static ActionResult
CauldronBehavior. emptyCauldron(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, ItemStack output, Predicate<BlockState> predicate, SoundEvent soundEvent)
static ActionResult
CauldronBehavior. fillCauldron(World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack, BlockState state, SoundEvent soundEvent)
ActionResult
CauldronBehavior. interact(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, ItemStack stack)
-
Uses of ItemStack in net.minecraft.block.dispenser
Methods in net.minecraft.block.dispenser that return ItemStack Modifier and Type Method Description ItemStack
DispenserBehavior. dispense(BlockPointer pointer, ItemStack stack)
ItemStack
ItemDispenserBehavior. dispense(BlockPointer pointer, ItemStack stack)
protected ItemStack
BlockPlacementDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)
ItemStack
BoatDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)
protected ItemStack
ItemDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)
ItemStack
ProjectileDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)
protected ItemStack
ShearsDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)
Methods in net.minecraft.block.dispenser with parameters of type ItemStack Modifier and Type Method Description protected abstract ProjectileEntity
ProjectileDispenserBehavior. createProjectile(World world, Position position, ItemStack stack)
ItemStack
DispenserBehavior. dispense(BlockPointer pointer, ItemStack stack)
ItemStack
ItemDispenserBehavior. dispense(BlockPointer pointer, ItemStack stack)
protected ItemStack
BlockPlacementDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)
ItemStack
BoatDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)
protected ItemStack
ItemDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)
ItemStack
ProjectileDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)
protected ItemStack
ShearsDispenserBehavior. dispenseSilently(BlockPointer pointer, ItemStack stack)
static void
ItemDispenserBehavior. spawnItem(World world, ItemStack stack, int offset, Direction side, Position pos)
-
Uses of ItemStack in net.minecraft.block.entity
Fields in net.minecraft.block.entity declared as ItemStack Modifier and Type Field Description private ItemStack
LecternBlockEntity. book
private ItemStack
JukeboxBlockEntity. record
Fields in net.minecraft.block.entity with type parameters of type ItemStack Modifier and Type Field Description protected DefaultedList<ItemStack>
AbstractFurnaceBlockEntity. inventory
private DefaultedList<ItemStack>
BarrelBlockEntity. inventory
private DefaultedList<ItemStack>
BrewingStandBlockEntity. inventory
private DefaultedList<ItemStack>
ChestBlockEntity. inventory
private DefaultedList<ItemStack>
DispenserBlockEntity. inventory
private DefaultedList<ItemStack>
HopperBlockEntity. inventory
private DefaultedList<ItemStack>
ShulkerBoxBlockEntity. inventory
private DefaultedList<ItemStack>
CampfireBlockEntity. itemsBeingCooked
Methods in net.minecraft.block.entity that return ItemStack Modifier and Type Method Description ItemStack
LecternBlockEntity. getBook()
ItemStack
BannerBlockEntity. getPickStack()
ItemStack
JukeboxBlockEntity. getRecord()
ItemStack
AbstractFurnaceBlockEntity. getStack(int slot)
Fetches the stack currently stored at the given slot.ItemStack
BrewingStandBlockEntity. getStack(int slot)
Fetches the stack currently stored at the given slot.ItemStack
LootableContainerBlockEntity. getStack(int slot)
Fetches the stack currently stored at the given slot.ItemStack
AbstractFurnaceBlockEntity. removeStack(int slot)
Removes the stack currently stored at the indicated slot.ItemStack
AbstractFurnaceBlockEntity. removeStack(int slot, int amount)
Removes a specific number of items from the given slot.ItemStack
BrewingStandBlockEntity. removeStack(int slot)
Removes the stack currently stored at the indicated slot.ItemStack
BrewingStandBlockEntity. removeStack(int slot, int amount)
Removes a specific number of items from the given slot.ItemStack
HopperBlockEntity. removeStack(int slot, int amount)
Removes a specific number of items from the given slot.ItemStack
LootableContainerBlockEntity. removeStack(int slot)
Removes the stack currently stored at the indicated slot.ItemStack
LootableContainerBlockEntity. removeStack(int slot, int amount)
Removes a specific number of items from the given slot.private ItemStack
LecternBlockEntity. resolveBook(ItemStack book, @Nullable PlayerEntity player)
private static ItemStack
HopperBlockEntity. transfer(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction direction)
static ItemStack
HopperBlockEntity. transfer(@Nullable Inventory from, Inventory to, ItemStack stack, @Nullable Direction side)
Methods in net.minecraft.block.entity that return types with arguments of type ItemStack Modifier and Type Method Description protected DefaultedList<ItemStack>
BarrelBlockEntity. getInvStackList()
protected DefaultedList<ItemStack>
ChestBlockEntity. getInvStackList()
protected DefaultedList<ItemStack>
DispenserBlockEntity. getInvStackList()
protected DefaultedList<ItemStack>
HopperBlockEntity. getInvStackList()
protected abstract DefaultedList<ItemStack>
LootableContainerBlockEntity. getInvStackList()
protected DefaultedList<ItemStack>
ShulkerBoxBlockEntity. getInvStackList()
DefaultedList<ItemStack>
CampfireBlockEntity. getItemsBeingCooked()
Methods in net.minecraft.block.entity with parameters of type ItemStack Modifier and Type Method Description boolean
CampfireBlockEntity. addItem(ItemStack item, int integer)
int
DispenserBlockEntity. addToFirstFreeSlot(ItemStack stack)
boolean
AbstractFurnaceBlockEntity. canExtract(int slot, ItemStack stack, Direction dir)
Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
BrewingStandBlockEntity. canExtract(int slot, ItemStack stack, Direction dir)
Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.private static boolean
HopperBlockEntity. canExtract(Inventory inv, ItemStack stack, int slot, Direction facing)
boolean
ShulkerBoxBlockEntity. canExtract(int slot, ItemStack stack, Direction dir)
Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
AbstractFurnaceBlockEntity. canInsert(int slot, ItemStack stack, @Nullable Direction dir)
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.boolean
BrewingStandBlockEntity. canInsert(int slot, ItemStack stack, @Nullable Direction dir)
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.private static boolean
HopperBlockEntity. canInsert(Inventory inventory, ItemStack stack, int slot, @Nullable Direction side)
boolean
ShulkerBoxBlockEntity. canInsert(int slot, ItemStack stack, @Nullable Direction dir)
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.private static boolean
HopperBlockEntity. canMergeItems(ItemStack first, ItemStack second)
static boolean
AbstractFurnaceBlockEntity. canUseAsFuel(ItemStack stack)
protected int
AbstractFurnaceBlockEntity. getFuelTime(ItemStack fuel)
protected int
BlastFurnaceBlockEntity. getFuelTime(ItemStack fuel)
protected int
SmokerBlockEntity. getFuelTime(ItemStack fuel)
static int
BannerBlockEntity. getPatternCount(ItemStack stack)
static @Nullable NbtList
BannerBlockEntity. getPatternListTag(ItemStack stack)
Optional<CampfireCookingRecipe>
CampfireBlockEntity. getRecipeFor(ItemStack item)
boolean
AbstractFurnaceBlockEntity. isValid(int slot, ItemStack stack)
Returns whether the given stack is a valid for the indicated slot position.boolean
BrewingStandBlockEntity. isValid(int slot, ItemStack stack)
Returns whether the given stack is a valid for the indicated slot position.static void
BannerBlockEntity. loadFromItemStack(ItemStack stack)
void
BannerBlockEntity. readFrom(ItemStack stack, DyeColor baseColor)
private ItemStack
LecternBlockEntity. resolveBook(ItemStack book, @Nullable PlayerEntity player)
void
LecternBlockEntity. setBook(ItemStack book)
void
LecternBlockEntity. setBook(ItemStack book, @Nullable PlayerEntity player)
void
JukeboxBlockEntity. setRecord(ItemStack stack)
void
AbstractFurnaceBlockEntity. setStack(int slot, ItemStack stack)
void
BrewingStandBlockEntity. setStack(int slot, ItemStack stack)
void
HopperBlockEntity. setStack(int slot, ItemStack stack)
void
LootableContainerBlockEntity. setStack(int slot, ItemStack stack)
private static ItemStack
HopperBlockEntity. transfer(@Nullable Inventory from, Inventory to, ItemStack stack, int slot, @Nullable Direction direction)
static ItemStack
HopperBlockEntity. transfer(@Nullable Inventory from, Inventory to, ItemStack stack, @Nullable Direction side)
Method parameters in net.minecraft.block.entity with type arguments of type ItemStack Modifier and Type Method Description private static boolean
AbstractFurnaceBlockEntity. canAcceptRecipeOutput(@Nullable Recipe<?> recipe, DefaultedList<ItemStack> slots, int count)
private static boolean
BrewingStandBlockEntity. canCraft(DefaultedList<ItemStack> slots)
private static void
BrewingStandBlockEntity. craft(World world, BlockPos pos, DefaultedList<ItemStack> slots)
private static boolean
AbstractFurnaceBlockEntity. craftRecipe(@Nullable Recipe<?> recipe, DefaultedList<ItemStack> slots, int count)
protected void
BarrelBlockEntity. setInvStackList(DefaultedList<ItemStack> list)
protected void
ChestBlockEntity. setInvStackList(DefaultedList<ItemStack> list)
protected void
DispenserBlockEntity. setInvStackList(DefaultedList<ItemStack> list)
protected void
HopperBlockEntity. setInvStackList(DefaultedList<ItemStack> list)
protected abstract void
LootableContainerBlockEntity. setInvStackList(DefaultedList<ItemStack> list)
protected void
ShulkerBoxBlockEntity. setInvStackList(DefaultedList<ItemStack> list)
-
Uses of ItemStack in net.minecraft.client
Methods in net.minecraft.client that return ItemStack Modifier and Type Method Description private ItemStack
MinecraftClient. addBlockEntityNbt(ItemStack stack, BlockEntity blockEntity)
Methods in net.minecraft.client with parameters of type ItemStack Modifier and Type Method Description private ItemStack
MinecraftClient. addBlockEntityNbt(ItemStack stack, BlockEntity blockEntity)
-
Uses of ItemStack in net.minecraft.client.color.item
Methods in net.minecraft.client.color.item with parameters of type ItemStack Modifier and Type Method Description int
ItemColorProvider. getColor(ItemStack stack, int tintIndex)
int
ItemColors. getColorMultiplier(ItemStack item, int tintIndex)
-
Uses of ItemStack in net.minecraft.client.gui.hud
Fields in net.minecraft.client.gui.hud declared as ItemStack Modifier and Type Field Description private ItemStack
InGameHud. currentStack
Methods in net.minecraft.client.gui.hud with parameters of type ItemStack Modifier and Type Method Description private void
InGameHud. renderHotbarItem(int x, int y, float tickDelta, PlayerEntity player, ItemStack stack, int int2)
-
Uses of ItemStack in net.minecraft.client.gui.screen
Fields in net.minecraft.client.gui.screen declared as ItemStack Modifier and Type Field Description (package private) ItemStack
GameModeSelectionScreen.GameMode. icon
Methods in net.minecraft.client.gui.screen with parameters of type ItemStack Modifier and Type Method Description List<Text>
Screen. getTooltipFromItem(ItemStack stack)
private void
CustomizeFlatLevelScreen.SuperflatLayersListWidget.SuperflatLayerEntry. renderIcon(MatrixStack matrices, int x, int y, ItemStack iconItem)
protected void
Screen. renderTooltip(MatrixStack matrices, ItemStack stack, int x, int y)
-
Uses of ItemStack in net.minecraft.client.gui.screen.advancement
Fields in net.minecraft.client.gui.screen.advancement declared as ItemStack Modifier and Type Field Description private ItemStack
AdvancementTab. icon
Methods in net.minecraft.client.gui.screen.advancement with parameters of type ItemStack Modifier and Type Method Description void
AdvancementTabType. drawIcon(int x, int y, int index, ItemRenderer itemRenderer, ItemStack icon)
-
Uses of ItemStack in net.minecraft.client.gui.screen.ingame
Fields in net.minecraft.client.gui.screen.ingame declared as ItemStack Modifier and Type Field Description private ItemStack
LoomScreen. banner
private ItemStack
LoomScreen. dye
private ItemStack
BookEditScreen. itemStack
private ItemStack
LoomScreen. pattern
private ItemStack
HandledScreen. quickMovingStack
private ItemStack
EnchantmentScreen. stack
private ItemStack
HandledScreen. touchDragStack
private ItemStack
HandledScreen. touchDropReturningStack
Fields in net.minecraft.client.gui.screen.ingame with type parameters of type ItemStack Modifier and Type Field Description DefaultedList<ItemStack>
CreativeInventoryScreen.CreativeScreenHandler. itemList
Methods in net.minecraft.client.gui.screen.ingame that return ItemStack Modifier and Type Method Description ItemStack
CreativeInventoryScreen.CreativeScreenHandler. getCursorStack()
ItemStack
CreativeInventoryScreen.CreativeSlot. getStack()
ItemStack
CreativeInventoryScreen.CreativeSlot. takeStack(int amount)
ItemStack
CreativeInventoryScreen.CreativeScreenHandler. transferSlot(PlayerEntity player, int index)
Methods in net.minecraft.client.gui.screen.ingame with parameters of type ItemStack Modifier and Type Method Description boolean
CreativeInventoryScreen.CreativeSlot. canInsert(ItemStack stack)
boolean
CreativeInventoryScreen.CreativeScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)
static BookScreen.Contents
BookScreen.Contents. create(ItemStack stack)
private void
HandledScreen. drawItem(ItemStack stack, int xPosition, int yPosition, String amountText)
int
CreativeInventoryScreen.CreativeSlot. getMaxItemCount(ItemStack stack)
private static List<String>
BookScreen.WritableBookContents. getPages(ItemStack stack)
private static List<String>
BookScreen.WrittenBookContents. getPages(ItemStack stack)
void
AnvilScreen. onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)
void
CreativeInventoryListener. onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)
void
ForgingScreen. onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)
void
CreativeInventoryScreen.CreativeSlot. onTakeItem(PlayerEntity player, ItemStack stack)
private void
MerchantScreen. renderFirstBuyItem(MatrixStack matrices, ItemStack adjustedFirstBuyItem, ItemStack originalFirstBuyItem, int x, int y)
protected void
CreativeInventoryScreen. renderTooltip(MatrixStack matrices, ItemStack stack, int x, int y)
void
CreativeInventoryScreen.CreativeScreenHandler. setCursorStack(ItemStack stack)
void
CreativeInventoryScreen.CreativeSlot. setStack(ItemStack stack)
Constructors in net.minecraft.client.gui.screen.ingame with parameters of type ItemStack Constructor Description BookEditScreen(PlayerEntity player, ItemStack itemStack, Hand hand)
WritableBookContents(ItemStack stack)
WrittenBookContents(ItemStack stack)
-
Uses of ItemStack in net.minecraft.client.gui.screen.recipebook
Fields in net.minecraft.client.gui.screen.recipebook declared as ItemStack Modifier and Type Field Description ItemStack[]
RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot. stacks
Methods in net.minecraft.client.gui.screen.recipebook that return ItemStack Modifier and Type Method Description ItemStack
RecipeBookGhostSlots.GhostInputSlot. getCurrentItemStack()
Constructors in net.minecraft.client.gui.screen.recipebook with parameters of type ItemStack Constructor Description InputSlot(int y, int x, ItemStack[] stacks)
-
Uses of ItemStack in net.minecraft.client.gui.tooltip
Fields in net.minecraft.client.gui.tooltip with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>
BundleTooltipComponent. inventory
-
Uses of ItemStack in net.minecraft.client.item
Fields in net.minecraft.client.item with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>
BundleTooltipData. inventory
Methods in net.minecraft.client.item that return types with arguments of type ItemStack Modifier and Type Method Description DefaultedList<ItemStack>
BundleTooltipData. getInventory()
Methods in net.minecraft.client.item with parameters of type ItemStack Modifier and Type Method Description float
ModelPredicateProvider. call(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed)
Constructor parameters in net.minecraft.client.item with type arguments of type ItemStack Constructor Description BundleTooltipData(DefaultedList<ItemStack> inventory, int bundleOccupancy)
-
Uses of ItemStack in net.minecraft.client.network
Fields in net.minecraft.client.network declared as ItemStack Modifier and Type Field Description private ItemStack
ClientPlayerInteractionManager. selectedStack
Methods in net.minecraft.client.network that return ItemStack Modifier and Type Method Description private static ItemStack
ClientPlayNetworkHandler. getActiveTotemOfUndying(PlayerEntity player)
Methods in net.minecraft.client.network with parameters of type ItemStack Modifier and Type Method Description void
ClientPlayerInteractionManager. clickCreativeStack(ItemStack stack, int slotId)
void
ClientPlayerInteractionManager. dropCreativeStack(ItemStack stack)
void
ClientPlayerEntity. onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType)
Called when a player performs apickup slot action
in a screen handler.void
ClientPlayerEntity. useBook(ItemStack book, Hand hand)
Called when the player uses (defaults to right click) a writable or written book item. -
Uses of ItemStack in net.minecraft.client.option
Fields in net.minecraft.client.option with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>
HotbarStorageEntry. delegate
Methods in net.minecraft.client.option that return types with arguments of type ItemStack Modifier and Type Method Description protected List<ItemStack>
HotbarStorageEntry. delegate()
-
Uses of ItemStack in net.minecraft.client.particle
Constructors in net.minecraft.client.particle with parameters of type ItemStack Constructor Description CrackParticle(ClientWorld world, double x, double y, double z, double double2, double double3, double double4, ItemStack stack)
CrackParticle(ClientWorld world, double x, double y, double z, ItemStack stack)
-
Uses of ItemStack in net.minecraft.client.recipebook
Fields in net.minecraft.client.recipebook with type parameters of type ItemStack Modifier and Type Field Description private List<ItemStack>
RecipeBookGroup. icons
Methods in net.minecraft.client.recipebook that return types with arguments of type ItemStack Modifier and Type Method Description List<ItemStack>
RecipeBookGroup. getIcons()
Constructors in net.minecraft.client.recipebook with parameters of type ItemStack Constructor Description RecipeBookGroup(ItemStack[] entries)
-
Uses of ItemStack in net.minecraft.client.render
Fields in net.minecraft.client.render declared as ItemStack Modifier and Type Field Description private @Nullable ItemStack
GameRenderer. floatingItem
Methods in net.minecraft.client.render with parameters of type ItemStack Modifier and Type Method Description static RenderLayer
RenderLayers. getItemLayer(ItemStack stack, boolean direct)
void
GameRenderer. showFloatingItem(ItemStack floatingItem)
-
Uses of ItemStack in net.minecraft.client.render.entity
Methods in net.minecraft.client.render.entity with parameters of type ItemStack Modifier and Type Method Description private ModelIdentifier
ItemFrameEntityRenderer. getModelId(T entity, ItemStack stack)
private int
ItemEntityRenderer. getRenderedAmount(ItemStack stack)
-
Uses of ItemStack in net.minecraft.client.render.entity.feature
Methods in net.minecraft.client.render.entity.feature with parameters of type ItemStack Modifier and Type Method Description protected void
HeldItemFeatureRenderer. renderItem(LivingEntity entity, ItemStack stack, ModelTransformation.Mode transformationMode, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
protected void
PlayerHeldItemFeatureRenderer. renderItem(LivingEntity entity, ItemStack stack, ModelTransformation.Mode transformationMode, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
private void
PlayerHeldItemFeatureRenderer. renderSpyglass(LivingEntity entity, ItemStack stack, Arm arm, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
-
Uses of ItemStack in net.minecraft.client.render.item
Fields in net.minecraft.client.render.item declared as ItemStack Modifier and Type Field Description private ItemStack
HeldItemRenderer. mainHand
private ItemStack
HeldItemRenderer. offHand
Methods in net.minecraft.client.render.item with parameters of type ItemStack Modifier and Type Method Description private void
HeldItemRenderer. applyEatOrDrinkTransformation(MatrixStack matrices, float tickDelta, Arm arm, ItemStack stack)
BakedModel
ItemRenderer. getHeldItemModel(ItemStack itemStack, @Nullable World world, @Nullable LivingEntity entity, int seed)
BakedModel
ItemModels. getModel(ItemStack stack)
Sprite
ItemModels. getSprite(ItemStack stack)
private void
ItemRenderer. innerRenderInGui(@Nullable LivingEntity entity, ItemStack itemStack, int x, int y, int int2)
private static boolean
HeldItemRenderer. isChargedCrossbow(ItemStack stack)
void
BuiltinModelItemRenderer. render(ItemStack stack, ModelTransformation.Mode mode, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay)
private void
ItemRenderer. renderBakedItemModel(BakedModel model, ItemStack stack, int light, int overlay, MatrixStack matrices, VertexConsumer vertices)
private void
ItemRenderer. renderBakedItemQuads(MatrixStack matrices, VertexConsumer vertices, List<BakedQuad> quads, ItemStack stack, int light, int overlay)
private void
HeldItemRenderer. renderFirstPersonItem(AbstractClientPlayerEntity player, float tickDelta, float pitch, Hand hand, float swingProgress, ItemStack item, float equipProgress, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
private void
HeldItemRenderer. renderFirstPersonMap(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int swingProgress, ItemStack stack)
void
ItemRenderer. renderGuiItemIcon(ItemStack stack, int x, int y)
protected void
ItemRenderer. renderGuiItemModel(ItemStack stack, int x, int y, BakedModel model)
void
ItemRenderer. renderGuiItemOverlay(TextRenderer renderer, ItemStack stack, int x, int y)
Renders the overlay for items in GUIs, including the damage bar and the item count.void
ItemRenderer. renderGuiItemOverlay(TextRenderer renderer, ItemStack stack, int x, int y, @Nullable String countLabel)
Renders the overlay for items in GUIs, including the damage bar and the item count.void
ItemRenderer. renderInGui(ItemStack stack, int x, int y)
Renders an item in a GUI without an attached entity.void
ItemRenderer. renderInGuiWithOverrides(LivingEntity entity, ItemStack stack, int x, int y, int int2)
Renders an item in a GUI with an attached entity.void
ItemRenderer. renderInGuiWithOverrides(ItemStack stack, int x, int y)
Renders an item in a GUI with the player as the attached entity for calculating model overrides.void
ItemRenderer. renderInGuiWithOverrides(ItemStack stack, int x, int y, int int2)
void
HeldItemRenderer. renderItem(LivingEntity entity, ItemStack stack, ModelTransformation.Mode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light)
void
ItemRenderer. renderItem(@Nullable LivingEntity entity, ItemStack item, ModelTransformation.Mode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, @Nullable World world, int light, int overlay, int seed)
void
ItemRenderer. renderItem(ItemStack stack, ModelTransformation.Mode renderMode, boolean leftHanded, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, int overlay, BakedModel model)
void
ItemRenderer. renderItem(ItemStack stack, ModelTransformation.Mode transformationType, int light, int overlay, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int seed)
private void
HeldItemRenderer. renderMapInOneHand(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, float equipProgress, Arm arm, float swingProgress, ItemStack stack)
-
Uses of ItemStack in net.minecraft.client.render.model.json
Methods in net.minecraft.client.render.model.json with parameters of type ItemStack Modifier and Type Method Description @Nullable BakedModel
ModelOverrideList. apply(BakedModel model, ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity, int seed)
-
Uses of ItemStack in net.minecraft.client.search
Fields in net.minecraft.client.search with type parameters of type ItemStack Modifier and Type Field Description static SearchManager.Key<ItemStack>
SearchManager. ITEM_TAG
static SearchManager.Key<ItemStack>
SearchManager. ITEM_TOOLTIP
-
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
BundleTutorial. onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType)
A callback for starting the bundle tutorial.void
TutorialManager. onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType)
Called when a player performs apickup slot action
in a screen handler.void
CraftPlanksTutorialStepHandler. onSlotUpdate(ItemStack stack)
void
FindTreeTutorialStepHandler. onSlotUpdate(ItemStack stack)
void
PunchTreeTutorialStepHandler. onSlotUpdate(ItemStack stack)
void
TutorialManager. onSlotUpdate(ItemStack stack)
default void
TutorialStepHandler. onSlotUpdate(ItemStack stack)
-
Uses of ItemStack in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return ItemStack Modifier and Type Method Description ItemStack
ItemStackArgument. createStack(int amount, boolean checkOverstack)
Methods in net.minecraft.command.argument that return types with arguments of type ItemStack Modifier and Type Method Description Predicate<ItemStack>
ItemPredicateArgumentType.ItemPredicateArgument. create(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext)
static Predicate<ItemStack>
ItemPredicateArgumentType. getItemPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
Methods in net.minecraft.command.argument with parameters of type ItemStack Modifier and Type Method Description boolean
ItemPredicateArgumentType.ItemPredicate. test(ItemStack itemStack)
boolean
ItemPredicateArgumentType.TagPredicate. test(ItemStack itemStack)
boolean
ItemStackArgument. test(ItemStack itemStack)
-
Uses of ItemStack in net.minecraft.enchantment
Methods in net.minecraft.enchantment that return ItemStack Modifier and Type Method Description static ItemStack
EnchantmentHelper. enchant(Random random, ItemStack target, int level, boolean treasureAllowed)
Enchants thetarget
item stack and returns it.Methods in net.minecraft.enchantment that return types with arguments of type ItemStack Modifier and Type Method Description static Map.Entry<EquipmentSlot,ItemStack>
EnchantmentHelper. chooseEquipmentWith(Enchantment enchantment, LivingEntity entity)
Returns a pair of an equipment slot and the item stack in the supplied entity's slot, indicating the item stack has the enchantment supplied.static Map.Entry<EquipmentSlot,ItemStack>
EnchantmentHelper. chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition)
Returns a pair of an equipment slot and the item stack in the supplied entity's slot, indicating the item stack has the enchantment supplied and fulfills the extra condition.Map<EquipmentSlot,ItemStack>
Enchantment. getEquipment(LivingEntity entity)
Methods in net.minecraft.enchantment with parameters of type ItemStack Modifier and Type Method Description static int
EnchantmentHelper. calculateRequiredExperienceLevel(Random random, int slotIndex, int bookshelfCount, ItemStack stack)
Returns the required experience level for an enchanting option in the enchanting table's screen, or the enchantment screen.static ItemStack
EnchantmentHelper. enchant(Random random, ItemStack target, int level, boolean treasureAllowed)
Enchants thetarget
item stack and returns it.private static void
EnchantmentHelper. forEachEnchantment(EnchantmentHelper.Consumer consumer, ItemStack stack)
static List<EnchantmentLevelEntry>
EnchantmentHelper. generateEnchantments(Random random, ItemStack stack, int level, boolean treasureAllowed)
Generate the enchantments for enchanting thestack
.static Map<Enchantment,Integer>
EnchantmentHelper. get(ItemStack stack)
Gets the enchantments on an item stack.static float
EnchantmentHelper. getAttackDamage(ItemStack stack, EntityGroup group)
static int
EnchantmentHelper. getLevel(Enchantment enchantment, ItemStack stack)
Gets the level of an enchantment on an item stack.static int
EnchantmentHelper. getLoyalty(ItemStack stack)
static int
EnchantmentHelper. getLuckOfTheSea(ItemStack stack)
static int
EnchantmentHelper. getLure(ItemStack stack)
static List<EnchantmentLevelEntry>
EnchantmentHelper. getPossibleEntries(int power, ItemStack stack, boolean treasureAllowed)
Gets all the possible entries for enchanting thestack
at the givenpower
.static int
EnchantmentHelper. getRiptide(ItemStack stack)
static boolean
EnchantmentHelper. hasBindingCurse(ItemStack stack)
static boolean
EnchantmentHelper. hasChanneling(ItemStack stack)
static boolean
EnchantmentHelper. hasVanishingCurse(ItemStack stack)
boolean
DamageEnchantment. isAcceptableItem(ItemStack stack)
boolean
EfficiencyEnchantment. isAcceptableItem(ItemStack stack)
boolean
Enchantment. isAcceptableItem(ItemStack stack)
boolean
ThornsEnchantment. isAcceptableItem(ItemStack stack)
boolean
UnbreakingEnchantment. isAcceptableItem(ItemStack stack)
static void
EnchantmentHelper. set(Map<Enchantment,Integer> enchantments, ItemStack stack)
Sets the enchantments on an item stack.static boolean
UnbreakingEnchantment. shouldPreventDamage(ItemStack item, int level, Random random)
Method parameters in net.minecraft.enchantment with type arguments of type ItemStack Modifier and Type Method Description static Map.Entry<EquipmentSlot,ItemStack>
EnchantmentHelper. chooseEquipmentWith(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition)
Returns a pair of an equipment slot and the item stack in the supplied entity's slot, indicating the item stack has the enchantment supplied and fulfills the extra condition.private static void
EnchantmentHelper. forEachEnchantment(EnchantmentHelper.Consumer consumer, Iterable<ItemStack> stacks)
static int
EnchantmentHelper. getProtectionAmount(Iterable<ItemStack> equipment, DamageSource source)
-
Uses of ItemStack in net.minecraft.entity
Fields in net.minecraft.entity declared as ItemStack Modifier and Type Field Description protected ItemStack
LivingEntity. activeItemStack
Fields in net.minecraft.entity with type parameters of type ItemStack Modifier and Type Field Description private static List<ItemStack>
Entity. EMPTY_STACK_LIST
private DefaultedList<ItemStack>
LivingEntity. equippedArmor
private DefaultedList<ItemStack>
LivingEntity. equippedHand
private static TrackedData<ItemStack>
EyeOfEnderEntity. ITEM
private static TrackedData<ItemStack>
ItemEntity. STACK
Methods in net.minecraft.entity that return ItemStack Modifier and Type Method Description ItemStack
LivingEntity. eatFood(World world, ItemStack stack)
ItemStack
LivingEntity. getActiveItem()
private ItemStack
LivingEntity. getArmorInSlot(EquipmentSlot slot)
ItemStack
LivingEntity. getArrowType(ItemStack stack)
ItemStack
Bucketable. getBucketItem()
abstract ItemStack
LivingEntity. getEquippedStack(EquipmentSlot slot)
ItemStack
LivingEntity. getMainHandStack()
ItemStack
LivingEntity. getOffHandStack()
@Nullable ItemStack
Entity. getPickBlockStack()
ItemStack
EyeOfEnderEntity. getStack()
ItemStack
FlyingItemEntity. getStack()
ItemStack
ItemEntity. getStack()
Returns the item stack contained in this item entity.ItemStack
LivingEntity. getStackInHand(Hand hand)
private ItemStack
LivingEntity. getStackInHandSlot(EquipmentSlot slot)
private ItemStack
EyeOfEnderEntity. getTrackedItem()
static ItemStack
ItemEntity. merge(ItemStack stack1, ItemStack stack2, int maxCount)
Methods in net.minecraft.entity that return types with arguments of type ItemStack Modifier and Type Method Description Iterable<ItemStack>
Entity. getArmorItems()
abstract Iterable<ItemStack>
LivingEntity. getArmorItems()
Iterable<ItemStack>
Entity. getItemsEquipped()
Iterable<ItemStack>
Entity. getItemsHand()
private @Nullable Map<EquipmentSlot,ItemStack>
LivingEntity. method_30129()
Methods in net.minecraft.entity with parameters of type ItemStack Modifier and Type Method Description private void
LivingEntity. applyFoodEffects(ItemStack stack, World world, LivingEntity targetEntity)
boolean
LivingEntity. canEquip(ItemStack stack)
static boolean
ItemEntity. canMerge(ItemStack stack1, ItemStack stack2)
static void
Bucketable. copyDataToStack(MobEntity entity, ItemStack stack)
void
Bucketable. copyDataToStack(ItemStack stack)
@Nullable ItemEntity
Entity. dropStack(ItemStack stack)
@Nullable ItemEntity
Entity. dropStack(ItemStack stack, float yOffset)
ItemStack
LivingEntity. eatFood(World world, ItemStack stack)
void
Entity. equipStack(EquipmentSlot slot, ItemStack stack)
abstract void
LivingEntity. equipStack(EquipmentSlot slot, ItemStack stack)
ItemStack
LivingEntity. getArrowType(ItemStack stack)
protected SoundEvent
LivingEntity. getDrinkSound(ItemStack stack)
SoundEvent
LivingEntity. getEatSound(ItemStack stack)
static EquipmentSlot
LivingEntity. getPreferredEquipmentSlot(ItemStack stack)
private static void
ItemEntity. merge(ItemEntity targetEntity, ItemStack targetStack, ItemEntity sourceEntity, ItemStack sourceStack)
private static void
ItemEntity. merge(ItemEntity targetEntity, ItemStack stack1, ItemStack stack2)
static ItemStack
ItemEntity. merge(ItemStack stack1, ItemStack stack2, int maxCount)
protected void
LivingEntity. onEquipStack(ItemStack stack)
private void
LivingEntity. playEquipmentBreakEffects(ItemStack stack)
private void
LivingEntity. setArmorInSlot(EquipmentSlot slot, ItemStack armor)
void
EyeOfEnderEntity. setItem(ItemStack stack)
void
ItemEntity. setStack(ItemStack stack)
Sets the item stack contained in this item entity tostack
.void
LivingEntity. setStackInHand(Hand hand, ItemStack stack)
private void
LivingEntity. setStackInHandSlot(EquipmentSlot slot, ItemStack stack)
void
CrossbowUser. shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)
protected void
LivingEntity. spawnConsumptionEffects(ItemStack stack, int particleCount)
@Nullable Entity
EntityType. spawnFromItemStack(ServerWorld world, @Nullable ItemStack stack, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)
private void
LivingEntity. spawnItemParticles(ItemStack stack, int count)
Method parameters in net.minecraft.entity with type arguments of type ItemStack Modifier and Type Method Description boolean
LivingEntity. isHolding(Predicate<ItemStack> predicate)
Checks if this entity is holding a certain item.private void
LivingEntity. method_30121(Map<EquipmentSlot,ItemStack> map)
private void
LivingEntity. method_30123(Map<EquipmentSlot,ItemStack> map)
Constructors in net.minecraft.entity with parameters of type ItemStack Constructor Description ItemEntity(World world, double x, double y, double z, ItemStack stack)
-
Uses of ItemStack in net.minecraft.entity.ai.brain.sensor
Methods in net.minecraft.entity.ai.brain.sensor with parameters of type ItemStack Modifier and Type Method Description private boolean
TemptationsSensor. test(ItemStack stack)
-
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 @Nullable ItemStack
HoldTradeOffersTask. customerHeldStack
Fields in net.minecraft.entity.ai.brain.task with type parameters of type ItemStack Modifier and Type Field Description private List<ItemStack>
HoldTradeOffersTask. offers
Methods in net.minecraft.entity.ai.brain.task that return ItemStack Modifier and Type Method Description private ItemStack
CelebrateRaidWinTask. createFirework(DyeColor color, int flight)
Methods in net.minecraft.entity.ai.brain.task that return types with arguments of type ItemStack Modifier and Type Method Description private List<ItemStack>
GiveGiftsToHeroTask. getGifts(VillagerEntity villager)
Methods in net.minecraft.entity.ai.brain.task with parameters of type ItemStack Modifier and Type Method Description static void
LookTargetUtil. give(LivingEntity entity, ItemStack stack, Vec3d targetLocation)
-
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
HoldInHandsGoal. item
Methods in net.minecraft.entity.ai.goal that return ItemStack Modifier and Type Method Description private ItemStack
SkeletonHorseTrapTriggerGoal. removeEnchantments(ItemStack stack)
Methods in net.minecraft.entity.ai.goal with parameters of type ItemStack Modifier and Type Method Description private ItemStack
SkeletonHorseTrapTriggerGoal. removeEnchantments(ItemStack stack)
Constructors in net.minecraft.entity.ai.goal with parameters of type ItemStack Constructor Description HoldInHandsGoal(T actor, ItemStack item, @Nullable SoundEvent sound, Predicate<? super T> condition)
-
Uses of ItemStack in net.minecraft.entity.data
Fields in net.minecraft.entity.data with type parameters of type ItemStack Modifier and Type Field Description static TrackedDataHandler<ItemStack>
TrackedDataHandlerRegistry. ITEM_STACK
-
Uses of ItemStack in net.minecraft.entity.decoration
Fields in net.minecraft.entity.decoration with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>
ArmorStandEntity. armorItems
private DefaultedList<ItemStack>
ArmorStandEntity. heldItems
private static TrackedData<ItemStack>
ItemFrameEntity. ITEM_STACK
Methods in net.minecraft.entity.decoration that return ItemStack Modifier and Type Method Description protected ItemStack
GlowItemFrameEntity. getAsItemStack()
protected ItemStack
ItemFrameEntity. getAsItemStack()
ItemStack
ArmorStandEntity. getEquippedStack(EquipmentSlot slot)
ItemStack
ItemFrameEntity. getHeldItemStack()
ItemStack
ArmorStandEntity. getPickBlockStack()
ItemStack
EndCrystalEntity. getPickBlockStack()
ItemStack
ItemFrameEntity. getPickBlockStack()
ItemStack
LeashKnotEntity. getPickBlockStack()
Methods in net.minecraft.entity.decoration that return types with arguments of type ItemStack Modifier and Type Method Description Iterable<ItemStack>
ArmorStandEntity. getArmorItems()
Iterable<ItemStack>
ArmorStandEntity. getItemsHand()
Methods in net.minecraft.entity.decoration with parameters of type ItemStack Modifier and Type Method Description boolean
ArmorStandEntity. canEquip(ItemStack stack)
ItemEntity
AbstractDecorationEntity. dropStack(ItemStack stack, float yOffset)
private boolean
ArmorStandEntity. equip(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand)
void
ArmorStandEntity. equipStack(EquipmentSlot slot, ItemStack stack)
private void
ItemFrameEntity. removeFromFrame(ItemStack map)
void
ItemFrameEntity. setHeldItemStack(ItemStack stack)
void
ItemFrameEntity. setHeldItemStack(ItemStack value, boolean update)
-
Uses of ItemStack in net.minecraft.entity.decoration.painting
Methods in net.minecraft.entity.decoration.painting that return ItemStack Modifier and Type Method Description ItemStack
PaintingEntity. getPickBlockStack()
-
Uses of ItemStack in net.minecraft.entity.mob
Fields in net.minecraft.entity.mob with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>
MobEntity. armorItems
private DefaultedList<ItemStack>
MobEntity. handItems
Methods in net.minecraft.entity.mob that return ItemStack Modifier and Type Method Description protected ItemStack
PiglinEntity. addItem(ItemStack stack)
ItemStack
HostileEntity. getArrowType(ItemStack stack)
ItemStack
MobEntity. getEquippedStack(EquipmentSlot slot)
private static ItemStack
PiglinBrain. getItemFromStack(ItemEntity stack)
@Nullable ItemStack
MobEntity. getPickBlockStack()
protected ItemStack
DrownedEntity. getSkull()
Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStack
HuskEntity. getSkull()
Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStack
ZombieEntity. getSkull()
Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStack
ZombieVillagerEntity. getSkull()
Returns the item stack this entity will drop when killed by a charged creeper.protected ItemStack
ZombifiedPiglinEntity. getSkull()
Returns the item stack this entity will drop when killed by a charged creeper.private ItemStack
PiglinEntity. makeInitialWeapon()
Methods in net.minecraft.entity.mob that return types with arguments of type ItemStack Modifier and Type Method Description Iterable<ItemStack>
MobEntity. getArmorItems()
private static List<ItemStack>
PiglinBrain. getBarteredItem(PiglinEntity piglin)
Iterable<ItemStack>
MobEntity. getItemsHand()
Methods in net.minecraft.entity.mob with parameters of type ItemStack Modifier and Type Method Description private static boolean
PiglinBrain. acceptsForBarter(ItemStack stack)
protected ItemStack
PiglinEntity. addItem(ItemStack stack)
private static void
PiglinBrain. barterItem(PiglinEntity piglin, ItemStack stack)
boolean
MobEntity. canEquip(ItemStack stack)
protected boolean
PiglinEntity. canEquipStack(ItemStack stack)
Returns whether this piglin can equip into or replace current equipment slot.boolean
MobEntity. canGather(ItemStack stack)
protected static boolean
PiglinBrain. canGather(PiglinEntity piglin, ItemStack stack)
boolean
PiglinBruteEntity. canGather(ItemStack stack)
boolean
PiglinEntity. canGather(ItemStack stack)
protected boolean
PiglinEntity. canInsertIntoInventory(ItemStack stack)
boolean
MobEntity. canPickupItem(ItemStack stack)
boolean
ZombieEntity. canPickupItem(ItemStack stack)
protected PersistentProjectileEntity
AbstractSkeletonEntity. createArrowProjectile(ItemStack arrow, float damageModifier)
protected PersistentProjectileEntity
StrayEntity. createArrowProjectile(ItemStack arrow, float damageModifier)
protected PersistentProjectileEntity
WitherSkeletonEntity. createArrowProjectile(ItemStack arrow, float damageModifier)
private void
MobEntity. disablePlayerShield(PlayerEntity player, ItemStack mobStack, ItemStack playerStack)
private void
PiglinEntity. equipAtChance(EquipmentSlot slot, ItemStack stack)
protected void
MobEntity. equipLootStack(EquipmentSlot slot, ItemStack stack)
void
AbstractSkeletonEntity. equipStack(EquipmentSlot slot, ItemStack stack)
void
MobEntity. equipStack(EquipmentSlot slot, ItemStack stack)
protected void
PiglinEntity. equipToMainHand(ItemStack stack)
protected void
PiglinEntity. equipToOffHand(ItemStack stack)
ItemStack
HostileEntity. getArrowType(ItemStack stack)
boolean
HoglinEntity. isBreedingItem(ItemStack stack)
private static boolean
PiglinBrain. isFood(ItemStack stack)
protected static boolean
PiglinBrain. isGoldenItem(ItemStack stack)
private boolean
PillagerEntity. isRaidCaptain(ItemStack stack)
protected static boolean
PiglinBrain. isWillingToTrade(PiglinEntity piglin, ItemStack nearbyItems)
boolean
MobEntity. prefersNewDamageableItem(ItemStack newStack, ItemStack oldStack)
protected boolean
DrownedEntity. prefersNewEquipment(ItemStack newStack, ItemStack oldStack)
protected boolean
MobEntity. prefersNewEquipment(ItemStack newStack, ItemStack oldStack)
protected boolean
PiglinEntity. prefersNewEquipment(ItemStack newStack, ItemStack oldStack)
void
PiglinEntity. shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)
void
PillagerEntity. shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)
private static void
PiglinBrain. swapItemWithOffHand(PiglinEntity piglin, ItemStack stack)
boolean
MobEntity. tryEquip(ItemStack equipment)
Method parameters in net.minecraft.entity.mob with type arguments of type ItemStack Modifier and Type Method Description private static void
PiglinBrain. doBarter(PiglinEntity piglin, List<ItemStack> list)
private static void
PiglinBrain. drop(PiglinEntity piglin, List<ItemStack> list, Vec3d vec3d)
private static void
PiglinBrain. dropBarteredItem(PiglinEntity piglin, List<ItemStack> list)
private static void
PiglinBrain. dropBarteredItem(PiglinEntity piglin, PlayerEntity player, List<ItemStack> list)
-
Uses of ItemStack in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive that return ItemStack Modifier and Type Method Description ItemStack
HorseEntity. getArmorType()
ItemStack
AxolotlEntity. getBucketItem()
ItemStack
CodEntity. getBucketItem()
ItemStack
PufferfishEntity. getBucketItem()
ItemStack
SalmonEntity. getBucketItem()
ItemStack
TropicalFishEntity. getBucketItem()
Methods in net.minecraft.entity.passive with parameters of type ItemStack Modifier and Type Method Description private boolean
FoxEntity. canEat(ItemStack stack)
private boolean
PandaEntity. canEat(ItemStack stack)
boolean
DolphinEntity. canEquip(ItemStack stack)
boolean
FoxEntity. canEquip(ItemStack stack)
boolean
PandaEntity. canEquip(ItemStack stack)
boolean
VillagerEntity. canGather(ItemStack stack)
boolean
FoxEntity. canPickupItem(ItemStack stack)
void
AxolotlEntity. copyDataToStack(ItemStack stack)
void
FishEntity. copyDataToStack(ItemStack stack)
void
TropicalFishEntity. copyDataToStack(ItemStack stack)
private void
FoxEntity. dropItem(ItemStack stack)
protected void
AnimalEntity. eat(PlayerEntity player, Hand hand, ItemStack stack)
protected void
AxolotlEntity. eat(PlayerEntity player, Hand hand, ItemStack stack)
protected void
CatEntity. eat(PlayerEntity player, Hand hand, ItemStack stack)
protected void
FoxEntity. eat(PlayerEntity player, Hand hand, ItemStack stack)
private void
HorseEntity. equipArmor(ItemStack stack)
private static @Nullable DyeColor
LlamaEntity. getColorFromCarpet(ItemStack color)
protected SoundEvent
WanderingTraderEntity. getDrinkSound(ItemStack stack)
SoundEvent
FoxEntity. getEatSound(ItemStack stack)
private Optional<Pair<StatusEffect,Integer>>
MooshroomEntity. getStewEffectFrom(ItemStack flower)
ActionResult
HorseBaseEntity. interactHorse(PlayerEntity player, ItemStack stack)
boolean
AnimalEntity. isBreedingItem(ItemStack stack)
boolean
AxolotlEntity. isBreedingItem(ItemStack stack)
boolean
BeeEntity. isBreedingItem(ItemStack stack)
boolean
CatEntity. isBreedingItem(ItemStack stack)
boolean
ChickenEntity. isBreedingItem(ItemStack stack)
boolean
FoxEntity. isBreedingItem(ItemStack stack)
boolean
HorseBaseEntity. isBreedingItem(ItemStack stack)
boolean
LlamaEntity. isBreedingItem(ItemStack stack)
boolean
OcelotEntity. isBreedingItem(ItemStack stack)
boolean
PandaEntity. isBreedingItem(ItemStack stack)
boolean
ParrotEntity. isBreedingItem(ItemStack stack)
boolean
PigEntity. isBreedingItem(ItemStack stack)
boolean
PolarBearEntity. isBreedingItem(ItemStack stack)
boolean
RabbitEntity. isBreedingItem(ItemStack stack)
boolean
StriderEntity. isBreedingItem(ItemStack stack)
boolean
TurtleEntity. isBreedingItem(ItemStack stack)
boolean
WolfEntity. isBreedingItem(ItemStack stack)
boolean
HorseBaseEntity. isHorseArmor(ItemStack item)
Whether the given item stack is valid for this horse's armor slot.boolean
HorseEntity. isHorseArmor(ItemStack item)
Whether the given item stack is valid for this horse's armor slot.boolean
LlamaEntity. isHorseArmor(ItemStack item)
Whether the given item stack is valid for this horse's armor slot.private static boolean
RabbitEntity. isTempting(ItemStack stack)
void
MerchantEntity. onSellingItem(ItemStack stack)
protected boolean
HorseBaseEntity. receiveFood(PlayerEntity player, ItemStack item)
protected boolean
LlamaEntity. receiveFood(PlayerEntity player, ItemStack item)
private void
HorseEntity. setArmorTypeFromStack(ItemStack stack)
private void
FoxEntity. spit(ItemStack stack)
private void
DolphinEntity.PlayWithItemsGoal. spitOutItem(ItemStack stack)
Method parameters in net.minecraft.entity.passive with type arguments of type ItemStack Modifier and Type Method Description private CommandItemSlot
HorseBaseEntity. method_32335(int int2, Predicate<ItemStack> predicate)
-
Uses of ItemStack in net.minecraft.entity.player
Fields in net.minecraft.entity.player declared as ItemStack Modifier and Type Field Description private ItemStack
PlayerEntity. selectedItem
Fields in net.minecraft.entity.player with type parameters of type ItemStack Modifier and Type Field Description DefaultedList<ItemStack>
PlayerInventory. armor
private List<DefaultedList<ItemStack>>
PlayerInventory. combinedInventory
DefaultedList<ItemStack>
PlayerInventory. main
DefaultedList<ItemStack>
PlayerInventory. offHand
Methods in net.minecraft.entity.player that return ItemStack Modifier and Type Method Description ItemStack
PlayerEntity. eatFood(World world, ItemStack stack)
ItemStack
PlayerInventory. getArmorStack(int slot)
ItemStack
PlayerEntity. getArrowType(ItemStack stack)
ItemStack
PlayerEntity. getEquippedStack(EquipmentSlot slot)
ItemStack
PlayerInventory. getMainHandStack()
ItemStack
PlayerInventory. getStack(int slot)
Fetches the stack currently stored at the given slot.ItemStack
PlayerInventory. removeStack(int slot)
Removes the stack currently stored at the indicated slot.ItemStack
PlayerInventory. removeStack(int slot, int amount)
Removes a specific number of items from the given slot.Methods in net.minecraft.entity.player that return types with arguments of type ItemStack Modifier and Type Method Description Iterable<ItemStack>
PlayerEntity. getArmorItems()
Iterable<ItemStack>
PlayerEntity. getItemsHand()
Methods in net.minecraft.entity.player with parameters of type ItemStack Modifier and Type Method Description void
PlayerInventory. addPickBlock(ItemStack stack)
private int
PlayerInventory. addStack(int slot, ItemStack stack)
private int
PlayerInventory. addStack(ItemStack stack)
void
PlayerEntity. applyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels)
boolean
PlayerEntity. canEquip(ItemStack stack)
boolean
PlayerEntity. canPlaceOn(BlockPos pos, Direction facing, ItemStack stack)
private boolean
PlayerInventory. canStackAddMore(ItemStack existingStack, ItemStack stack)
boolean
PlayerInventory. contains(ItemStack stack)
@Nullable ItemEntity
PlayerEntity. dropItem(ItemStack stack, boolean retainOwnership)
@Nullable ItemEntity
PlayerEntity. dropItem(ItemStack stack, boolean throwRandomly, boolean retainOwnership)
void
HungerManager. eat(Item item, ItemStack stack)
ItemStack
PlayerEntity. eatFood(World world, ItemStack stack)
void
PlayerEntity. equipStack(EquipmentSlot slot, ItemStack stack)
ItemStack
PlayerEntity. getArrowType(ItemStack stack)
int
PlayerInventory. getOccupiedSlotWithRoomForStack(ItemStack stack)
int
PlayerInventory. getSlotWithStack(ItemStack stack)
boolean
PlayerEntity. giveItemStack(ItemStack stack)
int
PlayerInventory. indexOf(ItemStack stack)
boolean
PlayerInventory. insertStack(int slot, ItemStack stack)
boolean
PlayerInventory. insertStack(ItemStack stack)
void
PlayerInventory. method_32338(ItemStack itemStack, boolean bool)
void
PlayerInventory. offerOrDrop(ItemStack stack)
void
PlayerEntity. onPickupSlotClick(ItemStack cursorStack, ItemStack slotStack, ClickType clickType)
Called when a player performs apickup slot action
in a screen handler.void
PlayerInventory. removeOne(ItemStack stack)
void
PlayerInventory. setStack(int slot, ItemStack stack)
void
PlayerEntity. useBook(ItemStack book, Hand hand)
Called when the player uses (defaults to right click) a writable or written book item. -
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. tridentStack
Fields in net.minecraft.entity.projectile with type parameters of type ItemStack Modifier and Type Field Description private static TrackedData<ItemStack>
AbstractFireballEntity. ITEM
private static TrackedData<ItemStack>
FireworkRocketEntity. ITEM
Methods in net.minecraft.entity.projectile that return ItemStack Modifier and Type Method Description protected ItemStack
ArrowEntity. asItemStack()
protected abstract ItemStack
PersistentProjectileEntity. asItemStack()
protected ItemStack
SpectralArrowEntity. asItemStack()
protected ItemStack
TridentEntity. asItemStack()
protected ItemStack
AbstractFireballEntity. getItem()
ItemStack
AbstractFireballEntity. getStack()
ItemStack
FireworkRocketEntity. getStack()
Methods in net.minecraft.entity.projectile with parameters of type ItemStack Modifier and Type Method Description static PersistentProjectileEntity
ProjectileUtil. createArrowProjectile(LivingEntity entity, ItemStack stack, float damageModifier)
static int
ArrowEntity. getCustomPotionColor(ItemStack stack)
void
ArrowEntity. initFromStack(ItemStack stack)
void
AbstractFireballEntity. setItem(ItemStack stack)
int
FishingBobberEntity. use(ItemStack usedItem)
Constructors in net.minecraft.entity.projectile with parameters of type ItemStack Constructor Description FireworkRocketEntity(World world, double x, double y, double z, ItemStack stack)
FireworkRocketEntity(World world, @Nullable Entity entity, double x, double y, double z, ItemStack stack)
FireworkRocketEntity(World world, ItemStack stack, double x, double y, double z, boolean shotAtAngle)
FireworkRocketEntity(World world, ItemStack stack, Entity entity, double x, double y, double z, boolean shotAtAngle)
FireworkRocketEntity(World world, ItemStack stack, LivingEntity shooter)
TridentEntity(World world, LivingEntity owner, ItemStack stack)
-
Uses of ItemStack in net.minecraft.entity.projectile.thrown
Fields in net.minecraft.entity.projectile.thrown with type parameters of type ItemStack Modifier and Type Field Description private static TrackedData<ItemStack>
ThrownItemEntity. ITEM
Methods in net.minecraft.entity.projectile.thrown that return ItemStack Modifier and Type Method Description protected ItemStack
ThrownItemEntity. getItem()
ItemStack
ThrownItemEntity. getStack()
Methods in net.minecraft.entity.projectile.thrown with parameters of type ItemStack Modifier and Type Method Description private void
PotionEntity. applyLingeringPotion(ItemStack stack, Potion potion)
void
ThrownItemEntity. setItem(ItemStack item)
-
Uses of ItemStack in net.minecraft.entity.vehicle
Fields in net.minecraft.entity.vehicle with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>
StorageMinecartEntity. inventory
Methods in net.minecraft.entity.vehicle that return ItemStack Modifier and Type Method Description ItemStack
AbstractMinecartEntity. getPickBlockStack()
ItemStack
BoatEntity. getPickBlockStack()
ItemStack
StorageMinecartEntity. getStack(int slot)
Fetches the stack currently stored at the given slot.ItemStack
StorageMinecartEntity. removeStack(int slot)
Removes the stack currently stored at the indicated slot.ItemStack
StorageMinecartEntity. removeStack(int slot, int amount)
Removes a specific number of items from the given slot.Methods in net.minecraft.entity.vehicle with parameters of type ItemStack Modifier and Type Method Description void
StorageMinecartEntity. setStack(int slot, ItemStack stack)
-
Uses of ItemStack in net.minecraft.inventory
Fields in net.minecraft.inventory with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>
CraftingInventory. stacks
private DefaultedList<ItemStack>
CraftingResultInventory. stacks
private DefaultedList<ItemStack>
SimpleInventory. stacks
Methods in net.minecraft.inventory that return ItemStack Modifier and Type Method Description ItemStack
SimpleInventory. addStack(ItemStack stack)
ItemStack
CommandItemSlot. get()
Gets the current item stack in this slot.ItemStack
CraftingInventory. getStack(int slot)
Fetches the stack currently stored at the given slot.ItemStack
CraftingResultInventory. getStack(int slot)
Fetches the stack currently stored at the given slot.ItemStack
DoubleInventory. getStack(int slot)
Fetches the stack currently stored at the given slot.ItemStack
Inventory. getStack(int slot)
Fetches the stack currently stored at the given slot.ItemStack
SimpleInventory. getStack(int slot)
Fetches the stack currently stored at the given slot.ItemStack
SimpleInventory. removeItem(Item item, int count)
Searches this inventory for the specified item and removes the given amount from this inventory.ItemStack
CraftingInventory. removeStack(int slot)
Removes the stack currently stored at the indicated slot.ItemStack
CraftingInventory. removeStack(int slot, int amount)
Removes a specific number of items from the given slot.ItemStack
CraftingResultInventory. removeStack(int slot)
Removes the stack currently stored at the indicated slot.ItemStack
CraftingResultInventory. removeStack(int slot, int amount)
Removes a specific number of items from the given slot.ItemStack
DoubleInventory. removeStack(int slot)
Removes the stack currently stored at the indicated slot.ItemStack
DoubleInventory. removeStack(int slot, int amount)
Removes a specific number of items from the given slot.static ItemStack
Inventories. removeStack(List<ItemStack> stacks, int slot)
ItemStack
Inventory. removeStack(int slot)
Removes the stack currently stored at the indicated slot.ItemStack
Inventory. removeStack(int slot, int amount)
Removes a specific number of items from the given slot.ItemStack
SimpleInventory. removeStack(int slot)
Removes the stack currently stored at the indicated slot.ItemStack
SimpleInventory. removeStack(int slot, int amount)
Removes a specific number of items from the given slot.static ItemStack
Inventories. splitStack(List<ItemStack> stacks, int slot, int amount)
Methods in net.minecraft.inventory that return types with arguments of type ItemStack Modifier and Type Method Description List<ItemStack>
SimpleInventory. clearToList()
Clears this inventory and return all the non-empty stacks in a list.Methods in net.minecraft.inventory with parameters of type ItemStack Modifier and Type Method Description ItemStack
SimpleInventory. addStack(ItemStack stack)
private void
SimpleInventory. addToExistingSlot(ItemStack stack)
private void
SimpleInventory. addToNewSlot(ItemStack stack)
boolean
SidedInventory. canExtract(int slot, ItemStack stack, Direction dir)
Determines whether the given stack can be removed from this inventory at the specified slot position from the given direction.boolean
SidedInventory. canInsert(int slot, ItemStack stack, @Nullable Direction dir)
Determines whether the given stack can be inserted into this inventory at the specified slot position from the given direction.boolean
SimpleInventory. canInsert(ItemStack stack)
boolean
ContainerLock. canOpen(ItemStack stack)
Returns true if this lock can be opened with the key item stack.boolean
DoubleInventory. isValid(int slot, ItemStack stack)
Returns whether the given stack is a valid for the indicated slot position.default boolean
Inventory. isValid(int slot, ItemStack stack)
Returns whether the given stack is a valid for the indicated slot position.static int
Inventories. remove(ItemStack stack, Predicate<ItemStack> shouldRemove, int maxCount, boolean dryRun)
Removes a number, not exceedingmaxCount
, of items from an item stack based on a predicate and returns that number.boolean
CommandItemSlot. set(ItemStack stack)
Sets thestack
to this slot.void
CraftingInventory. setStack(int slot, ItemStack stack)
void
CraftingResultInventory. setStack(int slot, ItemStack stack)
void
DoubleInventory. setStack(int slot, ItemStack stack)
void
Inventory. setStack(int slot, ItemStack stack)
void
SimpleInventory. setStack(int slot, ItemStack stack)
private void
SimpleInventory. transfer(ItemStack source, ItemStack target)
Method parameters in net.minecraft.inventory with type arguments of type ItemStack Modifier and Type Method Description static CommandItemSlot
CommandItemSlot. of(LivingEntity entity, EquipmentSlot equipmentSlot, Predicate<ItemStack> stackFilter)
Creates a slot backed by an equipment slot of an living entity and guarded by a condition for setting stacks into the inventory.static CommandItemSlot
CommandItemSlot. of(Inventory inventory, int index, Predicate<ItemStack> stackFilter)
Creates a slot backed by an index within an inventory and guarded by a condition for setting stacks into the inventory.static void
Inventories. readNbt(NbtCompound nbt, DefaultedList<ItemStack> stacks)
static int
Inventories. remove(Inventory inventory, Predicate<ItemStack> shouldRemove, int maxCount, boolean dryRun)
Removes a number, not exceedingmaxCount
, of items from an inventory based on a predicate and returns that number.static int
Inventories. remove(ItemStack stack, Predicate<ItemStack> shouldRemove, int maxCount, boolean dryRun)
Removes a number, not exceedingmaxCount
, of items from an item stack based on a predicate and returns that number.static ItemStack
Inventories. removeStack(List<ItemStack> stacks, int slot)
static ItemStack
Inventories. splitStack(List<ItemStack> stacks, int slot, int amount)
static NbtCompound
Inventories. writeNbt(NbtCompound nbt, DefaultedList<ItemStack> stacks)
static NbtCompound
Inventories. writeNbt(NbtCompound nbt, DefaultedList<ItemStack> stacks, boolean setIfEmpty)
Constructors in net.minecraft.inventory with parameters of type ItemStack Constructor Description SimpleInventory(ItemStack[] items)
-
Uses of ItemStack in net.minecraft.item
Fields in net.minecraft.item declared as ItemStack Modifier and Type Field Description static ItemStack
ItemStack. EMPTY
private ItemStack
ItemGroup. icon
private ItemStack
ItemUsageContext. stack
Fields in net.minecraft.item with type parameters of type ItemStack Modifier and Type Field Description static Predicate<ItemStack>
RangedWeaponItem. BOW_PROJECTILES
static com.mojang.serialization.Codec<ItemStack>
ItemStack. CODEC
static Predicate<ItemStack>
RangedWeaponItem. CROSSBOW_HELD_PROJECTILES
Methods in net.minecraft.item that return ItemStack Modifier and Type Method Description static ItemStack
DyeableItem. blendAndSetColor(ItemStack stack, List<DyeItem> colors)
ItemStack
ItemStack. copy()
abstract ItemStack
ItemGroup. createIcon()
static ItemStack
FilledMapItem. createMap(World world, int x, int z, byte scale, boolean showIcons, boolean unlimitedTracking)
static ItemStack
ItemUsage. exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack)
static ItemStack
ItemUsage. exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride)
protected ItemStack
GlassBottleItem. fill(ItemStack stack, PlayerEntity player, ItemStack outputStack)
ItemStack
ChorusFruitItem. finishUsing(ItemStack stack, World world, LivingEntity user)
ItemStack
HoneyBottleItem. finishUsing(ItemStack stack, World world, LivingEntity user)
ItemStack
Item. finishUsing(ItemStack stack, World world, LivingEntity user)
ItemStack
ItemStack. finishUsing(World world, LivingEntity user)
ItemStack
MilkBucketItem. finishUsing(ItemStack stack, World world, LivingEntity user)
ItemStack
MushroomStewItem. finishUsing(ItemStack stack, World world, LivingEntity user)
ItemStack
PotionItem. finishUsing(ItemStack stack, World world, LivingEntity user)
ItemStack
SpyglassItem. finishUsing(ItemStack stack, World world, LivingEntity user)
ItemStack
SuspiciousStewItem. finishUsing(ItemStack stack, World world, LivingEntity user)
static ItemStack
EnchantedBookItem. forEnchantment(EnchantmentLevelEntry info)
static ItemStack
ItemStack. fromNbt(NbtCompound nbt)
ItemStack
FireworkItem. getDefaultStack()
ItemStack
Item. getDefaultStack()
ItemStack
PotionItem. getDefaultStack()
ItemStack
TippedArrowItem. getDefaultStack()
static ItemStack
BucketItem. getEmptiedStack(ItemStack stack, PlayerEntity player)
static ItemStack
RangedWeaponItem. getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate)
ItemStack
ItemGroup. getIcon()
ItemStack
ItemUsageContext. getStack()
ItemStack
ItemStack. setCustomName(@Nullable Text name)
ItemStack
ItemStack. split(int amount)
Methods in net.minecraft.item that return types with arguments of type ItemStack Modifier and Type Method Description static TypedActionResult<ItemStack>
ItemUsage. consumeHeldItem(World world, PlayerEntity player, Hand hand)
private static Stream<ItemStack>
BundleItem. getBundledStacks(ItemStack stack)
Predicate<ItemStack>
CrossbowItem. getHeldProjectiles()
Predicate<ItemStack>
RangedWeaponItem. getHeldProjectiles()
Predicate<ItemStack>
BowItem. getProjectiles()
Predicate<ItemStack>
CrossbowItem. getProjectiles()
private static List<ItemStack>
CrossbowItem. getProjectiles(ItemStack crossbow)
abstract Predicate<ItemStack>
RangedWeaponItem. getProjectiles()
private static Optional<ItemStack>
BundleItem. removeFirstStack(ItemStack stack)
TypedActionResult<ItemStack>
ArmorItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
BoatItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
BowItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
BucketItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
BundleItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
CrossbowItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
EggItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
ElytraItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
EmptyMapItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
EnderEyeItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
EnderPearlItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
ExperienceBottleItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
FireworkItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
FishingRodItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
GlassBottleItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
HoneyBottleItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
Item. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
ItemStack. use(World world, PlayerEntity user, Hand hand)
TypedActionResult<ItemStack>
KnowledgeBookItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
LilyPadItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
LingeringPotionItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
MilkBucketItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
OnAStickItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
PotionItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
ShieldItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
SnowballItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
SpawnEggItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
SplashPotionItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
SpyglassItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
ThrowablePotionItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
TridentItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
WritableBookItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.TypedActionResult<ItemStack>
WrittenBookItem. use(World world, PlayerEntity user, Hand hand)
Called when an item is used by a player.Methods in net.minecraft.item with parameters of type ItemStack Modifier and Type Method Description static void
SuspiciousStewItem. addEffectToStew(ItemStack stew, StatusEffect effect, int duration)
static void
EnchantedBookItem. addEnchantment(ItemStack stack, EnchantmentLevelEntry entry)
private static int
BundleItem. addToBundle(ItemStack bundle, ItemStack stack)
static void
BannerItem. appendBannerTooltip(ItemStack stack, List<Text> tooltip)
void
AirBlockItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
BannerItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
BannerPatternItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
BlockItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
BundleItem. appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context)
void
CrossbowItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
EnchantedBookItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
EntityBucketItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
FilledMapItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
FireworkChargeItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
FireworkItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
Item. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
LingeringPotionItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
MusicDiscItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
PotionItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
ShieldItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
TippedArrowItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
void
WrittenBookItem. appendTooltip(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context)
static boolean
ItemStack. areEqual(ItemStack left, ItemStack right)
static boolean
ItemStack. areItemsEqual(ItemStack left, ItemStack right)
static boolean
ItemStack. areItemsEqualIgnoreDamage(ItemStack left, ItemStack right)
static boolean
ItemStack. areTagsEqual(ItemStack left, ItemStack right)
static ItemStack
DyeableItem. blendAndSetColor(ItemStack stack, List<DyeItem> colors)
static boolean
ItemStack. canCombine(ItemStack stack, ItemStack otherStack)
private static Optional<NbtCompound>
BundleItem. canMergeStack(ItemStack stack, NbtList items)
protected boolean
DecorationItem. canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos)
protected boolean
ItemFrameItem. canPlaceOn(PlayerEntity player, Direction side, ItemStack stack, BlockPos pos)
boolean
ArmorItem. canRepair(ItemStack stack, ItemStack ingredient)
boolean
ElytraItem. canRepair(ItemStack stack, ItemStack ingredient)
boolean
Item. canRepair(ItemStack stack, ItemStack ingredient)
boolean
ShieldItem. canRepair(ItemStack stack, ItemStack ingredient)
boolean
ToolItem. canRepair(ItemStack stack, ItemStack ingredient)
private static void
CrossbowItem. clearProjectiles(ItemStack crossbow)
static void
FilledMapItem. copyMap(World world, ItemStack stack)
PersistentProjectileEntity
ArrowItem. createArrow(World world, ItemStack stack, LivingEntity shooter)
private static PersistentProjectileEntity
CrossbowItem. createArrow(World world, LivingEntity entity, ItemStack crossbow, ItemStack arrow)
PersistentProjectileEntity
SpectralArrowItem. createArrow(World world, ItemStack stack, LivingEntity shooter)
private static void
FilledMapItem. createMapState(ItemStack stack, World world, int x, int z, int scale, boolean showIcons, boolean unlimitedTracking, RegistryKey<World> dimension)
@Nullable Packet<?>
FilledMapItem. createSyncPacket(ItemStack stack, World world, PlayerEntity player)
Creates a packet that syncs additional item data to the client.@Nullable Packet<?>
NetworkSyncedItem. createSyncPacket(ItemStack stack, World world, PlayerEntity player)
Creates a packet that syncs additional item data to the client.static boolean
ArmorItem. dispenseArmor(BlockPointer pointer, ItemStack armor)
private static boolean
BundleItem. dropAllBundledItems(ItemStack stack, PlayerEntity player)
static ItemStack
ItemUsage. exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack)
static ItemStack
ItemUsage. exchangeStack(ItemStack inputStack, PlayerEntity player, ItemStack outputStack, boolean creativeOverride)
protected ItemStack
GlassBottleItem. fill(ItemStack stack, PlayerEntity player, ItemStack outputStack)
static void
FilledMapItem. fillExplorationMap(ServerWorld world, ItemStack map)
ItemStack
ChorusFruitItem. finishUsing(ItemStack stack, World world, LivingEntity user)
ItemStack
HoneyBottleItem. finishUsing(ItemStack stack, World world, LivingEntity user)
ItemStack
Item. finishUsing(ItemStack stack, World world, LivingEntity user)
ItemStack
MilkBucketItem. finishUsing(ItemStack stack, World world, LivingEntity user)
ItemStack
MushroomStewItem. finishUsing(ItemStack stack, World world, LivingEntity user)
ItemStack
PotionItem. finishUsing(ItemStack stack, World world, LivingEntity user)
ItemStack
SpyglassItem. finishUsing(ItemStack stack, World world, LivingEntity user)
ItemStack
SuspiciousStewItem. finishUsing(ItemStack stack, World world, LivingEntity user)
static float
BundleItem. getAmountFilled(ItemStack stack)
private static Stream<ItemStack>
BundleItem. getBundledStacks(ItemStack stack)
private static int
BundleItem. getBundleOccupancy(ItemStack stack)
default int
DyeableItem. getColor(ItemStack stack)
static DyeColor
ShieldItem. getColor(ItemStack stack)
static ItemStack
BucketItem. getEmptiedStack(ItemStack stack, PlayerEntity player)
static NbtList
EnchantedBookItem. getEnchantmentNbt(ItemStack stack)
static int
WrittenBookItem. getGeneration(ItemStack stack)
int
BundleItem. getItemBarColor(ItemStack stack)
int
Item. getItemBarColor(ItemStack stack)
int
BundleItem. getItemBarStep(ItemStack stack)
int
Item. getItemBarStep(ItemStack stack)
private static int
BundleItem. getItemOccupancy(ItemStack stack)
static int
FilledMapItem. getMapColor(ItemStack stack)
static @Nullable Integer
FilledMapItem. getMapId(ItemStack stack)
int
BowItem. getMaxUseTime(ItemStack stack)
int
CrossbowItem. getMaxUseTime(ItemStack stack)
int
HoneyBottleItem. getMaxUseTime(ItemStack stack)
int
Item. getMaxUseTime(ItemStack stack)
int
MilkBucketItem. getMaxUseTime(ItemStack stack)
int
PotionItem. getMaxUseTime(ItemStack stack)
int
ShieldItem. getMaxUseTime(ItemStack stack)
int
SpyglassItem. getMaxUseTime(ItemStack stack)
int
TridentItem. getMaxUseTime(ItemStack stack)
float
AxeItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)
float
Item. getMiningSpeedMultiplier(ItemStack stack, BlockState state)
float
MiningToolItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)
float
PickaxeItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)
float
ShearsItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)
float
SwordItem. getMiningSpeedMultiplier(ItemStack stack, BlockState state)
Text
Item. getName(ItemStack stack)
Text
SkullItem. getName(ItemStack stack)
Text
WrittenBookItem. getName(ItemStack stack)
static @Nullable MapState
FilledMapItem. getOrCreateMapState(ItemStack map, World world)
static int
WrittenBookItem. getPageCount(ItemStack stack)
private static List<ItemStack>
CrossbowItem. getProjectiles(ItemStack crossbow)
private static float
CrossbowItem. getPullProgress(int useTicks, ItemStack stack)
static int
CrossbowItem. getPullTime(ItemStack stack)
Rarity
Item. getRarity(ItemStack stack)
private static float
CrossbowItem. getSpeed(ItemStack stack)
Optional<TooltipData>
BundleItem. getTooltipData(ItemStack stack)
Optional<TooltipData>
Item. getTooltipData(ItemStack stack)
String
CompassItem. getTranslationKey(ItemStack stack)
Gets the translation key of this item using the provided item stack for context.String
Item. getTranslationKey(ItemStack stack)
Gets the translation key of this item using the provided item stack for context.String
PotionItem. getTranslationKey(ItemStack stack)
Gets the translation key of this item using the provided item stack for context.String
ShieldItem. getTranslationKey(ItemStack stack)
Gets the translation key of this item using the provided item stack for context.String
TippedArrowItem. getTranslationKey(ItemStack stack)
Gets the translation key of this item using the provided item stack for context.UseAction
BowItem. getUseAction(ItemStack stack)
UseAction
CrossbowItem. getUseAction(ItemStack stack)
UseAction
HoneyBottleItem. getUseAction(ItemStack stack)
UseAction
Item. getUseAction(ItemStack stack)
UseAction
MilkBucketItem. getUseAction(ItemStack stack)
UseAction
PotionItem. getUseAction(ItemStack stack)
UseAction
ShieldItem. getUseAction(ItemStack stack)
UseAction
SpyglassItem. getUseAction(ItemStack stack)
UseAction
TridentItem. getUseAction(ItemStack stack)
default boolean
DyeableItem. hasColor(ItemStack stack)
boolean
CompassItem. hasGlint(ItemStack stack)
Checks if the glint effect should be applied when the item is rendered.boolean
DebugStickItem. hasGlint(ItemStack stack)
Checks if the glint effect should be applied when the item is rendered.boolean
EnchantedBookItem. hasGlint(ItemStack stack)
Checks if the glint effect should be applied when the item is rendered.boolean
EnchantedGoldenAppleItem. hasGlint(ItemStack stack)
Checks if the glint effect should be applied when the item is rendered.boolean
EndCrystalItem. hasGlint(ItemStack stack)
Checks if the glint effect should be applied when the item is rendered.boolean
ExperienceBottleItem. hasGlint(ItemStack stack)
Checks if the glint effect should be applied when the item is rendered.boolean
Item. hasGlint(ItemStack stack)
Checks if the glint effect should be applied when the item is rendered.boolean
NetherStarItem. hasGlint(ItemStack stack)
Checks if the glint effect should be applied when the item is rendered.boolean
PotionItem. hasGlint(ItemStack stack)
Checks if the glint effect should be applied when the item is rendered.boolean
WrittenBookItem. hasGlint(ItemStack stack)
Checks if the glint effect should be applied when the item is rendered.static boolean
CompassItem. hasLodestone(ItemStack stack)
static boolean
CrossbowItem. hasProjectile(ItemStack crossbow, Item projectile)
void
CompassItem. inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)
void
FilledMapItem. inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)
void
Item. inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)
static boolean
CrossbowItem. isCharged(ItemStack stack)
boolean
BookItem. isEnchantable(ItemStack stack)
boolean
EnchantedBookItem. isEnchantable(ItemStack stack)
boolean
Item. isEnchantable(ItemStack stack)
private boolean
ItemStack. isEqual(ItemStack stack)
boolean
BundleItem. isItemBarVisible(ItemStack stack)
boolean
Item. isItemBarVisible(ItemStack stack)
boolean
ItemStack. isItemEqual(ItemStack stack)
boolean
ItemStack. isItemEqualIgnoreDamage(ItemStack stack)
static boolean
ElytraItem. isUsable(ItemStack stack)
boolean
CrossbowItem. isUsedOnRelease(ItemStack stack)
boolean
Item. isUsedOnRelease(ItemStack stack)
private static boolean
CrossbowItem. loadProjectile(LivingEntity shooter, ItemStack crossbow, ItemStack projectile, boolean simulated, boolean creative)
private static boolean
CrossbowItem. loadProjectiles(LivingEntity shooter, ItemStack projectile)
boolean
BundleItem. onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)
boolean
Item. onClicked(ItemStack stack, ItemStack otherStack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)
boolean
ItemStack. onClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player, CommandItemSlot cursorSlot)
void
FilledMapItem. onCraft(ItemStack stack, World world, PlayerEntity player)
Called when a player acquires the item by crafting, smelting, smithing, etc.void
Item. onCraft(ItemStack stack, World world, PlayerEntity player)
Called when a player acquires the item by crafting, smelting, smithing, etc.void
BucketItem. onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)
void
EntityBucketItem. onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)
default void
FluidModificationItem. onEmptied(@Nullable PlayerEntity player, World world, ItemStack stack, BlockPos pos)
boolean
BundleItem. onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player)
boolean
Item. onStackClicked(ItemStack stack, Slot slot, ClickType clickType, PlayerEntity player)
void
BowItem. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)
void
CrossbowItem. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)
void
Item. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)
void
SpyglassItem. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)
void
TridentItem. onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)
private BlockState
BlockItem. placeFromTag(BlockPos pos, World world, ItemStack stack, BlockState state)
boolean
Item. postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)
boolean
MiningToolItem. postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)
boolean
SwordItem. postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)
boolean
TridentItem. postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)
boolean
Item. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)
boolean
MiningToolItem. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)
boolean
ShearsItem. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)
boolean
SwordItem. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)
boolean
TridentItem. postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)
protected boolean
BlockItem. postPlacement(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state)
protected boolean
SignItem. postPlacement(BlockPos pos, World world, @Nullable PlayerEntity player, ItemStack stack, BlockState state)
private static void
CrossbowItem. postShoot(World world, LivingEntity entity, ItemStack stack)
private static void
CrossbowItem. putProjectile(ItemStack crossbow, ItemStack projectile)
default void
DyeableItem. removeColor(ItemStack stack)
private static Optional<ItemStack>
BundleItem. removeFirstStack(ItemStack stack)
static boolean
WrittenBookItem. resolve(ItemStack book, @Nullable ServerCommandSource commandSource, @Nullable PlayerEntity player)
private static void
FilledMapItem. scale(ItemStack map, World world, int amount)
static void
CrossbowItem. setCharged(ItemStack stack, boolean charged)
default void
DyeableItem. setColor(ItemStack stack, int color)
private static void
FilledMapItem. setMapId(ItemStack stack, int id)
private static void
CrossbowItem. shoot(World world, LivingEntity shooter, Hand hand, ItemStack crossbow, ItemStack projectile, float soundPitch, boolean creative, float speed, float divergence, float simulated)
static void
CrossbowItem. shootAll(World world, LivingEntity entity, Hand hand, ItemStack stack, float speed, float divergence)
Optional<MobEntity>
SpawnEggItem. spawnBaby(PlayerEntity user, MobEntity entity, EntityType<? extends MobEntity> entityType, ServerWorld world, Vec3d pos, ItemStack stack)
private void
EntityBucketItem. spawnEntity(ServerWorld world, ItemStack stack, BlockPos pos)
void
CrossbowItem. usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks)
void
Item. usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks)
private void
DebugStickItem. use(PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos, boolean update, ItemStack stack)
ActionResult
DyeItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)
ActionResult
Item. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)
ActionResult
NameTagItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)
ActionResult
SaddleItem. useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)
static boolean
BoneMealItem. useOnFertilizable(ItemStack stack, World world, BlockPos pos)
static boolean
BoneMealItem. useOnGround(ItemStack stack, World world, BlockPos blockPos, @Nullable Direction facing)
static boolean
BlockItem. writeTagToBlockEntity(World world, @Nullable PlayerEntity player, BlockPos pos, ItemStack stack)
Method parameters in net.minecraft.item with type arguments of type ItemStack Modifier and Type Method Description void
BlockItem. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)
void
EnchantedBookItem. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)
void
Item. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)
void
ItemGroup. appendStacks(DefaultedList<ItemStack> stacks)
void
PotionItem. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)
void
TippedArrowItem. appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)
static ItemStack
RangedWeaponItem. getHeldProjectile(LivingEntity entity, Predicate<ItemStack> predicate)
static void
ItemUsage. spawnItemContents(ItemEntity itemEntity, Stream<ItemStack> contents)
Constructors in net.minecraft.item with parameters of type ItemStack Constructor Description AutomaticItemPlacementContext(World world, BlockPos pos, Direction facing, ItemStack stack, Direction side)
ItemPlacementContext(PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hitResult)
ItemPlacementContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit)
ItemUsageContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit)
-
Uses of ItemStack in net.minecraft.item.map
Methods in net.minecraft.item.map with parameters of type ItemStack Modifier and Type Method Description static void
MapState. addDecorationsNbt(ItemStack stack, BlockPos pos, String id, MapIcon.Type type)
void
MapState. update(PlayerEntity player, ItemStack stack)
-
Uses of ItemStack in net.minecraft.loot
Fields in net.minecraft.loot with type parameters of type ItemStack Modifier and Type Field Description private BiFunction<ItemStack,LootContext,ItemStack>
LootTable. combinedFunction
private BiFunction<ItemStack,LootContext,ItemStack>
LootTable. combinedFunction
private BiFunction<ItemStack,LootContext,ItemStack>
LootPool. javaFunctions
private BiFunction<ItemStack,LootContext,ItemStack>
LootPool. javaFunctions
Methods in net.minecraft.loot that return types with arguments of type ItemStack Modifier and Type Method Description List<ItemStack>
LootTable. generateLoot(LootContext context)
static Consumer<ItemStack>
LootTable. processStacks(Consumer<ItemStack> lootConsumer)
Method parameters in net.minecraft.loot with type arguments of type ItemStack Modifier and Type Method Description void
LootPool. addGeneratedLoot(Consumer<ItemStack> lootConsumer, LootContext context)
void
LootChoice. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
void
LootTable. generateLoot(LootContext context, Consumer<ItemStack> lootConsumer)
void
LootTable. generateUnprocessedLoot(LootContext context, Consumer<ItemStack> lootConsumer)
static Consumer<ItemStack>
LootTable. processStacks(Consumer<ItemStack> lootConsumer)
private void
LootTable. shuffle(List<ItemStack> drops, int freeSlots, Random random)
private void
LootPool. supplyOnce(Consumer<ItemStack> lootConsumer, LootContext context)
-
Uses of ItemStack in net.minecraft.loot.context
Fields in net.minecraft.loot.context with type parameters of type ItemStack Modifier and Type Field Description static LootContextParameter<ItemStack>
LootContextParameters. TOOL
Method parameters in net.minecraft.loot.context with type arguments of type ItemStack Modifier and Type Method Description void
LootContext.Dropper. add(LootContext context, Consumer<ItemStack> consumer)
void
LootContext. drop(Identifier id, Consumer<ItemStack> lootConsumer)
-
Uses of ItemStack in net.minecraft.loot.entry
Fields in net.minecraft.loot.entry with type parameters of type ItemStack Modifier and Type Field Description private BiFunction<ItemStack,LootContext,ItemStack>
LeafEntry. compiledFunctions
private BiFunction<ItemStack,LootContext,ItemStack>
LeafEntry. compiledFunctions
Method parameters in net.minecraft.loot.entry with type arguments of type ItemStack Modifier and Type Method Description void
DynamicEntry. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
void
EmptyEntry. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
void
ItemEntry. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
protected abstract void
LeafEntry. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
void
LootTableEntry. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
void
TagEntry. generateLoot(Consumer<ItemStack> lootConsumer, LootContext context)
-
Uses of ItemStack in net.minecraft.loot.function
Fields in net.minecraft.loot.function with type parameters of type ItemStack Modifier and Type Field Description private BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionManager.AndFunction. field_27905
private BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionManager.AndFunction. field_27905
static BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionTypes. NOOP
static BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionTypes. NOOP
Methods in net.minecraft.loot.function that return ItemStack Modifier and Type Method Description private static ItemStack
EnchantRandomlyLootFunction. addEnchantmentToStack(ItemStack stack, Enchantment enchantment, Random random)
ItemStack
ConditionalLootFunction. apply(ItemStack itemStack, LootContext lootContext)
ItemStack
LootFunctionManager.AndFunction. apply(ItemStack itemStack, LootContext lootContext)
ItemStack
ApplyBonusLootFunction. process(ItemStack stack, LootContext context)
protected abstract ItemStack
ConditionalLootFunction. process(ItemStack stack, LootContext context)
ItemStack
CopyNameLootFunction. process(ItemStack stack, LootContext context)
ItemStack
CopyNbtLootFunction. process(ItemStack stack, LootContext context)
protected ItemStack
CopyStateFunction. process(ItemStack stack, LootContext context)
ItemStack
EnchantRandomlyLootFunction. process(ItemStack stack, LootContext context)
ItemStack
EnchantWithLevelsLootFunction. process(ItemStack stack, LootContext context)
ItemStack
ExplorationMapLootFunction. process(ItemStack stack, LootContext context)
ItemStack
ExplosionDecayLootFunction. process(ItemStack stack, LootContext context)
ItemStack
FillPlayerHeadLootFunction. process(ItemStack stack, LootContext context)
ItemStack
FurnaceSmeltLootFunction. process(ItemStack stack, LootContext context)
ItemStack
LimitCountLootFunction. process(ItemStack stack, LootContext context)
ItemStack
LootingEnchantLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetAttributesLootFunction. process(ItemStack stack, LootContext context)
protected ItemStack
SetBannerPatternFunction. process(ItemStack stack, LootContext context)
ItemStack
SetContentsLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetCountLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetDamageLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetEnchantmentsLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetLootTableLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetLoreLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetNameLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetNbtLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetStewEffectLootFunction. process(ItemStack stack, LootContext context)
Methods in net.minecraft.loot.function that return types with arguments of type ItemStack Modifier and Type Method Description static Consumer<ItemStack>
LootFunction. apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)
static BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionTypes. join(BiFunction<ItemStack,LootContext,ItemStack>[] lootFunctions)
static BiFunction<ItemStack,LootContext,ItemStack>
LootFunctionTypes. join(BiFunction<ItemStack,LootContext,ItemStack>[] lootFunctions)
Methods in net.minecraft.loot.function with parameters of type ItemStack Modifier and Type Method Description private static ItemStack
EnchantRandomlyLootFunction. addEnchantmentToStack(ItemStack stack, Enchantment enchantment, Random random)
ItemStack
ConditionalLootFunction. apply(ItemStack itemStack, LootContext lootContext)
ItemStack
LootFunctionManager.AndFunction. apply(ItemStack itemStack, LootContext lootContext)
private @Nullable NbtList
SetLoreLootFunction. getLoreForMerge(ItemStack stack, boolean otherLoreExists)
ItemStack
ApplyBonusLootFunction. process(ItemStack stack, LootContext context)
protected abstract ItemStack
ConditionalLootFunction. process(ItemStack stack, LootContext context)
ItemStack
CopyNameLootFunction. process(ItemStack stack, LootContext context)
ItemStack
CopyNbtLootFunction. process(ItemStack stack, LootContext context)
protected ItemStack
CopyStateFunction. process(ItemStack stack, LootContext context)
ItemStack
EnchantRandomlyLootFunction. process(ItemStack stack, LootContext context)
ItemStack
EnchantWithLevelsLootFunction. process(ItemStack stack, LootContext context)
ItemStack
ExplorationMapLootFunction. process(ItemStack stack, LootContext context)
ItemStack
ExplosionDecayLootFunction. process(ItemStack stack, LootContext context)
ItemStack
FillPlayerHeadLootFunction. process(ItemStack stack, LootContext context)
ItemStack
FurnaceSmeltLootFunction. process(ItemStack stack, LootContext context)
ItemStack
LimitCountLootFunction. process(ItemStack stack, LootContext context)
ItemStack
LootingEnchantLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetAttributesLootFunction. process(ItemStack stack, LootContext context)
protected ItemStack
SetBannerPatternFunction. process(ItemStack stack, LootContext context)
ItemStack
SetContentsLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetCountLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetDamageLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetEnchantmentsLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetLootTableLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetLoreLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetNameLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetNbtLootFunction. process(ItemStack stack, LootContext context)
ItemStack
SetStewEffectLootFunction. process(ItemStack stack, LootContext context)
Method parameters in net.minecraft.loot.function with type arguments of type ItemStack Modifier and Type Method Description static Consumer<ItemStack>
LootFunction. apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)
static Consumer<ItemStack>
LootFunction. apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)
static Consumer<ItemStack>
LootFunction. apply(BiFunction<ItemStack,LootContext,ItemStack> itemApplier, Consumer<ItemStack> lootConsumer, LootContext context)
-
Uses of ItemStack in net.minecraft.network
Methods in net.minecraft.network that return ItemStack Modifier and Type Method Description ItemStack
PacketByteBuf. readItemStack()
Reads an item stack from this buf.Methods in net.minecraft.network with parameters of type ItemStack Modifier and Type Method Description PacketByteBuf
PacketByteBuf. writeItemStack(ItemStack stack)
Writes an item stack to this buf. -
Uses of ItemStack in net.minecraft.network.packet.c2s.play
Fields in net.minecraft.network.packet.c2s.play declared as ItemStack Modifier and Type Field Description private ItemStack
BookUpdateC2SPacket. book
private ItemStack
ClickSlotC2SPacket. stack
private ItemStack
CreativeInventoryActionC2SPacket. stack
Fields in net.minecraft.network.packet.c2s.play with type parameters of type ItemStack Modifier and Type Field Description private Int2ObjectMap<ItemStack>
ClickSlotC2SPacket. modifiedStacks
Methods in net.minecraft.network.packet.c2s.play that return ItemStack Modifier and Type Method Description ItemStack
BookUpdateC2SPacket. getBook()
ItemStack
CreativeInventoryActionC2SPacket. getItemStack()
ItemStack
ClickSlotC2SPacket. getStack()
Methods in net.minecraft.network.packet.c2s.play that return types with arguments of type ItemStack Modifier and Type Method Description Int2ObjectMap<ItemStack>
ClickSlotC2SPacket. getModifiedStacks()
Constructors in net.minecraft.network.packet.c2s.play with parameters of type ItemStack Constructor Description BookUpdateC2SPacket(ItemStack book, boolean signed, int slot)
ClickSlotC2SPacket(int syncId, int slot, int clickData, SlotActionType actionType, ItemStack stack, Int2ObjectMap<ItemStack> modifiedStacks)
CreativeInventoryActionC2SPacket(int slot, ItemStack stack)
Constructor parameters in net.minecraft.network.packet.c2s.play with type arguments of type ItemStack Constructor Description ClickSlotC2SPacket(int syncId, int slot, int clickData, SlotActionType actionType, ItemStack stack, Int2ObjectMap<ItemStack> modifiedStacks)
-
Uses of ItemStack in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as ItemStack Modifier and Type Field Description private ItemStack
ScreenHandlerSlotUpdateS2CPacket. stack
Fields in net.minecraft.network.packet.s2c.play with type parameters of type ItemStack Modifier and Type Field Description private List<ItemStack>
InventoryS2CPacket. contents
private List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>>
EntityEquipmentUpdateS2CPacket. equipmentList
Methods in net.minecraft.network.packet.s2c.play that return ItemStack Modifier and Type Method Description ItemStack
ScreenHandlerSlotUpdateS2CPacket. getItemStack()
Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type ItemStack Modifier and Type Method Description List<ItemStack>
InventoryS2CPacket. getContents()
List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>>
EntityEquipmentUpdateS2CPacket. getEquipmentList()
Constructors in net.minecraft.network.packet.s2c.play with parameters of type ItemStack Constructor Description ScreenHandlerSlotUpdateS2CPacket(int syncId, int slot, ItemStack stack)
Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type ItemStack Constructor Description EntityEquipmentUpdateS2CPacket(int id, List<com.mojang.datafixers.util.Pair<EquipmentSlot,ItemStack>> equipmentList)
InventoryS2CPacket(int syncId, DefaultedList<ItemStack> contents)
-
Uses of ItemStack in net.minecraft.particle
Fields in net.minecraft.particle declared as ItemStack Modifier and Type Field Description private ItemStack
ItemStackParticleEffect. stack
Methods in net.minecraft.particle that return ItemStack Modifier and Type Method Description ItemStack
ItemStackParticleEffect. getItemStack()
Constructors in net.minecraft.particle with parameters of type ItemStack Constructor Description ItemStackParticleEffect(ParticleType<ItemStackParticleEffect> type, ItemStack stack)
-
Uses of ItemStack in net.minecraft.potion
Methods in net.minecraft.potion that return ItemStack Modifier and Type Method Description static ItemStack
PotionUtil. setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects)
static ItemStack
PotionUtil. setPotion(ItemStack stack, Potion potion)
Methods in net.minecraft.potion with parameters of type ItemStack Modifier and Type Method Description static void
PotionUtil. buildTooltip(ItemStack stack, List<Text> list, float float2)
static int
PotionUtil. getColor(ItemStack stack)
static List<StatusEffectInstance>
PotionUtil. getCustomPotionEffects(ItemStack stack)
static Potion
PotionUtil. getPotion(ItemStack stack)
static List<StatusEffectInstance>
PotionUtil. getPotionEffects(ItemStack stack)
static ItemStack
PotionUtil. setCustomPotionEffects(ItemStack stack, Collection<StatusEffectInstance> effects)
static ItemStack
PotionUtil. setPotion(ItemStack stack, Potion potion)
-
Uses of ItemStack in net.minecraft.predicate
Methods in net.minecraft.predicate with parameters of type ItemStack Modifier and Type Method Description boolean
NbtPredicate. test(ItemStack stack)
-
Uses of ItemStack in net.minecraft.predicate.entity
Fields in net.minecraft.predicate.entity declared as ItemStack Modifier and Type Field Description private ItemStack
EntityPredicates.Equipable. stack
Constructors in net.minecraft.predicate.entity with parameters of type ItemStack Constructor Description Equipable(ItemStack stack)
-
Uses of ItemStack in net.minecraft.predicate.item
Methods in net.minecraft.predicate.item with parameters of type ItemStack Modifier and Type Method Description boolean
ItemPredicate. test(ItemStack stack)
-
Uses of ItemStack in net.minecraft.recipe
Fields in net.minecraft.recipe declared as ItemStack Modifier and Type Field Description private ItemStack[]
Ingredient. matchingStacks
protected ItemStack
AbstractCookingRecipe. output
protected ItemStack
CuttingRecipe. output
private ItemStack
ShapedRecipe. output
private ItemStack
ShapelessRecipe. output
private ItemStack
SmithingRecipe. result
private ItemStack
Ingredient.StackEntry. stack
Fields in net.minecraft.recipe with type parameters of type ItemStack Modifier and Type Field Description private static Predicate<ItemStack>
BrewingRecipeRegistry. POTION_TYPE_PREDICATE
Methods in net.minecraft.recipe that return ItemStack Modifier and Type Method Description ItemStack
AbstractCookingRecipe. craft(Inventory inv)
ItemStack
ArmorDyeRecipe. craft(CraftingInventory craftingInventory)
ItemStack
BannerDuplicateRecipe. craft(CraftingInventory craftingInventory)
ItemStack
BookCloningRecipe. craft(CraftingInventory craftingInventory)
static ItemStack
BrewingRecipeRegistry. craft(ItemStack input, ItemStack ingredient)
ItemStack
CuttingRecipe. craft(Inventory inv)
ItemStack
FireworkRocketRecipe. craft(CraftingInventory craftingInventory)
ItemStack
FireworkStarFadeRecipe. craft(CraftingInventory craftingInventory)
ItemStack
FireworkStarRecipe. craft(CraftingInventory craftingInventory)
ItemStack
MapCloningRecipe. craft(CraftingInventory craftingInventory)
ItemStack
MapExtendingRecipe. craft(CraftingInventory craftingInventory)
ItemStack
Recipe. craft(C inv)
ItemStack
RepairItemRecipe. craft(CraftingInventory craftingInventory)
ItemStack
ShapedRecipe. craft(CraftingInventory craftingInventory)
ItemStack
ShapelessRecipe. craft(CraftingInventory craftingInventory)
ItemStack
ShieldDecorationRecipe. craft(CraftingInventory craftingInventory)
ItemStack
ShulkerBoxColoringRecipe. craft(CraftingInventory craftingInventory)
ItemStack
SmithingRecipe. craft(Inventory inv)
ItemStack
SuspiciousStewRecipe. craft(CraftingInventory craftingInventory)
ItemStack
TippedArrowRecipe. craft(CraftingInventory craftingInventory)
ItemStack[]
Ingredient. getMatchingStacksClient()
ItemStack
AbstractCookingRecipe. getOutput()
ItemStack
CuttingRecipe. getOutput()
ItemStack
FireworkRocketRecipe. getOutput()
ItemStack
FireworkStarRecipe. getOutput()
ItemStack
Recipe. getOutput()
ItemStack
ShapedRecipe. getOutput()
ItemStack
ShapelessRecipe. getOutput()
ItemStack
SmithingRecipe. getOutput()
ItemStack
SpecialCraftingRecipe. getOutput()
ItemStack
BlastingRecipe. getRecipeKindIcon()
ItemStack
CampfireCookingRecipe. getRecipeKindIcon()
default ItemStack
Recipe. getRecipeKindIcon()
ItemStack
SmeltingRecipe. getRecipeKindIcon()
ItemStack
SmithingRecipe. getRecipeKindIcon()
ItemStack
SmokingRecipe. getRecipeKindIcon()
ItemStack
StonecuttingRecipe. getRecipeKindIcon()
static ItemStack
RecipeFinder. getStackFromId(int id)
static ItemStack
ShapedRecipe. method_35228(JsonObject jsonObject)
Methods in net.minecraft.recipe that return types with arguments of type ItemStack Modifier and Type Method Description DefaultedList<ItemStack>
BannerDuplicateRecipe. getRemainingStacks(CraftingInventory craftingInventory)
DefaultedList<ItemStack>
BookCloningRecipe. getRemainingStacks(CraftingInventory craftingInventory)
default DefaultedList<ItemStack>
Recipe. getRemainingStacks(C inventory)
<C extends Inventory, T extends Recipe<C>>
DefaultedList<ItemStack>RecipeManager. getRemainingStacks(RecipeType<T> recipeType, C inventory, World world)
Collection<ItemStack>
Ingredient.Entry. getStacks()
Collection<ItemStack>
Ingredient.StackEntry. getStacks()
Collection<ItemStack>
Ingredient.TagEntry. getStacks()
Methods in net.minecraft.recipe with parameters of type ItemStack Modifier and Type Method Description void
RecipeFinder. addItem(ItemStack stack)
void
RecipeFinder. addItem(ItemStack stack, int count)
void
RecipeFinder. addNormalItem(ItemStack stack)
static ItemStack
BrewingRecipeRegistry. craft(ItemStack input, ItemStack ingredient)
T
CookingRecipeSerializer.RecipeFactory. create(Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime)
T
CuttingRecipe.Serializer.RecipeFactory. create(Identifier id, String group, Ingredient input, ItemStack output)
protected void
InputSlotFiller. fillInputSlot(Slot slot, ItemStack stack)
static int
RecipeFinder. getItemId(ItemStack stack)
protected static boolean
BrewingRecipeRegistry. hasItemRecipe(ItemStack input, ItemStack ingredient)
protected static boolean
BrewingRecipeRegistry. hasPotionRecipe(ItemStack input, ItemStack ingredient)
static boolean
BrewingRecipeRegistry. hasRecipe(ItemStack input, ItemStack ingredient)
protected static boolean
BrewingRecipeRegistry. isItemRecipeIngredient(ItemStack stack)
protected static boolean
BrewingRecipeRegistry. isPotionRecipeIngredient(ItemStack stack)
static boolean
BrewingRecipeRegistry. isValidIngredient(ItemStack stack)
static Ingredient
Ingredient. ofStacks(ItemStack[] stacks)
boolean
Ingredient. test(@Nullable ItemStack itemStack)
boolean
SmithingRecipe. testAddition(ItemStack stack)
Method parameters in net.minecraft.recipe with type arguments of type ItemStack Modifier and Type Method Description static Ingredient
Ingredient. ofStacks(Stream<ItemStack> stacks)
Constructors in net.minecraft.recipe with parameters of type ItemStack Constructor Description AbstractCookingRecipe(RecipeType<?> type, Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime)
BlastingRecipe(Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime)
CampfireCookingRecipe(Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime)
CuttingRecipe(RecipeType<?> type, RecipeSerializer<?> serializer, Identifier id, String group, Ingredient input, ItemStack output)
ShapedRecipe(Identifier id, String group, int width, int height, DefaultedList<Ingredient> ingredients, ItemStack output)
ShapelessRecipe(Identifier id, String group, ItemStack output, DefaultedList<Ingredient> input)
SmeltingRecipe(Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime)
SmithingRecipe(Identifier id, Ingredient base, Ingredient addition, ItemStack result)
SmokingRecipe(Identifier id, String group, Ingredient input, ItemStack output, float experience, int cookTime)
StackEntry(ItemStack stack)
StonecuttingRecipe(Identifier id, String group, Ingredient input, ItemStack output)
-
Uses of ItemStack in net.minecraft.screen
Fields in net.minecraft.screen declared as ItemStack Modifier and Type Field Description private ItemStack
ScreenHandler. cursorStack
private ItemStack
StonecutterScreenHandler. inputStack
private ItemStack
ScreenHandler. previousCursorStack
Fields in net.minecraft.screen with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>
ScreenHandler. previousTrackedStacks
private DefaultedList<ItemStack>
ScreenHandler. trackedStacks
A list of item stacks that is used for tracking changes inScreenHandler.sendContentUpdates()
.Methods in net.minecraft.screen that return ItemStack Modifier and Type Method Description ItemStack
LecternScreenHandler. getBookItem()
ItemStack
ScreenHandler. getCursorStack()
private ItemStack
GrindstoneScreenHandler. grind(ItemStack item, int damage, int amount)
private ItemStack
GrindstoneScreenHandler. transferEnchantments(ItemStack target, ItemStack source)
ItemStack
AbstractFurnaceScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
BeaconScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
BrewingStandScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
CartographyTableScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
CraftingScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
EnchantmentScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
ForgingScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
Generic3x3ContainerScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
GenericContainerScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
GrindstoneScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
HopperScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
HorseScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
LoomScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
MerchantScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
PlayerScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
ScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
ShulkerBoxScreenHandler. transferSlot(PlayerEntity player, int index)
ItemStack
StonecutterScreenHandler. transferSlot(PlayerEntity player, int index)
Methods in net.minecraft.screen that return types with arguments of type ItemStack Modifier and Type Method Description DefaultedList<ItemStack>
ScreenHandler. getStacks()
Methods in net.minecraft.screen with parameters of type ItemStack Modifier and Type Method Description private void
MerchantScreenHandler. autofill(int slot, ItemStack stack)
static void
ScreenHandler. calculateStackSize(Set<Slot> slots, int mode, ItemStack stack, int stackSize)
boolean
BeaconScreenHandler.PaymentSlot. canInsert(ItemStack stack)
boolean
BrewingStandScreenHandler.FuelSlot. canInsert(ItemStack stack)
boolean
BrewingStandScreenHandler.IngredientSlot. canInsert(ItemStack stack)
boolean
BrewingStandScreenHandler.PotionSlot. canInsert(ItemStack stack)
boolean
CartographyTableScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)
boolean
CraftingScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)
boolean
MerchantScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)
boolean
PlayerScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)
boolean
ScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)
boolean
SmithingScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)
boolean
StonecutterScreenHandler. canInsertIntoSlot(ItemStack stack, Slot slot)
static boolean
ScreenHandler. canInsertItemIntoSlot(@Nullable Slot slot, ItemStack stack, boolean allowOverflow)
private List<EnchantmentLevelEntry>
EnchantmentScreenHandler. generateEnchantments(ItemStack stack, int slot, int level)
private ItemStack
GrindstoneScreenHandler. grind(ItemStack item, int damage, int amount)
protected boolean
ScreenHandler. insertItem(ItemStack stack, int startIndex, int endIndex, boolean fromLast)
protected boolean
AbstractFurnaceScreenHandler. isFuel(ItemStack itemStack)
protected boolean
AbstractFurnaceScreenHandler. isSmeltable(ItemStack itemStack)
static boolean
BrewingStandScreenHandler.FuelSlot. matches(ItemStack stack)
static boolean
BrewingStandScreenHandler.PotionSlot. matches(ItemStack stack)
protected boolean
ForgingScreenHandler. method_30025(ItemStack itemStack)
protected boolean
SmithingScreenHandler. method_30025(ItemStack itemStack)
void
ScreenHandlerListener. onSlotUpdate(ScreenHandler handler, int slotId, ItemStack stack)
void
BrewingStandScreenHandler.PotionSlot. onTakeItem(PlayerEntity player, ItemStack stack)
protected void
AnvilScreenHandler. onTakeOutput(PlayerEntity player, ItemStack stack)
protected abstract void
ForgingScreenHandler. onTakeOutput(PlayerEntity player, ItemStack stack)
protected void
SmithingScreenHandler. onTakeOutput(PlayerEntity player, ItemStack stack)
void
ScreenHandler. setCursorStack(ItemStack stack)
void
ScreenHandler. setPreviousCursorStack(ItemStack stack)
void
ScreenHandler. setPreviousTrackedSlot(int slot, ItemStack stack)
void
ScreenHandler. setStackInSlot(int slot, ItemStack stack)
private ItemStack
GrindstoneScreenHandler. transferEnchantments(ItemStack target, ItemStack source)
void
ScreenHandlerSyncHandler. updateCursorStack(ScreenHandler handler, ItemStack stack)
private void
StonecutterScreenHandler. updateInput(Inventory input, ItemStack stack)
private void
CartographyTableScreenHandler. updateResult(ItemStack itemStack, ItemStack itemStack2, ItemStack oldResult)
private void
ScreenHandler. updateSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)
void
ScreenHandlerSyncHandler. updateSlot(ScreenHandler handler, int slot, ItemStack stack)
void
ScreenHandlerSyncHandler. updateState(ScreenHandler handler, DefaultedList<ItemStack> stacks, ItemStack cursorStack, int[] properties)
private void
ScreenHandler. updateTrackedSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)
Method parameters in net.minecraft.screen with type arguments of type ItemStack Modifier and Type Method Description private void
ScreenHandler. updateSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)
void
ScreenHandler. updateSlotStacks(List<ItemStack> stacks)
void
ScreenHandlerSyncHandler. updateState(ScreenHandler handler, DefaultedList<ItemStack> stacks, ItemStack cursorStack, int[] properties)
private void
ScreenHandler. updateTrackedSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)
-
Uses of ItemStack in net.minecraft.screen.slot
Methods in net.minecraft.screen.slot that return ItemStack Modifier and Type Method Description ItemStack
Slot. getStack()
ItemStack
Slot. insertStack(ItemStack stack)
ItemStack
Slot. insertStack(ItemStack stack, int count)
ItemStack
CraftingResultSlot. takeStack(int amount)
ItemStack
FurnaceOutputSlot. takeStack(int amount)
ItemStack
Slot. takeStack(int amount)
ItemStack
TradeOutputSlot. takeStack(int amount)
ItemStack
Slot. takeStackRange(int min, int max, PlayerEntity player)
Methods in net.minecraft.screen.slot that return types with arguments of type ItemStack Modifier and Type Method Description Optional<ItemStack>
Slot. tryTakeStackRange(int min, int max, PlayerEntity player)
Methods in net.minecraft.screen.slot with parameters of type ItemStack Modifier and Type Method Description boolean
CraftingResultSlot. canInsert(ItemStack stack)
boolean
FurnaceFuelSlot. canInsert(ItemStack stack)
boolean
FurnaceOutputSlot. canInsert(ItemStack stack)
boolean
ShulkerBoxSlot. canInsert(ItemStack stack)
boolean
Slot. canInsert(ItemStack stack)
boolean
TradeOutputSlot. canInsert(ItemStack stack)
int
FurnaceFuelSlot. getMaxItemCount(ItemStack stack)
int
Slot. getMaxItemCount(ItemStack stack)
ItemStack
Slot. insertStack(ItemStack stack)
ItemStack
Slot. insertStack(ItemStack stack, int count)
static boolean
FurnaceFuelSlot. isBucket(ItemStack stack)
protected void
CraftingResultSlot. onCrafted(ItemStack stack)
protected void
CraftingResultSlot. onCrafted(ItemStack stack, int amount)
protected void
FurnaceOutputSlot. onCrafted(ItemStack stack)
protected void
FurnaceOutputSlot. onCrafted(ItemStack stack, int amount)
protected void
Slot. onCrafted(ItemStack stack)
protected void
Slot. onCrafted(ItemStack stack, int amount)
protected void
TradeOutputSlot. onCrafted(ItemStack stack)
protected void
TradeOutputSlot. onCrafted(ItemStack stack, int amount)
void
Slot. onStackChanged(ItemStack originalItem, ItemStack newItem)
void
CraftingResultSlot. onTakeItem(PlayerEntity player, ItemStack stack)
void
FurnaceOutputSlot. onTakeItem(PlayerEntity player, ItemStack stack)
void
Slot. onTakeItem(PlayerEntity player, ItemStack stack)
void
TradeOutputSlot. onTakeItem(PlayerEntity player, ItemStack stack)
void
Slot. setStack(ItemStack stack)
-
Uses of ItemStack in net.minecraft.server.command
Methods in net.minecraft.server.command that return ItemStack Modifier and Type Method Description private static ItemStack
LootCommand. getHeldItem(ServerCommandSource source, EquipmentSlot slot)
private static ItemStack
ItemCommand. getStackInSlot(Entity entity, int slotId)
private static ItemStack
ItemCommand. getStackInSlotFromInventoryAt(ServerCommandSource source, BlockPos pos, int slotId)
private static ItemStack
ItemCommand. getStackWithModifier(ServerCommandSource source, LootFunction modifier, ItemStack stack)
Methods in net.minecraft.server.command with parameters of type ItemStack Modifier and Type Method Description private static int
ItemCommand. executeBlockReplace(ServerCommandSource source, BlockPos pos, int slot, ItemStack stack)
private static int
ItemCommand. executeEntityReplace(ServerCommandSource source, Collection<? extends Entity> targets, int slot, ItemStack stack)
private static int
LootCommand. executeFish(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, BlockPos pos, ItemStack stack, LootCommand.Target constructor)
private static int
LootCommand. executeMine(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BlockPos pos, ItemStack stack, LootCommand.Target constructor)
private static ItemStack
ItemCommand. getStackWithModifier(ServerCommandSource source, LootFunction modifier, ItemStack stack)
private static boolean
LootCommand. insert(Inventory inventory, ItemStack stack)
private static boolean
LootCommand. itemsMatch(ItemStack first, ItemStack second)
Method parameters in net.minecraft.server.command with type arguments of type ItemStack Modifier and Type Method Description void
LootCommand.FeedbackMessage. accept(List<ItemStack> items)
int
LootCommand.Target. accept(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, List<ItemStack> items, LootCommand.FeedbackMessage messageSender)
private static int
ClearCommand. execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Predicate<ItemStack> item, int maxCount)
private static int
LootCommand. executeBlock(ServerCommandSource source, BlockPos targetPos, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender)
private static int
LootCommand. executeGive(Collection<ServerPlayerEntity> players, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender)
private static int
LootCommand. executeInsert(ServerCommandSource source, BlockPos targetPos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender)
private static int
LootCommand. executeReplace(Collection<? extends Entity> targets, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender)
private static int
LootCommand. executeSpawn(ServerCommandSource source, Vec3d pos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender)
private static void
LootCommand. replace(Entity entity, List<ItemStack> stacks, int slot, int stackCount, List<ItemStack> addedStacks)
private static void
LootCommand. sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks)
private static void
LootCommand. sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks, Identifier lootTable)
-
Uses of ItemStack in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type ItemStack Modifier and Type Method Description void
ServerPlayerEntity. applyEnchantmentCosts(ItemStack enchantedItem, int experienceLevels)
private static boolean
ServerPlayNetworkHandler. canPlace(ServerPlayerEntity player, ItemStack stack)
Checks if a player can place a block or fluid from a bucket.ItemEntity
ServerPlayerEntity. dropItem(ItemStack stack, boolean throwRandomly, boolean retainOwnership)
ActionResult
DemoServerPlayerInteractionManager. interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)
ActionResult
ServerPlayerInteractionManager. interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult)
ActionResult
DemoServerPlayerInteractionManager. interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)
ActionResult
ServerPlayerInteractionManager. interactItem(ServerPlayerEntity player, World world, ItemStack stack, Hand hand)
private void
ServerPlayNetworkHandler. setTextToBook(List<TextStream.Message> messages, UnaryOperator<String> postProcessor, ItemStack book)
void
ServerPlayerEntity. useBook(ItemStack book, Hand hand)
Called when the player uses (defaults to right click) a writable or written book item. -
Uses of ItemStack in net.minecraft.test
Methods in net.minecraft.test that return ItemStack Modifier and Type Method Description private static ItemStack
StructureTestListener. createBookWithText(String text, boolean required, String output)
-
Uses of ItemStack in net.minecraft.text
Fields in net.minecraft.text declared as ItemStack Modifier and Type Field Description private @Nullable ItemStack
HoverEvent.ItemStackContent. stack
Methods in net.minecraft.text that return ItemStack Modifier and Type Method Description ItemStack
HoverEvent.ItemStackContent. asStack()
Constructors in net.minecraft.text with parameters of type ItemStack Constructor Description ItemStackContent(ItemStack stack)
-
Uses of ItemStack in net.minecraft.util
Methods in net.minecraft.util with parameters of type ItemStack Modifier and Type Method Description static void
ItemScatterer. spawn(World world, double x, double y, double z, ItemStack stack)
Method parameters in net.minecraft.util with type arguments of type ItemStack Modifier and Type Method Description static void
ItemScatterer. spawn(World world, BlockPos pos, DefaultedList<ItemStack> stacks)
-
Uses of ItemStack in net.minecraft.village
Fields in net.minecraft.village declared as ItemStack Modifier and Type Field Description private ItemStack
TradeOffer. firstBuyItem
private ItemStack
TradeOffers.ProcessItemFactory. secondBuy
private ItemStack
TradeOffer. secondBuyItem
private ItemStack
TradeOffers.ProcessItemFactory. sell
private ItemStack
TradeOffers.SellItemFactory. sell
private ItemStack
TradeOffers.SellPotionHoldingItemFactory. sell
private ItemStack
TradeOffer. sellItem
private ItemStack
TradeOffers.SellEnchantedToolFactory. tool
Fields in net.minecraft.village with type parameters of type ItemStack Modifier and Type Field Description private DefaultedList<ItemStack>
MerchantInventory. inventory
Methods in net.minecraft.village that return ItemStack Modifier and Type Method Description ItemStack
TradeOffer. copySellItem()
Returns a copy of the sell item of this trade offer.ItemStack
TradeOffer. getAdjustedFirstBuyItem()
Returns a copy of the first buy item of this trade offer, with its price adjusted depending on the demand bonus, the special price and the price multiplier.ItemStack
TradeOffer. getOriginalFirstBuyItem()
Returns the first buy item of this trade offer.ItemStack
TradeOffer. getSecondBuyItem()
Returns the second buy item of this trade offer.ItemStack
TradeOffer. getSellItem()
Returns the sell item of this trade offer.ItemStack
MerchantInventory. getStack(int slot)
Fetches the stack currently stored at the given slot.ItemStack
MerchantInventory. removeStack(int slot)
Removes the stack currently stored at the indicated slot.ItemStack
MerchantInventory. removeStack(int slot, int amount)
Removes a specific number of items from the given slot.Methods in net.minecraft.village with parameters of type ItemStack Modifier and Type Method Description private boolean
TradeOffer. acceptsBuy(ItemStack given, ItemStack sample)
boolean
TradeOffer. depleteBuyItems(ItemStack firstBuyStack, ItemStack secondBuyStack)
@Nullable TradeOffer
TradeOfferList. getValidOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, int index)
boolean
TradeOffer. matchesBuyItems(ItemStack first, ItemStack second)
void
Merchant. onSellingItem(ItemStack stack)
void
SimpleMerchant. onSellingItem(ItemStack stack)
void
MerchantInventory. setStack(int slot, ItemStack stack)
Constructors in net.minecraft.village with parameters of type ItemStack Constructor Description SellItemFactory(ItemStack stack, int price, int count, int maxUses, int experience)
SellItemFactory(ItemStack stack, int price, int count, int maxUses, int experience, float multiplier)
TradeOffer(ItemStack buyItem, ItemStack sellItem, int maxUses, int merchantExperience, float priceMultiplier)
TradeOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int maxUses, int merchantExperience, float priceMultiplier)
TradeOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int uses, int maxUses, int merchantExperience, float priceMultiplier)
TradeOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, ItemStack sellItem, int uses, int maxUses, int merchantExperience, float priceMultiplier, int demandBonus)
-
Uses of ItemStack in net.minecraft.village.raid
Methods in net.minecraft.village.raid that return ItemStack Modifier and Type Method Description static ItemStack
Raid. getOminousBanner()
-
Uses of ItemStack in net.minecraft.world.explosion
Methods in net.minecraft.world.explosion with parameters of type ItemStack Modifier and Type Method Description private static void
Explosion. tryMergeStack(ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> stacks, ItemStack stack, BlockPos pos)
Method parameters in net.minecraft.world.explosion with type arguments of type ItemStack Modifier and Type Method Description private static void
Explosion. tryMergeStack(ObjectArrayList<com.mojang.datafixers.util.Pair<ItemStack,BlockPos>> stacks, ItemStack stack, BlockPos pos)