| 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 | 
| Modifier and Type | Interface | Description | 
|---|---|---|
| interface  | Player | Represents a player, connected or not | 
| Modifier and Type | Method | Description | 
|---|---|---|
| HumanEntity | FoodLevelChangeEvent. getEntity() | 
| Constructor | Description | 
|---|---|
| FoodLevelChangeEvent(HumanEntity what,
                    int level) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| HumanEntity | InventoryCloseEvent. getPlayer() | Returns the player involved in this event | 
| HumanEntity | InventoryOpenEvent. getPlayer() | Returns the player involved in this event | 
| HumanEntity | InventoryInteractEvent. getWhoClicked() | Gets the player who performed the click. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| List<HumanEntity> | InventoryEvent. getViewers() | Gets the list of players viewing the primary (upper) inventory involved
 in this event | 
| Modifier and Type | Method | Description | 
|---|---|---|
| HumanEntity | PlayerInventory. getHolder() | |
| abstract HumanEntity | InventoryView. getPlayer() | Get the player viewing. | 
| HumanEntity | Merchant. getTrader() | Gets the player this merchant is trading with, or null if it is not
 currently trading. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| List<HumanEntity> | Inventory. getViewers() | Gets a list of players viewing the inventory. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| HumanEntity | LootContext. getKiller() | Get the  HumanEntitywho killed theLootContext.getLootedEntity(). | 
| Modifier and Type | Method | Description | 
|---|---|---|
| LootContext.Builder | LootContext.Builder. killer(HumanEntity killer) | Set the  HumanEntitythat killedLootContext.getLootedEntity(). | 
Copyright © 2019. All rights reserved.