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(Entity entity,
                     Location from,
                     Location to,
                     Vector before,
                     Vector after) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Vector | getAfter() | Gets a copy of the velocity that the entity will have after exiting the
 portal. | 
| Vector | getBefore() | Gets a copy of the velocity that the entity has before entering the
 portal. | 
| static HandlerList | getHandlerList() | |
| HandlerList | getHandlers() | |
| void | setAfter(Vector after) | Sets the velocity that the entity will have after exiting the portal. | 
getEntity, getEntityTypegetFrom, getTo, isCancelled, setCancelled, setFrom, setTocallEvent, getEventName, isAsynchronous@NotNull public Vector getBefore()
@NotNull public Vector getAfter()
public void setAfter(@NotNull Vector after)
after - the velocity after exiting the portal@NotNull public HandlerList getHandlers()
getHandlers in class EntityTeleportEvent@NotNull public static HandlerList getHandlerList()
Copyright © 2020. All rights reserved.