Package | Description |
---|---|
org.bukkit |
More generalized classes in the API.
|
org.bukkit.event.block | |
org.bukkit.event.entity | |
org.bukkit.event.inventory | |
org.bukkit.event.player |
Modifier and Type | Method | Description |
---|---|---|
Item |
World.dropItem(Location location,
ItemStack item) |
Drops an item at the specified
Location |
Item |
World.dropItemNaturally(Location location,
ItemStack item) |
Drops an item at the specified
Location with a random offset |
Modifier and Type | Method | Description |
---|---|---|
Item |
BlockDropItemEvent.getItem() |
Deprecated.
very temporary compatibility measure
|
Modifier and Type | Method | Description |
---|---|---|
List<Item> |
BlockDropItemEvent.getItems() |
Deprecated.
Gets list of the Item drops caused by the block break.
|
Constructor | Description |
---|---|
BlockDropItemEvent(Block block,
BlockState blockState,
Player player,
List<Item> items) |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
Item |
ItemDespawnEvent.getEntity() |
|
Item |
ItemMergeEvent.getEntity() |
|
Item |
ItemSpawnEvent.getEntity() |
|
Item |
EntityPickupItemEvent.getItem() |
Gets the Item picked up by the entity.
|
Item |
EntityDropItemEvent.getItemDrop() |
Gets the Item created by the entity
|
Item |
ItemMergeEvent.getTarget() |
Gets the Item entity the main Item is being merged into.
|
Constructor | Description |
---|---|
EntityDropItemEvent(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.
|
Modifier and Type | Method | Description |
---|---|---|
Item |
InventoryPickupItemEvent.getItem() |
Gets the Item entity that was picked up
|
Constructor | Description |
---|---|
InventoryPickupItemEvent(Inventory inventory,
Item item) |
Modifier and Type | Method | Description |
---|---|---|
Item |
PlayerAttemptPickupItemEvent.getItem() |
Gets the Item attempted by the player.
|
Item |
PlayerPickupItemEvent.getItem() |
Deprecated.
Gets the Item picked up by the player.
|
Item |
PlayerDropItemEvent.getItemDrop() |
Gets the ItemDrop created by the player
|
Constructor | Description |
---|---|
PlayerAttemptPickupItemEvent(Player player,
Item item) |
Deprecated.
|
PlayerAttemptPickupItemEvent(Player player,
Item item,
int remaining) |
|
PlayerDropItemEvent(Player player,
Item drop) |
|
PlayerPickupArrowEvent(Player player,
Item item,
Arrow arrow) |
|
PlayerPickupItemEvent(Player player,
Item item,
int remaining) |
Deprecated.
|
Copyright © 2020. All rights reserved.