Uses of Interface
org.bukkit.entity.Item
Packages that use Item
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Interfaces for non-voxel objects that can exist in a
world, including all players, monsters, projectiles, etc.-
Uses of Item in io.papermc.paper.entity
Methods in io.papermc.paper.entity that return types with arguments of type ItemModifier and TypeMethodDescription@Unmodifiable Collection<Item> PlayerGiveResult.drops()A collection of item entities dropped as a result of this call toPlayer.give(ItemStack...). -
Uses of Item in org.bukkit
Methods in org.bukkit that return ItemModifier and TypeMethodDescriptiondefault @NotNull ItemDrops an item at the specifiedLocation@NotNull ItemWorld.dropItem(@NotNull Location location, @NotNull ItemStack item, @Nullable Consumer<? super Item> function) Drops an item at the specifiedLocationNote that functions will run before the entity is spawneddefault @NotNull ItemWorld.dropItemNaturally(@NotNull Location location, @NotNull ItemStack item) Drops an item at the specifiedLocationwith a random offset@NotNull ItemWorld.dropItemNaturally(@NotNull Location location, @NotNull ItemStack item, @Nullable Consumer<? super Item> function) Drops an item at the specifiedLocationwith a random offset Note that functions will run before the entity is spawnedMethod parameters in org.bukkit with type arguments of type ItemModifier and TypeMethodDescription@NotNull ItemWorld.dropItem(@NotNull Location location, @NotNull ItemStack item, @Nullable Consumer<? super Item> function) Drops an item at the specifiedLocationNote that functions will run before the entity is spawned@NotNull ItemWorld.dropItemNaturally(@NotNull Location location, @NotNull ItemStack item, @Nullable Consumer<? super Item> function) Drops an item at the specifiedLocationwith a random offset Note that functions will run before the entity is spawned -
Uses of Item in org.bukkit.entity
Methods in org.bukkit.entity that return ItemModifier and TypeMethodDescriptiondefault @Nullable ItemHumanEntity.dropItem(int slot) Makes the player drop all items from their inventory based on the inventory slot.default @Nullable ItemHumanEntity.dropItem(int slot, int amount) Makes the player drop an item from their inventory based on the inventory slot.@Nullable ItemHumanEntity.dropItem(int slot, int amount, boolean throwRandomly, @Nullable Consumer<Item> entityOperation) Makes the player drop an item from their inventory based on the inventory slot.default @Nullable ItemHumanEntity.dropItem(EquipmentSlot slot) Makes the player drop all items from their inventory based on the equipment slot.default @Nullable ItemHumanEntity.dropItem(EquipmentSlot slot, int amount) Makes the player drop an item from their inventory based on the equipment slot.@Nullable ItemHumanEntity.dropItem(EquipmentSlot slot, int amount, boolean throwRandomly, @Nullable Consumer<Item> entityOperation) Makes the player drop an item from their inventory based on the equipment slot.default @Nullable ItemMakes the player drop any arbitraryItemStack, independently of whether the player actually has that item in their inventory.@Nullable ItemHumanEntity.dropItem(ItemStack itemStack, boolean throwRandomly, @Nullable Consumer<Item> entityOperation) Makes the player drop any arbitraryItemStack, independently of whether the player actually has that item in their inventory.Methods in org.bukkit.entity with parameters of type ItemModifier and TypeMethodDescriptiondefault voidLivingEntity.playPickupItemAnimation(@NotNull Item item) Plays pickup item animation towards this entity.voidLivingEntity.playPickupItemAnimation(@NotNull Item item, int quantity) Plays pickup item animation towards this entity.Method parameters in org.bukkit.entity with type arguments of type ItemModifier and TypeMethodDescription@Nullable ItemHumanEntity.dropItem(int slot, int amount, boolean throwRandomly, @Nullable Consumer<Item> entityOperation) Makes the player drop an item from their inventory based on the inventory slot.@Nullable ItemHumanEntity.dropItem(EquipmentSlot slot, int amount, boolean throwRandomly, @Nullable Consumer<Item> entityOperation) Makes the player drop an item from their inventory based on the equipment slot.@Nullable ItemHumanEntity.dropItem(ItemStack itemStack, boolean throwRandomly, @Nullable Consumer<Item> entityOperation) Makes the player drop any arbitraryItemStack, independently of whether the player actually has that item in their inventory. -
Uses of Item in org.bukkit.event.block
Methods in org.bukkit.event.block that return types with arguments of type ItemModifier and TypeMethodDescriptionBlockDropItemEvent.getItems()Gets list of the Item drops caused by the block break.Constructor parameters in org.bukkit.event.block with type arguments of type ItemModifierConstructorDescriptionBlockDropItemEvent(@NotNull Block block, @NotNull BlockState blockState, @NotNull Player player, @NotNull List<Item> items) -
Uses of Item in org.bukkit.event.entity
Methods in org.bukkit.event.entity that return ItemModifier and TypeMethodDescription@NotNull ItemItemDespawnEvent.getEntity()@NotNull ItemItemMergeEvent.getEntity()@NotNull ItemItemSpawnEvent.getEntity()@NotNull ItemEntityPickupItemEvent.getItem()Gets the Item picked up by the entity.@NotNull ItemEntityDropItemEvent.getItemDrop()Gets the Item created by the entity@NotNull ItemItemMergeEvent.getTarget()Gets the Item entity the main Item is being merged into.Constructors in org.bukkit.event.entity with parameters of type ItemModifierConstructorDescriptionEntityDropItemEvent(@NotNull Entity entity, @NotNull Item drop) EntityPickupItemEvent(@NotNull LivingEntity entity, @NotNull Item item, int remaining) ItemDespawnEvent(@NotNull Item despawnee, @NotNull Location location) ItemMergeEvent(@NotNull Item item, @NotNull Item target) ItemSpawnEvent(@NotNull Item spawnee) ItemSpawnEvent(@NotNull Item spawnee, Location loc) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Item in org.bukkit.event.inventory
Methods in org.bukkit.event.inventory that return ItemModifier and TypeMethodDescription@NotNull ItemInventoryPickupItemEvent.getItem()Gets the Item entity that was picked upConstructors in org.bukkit.event.inventory with parameters of type ItemModifierConstructorDescriptionInventoryPickupItemEvent(@NotNull Inventory inventory, @NotNull Item item) -
Uses of Item in org.bukkit.event.player
Methods in org.bukkit.event.player that return ItemModifier and TypeMethodDescriptionPlayerAttemptPickupItemEvent.getItem()Gets the Item attempted by the player.@NotNull ItemPlayerPickupItemEvent.getItem()Deprecated.Gets the Item picked up by the player.@NotNull ItemPlayerDropItemEvent.getItemDrop()Gets the ItemDrop created by the playerConstructors in org.bukkit.event.player with parameters of type ItemModifierConstructorDescriptionPlayerAttemptPickupItemEvent(Player player, Item item) Deprecated, for removal: This API element is subject to removal in a future version.PlayerAttemptPickupItemEvent(Player player, Item item, int remaining) PlayerDropItemEvent(@NotNull Player player, @NotNull Item drop) PlayerPickupArrowEvent(@NotNull Player player, @NotNull Item item, @NotNull AbstractArrow arrow) PlayerPickupItemEvent(@NotNull Player player, @NotNull Item item, int remaining) Deprecated.