Interface IAreaHook


public interface IAreaHook
Interface for area hooks.

This interface is used to get the name of an area based on a location. It also provides a method to check if the hook is active.

  • Method Summary

    Modifier and Type
    Method
    Description
    getAreaName(org.bukkit.Location location)
    Gets the name of the area based on the given location.
    boolean
    Checks if the hook is active.
    Gets the name of the hook.
  • Method Details

    • getAreaName

      String getAreaName(org.bukkit.Location location)
      Gets the name of the area based on the given location.
      Parameters:
      location - The location to check.
      Returns:
      The name of the area, or null if not found.
    • isHooked

      boolean isHooked()
      Checks if the hook is active.
      Returns:
      true if the hook is active, false otherwise.
    • name

      String name()
      Gets the name of the hook.
      Returns:
      The name of the hook.