Interface Warp
- All Known Implementing Classes:
WarpManager, WarpSQLManager, WarpYMLManager
public interface Warp
The interface Warp.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd warp boolean.booleanParse and add a warp from serialized data (e.g.booleanaddWarp(String name, String creatorName, UUID creatorUUID, org.bukkit.Material icon, List<String> lores, boolean isPublic, Set<UUID> allowedPlayers, double cost, String permission, Timestamp expirationDate, Timestamp creationDate, org.bukkit.Location location) Add warp boolean.booleandeleteWarp(WarpData warpData) Delete warp boolean.booleandeleteWarp(String name) Delete warp boolean.Get a map of all warps by name.Get full warp data object by name, or null if not found.Convenience: list only the names of all warps.booleanbooleanbooleanrelocateWarp(WarpData warpData, org.bukkit.Location newLocation) Relocate warp boolean.booleanrelocateWarp(String name, org.bukkit.Location newLocation) Relocate warp boolean.booleanrenameWarp(WarpData warpData, String newName) Rename warp boolean.booleanrenameWarp(String oldName, String newName) Rename warp boolean.booleansetDeniedPlayers(WarpData warpData, Set<UUID> deniedPlayers) booleansetDeniedPlayers(String name, Set<UUID> deniedPlayers) booleansetWarpCost(WarpData warpData, double cost) Sets warp cost.booleansetWarpCost(String name, double cost) Sets warp cost.booleansetWarpExpirationDate(WarpData warpData, Timestamp expirationDate) Sets warp expiration date.booleansetWarpExpirationDate(String name, Timestamp expirationDate) Sets warp expiration date.booleansetWarpIcon(WarpData warpData, org.bukkit.Material newIcon) Sets warp icon.booleansetWarpIcon(String name, org.bukkit.Material newIcon) Sets warp icon.booleansetWarpLores(WarpData warpData, List<String> newLores) Sets warp lores.booleansetWarpLores(String serializedData, List<String> newLores) Sets warp lores.booleansetWarpPermission(WarpData warpData, String permission) Sets warp permission.booleansetWarpPermission(String name, String permission) Sets warp permission.booleansetWarpPublic(WarpData warpData, boolean isPublic) Sets warp public.booleansetWarpPublic(String name, boolean isPublic) Sets warp public.booleanwarpExists(WarpData warpData) Warp exists boolean.booleanwarpExists(String name) Warp exists boolean.
-
Method Details
-
addWarp
boolean addWarp(String name, String creatorName, UUID creatorUUID, org.bukkit.Material icon, List<String> lores, boolean isPublic, Set<UUID> allowedPlayers, double cost, String permission, Timestamp expirationDate, Timestamp creationDate, org.bukkit.Location location) Add warp boolean.- Parameters:
name- the namecreatorName- the creator namecreatorUUID- the creator uuidicon- the iconlores- the loresisPublic- the is publicallowedPlayers- the allowed playerscost- the costpermission- the permissionexpirationDate- the expiration datecreationDate- the creation datelocation- the location- Returns:
- the boolean
-
addWarp
Parse and add a warp from serialized data (e.g. from a file/DB). The exact format is implementation-dependent.- Parameters:
serializedData- the serialized data- Returns:
- the boolean
-
addWarp
Add warp boolean.- Parameters:
warpData- the warp data- Returns:
- the boolean
-
deleteWarp
Delete warp boolean.- Parameters:
name- the name- Returns:
- the boolean
-
deleteWarp
Delete warp boolean.- Parameters:
warpData- the warp data- Returns:
- the boolean
-
renameWarp
-
renameWarp
-
relocateWarp
Relocate warp boolean.- Parameters:
name- the namenewLocation- the new location- Returns:
- the boolean
-
relocateWarp
Relocate warp boolean.- Parameters:
warpData- the warp datanewLocation- the new location- Returns:
- the boolean
-
setWarpIcon
Sets warp icon.- Parameters:
name- the namenewIcon- the new icon- Returns:
- the warp icon
-
setWarpIcon
Sets warp icon.- Parameters:
warpData- the warp datanewIcon- the new icon- Returns:
- the warp icon
-
setWarpLores
-
setWarpLores
-
setWarpPublic
Sets warp public.- Parameters:
name- the nameisPublic- the is public- Returns:
- the warp public
-
setWarpPublic
Sets warp public.- Parameters:
warpData- the warp dataisPublic- the is public- Returns:
- the warp public
-
setDeniedPlayers
-
setDeniedPlayers
-
setWarpCost
Sets warp cost.- Parameters:
name- the namecost- the cost- Returns:
- the warp cost
-
setWarpCost
Sets warp cost.- Parameters:
warpData- the warp datacost- the cost- Returns:
- the warp cost
-
setWarpPermission
-
setWarpPermission
-
setWarpExpirationDate
-
setWarpExpirationDate
-
warpExists
Warp exists boolean.- Parameters:
name- the name- Returns:
- the boolean
-
warpExists
Warp exists boolean.- Parameters:
warpData- the warp data- Returns:
- the boolean
-
getWarp
-
getAllWarps
-
getWarpNames
-
isExpired
-
isExpired
-