Package | Description |
---|---|
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.event.entity | |
org.bukkit.event.inventory | |
org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
org.bukkit.loot |
Classes relevant to loot table manipulation and generation.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Player
Represents a player, connected or not
|
Modifier and Type | Method and Description |
---|---|
@NotNull HumanEntity |
FoodLevelChangeEvent.getEntity() |
Constructor and Description |
---|
FoodLevelChangeEvent(@NotNull HumanEntity what,
int level) |
FoodLevelChangeEvent(@NotNull HumanEntity what,
int level,
@Nullable ItemStack item) |
Modifier and Type | Method and Description |
---|---|
@NotNull HumanEntity |
InventoryOpenEvent.getPlayer()
Returns the player involved in this event
|
@NotNull HumanEntity |
InventoryCloseEvent.getPlayer()
Returns the player involved in this event
|
@NotNull HumanEntity |
InventoryInteractEvent.getWhoClicked()
Gets the player who performed the click.
|
Modifier and Type | Method and Description |
---|---|
@Nullable HumanEntity |
PlayerInventory.getHolder() |
abstract @NotNull HumanEntity |
InventoryView.getPlayer()
Get the player viewing.
|
@Nullable HumanEntity |
Merchant.getTrader()
Gets the player this merchant is trading with, or null if it is not
currently trading.
|
Modifier and Type | Method and Description |
---|---|
@Nullable HumanEntity |
LootContext.getKiller()
Get the
HumanEntity who killed the LootContext.getLootedEntity() . |
Modifier and Type | Method and Description |
---|---|
@NotNull LootContext.Builder |
LootContext.Builder.killer(@Nullable HumanEntity killer)
Set the
HumanEntity that killed
LootContext.getLootedEntity() . |
Copyright © 2022. All rights reserved.