Package org.tan.api.getters
Interface TanLandmarkManager
public interface TanLandmarkManager
The TanLandmarkManager interface provides methods for accessing and managing landmarks within the application.
It allows retrieval of landmarks by their names or UUIDs, and provides a collection of all landmarks.
Additionally, it supports the creation of new landmarks using coordinates or locations.
This interface is essential for handling landmark-related operations and ensuring proper management of landmark data.
-
Method Summary
Modifier and TypeMethodDescriptioncreateLandmark
(double x, double y, double z, String worldName) Create a new landmark
The landmark will be saved to the configuration and can be accessible from the APIcreateLandmark
(double x, double y, double z, UUID worldUUID) Create a new landmark
The landmark will be saved to the configuration and can be accessible from the APIcreateLandmark
(org.bukkit.Location location) Create a new landmark
The landmark will be saved to the configuration and can be accessible from the APIgetLandmark
(String name) Get a landmark by name
It is recommended to use the UUID instead of the name in case duplicate names are allowed in the configurationgetLandmark
(UUID id) Get a landmark by UUIDGet all landmarks
-
Method Details
-
getLandmarks
Collection<TanLandmark> getLandmarks()Get all landmarks- Returns:
- a
Collection
of allTanLandmark
-
getLandmark
Get a landmark by name
It is recommended to use the UUID instead of the name in case duplicate names are allowed in the configuration- Parameters:
name
- the name of the landmark- Returns:
- the
TanLandmark
with the specified name, orOptional.empty()
if not found.
-
getLandmark
Get a landmark by UUID- Parameters:
id
- the UUID of the landmark- Returns:
- the
TanLandmark
with the specified UUID, orOptional.empty()
if not found.
-
createLandmark
Create a new landmark
The landmark will be saved to the configuration and can be accessible from the API- Parameters:
x
- the x coordinatey
- the y coordinatez
- the z coordinateworldUUID
- the UUID of the world- Returns:
- the created
TanLandmark
-
createLandmark
Create a new landmark
The landmark will be saved to the configuration and can be accessible from the API- Parameters:
x
- the x coordinatey
- the y coordinatez
- the z coordinateworldName
- the name of the world- Returns:
- the created
TanLandmark
-
createLandmark
Create a new landmark
The landmark will be saved to the configuration and can be accessible from the API- Parameters:
location
- the location of the landmark- Returns:
- the created
TanLandmark
-