Uses of Interface
org.bukkit.entity.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 org.bukkit
Modifier and TypeMethodDescriptionDrops an item at the specifiedLocation
World.dropItem
(@NotNull Location location, @NotNull ItemStack item, @Nullable Consumer<Item> function) Drops an item at the specifiedLocation
Note that functions will run before the entity is spawnedWorld.dropItemNaturally
(@NotNull Location location, @NotNull ItemStack item) Drops an item at the specifiedLocation
with a random offsetWorld.dropItemNaturally
(@NotNull Location location, @NotNull ItemStack item, @Nullable Consumer<Item> function) Drops an item at the specifiedLocation
with a random offset Note that functions will run before the entity is spawnedModifier and TypeMethodDescriptionWorld.dropItem
(@NotNull Location location, @NotNull ItemStack item, @Nullable Consumer<Item> function) Drops an item at the specifiedLocation
Note that functions will run before the entity is spawnedWorld.dropItemNaturally
(@NotNull Location location, @NotNull ItemStack item, @Nullable Consumer<Item> function) Drops an item at the specifiedLocation
with a random offset Note that functions will run before the entity is spawned -
Uses of Item in org.bukkit.entity
Modifier and TypeMethodDescriptiondefault void
LivingEntity.playPickupItemAnimation
(@NotNull Item item) Plays pickup item animation towards this entity.void
LivingEntity.playPickupItemAnimation
(@NotNull Item item, int quantity) Plays pickup item animation towards this entity. -
Uses of Item in org.bukkit.event.block
Modifier and TypeMethodDescriptionBlockDropItemEvent.getItems()
Gets list of the Item drops caused by the block break.ModifierConstructorDescriptionBlockDropItemEvent
(@NotNull Block block, @NotNull BlockState blockState, @NotNull Player player, @NotNull List<Item> items) -
Uses of Item in org.bukkit.event.entity
Modifier and TypeMethodDescriptionItemDespawnEvent.getEntity()
ItemMergeEvent.getEntity()
ItemSpawnEvent.getEntity()
EntityPickupItemEvent.getItem()
Gets the Item picked up by the entity.EntityDropItemEvent.getItemDrop()
Gets the Item created by the entityItemMergeEvent.getTarget()
Gets the Item entity the main Item is being merged into.ModifierConstructorDescriptionEntityDropItemEvent
(@NotNull Entity entity, @NotNull Item drop) EntityPickupItemEvent
(@NotNull LivingEntity entity, @NotNull Item item, int remaining) ItemDespawnEvent
(@NotNull Item despawnee, @NotNull Location loc) ItemMergeEvent
(@NotNull Item item, @NotNull Item target) ItemSpawnEvent
(@NotNull Item spawnee) ItemSpawnEvent
(@NotNull Item spawnee, Location loc) Deprecated. -
Uses of Item in org.bukkit.event.inventory
Modifier and TypeMethodDescriptionInventoryPickupItemEvent.getItem()
Gets the Item entity that was picked upModifierConstructorDescriptionInventoryPickupItemEvent
(@NotNull Inventory inventory, @NotNull Item item) -
Uses of Item in org.bukkit.event.player
Modifier and TypeMethodDescriptionPlayerAttemptPickupItemEvent.getItem()
Gets the Item attempted by the player.PlayerPickupItemEvent.getItem()
Deprecated.Gets the Item picked up by the player.PlayerDropItemEvent.getItemDrop()
Gets the ItemDrop created by the playerModifierConstructorDescriptionPlayerAttemptPickupItemEvent
(@NotNull Player player, @NotNull Item item) Deprecated.PlayerAttemptPickupItemEvent
(@NotNull Player player, @NotNull 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.