Package com.vk2gpz.autosell.area
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 TypeMethodDescriptiongetAreaName
(org.bukkit.Location location) Gets the name of the area based on the given location.boolean
isHooked()
Checks if the hook is active.name()
Gets the name of the hook.
-
Method Details
-
getAreaName
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.
-