Class endstone::BlockEvent¶
ClassList > endstone > BlockEvent
Represents an Block-related event.
- #include <endstone/event/block/block_event.h>
Inherits the following classes: endstone::Event
Inherited by the following classes: endstone::Cancellable
Public Functions¶
| Type | Name | 
|---|---|
| BlockEvent (std::unique_ptr< Block > block) | |
| Block & | getBlock () const Gets the block involved in this event. | 
| ~BlockEvent () override | 
Public Functions inherited from endstone::Event¶
See endstone::Event
| Type | Name | 
|---|---|
| Event (bool async=false) | |
| Event (const Event &) = delete | |
| virtual std::string | getEventName () const = 0 | 
| bool | isAsynchronous () const | 
| Event & | operator= (const Event &) = delete | 
| virtual | ~Event () = default | 
Public Functions Documentation¶
function BlockEvent¶
function getBlock¶
Gets the block involved in this event.
Returns:
The Block which block is involved in this event
function ~BlockEvent¶
The documentation for this class was generated from the following file include/endstone/event/block/block_event.h