类 EntityPortalEvent

所有已实现的接口:
Cancellable

public class EntityPortalEvent extends EntityTeleportEvent
当一个非玩家的实体被传送门传送时触发本事件

对于玩家请看 PlayerPortalEvent 原文: Called when a non-player entity is about to teleport because it is in contact with a portal.

For players see PlayerPortalEvent

  • 构造器详细资料

  • 方法详细资料

    • setSearchRadius

      public void setSearchRadius(int searchRadius)
      Set the Block radius to search in for available portals.
      参数:
      searchRadius - the radius in which to search for a portal from the location
    • getSearchRadius

      public int getSearchRadius()
      Gets the search radius value for finding an available portal.
      返回:
      the currently set search radius
    • getHandlers

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

      public static HandlerList getHandlerList()