Package net.godlycow.org.essc.api.warp
Interface Warp
public interface Warp
A server warp. Get them from
WarpManager. Setters only change
the object, call WarpManager.updateWarp(Warp) to save.-
Method Summary
Modifier and TypeMethodDescriptionGets the category, null if none.doublegetCost()Gets the cost per use, 0 means free.Gets the description shown in lists and GUIs.org.bukkit.LocationGets the warp location.getName()Gets the warp name.Gets the permission needed to use it, null if open to all.booleanisHidden()Checks if the warp is hidden from public lists.voidsetCategory(String category) Sets the category, null to clear.voidsetCost(double cost) Sets the cost per use.voidsetDescription(String description) Sets the description.voidsetHidden(boolean hidden) Hides or unhides the warp.voidsetLocation(org.bukkit.Location location) Sets the warp location.voidsetPermission(String permission) Sets the permission, null to clear.
-
Method Details
-
getName
String getName()Gets the warp name.- Returns:
- the warp name
-
getLocation
org.bukkit.Location getLocation()Gets the warp location.- Returns:
- the location
-
setLocation
void setLocation(org.bukkit.Location location) Sets the warp location.- Parameters:
location- the new location
-
getPermission
String getPermission()Gets the permission needed to use it, null if open to all.- Returns:
- the permission, or null
-
setPermission
Sets the permission, null to clear.- Parameters:
permission- the permission, or null
-
getCost
double getCost()Gets the cost per use, 0 means free.- Returns:
- the cost
-
setCost
void setCost(double cost) Sets the cost per use.- Parameters:
cost- the new cost
-
isHidden
boolean isHidden()Checks if the warp is hidden from public lists.- Returns:
- true if hidden
-
setHidden
void setHidden(boolean hidden) Hides or unhides the warp.- Parameters:
hidden- true to hide
-
getDescription
String getDescription()Gets the description shown in lists and GUIs.- Returns:
- the description
-
setDescription
Sets the description.- Parameters:
description- the new description
-
getCategory
String getCategory()Gets the category, null if none.- Returns:
- the category, or null
-
setCategory
Sets the category, null to clear.- Parameters:
category- the new category, or null
-