Package com.earth2me.essentials.api
Interface IWarps
- All Superinterfaces:
IConf
- All Known Subinterfaces:
IWarps
- All Known Implementing Classes:
Warps
Deprecated.
Provides access to the storage of warp locations. Maintainers should add methods to this interface.
-
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
Deprecated.Gets the number of warpsgetLastOwner
(String warp) Deprecated.Gets Lastowner UUIDgetList()
Deprecated.Gets a list of warpsDeprecated.Get a warp by namegetWarpFile
(String name) Deprecated.This method relates to the abandoned 3.x storage refactor and is not implemented.boolean
isEmpty()
Deprecated.Check to see if the file is emptyboolean
Deprecated.Checks if the provided name is a warp.void
removeWarp
(String name) Deprecated.Delete a warp from the warp DBvoid
Deprecated.Set a warpvoid
Deprecated.Set a warpMethods inherited from interface com.earth2me.essentials.IConf
reloadConfig
-
Method Details
-
getWarp
Deprecated.Get a warp by name- Parameters:
warp
- - Warp name- Returns:
- - Location the warp is set to
- Throws:
WarpNotFoundException
- When the warp is not found
-
isWarp
Deprecated.Checks if the provided name is a warp.- Parameters:
name
- The warp name.- Returns:
- true if a warp by that name exists.
-
getList
Collection<String> getList()Deprecated.Gets a list of warps- Returns:
- - A
Collection
of warps
-
getCount
int getCount()Deprecated.Gets the number of warps- Returns:
- the size of the list of warps
-
removeWarp
Deprecated.Delete a warp from the warp DB- Parameters:
name
- - Name of warp- Throws:
Exception
- If the warp could not be removed
-
setWarp
Deprecated.Set a warp- Parameters:
name
- - Name of warploc
- - Location of warp- Throws:
Exception
- If the warp could not be set
-
setWarp
Deprecated.Set a warp- Parameters:
user
- - User of warpname
- - Name of warploc
- - Location of warp- Throws:
Exception
- If the warp could not be set
-
getLastOwner
Deprecated.Gets Lastowner UUID- Parameters:
warp
- - Name of warp- Throws:
WarpNotFoundException
- If the warp is not found
-
isEmpty
boolean isEmpty()Deprecated.Check to see if the file is empty- Returns:
- Whether or not the file is empty
-
getWarpFile
Deprecated.This method relates to the abandoned 3.x storage refactor and is not implemented.- Throws:
InvalidNameException
-
IWarps
instead of this interface, in case future APIs are added.