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| 构造器和说明 |
|---|
EntityPortalExitEvent(Entity entity,
Location from,
Location to,
Vector before,
Vector after) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
getFrom, getTo, isCancelled, setCancelled, setFrom, setTogetEntity, getEntityTypegetEventName, isAsynchronouspublic Vector getBefore()
public Vector getAfter()
public void setAfter(Vector after)
after - the velocity after exiting the portalpublic HandlerList getHandlers()
getHandlers 在类中 EntityTeleportEventpublic static HandlerList getHandlerList()