Class endstone::InventoryEvent¶
ClassList > endstone > InventoryEvent
Represents a player related inventory event.
#include <endstone/event/inventory/inventory_event.h>
Inherits the following classes: endstone::Event
Inherited by the following classes: endstone::Cancellable, endstone::InventoryCloseEvent
Public Functions¶
| 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 InventoryEvent¶
function getInventory¶
Gets the primary Inventory involved in this transaction.
Returns:
The primary inventory
The documentation for this class was generated from the following file include/endstone/event/inventory/inventory_event.h