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::BlockBreakEvent, endstone::BlockPlaceEvent
Public Functions¶
| Type | Name |
|---|---|
| BlockEvent (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 |
| virtual bool | isCancellable () const = 0 |
| bool | isCancelled () const |
| Event & | operator= (const Event &) = delete |
| void | setCancelled (bool cancel) |
| 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