public static interface DisplaceEntityEvent.Teleport extends DisplaceEntityEvent, CauseTracked
Modifier and Type | Interface and Description |
---|---|
static interface |
DisplaceEntityEvent.Teleport.TargetHuman
An event where the target entity is a
Human entity. |
static interface |
DisplaceEntityEvent.Teleport.TargetLiving
An event where the target entity is a
Living entity. |
static interface |
DisplaceEntityEvent.Teleport.TargetPlayer
An event where the target entity is a
Player entity. |
DisplaceEntityEvent.Move, DisplaceEntityEvent.Teleport
Modifier and Type | Method and Description |
---|---|
boolean |
getKeepsVelocity()
Gets whether the entity teleporting will maintain its velocity
after teleport.
|
TeleporterAgent |
getTeleporterAgent()
Gets the
TeleporterAgent that was used to calculate the
teleport locations. |
void |
setKeepsVelocity(boolean keepsVelocity)
Sets whether the entity teleporting will maintain its velocity
after teleport.
|
getFromTransform, getToTransform, setToTransform
getTargetEntity
isCancelled, setCancelled
getCause
TeleporterAgent getTeleporterAgent()
TeleporterAgent
that was used to calculate the
teleport locations.boolean getKeepsVelocity()
void setKeepsVelocity(boolean keepsVelocity)
keepsVelocity
- Whether the entity will maintain velocity