Uses of Class
org.bukkit.inventory.ItemStack
-
Packages that use ItemStack Package Description org.bukkit More generalized classes in the API.org.bukkit.block Classes used to manipulate the voxels in aworld, including special states.org.bukkit.configuration Classes dedicated to handling a plugin's runtime configuration.org.bukkit.enchantments Classes relating to the specialized enhancements toitem stacks, as part of themeta data.org.bukkit.entity Interfaces for non-voxel objects that can exist in aworld, including all players, monsters, projectiles, etc.org.bukkit.event.block org.bukkit.event.enchantment Eventstriggered from anenchantment table.org.bukkit.event.entity org.bukkit.event.inventory org.bukkit.event.player org.bukkit.inventory Classes involved in manipulating player inventories and item interactions.org.bukkit.inventory.meta The interfaces used when manipulating extra data can can be stored insideitem stacks.org.bukkit.loot org.bukkit.material Classes that represents various voxel types and states.org.bukkit.potion Classes to represent variouspotionproperties and manipulation. -
-
Uses of ItemStack in org.bukkit
Methods in org.bukkit that return ItemStack Modifier and Type Method Description static ItemStackBukkit. createExplorerMap(World world, Location location, StructureType structureType)Create a new explorer map targeting the closest nearby structure of a givenStructureType.static ItemStackBukkit. createExplorerMap(World world, Location location, StructureType structureType, int radius, boolean findUnexplored)Create a new explorer map targeting the closest nearby structure of a givenStructureType.ItemStackServer. createExplorerMap(World world, Location location, StructureType structureType)Create a new explorer map targeting the closest nearby structure of a givenStructureType.ItemStackServer. createExplorerMap(World world, Location location, StructureType structureType, int radius, boolean findUnexplored)Create a new explorer map targeting the closest nearby structure of a givenStructureType.ItemStackUnsafeValues. modifyItemStack(ItemStack stack, String arguments)Deprecated.Methods in org.bukkit with parameters of type ItemStack Modifier and Type Method Description ItemWorld. dropItem(Location location, ItemStack item)Drops an item at the specifiedLocationItemWorld. dropItemNaturally(Location location, ItemStack item)Drops an item at the specifiedLocationwith a random offsetstatic List<Recipe>Bukkit. getRecipesFor(ItemStack result)Get a list of all recipes for a given item.List<Recipe>Server. getRecipesFor(ItemStack result)Get a list of all recipes for a given item.ItemStackUnsafeValues. modifyItemStack(ItemStack stack, String arguments)Deprecated. -
Uses of ItemStack in org.bukkit.block
Methods in org.bukkit.block that return ItemStack Modifier and Type Method Description ItemStackCampfire. getItem(int index)ItemStackJukebox. getRecord()Gets the record item inserted into the jukebox.Methods in org.bukkit.block that return types with arguments of type ItemStack Modifier and Type Method Description Collection<ItemStack>Block. getDrops()Returns a list of items which would drop by destroying this blockCollection<ItemStack>Block. getDrops(ItemStack tool)Returns a list of items which would drop by destroying this block with a specific toolMethods in org.bukkit.block with parameters of type ItemStack Modifier and Type Method Description booleanBlock. breakNaturally(ItemStack tool)Breaks the block and spawns items as if a player had digged it with a specific toolCollection<ItemStack>Block. getDrops(ItemStack tool)Returns a list of items which would drop by destroying this block with a specific toolvoidCampfire. setItem(int index, ItemStack item)voidJukebox. setRecord(ItemStack record)Sets the record being played. -
Uses of ItemStack in org.bukkit.configuration
Methods in org.bukkit.configuration that return ItemStack Modifier and Type Method Description ItemStackConfigurationSection. getItemStack(String path)Gets the requested ItemStack by path.ItemStackConfigurationSection. getItemStack(String path, ItemStack def)Gets the requestedItemStackby path, returning a default value if not found.ItemStackMemorySection. getItemStack(String path)ItemStackMemorySection. getItemStack(String path, ItemStack def)Methods in org.bukkit.configuration with parameters of type ItemStack Modifier and Type Method Description ItemStackConfigurationSection. getItemStack(String path, ItemStack def)Gets the requestedItemStackby path, returning a default value if not found.ItemStackMemorySection. getItemStack(String path, ItemStack def) -
Uses of ItemStack in org.bukkit.enchantments
Methods in org.bukkit.enchantments with parameters of type ItemStack Modifier and Type Method Description abstract booleanEnchantment. canEnchantItem(ItemStack item)Checks if this Enchantment may be applied to the givenItemStack.booleanEnchantmentWrapper. canEnchantItem(ItemStack item)booleanEnchantmentTarget. includes(ItemStack item)Check whether this target includes the specified item. -
Uses of ItemStack in org.bukkit.entity
Methods in org.bukkit.entity that return ItemStack Modifier and Type Method Description ItemStackArmorStand. getBoots()Returns the item currently being worn by the armor stand on its feetItemStackArmorStand. getChestplate()Returns the item currently being worn by the armor stand on its chestItemStackArmorStand. getHelmet()Returns the item currently being worn by the armor stand on its headItemStackItemFrame. getItem()Get the item in this frameItemStackThrownPotion. getItem()Returns a copy of the ItemStack for this thrown potion.ItemStackArmorStand. getItemInHand()Returns the item the armor stand is currently holdingItemStackHumanEntity. getItemInHand()Deprecated.Humans may now dual wield in their off hand, use explicit methods inPlayerInventory.ItemStackHumanEntity. getItemOnCursor()Returns the ItemStack currently on your cursor, can be empty.ItemStackItem. getItemStack()Gets the item stack associated with this item drop.ItemStackArmorStand. getLeggings()Returns the item currently being worn by the armor stand on its legsMethods in org.bukkit.entity with parameters of type ItemStack Modifier and Type Method Description voidPlayer. openBook(ItemStack book)Open aMaterial.WRITTEN_BOOKfor a PlayervoidArmorStand. setBoots(ItemStack item)Sets the item currently being worn by the armor stand on its feetvoidArmorStand. setChestplate(ItemStack item)Sets the item currently being worn by the armor stand on its chestvoidArmorStand. setHelmet(ItemStack item)Sets the item currently being worn by the armor stand on its headvoidItemFrame. setItem(ItemStack item)Set the item in this framevoidItemFrame. setItem(ItemStack item, boolean playSound)Set the item in this framevoidThrownPotion. setItem(ItemStack item)Set the ItemStack for this thrown potion.voidArmorStand. setItemInHand(ItemStack item)Sets the item the armor stand is currently holdingvoidHumanEntity. setItemInHand(ItemStack item)Deprecated.Humans may now dual wield in their off hand, use explicit methods inPlayerInventory.voidHumanEntity. setItemOnCursor(ItemStack item)Sets the item to the given ItemStack, this will replace whatever the user was moving.voidItem. setItemStack(ItemStack stack)Sets the item stack associated with this item drop.voidArmorStand. setLeggings(ItemStack item)Sets the item currently being worn by the armor stand on its legs -
Uses of ItemStack in org.bukkit.event.block
Fields in org.bukkit.event.block declared as ItemStack Modifier and Type Field Description protected ItemStackBlockPlaceEvent. itemInHandMethods in org.bukkit.event.block that return ItemStack Modifier and Type Method Description ItemStackBlockDispenseEvent. getItem()Gets the item that is being dispensed.ItemStackBlockDamageEvent. getItemInHand()Gets the ItemStack for the item currently in the player's hand.ItemStackBlockPlaceEvent. getItemInHand()Gets the item in the player's hand when they placed the block.ItemStackBlockCookEvent. getResult()Gets the resultant ItemStack for this eventItemStackBlockCookEvent. getSource()Gets the smelted ItemStack for this eventItemStackBlockShearEntityEvent. getTool()Gets the item used to shear this sheep.Methods in org.bukkit.event.block with parameters of type ItemStack Modifier and Type Method Description voidBlockDispenseEvent. setItem(ItemStack item)Sets the item being dispensed.voidBlockCookEvent. setResult(ItemStack result)Sets the resultant ItemStack for this eventConstructors in org.bukkit.event.block with parameters of type ItemStack Constructor Description BlockCookEvent(Block block, ItemStack source, ItemStack result)BlockDamageEvent(Player player, Block block, ItemStack itemInHand, boolean instaBreak)BlockDispenseArmorEvent(Block block, ItemStack dispensed, LivingEntity target)BlockDispenseEvent(Block block, ItemStack dispensed, Vector velocity)BlockMultiPlaceEvent(List<BlockState> states, Block clicked, ItemStack itemInHand, Player thePlayer, boolean canBuild)BlockPlaceEvent(Block placedBlock, BlockState replacedBlockState, Block placedAgainst, ItemStack itemInHand, Player thePlayer, boolean canBuild)Deprecated.BlockPlaceEvent(Block placedBlock, BlockState replacedBlockState, Block placedAgainst, ItemStack itemInHand, Player thePlayer, boolean canBuild, EquipmentSlot hand)BlockShearEntityEvent(Block dispenser, Entity sheared, ItemStack tool) -
Uses of ItemStack in org.bukkit.event.enchantment
Methods in org.bukkit.event.enchantment that return ItemStack Modifier and Type Method Description ItemStackEnchantItemEvent. getItem()Gets the item to be enchanted (can be modified)ItemStackPrepareItemEnchantEvent. getItem()Gets the item to be enchanted.Constructors in org.bukkit.event.enchantment with parameters of type ItemStack Constructor Description EnchantItemEvent(Player enchanter, InventoryView view, Block table, ItemStack item, int level, Map<Enchantment,Integer> enchants, int i)PrepareItemEnchantEvent(Player enchanter, InventoryView view, Block table, ItemStack item, EnchantmentOffer[] offers, int bonus) -
Uses of ItemStack in org.bukkit.event.entity
Methods in org.bukkit.event.entity that return ItemStack Modifier and Type Method Description ItemStackEntityShootBowEvent. getBow()Gets the bow ItemStack used to fire the arrow.ItemStackEntityBreedEvent. getBredWith()The ItemStack that was used to initiate breeding, if present.ItemStackFoodLevelChangeEvent. getItem()Gets the item that triggered this event, if any.Methods in org.bukkit.event.entity that return types with arguments of type ItemStack Modifier and Type Method Description List<ItemStack>EntityDeathEvent. getDrops()Gets all the items which will drop when the entity diesConstructors in org.bukkit.event.entity with parameters of type ItemStack Constructor Description EntityBreedEvent(LivingEntity child, LivingEntity mother, LivingEntity father, LivingEntity breeder, ItemStack bredWith, int experience)EntityShootBowEvent(LivingEntity shooter, ItemStack bow, Entity projectile, float force)FoodLevelChangeEvent(HumanEntity what, int level, ItemStack item)Constructor parameters in org.bukkit.event.entity with type arguments of type ItemStack Constructor Description EntityDeathEvent(LivingEntity entity, List<ItemStack> drops)EntityDeathEvent(LivingEntity what, List<ItemStack> drops, int droppedExp)PlayerDeathEvent(Player player, List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, String deathMessage)PlayerDeathEvent(Player player, List<ItemStack> drops, int droppedExp, int newExp, String deathMessage)PlayerDeathEvent(Player player, List<ItemStack> drops, int droppedExp, String deathMessage) -
Uses of ItemStack in org.bukkit.event.inventory
Methods in org.bukkit.event.inventory that return ItemStack Modifier and Type Method Description ItemStackInventoryClickEvent. getCurrentItem()Gets the ItemStack currently in the clicked slot.ItemStackInventoryClickEvent. getCursor()Gets the current ItemStack on the cursor.ItemStackInventoryCreativeEvent. getCursor()ItemStackInventoryDragEvent. getCursor()Gets the result cursor after the drag is done.ItemStackBrewingStandFuelEvent. getFuel()Gets the ItemStack of the fuel before the amount was subtracted.ItemStackFurnaceBurnEvent. getFuel()Gets the fuel ItemStack for this eventItemStackInventoryMoveItemEvent. getItem()Gets the ItemStack being moved; if modified, the original item will not be removed from the source inventory.ItemStackInventoryDragEvent. getOldCursor()Gets an ItemStack representing the cursor prior to any modifications as a result of this drag.ItemStackPrepareAnvilEvent. getResult()Get result item, may be null.Methods in org.bukkit.event.inventory that return types with arguments of type ItemStack Modifier and Type Method Description Map<Integer,ItemStack>InventoryDragEvent. getNewItems()Gets all items to be added to the inventory in this drag.Methods in org.bukkit.event.inventory with parameters of type ItemStack Modifier and Type Method Description voidInventoryClickEvent. setCurrentItem(ItemStack stack)Sets the ItemStack currently in the clicked slot.voidInventoryClickEvent. setCursor(ItemStack stack)Deprecated.This changes the ItemStack in their hand before any calculations are applied to the Inventory, which has a tendency to create inconsistencies between the Player and the server, and to make unexpected changes in the behavior of the clicked Inventory.voidInventoryCreativeEvent. setCursor(ItemStack item)voidInventoryDragEvent. setCursor(ItemStack newCursor)Sets the result cursor after the drag is done.voidInventoryMoveItemEvent. setItem(ItemStack itemStack)Sets the ItemStack being moved; if this is different from the original ItemStack, the original item will not be removed from the source inventory.voidPrepareAnvilEvent. setResult(ItemStack result)Constructors in org.bukkit.event.inventory with parameters of type ItemStack Constructor Description BrewingStandFuelEvent(Block brewingStand, ItemStack fuel, int fuelPower)FurnaceBurnEvent(Block furnace, ItemStack fuel, int burnTime)FurnaceSmeltEvent(Block furnace, ItemStack source, ItemStack result)InventoryCreativeEvent(InventoryView what, InventoryType.SlotType type, int slot, ItemStack newItem)InventoryDragEvent(InventoryView what, ItemStack newCursor, ItemStack oldCursor, boolean right, Map<Integer,ItemStack> slots)InventoryMoveItemEvent(Inventory sourceInventory, ItemStack itemStack, Inventory destinationInventory, boolean didSourceInitiate)PrepareAnvilEvent(InventoryView inventory, ItemStack result)Constructor parameters in org.bukkit.event.inventory with type arguments of type ItemStack Constructor Description InventoryDragEvent(InventoryView what, ItemStack newCursor, ItemStack oldCursor, boolean right, Map<Integer,ItemStack> slots) -
Uses of ItemStack in org.bukkit.event.player
Fields in org.bukkit.event.player declared as ItemStack Modifier and Type Field Description protected ItemStackPlayerInteractEvent. itemMethods in org.bukkit.event.player that return ItemStack Modifier and Type Method Description ItemStackPlayerArmorStandManipulateEvent. getArmorStandItem()Returns the item held by the armor stand.ItemStackPlayerTakeLecternBookEvent. getBook()Gets the current ItemStack on the lectern.ItemStackPlayerItemBreakEvent. getBrokenItem()Gets the item that brokeItemStackPlayerInteractEvent. getItem()Returns the item in hand represented by this eventItemStackPlayerItemConsumeEvent. getItem()Gets the item that is being consumed.ItemStackPlayerItemDamageEvent. getItem()Gets the item being damaged.ItemStackPlayerItemMendEvent. getItem()Get theItemStackto be repaired.ItemStackPlayerRiptideEvent. getItem()Gets the item containing the used enchantment.ItemStackPlayerBucketEvent. getItemStack()Get the resulting item in hand after the bucket eventItemStackPlayerSwapHandItemsEvent. getMainHandItem()Gets the item switched to the main hand.ItemStackPlayerSwapHandItemsEvent. getOffHandItem()Gets the item switched to the off hand.ItemStackPlayerArmorStandManipulateEvent. getPlayerItem()Returns the item held by the player.Methods in org.bukkit.event.player with parameters of type ItemStack Modifier and Type Method Description voidPlayerItemConsumeEvent. setItem(ItemStack item)Set the item being consumedvoidPlayerBucketEvent. setItemStack(ItemStack itemStack)Set the item in hand after the eventvoidPlayerSwapHandItemsEvent. setMainHandItem(ItemStack mainHandItem)Sets the item in the main hand.voidPlayerSwapHandItemsEvent. setOffHandItem(ItemStack offHandItem)Sets the item in the off hand. -
Uses of ItemStack in org.bukkit.inventory
Methods in org.bukkit.inventory that return ItemStack Modifier and Type Method Description ItemStackItemStack. clone()static ItemStackItemStack. deserialize(Map<String,Object> args)Required method for configuration serializationItemStackHorseInventory. getArmor()Gets the item in the horse's armor slot.ItemStack[]EntityEquipment. getArmorContents()Gets a copy of all worn armorItemStack[]PlayerInventory. getArmorContents()Get all ItemStacks from the armor slotsItemStackEntityEquipment. getBoots()Gets a copy of the boots currently being worn by the entityItemStackPlayerInventory. getBoots()Return the ItemStack from the boots slotItemStackEntityEquipment. getChestplate()Gets a copy of the chest plate currently being worn by the entityItemStackPlayerInventory. getChestplate()Return the ItemStack from the chestplate slotItemStack[]Inventory. getContents()Returns all ItemStacks from the inventoryItemStackInventoryView. getCursor()Get the item on the cursor of one of the viewing players.ItemStackLlamaInventory. getDecor()Gets the item in the llama's decor slot.ItemStack[]PlayerInventory. getExtraContents()Get all additional ItemStacks stored in this inventory.ItemStackBrewerInventory. getFuel()Get the current fuel for brewing.ItemStackFurnaceInventory. getFuel()Get the current fuel.ItemStackEntityEquipment. getHelmet()Gets a copy of the helmet currently being worn by the entityItemStackPlayerInventory. getHelmet()Return the ItemStack from the helmet slotItemStackBrewerInventory. getIngredient()Get the current ingredient for brewing.ItemStackCookingRecipe. getInput()Get the input material.ItemStackStonecuttingRecipe. getInput()Get the input material.ItemStackBeaconInventory. getItem()Get the item powering the beacon.ItemStackEnchantingInventory. getItem()Get the item being enchanted.ItemStackInventory. getItem(int index)Returns the ItemStack found in the slot at the given indexItemStackInventoryView. getItem(int slot)Gets one item in this inventory view by its raw slot ID.ItemStackEntityEquipment. getItemInHand()Deprecated.entities can duel wield now use the methods for the specific hand insteadItemStackPlayerInventory. getItemInHand()Deprecated.players can duel wield now use the methods for the specific hand insteadItemStackEntityEquipment. getItemInMainHand()Gets a copy of the item the entity is currently holding in their main hand.ItemStackPlayerInventory. getItemInMainHand()Gets a copy of the item the player is currently holding in their main hand.ItemStackEntityEquipment. getItemInOffHand()Gets a copy of the item the entity is currently holding in their off hand.ItemStackPlayerInventory. getItemInOffHand()Gets a copy of the item the player is currently holding in their off hand.ItemStackRecipeChoice.ExactChoice. getItemStack()Deprecated.ItemStackRecipeChoice. getItemStack()Deprecated.for compatability onlyItemStackRecipeChoice.MaterialChoice. getItemStack()ItemStackEntityEquipment. getLeggings()Gets a copy of the leggings currently being worn by the entityItemStackPlayerInventory. getLeggings()Return the ItemStack from the leg slotItemStack[]CraftingInventory. getMatrix()Get the contents of the crafting matrix.ItemStackCookingRecipe. getResult()Get the result of this recipe.ItemStackCraftingInventory. getResult()Check what item is in the result slot of this crafting inventory.ItemStackFurnaceInventory. getResult()Get the current item in the result slot.ItemStackMerchantRecipe. getResult()ItemStackRecipe. getResult()Get the result of this recipe.ItemStackShapedRecipe. getResult()Get the result.ItemStackShapelessRecipe. getResult()Get the result of this recipe.ItemStackStonecuttingRecipe. getResult()Get the result of this recipe.ItemStackAbstractHorseInventory. getSaddle()Gets the item in the horse's saddle slot.ItemStackEnchantingInventory. getSecondary()Get the secondary item being used for the enchant.ItemStackFurnaceInventory. getSmelting()Get the item currently smelting.ItemStack[]Inventory. getStorageContents()Return the contents from the section of the inventory where items can reasonably be expected to be stored.Methods in org.bukkit.inventory that return types with arguments of type ItemStack Modifier and Type Method Description HashMap<Integer,ItemStack>Inventory. addItem(ItemStack... items)Stores the given ItemStacks in the inventory.HashMap<Integer,? extends ItemStack>Inventory. all(ItemStack item)Finds all slots in the inventory containing any ItemStacks with the given ItemStack.HashMap<Integer,? extends ItemStack>Inventory. all(Material material)Returns a HashMap with all slots and ItemStacks in the inventory with the given Material.List<ItemStack>RecipeChoice.ExactChoice. getChoices()Deprecated.List<ItemStack>ShapelessRecipe. getIngredientList()Get the list of ingredients used for this recipe.Map<Character,ItemStack>ShapedRecipe. getIngredientMap()Get a copy of the ingredients map.List<ItemStack>MerchantRecipe. getIngredients()ListIterator<ItemStack>Inventory. iterator()ListIterator<ItemStack>Inventory. iterator(int index)Returns an iterator starting at the given index.HashMap<Integer,ItemStack>Inventory. removeItem(ItemStack... items)Removes the given ItemStacks from the inventory.Methods in org.bukkit.inventory with parameters of type ItemStack Modifier and Type Method Description voidMerchantRecipe. addIngredient(ItemStack item)HashMap<Integer,ItemStack>Inventory. addItem(ItemStack... items)Stores the given ItemStacks in the inventory.HashMap<Integer,? extends ItemStack>Inventory. all(ItemStack item)Finds all slots in the inventory containing any ItemStacks with the given ItemStack.ItemMetaItemFactory. asMetaFor(ItemMeta meta, ItemStack stack)Returns an appropriate item meta for the specified stack.booleanInventory. contains(ItemStack item)Checks if the inventory contains any ItemStacks matching the given ItemStack.booleanInventory. contains(ItemStack item, int amount)Checks if the inventory contains at least the minimum amount specified of exactly matching ItemStacks.booleanInventory. containsAtLeast(ItemStack item, int amount)Checks if the inventory contains ItemStacks matching the given ItemStack whose amounts sum to at least the minimum amount specified.intInventory. first(ItemStack item)Returns the first slot in the inventory containing an ItemStack with the given stack.booleanItemFactory. isApplicable(ItemMeta meta, ItemStack stack)This method checks the item meta to confirm that it is applicable (no data lost if applied) to the specified ItemStack.booleanItemStack. isSimilar(ItemStack stack)This method is the same as equals, but does not consider stack size (amount).voidInventory. remove(ItemStack item)Removes all stacks in the inventory matching the given stack.HashMap<Integer,ItemStack>Inventory. removeItem(ItemStack... items)Removes the given ItemStacks from the inventory.voidHorseInventory. setArmor(ItemStack stack)Sets the item in the horse's armor slot.voidEntityEquipment. setArmorContents(ItemStack[] items)Sets the entities armor to the provided array of ItemStacksvoidPlayerInventory. setArmorContents(ItemStack[] items)Put the given ItemStacks into the armor slotsvoidEntityEquipment. setBoots(ItemStack boots)Sets the boots worn by the entityvoidPlayerInventory. setBoots(ItemStack boots)Put the given ItemStack into the boots slot.voidEntityEquipment. setChestplate(ItemStack chestplate)Sets the chest plate worn by the entityvoidPlayerInventory. setChestplate(ItemStack chestplate)Put the given ItemStack into the chestplate slot.voidInventory. setContents(ItemStack[] items)Completely replaces the inventory's contents.voidInventoryView. setCursor(ItemStack item)Sets the item on the cursor of one of the viewing players.voidLlamaInventory. setDecor(ItemStack stack)Sets the item in the llama's decor slot.voidPlayerInventory. setExtraContents(ItemStack[] items)Put the given ItemStacks into the extra slots
SeePlayerInventory.getExtraContents()for an explanation of extra slots.voidBrewerInventory. setFuel(ItemStack fuel)Set the current fuel for brewing.voidFurnaceInventory. setFuel(ItemStack stack)Set the current fuel.voidEntityEquipment. setHelmet(ItemStack helmet)Sets the helmet worn by the entityvoidPlayerInventory. setHelmet(ItemStack helmet)Put the given ItemStack into the helmet slot.voidBrewerInventory. setIngredient(ItemStack ingredient)Set the current ingredient for brewing.voidBeaconInventory. setItem(ItemStack item)Set the item powering the beacon.voidEnchantingInventory. setItem(ItemStack item)Set the item being enchanted.voidInventory. setItem(int index, ItemStack item)Stores the ItemStack at the given index of the inventory.voidInventoryView. setItem(int slot, ItemStack item)Sets one item in this inventory view by its raw slot ID.voidPlayerInventory. setItem(int index, ItemStack item)Stores the ItemStack at the given index of the inventory.voidEntityEquipment. setItemInHand(ItemStack stack)Deprecated.entities can duel wield now use the methods for the specific hand insteadvoidPlayerInventory. setItemInHand(ItemStack stack)Deprecated.players can duel wield now use the methods for the specific hand insteadvoidEntityEquipment. setItemInMainHand(ItemStack item)Sets the item the entity is holding in their main hand.voidPlayerInventory. setItemInMainHand(ItemStack item)Sets the item the player is holding in their main hand.voidEntityEquipment. setItemInOffHand(ItemStack item)Sets the item the entity is holding in their off hand.voidPlayerInventory. setItemInOffHand(ItemStack item)Sets the item the player is holding in their off hand.voidEntityEquipment. setLeggings(ItemStack leggings)Sets the leggings worn by the entityvoidPlayerInventory. setLeggings(ItemStack leggings)Put the given ItemStack into the leg slot.voidCraftingInventory. setMatrix(ItemStack[] contents)Replace the contents of the crafting matrixvoidCraftingInventory. setResult(ItemStack newResult)Set the item in the result slot of the crafting inventory.voidFurnaceInventory. setResult(ItemStack stack)Set the current item in the result slot.voidAbstractHorseInventory. setSaddle(ItemStack stack)Sets the item in the horse's saddle slot.voidEnchantingInventory. setSecondary(ItemStack item)Set the secondary item being used for the enchant.voidFurnaceInventory. setSmelting(ItemStack stack)Set the item currently smelting.voidInventory. setStorageContents(ItemStack[] items)Put the given ItemStacks into the storage slotsbooleanRecipeChoice.ExactChoice. test(ItemStack t)Deprecated.booleanRecipeChoice.MaterialChoice. test(ItemStack t)booleanRecipeChoice. test(ItemStack itemStack)Method parameters in org.bukkit.inventory with type arguments of type ItemStack Modifier and Type Method Description voidMerchantRecipe. setIngredients(List<ItemStack> ingredients)Constructors in org.bukkit.inventory with parameters of type ItemStack Constructor Description BlastingRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, float experience, int cookingTime)BlastingRecipe(NamespacedKey key, ItemStack result, Material source, float experience, int cookingTime)CampfireRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, float experience, int cookingTime)CampfireRecipe(NamespacedKey key, ItemStack result, Material source, float experience, int cookingTime)CookingRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, float experience, int cookingTime)Create a cooking recipe to craft the specified ItemStack.CookingRecipe(NamespacedKey key, ItemStack result, Material source, float experience, int cookingTime)Create a cooking recipe to craft the specified ItemStack.ExactChoice(ItemStack stack)Deprecated.ExactChoice(ItemStack... stacks)Deprecated.FurnaceRecipe(ItemStack result, Material source)Deprecated.FurnaceRecipe(ItemStack result, MaterialData source)Deprecated.FurnaceRecipe(ItemStack result, MaterialData source, float experience)Deprecated.FurnaceRecipe(ItemStack result, Material source, int data)Deprecated.FurnaceRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, float experience, int cookingTime)Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(NamespacedKey key, ItemStack result, Material source, float experience, int cookingTime)Create a furnace recipe to craft the specified ItemStack.FurnaceRecipe(NamespacedKey key, ItemStack result, Material source, int data, float experience, int cookingTime)Deprecated.ItemStack(ItemStack stack)Creates a new item stack derived from the specified stackMerchantRecipe(ItemStack result, int maxUses)MerchantRecipe(ItemStack result, int uses, int maxUses, boolean experienceReward)MerchantRecipe(ItemStack result, int uses, int maxUses, boolean experienceReward, int villagerExperience, float priceMultiplier)ShapedRecipe(ItemStack result)Deprecated.ShapedRecipe(NamespacedKey key, ItemStack result)Create a shaped recipe to craft the specified ItemStack.ShapelessRecipe(ItemStack result)Deprecated.ShapelessRecipe(NamespacedKey key, ItemStack result)Create a shapeless recipe to craft the specified ItemStack.SmokingRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, float experience, int cookingTime)SmokingRecipe(NamespacedKey key, ItemStack result, Material source, float experience, int cookingTime)StonecuttingRecipe(NamespacedKey key, ItemStack result, RecipeChoice input)Create a cooking recipe to craft the specified ItemStack.StonecuttingRecipe(NamespacedKey key, ItemStack result, Material source)Create a Stonecutting recipe to craft the specified ItemStack.Constructor parameters in org.bukkit.inventory with type arguments of type ItemStack Constructor Description ExactChoice(List<ItemStack> choices)Deprecated. -
Uses of ItemStack in org.bukkit.inventory.meta
Methods in org.bukkit.inventory.meta that return types with arguments of type ItemStack Modifier and Type Method Description List<ItemStack>CrossbowMeta. getChargedProjectiles()Returns an immutable list of the projectiles charged on this item.Methods in org.bukkit.inventory.meta with parameters of type ItemStack Modifier and Type Method Description voidCrossbowMeta. addChargedProjectile(ItemStack item)Adds a charged projectile to this item.Method parameters in org.bukkit.inventory.meta with type arguments of type ItemStack Modifier and Type Method Description voidCrossbowMeta. setChargedProjectiles(List<ItemStack> projectiles)Sets the projectiles charged on this item. -
Uses of ItemStack in org.bukkit.loot
Methods in org.bukkit.loot that return types with arguments of type ItemStack Modifier and Type Method Description Collection<ItemStack>LootTable. populateLoot(Random random, LootContext context)Returns a mutable list of loot generated by this LootTable. -
Uses of ItemStack in org.bukkit.material
Methods in org.bukkit.material that return ItemStack Modifier and Type Method Description ItemStackMaterialData. toItemStack()Deprecated.this method creates an ItemStack of size 0 which is not generally useful.ItemStackMaterialData. toItemStack(int amount)Deprecated.Creates a new ItemStack based on this MaterialData -
Uses of ItemStack in org.bukkit.potion
Methods in org.bukkit.potion that return ItemStack Modifier and Type Method Description ItemStackPotion. toItemStack(int amount)Deprecated.Converts this potion to anItemStackwith the specified amount and a correct damage value.Methods in org.bukkit.potion with parameters of type ItemStack Modifier and Type Method Description voidPotion. apply(ItemStack to)Deprecated.Applies the effects of this potion to the givenItemStack.static PotionPotion. fromItemStack(ItemStack item)Deprecated.
-