Skip to Content
⚠ Under Construction
ReferenceC++ APIPlayerInteractActorEvent

endstone::PlayerInteractActorEvent

Represents an event that is called when a player right-clicks an actor.

Bases: endstone::Cancellable< PlayerEvent >

Attributes:

NameDescription
NAME

Functions:

NameDescription
PlayerInteractActorEvent
getActorGets the actor that was right-clicked by the player.
getEventName

NAME

const std::string endstone::PlayerInteractActorEvent::NAME;

PlayerInteractActorEvent

PlayerInteractActorEvent(Player &player, Actor &actor)

getActor

Actor &getActor() const

Gets the actor that was right-clicked by the player.

Returns:

actor right-clicked by player

getEventName

std::string getEventName() override const

Gets a user-friendly identifier for this event.

Returns:

name of this event

Last updated on