Class WesenPortalEreignis

All Implemented Interfaces:
Abbrechbar

public class WesenPortalEreignis extends WesenTeleportEreignis
Called when a non-spieler wesen is about to teleport because it is in contact with a portal.

For players see SpielerPortalEreignis

  • Constructor Details

    • WesenPortalEreignis

      public WesenPortalEreignis(@NotNull Wesen wesen, @NotNull Ort from, @Nullable Ort to)
    • WesenPortalEreignis

      public WesenPortalEreignis(@NotNull Wesen wesen, @NotNull Ort from, @Nullable Ort to, int searchRadius)
  • Method Details

    • 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
    • getHandlers

      @NotNull public HandhaberListe getHandlers()
      Overrides:
      getHandlers in class WesenTeleportEreignis
    • getHandlerList

      @NotNull public static HandhaberListe getHandlerList()