Skip to content

Class endstone::ActorEvent

template <typename ActorType>

ClassList > endstone > ActorEvent

Represents an Actor-related event.

  • #include <endstone/event/actor/actor_event.h>

Inherits the following classes: endstone::Event

Public Functions

Type Name
ActorEvent (ActorType & actor)
ActorType & getActor () const
Returns the Actor involved in this event.
~ActorEvent () 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 ActorEvent

inline explicit endstone::ActorEvent::ActorEvent (
    ActorType & actor
) 

function getActor

Returns the Actor involved in this event.

inline ActorType & endstone::ActorEvent::getActor () const

Returns:

Actor which is involved in this event


function ~ActorEvent

endstone::ActorEvent::~ActorEvent () override


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