Skip to content

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 (const NotNull< Block > & block)
const NotNull< Block > & getBlock () const
Gets the block involved in this event.

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

Protected Attributes

Type Name
NotNull< Block > block_

Public Functions Documentation

function BlockEvent

inline explicit endstone::BlockEvent::BlockEvent (
    const  NotNull < Block > & block
) 

function getBlock

Gets the block involved in this event.

inline const  NotNull < Block > & endstone::BlockEvent::getBlock () const

Returns:

The Block which block is involved in this event


Protected Attributes Documentation

variable block_

NotNull<Block> endstone::BlockEvent::block_;


The documentation for this class was generated from the following file include/endstone/event/block/block_event.h