Interface IntegrationManager


public interface IntegrationManager
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    checkRequirements(org.bukkit.event.player.PlayerMoveEvent event, ConfiguredRegion priority, String region)
     
    boolean
    exists(org.bukkit.World location, String region)
    Checks whether this region exists within the world specified
    getAllRegionNames(org.bukkit.World world)
    Gets an immutable set of all region names in the specified world.
    List<org.bukkit.Location>
    getBoundingBoxPoints(org.bukkit.Location regionLocation, String regionId)
     
    getPrioritisedRegion(org.bukkit.Location location)
    Gets the highest priority region at given location
    void
    handleMove(org.bukkit.event.player.PlayerMoveEvent pme)
    Handles a move event to perform related region checks.
    boolean
    isInRegion(org.bukkit.Location location)
    Checks if the specified location is within a region.
  • Method Details

    • isInRegion

      boolean isInRegion(org.bukkit.Location location)
      Checks if the specified location is within a region.
      Parameters:
      location - location to check
      Returns:
      true if location is within a region, false otherwise
    • handleMove

      void handleMove(org.bukkit.event.player.PlayerMoveEvent pme)
      Handles a move event to perform related region checks.
      Parameters:
      pme - PlayerMoveEvent
    • getPrioritisedRegion

      Optional<ConfiguredRegion> getPrioritisedRegion(org.bukkit.Location location)
      Gets the highest priority region at given location
      Parameters:
      location - location to check
      Returns:
      highest prioritised region
    • exists

      boolean exists(org.bukkit.World location, String region)
      Checks whether this region exists within the world specified
      Parameters:
      location - World to check
      region - the region id
      Returns:
      true if region exists in world, false otherwise
    • getAllRegionNames

      Set<String> getAllRegionNames(org.bukkit.World world)
      Gets an immutable set of all region names in the specified world.
      Parameters:
      world - World to check
      Returns:
      set of all region names
    • checkRequirements

      default boolean checkRequirements(org.bukkit.event.player.PlayerMoveEvent event, ConfiguredRegion priority, String region)
    • getBoundingBoxPoints

      @NotNull List<org.bukkit.Location> getBoundingBoxPoints(org.bukkit.Location regionLocation, @Nullable String regionId)