Cancellablepublic class EntityPortalExitEvent extends EntityTeleportEvent
This event allows you to modify the velocity of the entity after they have successfully exited the portal.
Event.Resultentity| Constructor | Description |
|---|---|
EntityPortalExitEvent(@NotNull Entity entity,
@NotNull Location from,
@NotNull Location to,
@NotNull Vector before,
@NotNull Vector after) |
| Modifier and Type | Method | Description |
|---|---|---|
@NotNull Vector |
getAfter() |
Gets a copy of the velocity that the entity will have after exiting the
portal.
|
@NotNull Vector |
getBefore() |
Gets a copy of the velocity that the entity has before entering the
portal.
|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
|
void |
setAfter(@NotNull Vector after) |
Sets the velocity that the entity will have after exiting the portal.
|
getEntity, getEntityTypegetFrom, getTo, isCancelled, setCancelled, setFrom, setTogetEventName, isAsynchronous@NotNull public @NotNull Vector getBefore()
@NotNull public @NotNull Vector getAfter()
public void setAfter(@NotNull
@NotNull Vector after)
after - the velocity after exiting the portal@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class EntityTeleportEvent@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2020. All rights reserved.