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 constGets a user-friendly identifier for this event.
Returns:
name of this event
getFrom
const Location &getFrom() constGets the location that this actor moved from.
Returns:
Location this actor moved from
getTo
const Location &getTo() constGets 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:
fromNew location this actor moved from
setTo
void setTo(const Location &to)Sets the location that this actor moved to.
Parameters:
toNew Location this actor moved to
Last updated on