类 EntityPortalExitEvent

所有已实现的接口:
Cancellable

public class EntityPortalExitEvent extends EntityTeleportEvent
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.

  • 构造器详细资料

  • 方法详细资料

    • getBefore

      public Vector getBefore()
      Gets a copy of the velocity that the entity has before entering the portal.
      返回:
      velocity of entity before entering the portal
    • getAfter

      public Vector getAfter()
      Gets a copy of the velocity that the entity will have after exiting the portal.
      返回:
      velocity of entity after exiting the portal
    • setAfter

      public void setAfter(Vector after)
      Sets the velocity that the entity will have after exiting the portal.
      参数:
      after - the velocity after exiting the portal
    • getHandlers

      public HandlerList getHandlers()
      覆盖:
      getHandlers 在类中 EntityTeleportEvent
    • getHandlerList

      public static HandlerList getHandlerList()