Skip to Content
⚠ Under Construction
ReferenceC++ APIActorTeleportEvent

endstone::ActorTeleportEvent

Called when a non-player entity is teleported from one location to another.

Bases: endstone::Cancellable< ActorEvent< Actor > >

Attributes:

NameDescription
NAME

Functions:

NameDescription
ActorTeleportEvent
getEventName
getFromGets the location that this actor moved from.
getToGets the location that this actor moved to.
setFromSets the location that this actor moved from.
setToSets the location that this actor moved to.

NAME

const std::string endstone::ActorTeleportEvent::NAME;

ActorTeleportEvent

ActorTeleportEvent(Actor &actor, Location from, Location to)

getEventName

std::string getEventName() override const

Gets a user-friendly identifier for this event.

Returns:

name of this event

getFrom

const Location &getFrom() const

Gets the location that this actor moved from.

Returns:

Location this actor moved from

getTo

const Location &getTo() const

Gets the location that this actor moved to.

Returns:

Location this actor moved to

setFrom

void setFrom(const Location &from)

Sets the location that this actor moved from.

Parameters:

  • from New location this actor moved from

setTo

void setTo(const Location &to)

Sets the location that this actor moved to.

Parameters:

Last updated on