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, endstone::BlockPistonEvent

Public Functions

Type Name
BlockEvent (std::shared_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

inline explicit endstone::BlockEvent::BlockEvent (
    std::shared_ptr< Block > block
) 

function getBlock

Gets the block involved in this event.

inline Block & endstone::BlockEvent::getBlock () const

Returns:

The Block which block is involved in this event


function ~BlockEvent

endstone::BlockEvent::~BlockEvent () override


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