Class endstone::InventoryCloseEvent¶
ClassList > endstone > InventoryCloseEvent
Called when a player closes an inventory.
#include <endstone/event/inventory/inventory_close_event.h>
Inherits the following classes: endstone::InventoryEvent
Public Functions¶
| Type | Name |
|---|---|
| ENDSTONE_EVENT (InventoryCloseEvent) |
|
| InventoryCloseEvent (Inventory & inventory, const NotNull< Player > & player) |
|
| const NotNull< Player > & | getPlayer () const Returns the player involved in this event. |
Public Functions inherited from endstone::InventoryEvent¶
| Type | Name |
|---|---|
| InventoryEvent (Inventory & inventory) |
|
| Inventory & | getInventory () const Gets the primary Inventory involved in this transaction. |
Public Functions inherited from endstone::Event¶
See endstone::Event
| Type | Name |
|---|---|
| Event (bool async=false) |
|
| Event (const Event &) = delete |
|
| Event (Event &&) = default |
|
| virtual std::string | getEventName () const = 0 Gets a user-friendly identifier for this event. |
| bool | isAsynchronous () const Any custom event that should not by synchronized with other events must use the specific constructor. |
| Event & | operator= (const Event &) = delete |
| Event & | operator= (Event &&) = default |
| virtual | ~Event () = default |
Public Functions Documentation¶
function ENDSTONE_EVENT¶
function InventoryCloseEvent¶
inline endstone::InventoryCloseEvent::InventoryCloseEvent (
Inventory & inventory,
const NotNull < Player > & player
)
function getPlayer¶
Returns the player involved in this event.
Returns:
Player who is closing the inventory
The documentation for this class was generated from the following file include/endstone/event/inventory/inventory_close_event.h