public 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 and Description | 
|---|
EntityPortalExitEvent(@NotNull Entity entity,
                     @NotNull Location from,
                     @NotNull Location to,
                     @NotNull Vector before,
                     @NotNull Vector after)  | 
| Modifier and Type | Method and 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. 
 | 
getFrom, getTo, isCancelled, setCancelled, setFrom, setTogetEntity, getEntityTypecallEvent, getEventName, 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 © 2022. All rights reserved.