Package org.bukkit.event.entity
Class EntityPortalExitEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityTeleportEvent
org.bukkit.event.entity.EntityPortalExitEvent
- All Implemented Interfaces:
- Cancellable
Called before an entity exits a portal.
 
This event allows you to modify the velocity of the entity after they have successfully exited the portal.
Cancelling this event does not prevent the teleport, but it does prevent any changes to velocity and location from taking place.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.entity.EntityEvententity
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetAfter()Gets a copy of the velocity that the entity will have after exiting the portal.Gets a copy of the velocity that the entity has before entering the portal.static @NotNull HandlerListvoidSets the velocity that the entity will have after exiting the portal.Methods inherited from class org.bukkit.event.entity.EntityTeleportEventgetFrom, getTo, isCancelled, setCancelled, setFrom, setToMethods inherited from class org.bukkit.event.entity.EntityEventgetEntity, getEntityTypeMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
EntityPortalExitEvent
 
- 
- 
Method Details- 
getBeforeGets a copy of the velocity that the entity has before entering the portal.- Returns:
- velocity of entity before entering the portal
 
- 
getAfterGets a copy of the velocity that the entity will have after exiting the portal.- Returns:
- velocity of entity after exiting the portal
 
- 
setAfterSets the velocity that the entity will have after exiting the portal.- Parameters:
- after- the velocity after exiting the portal
 
- 
getHandlers- Overrides:
- getHandlersin class- EntityTeleportEvent
 
- 
getHandlerList
 
-