public static interface MoveEntityEvent.Teleport extends MoveEntityEvent
Entity
's position changes for reasons other than
normal movement.Modifier and Type | Interface and Description |
---|---|
static interface |
MoveEntityEvent.Teleport.Portal |
MoveEntityEvent.Position, MoveEntityEvent.Teleport
Modifier and Type | Method and Description |
---|---|
static MoveEntityEvent.Teleport |
createMoveEntityEventTeleport(Cause cause,
Transform<World> fromTransform,
Transform<World> toTransform,
Entity targetEntity)
Deprecated.
|
boolean |
getKeepsVelocity()
Gets whether the entity teleporting will maintain its velocity
after teleport.
|
void |
setKeepsVelocity(boolean keepsVelocity)
Sets whether the entity teleporting will maintain its velocity
after teleport.
|
getFromTransform, getToTransform, setToTransform
getTargetEntity
getCause, getContext, getSource
isCancelled, setCancelled
boolean getKeepsVelocity()
void setKeepsVelocity(boolean keepsVelocity)
keepsVelocity
- Whether the entity will maintain velocity@Deprecated static MoveEntityEvent.Teleport createMoveEntityEventTeleport(Cause cause, Transform<World> fromTransform, Transform<World> toTransform, Entity targetEntity)
SpongeEventFactory.createMoveEntityEventTeleport(Cause, Transform, Transform, Entity, boolean)
cause
- The cause to usefromTransform
- The from transformtoTransform
- The target transformtargetEntity
- The target entity