public interface MoveEntityEvent extends TargetEntityEvent, Cancellable
Entity
performs movement.Modifier and Type | Interface and Description |
---|---|
static interface |
MoveEntityEvent.Position
Fired when an
Entity 's position changes. |
static interface |
MoveEntityEvent.Teleport
Fired when an
Entity 's position changes for reasons other than
normal movement. |
Modifier and Type | Method and Description |
---|---|
Transform<World> |
getFromTransform()
Gets the transform that the
Entity came from. |
Transform<World> |
getToTransform()
Gets the new transform that the
Entity will change to. |
void |
setToTransform(Transform<World> transform)
Sets the new transform that the
Entity will change to. |
getTargetEntity
getCause, getContext, getSource
isCancelled, setCancelled