Skip to content

Class endstone::ActorEvent

ClassList > endstone > ActorEvent

Represents an Actor-related event.

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

Inherits the following classes: endstone::Event

Inherited by the following classes: endstone::ActorDeathEvent, endstone::ActorKnockbackEvent, endstone::ActorRemoveEvent, endstone::ActorSpawnEvent, endstone::ActorTeleportEvent

Public Functions

Type Name
ActorEvent (Actor & actor)
Actor & 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
virtual bool isCancellable () const = 0
bool isCancelled () const
Event & operator= (const Event &) = delete
void setCancelled (bool cancel)
virtual ~Event () = default

Public Functions Documentation

function ActorEvent

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

function getActor

Returns the Actor involved in this event.

inline Actor & 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