endstone::ActorTeleportEvent
Called when a non-player entity is teleported from one location to another.
Bases: endstone::Cancellable< ActorEvent< Actor > >
Attributes:
Name | Description |
---|---|
NAME |
Functions:
Name | Description |
---|---|
ActorTeleportEvent | |
getEventName | |
getFrom | Gets the location that this actor moved from. |
getTo | Gets the location that this actor moved to. |
setFrom | Sets the location that this actor moved from. |
setTo | Sets 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:
to
New Location this actor moved to
Last updated on