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