Uses of Interface
org.bukkit.entity.Item
Package
Description
The root package of the Bukkit API, contains generalized API classes.
-
Uses of Item in org.bukkit
Modifier and TypeMethodDescriptionDrops an item at the specifiedLocation
Drops an item at the specifiedLocation
Note that functions will run before the entity is spawnedWorld.dropItemNaturally
(Location location, ItemStack item) Drops an item at the specifiedLocation
with a random offsetWorld.dropItemNaturally
(Location location, ItemStack item, Consumer<? super Item> function) Drops an item at the specifiedLocation
with a random offset Note that functions will run before the entity is spawnedModifier and TypeMethodDescriptionDrops an item at the specifiedLocation
Note that functions will run before the entity is spawnedWorld.dropItemNaturally
(Location location, ItemStack item, Consumer<? super 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.event.block
Modifier and TypeMethodDescriptionBlockDropItemEvent.getItems()
Gets list of the Item drops caused by the block break.ModifierConstructorDescriptionBlockDropItemEvent
(Block block, BlockState blockState, Player player, 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
(Entity entity, Item drop) EntityPickupItemEvent
(LivingEntity entity, Item item, int remaining) ItemDespawnEvent
(Item despawnee, Location loc) ItemMergeEvent
(Item item, Item target) ItemSpawnEvent
(Item spawnee) ItemSpawnEvent
(Item spawnee, Location loc) Deprecated. -
Uses of Item in org.bukkit.event.inventory
Modifier and TypeMethodDescriptionInventoryPickupItemEvent.getItem()
Gets the Item entity that was picked up -
Uses of Item in org.bukkit.event.player
Modifier and TypeMethodDescriptionPlayerPickupItemEvent.getItem()
Deprecated.Gets the Item picked up by the player.PlayerDropItemEvent.getItemDrop()
Gets the ItemDrop created by the playerModifierConstructorDescriptionPlayerDropItemEvent
(Player player, Item drop) PlayerPickupArrowEvent
(Player player, Item item, AbstractArrow arrow) PlayerPickupItemEvent
(Player player, Item item, int remaining) Deprecated.