public interface DisplaceEntityEvent extends TargetEntityEvent, Cancellable
Entity
changes position
(also known as undergoing displacement).
This encapsulates both continuous
(DisplaceEntityEvent.Move
) and discrete
(DisplaceEntityEvent.Teleport
) movement.
Modifier and Type | Interface and Description |
---|---|
static interface |
DisplaceEntityEvent.Move
An event where the
TargetEntityEvent.getTargetEntity() is moving. |
static interface |
DisplaceEntityEvent.TargetHuman
An event where the target entity is a
Human entity. |
static interface |
DisplaceEntityEvent.TargetLiving
An event where the target entity is a
Living entity. |
static interface |
DisplaceEntityEvent.TargetPlayer
An event where the target entity is a
Player entity. |
static interface |
DisplaceEntityEvent.Teleport |
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
getCallbacks
isCancelled, setCancelled