Class EntityPortalEvent

    • Constructor Detail

      • EntityPortalEvent

        public EntityPortalEvent​(@NotNull
                                 Entity entity,
                                 @NotNull
                                 Location from,
                                 @Nullable
                                 Location to)
      • EntityPortalEvent

        public EntityPortalEvent​(@NotNull
                                 Entity entity,
                                 @NotNull
                                 Location from,
                                 @Nullable
                                 Location to,
                                 int searchRadius)
    • Method Detail

      • setSearchRadius

        public void setSearchRadius​(int searchRadius)
        Set the Block radius to search in for available portals.
        Parameters:
        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.
        Returns:
        the currently set search radius
      • getHandlerList

        @NotNull
        public static HandlerList getHandlerList()