Class EntityPortalEvent

All Implemented Interfaces:

public class EntityPortalEvent extends EntityTeleportEvent
Called when a non-player entity is about to teleport because it is in contact with a portal.

For players see PlayerPortalEvent

  • Constructor Details

  • Method Details

    • 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

      @NotNull public HandlerList getHandlers()
      getHandlers in class EntityTeleportEvent
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()