Package dev.drawethree.xprison.api.mines
Interface XPrisonMinesAPI
public interface XPrisonMinesAPI
API for interacting with mines in the XPrison plugin.
-
Method Summary
Modifier and TypeMethodDescriptioncreateMine
(MineSelection mineSelection, String name) Creates a new mine with the specified selection boundaries and name.boolean
deleteMine
(Mine mine) Deletes the specified mine.getMineAtLocation
(org.bukkit.Location loc) Gets the mine located at a specific location.getMineByName
(String name) Gets a mine by its name.getMines()
Gets all minesvoid
Resets the contents of the given mine.
-
Method Details
-
getMines
Collection<Mine> getMines()Gets all mines- Returns:
- The collection of
Mine
-
getMineByName
Gets a mine by its name.- Parameters:
name
- The name of the mine- Returns:
- The
Mine
instance matching the given name, or null if no such mine exists
-
getMineAtLocation
Gets the mine located at a specific location.- Parameters:
loc
- TheLocation
to check- Returns:
- The
Mine
containing the given location, or null if none is found
-
createMine
Creates a new mine with the specified selection boundaries and name.- Parameters:
mineSelection
- TheMineSelection
defining the mine boundariesname
- The name of the new mine- Returns:
- The created
Mine
instance
-
deleteMine
Deletes the specified mine.- Parameters:
mine
- TheMine
to delete- Returns:
- true if the mine was successfully deleted, false otherwise
-
resetMine
Resets the contents of the given mine.- Parameters:
mine
- TheMine
to reset
-