Class WarpData
java.lang.Object
fr.fuzeblocks.homeplugin.core.warps.WarpData
The type Warp data.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new Warp data.WarpData(String name, String creatorName, UUID creatorUUID, org.bukkit.Material icon, List<String> lores, boolean isPublic, Set<UUID> deniedPlayers, double cost, String permission, Timestamp expirationDate, Timestamp creationDate, org.bukkit.Location location) Instantiates a new Warp data. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic WarpDatadeserialize(String serializedData) Deserialize warp data.doublegetCost()Gets cost.Gets creation date.Gets creator name.Gets creator uuid.Gets expiration date.org.bukkit.MaterialgetIcon()Gets icon.org.bukkit.LocationGets location.getLores()Gets lores.getName()Gets name.Gets permission.booleanisPublic()Is public boolean.static booleanisValidSerializedData(String serializedData) Is valid serialized data boolean.Serialize this WarpData into a single string.static org.bukkit.inventory.ItemStacktoItemStackUsingLanguage(WarpData warpData, LanguageManager languageManager)
-
Constructor Details
-
WarpData
public WarpData(String name, String creatorName, UUID creatorUUID, org.bukkit.Material icon, List<String> lores, boolean isPublic, Set<UUID> deniedPlayers, double cost, String permission, Timestamp expirationDate, Timestamp creationDate, org.bukkit.Location location) Instantiates a new Warp data.- Parameters:
name- the namecreatorName- the creator namecreatorUUID- the creator uuidicon- the iconlores- the loresisPublic- the is publicdeniedPlayers- the denied playerscost- the costpermission- the permissionexpirationDate- the expiration datecreationDate- the creation datelocation- the location
-
WarpData
-
-
Method Details
-
deserialize
-
isValidSerializedData
Is valid serialized data boolean.- Parameters:
serializedData- the serialized data- Returns:
- the boolean
-
toItemStackUsingLanguage
public static org.bukkit.inventory.ItemStack toItemStackUsingLanguage(WarpData warpData, LanguageManager languageManager) -
getName
-
getCreatorName
-
getCreatorUUID
-
getIcon
public org.bukkit.Material getIcon()Gets icon.- Returns:
- the icon
-
getLores
-
isPublic
public boolean isPublic()Is public boolean.- Returns:
- the boolean
-
getDeniedPlayers
-
getCost
public double getCost()Gets cost.- Returns:
- the cost
-
getPermission
-
getExpirationDate
-
getCreationDate
-
getLocation
public org.bukkit.Location getLocation()Gets location.- Returns:
- the location
-
canAccess
-
serialize
Serialize this WarpData into a single string.Format: 0 name 1 creatorName 2 creatorUUID 3 icon (Material name) 4 lores joined by "," 5 isPublic 6 deniedPlayers UUIDs joined by "," 7 cost 8 permission 9 expirationDate millis or "null" 10 creationDate millis or "null" 11 location: world,x,y,z,yaw,pitch (comma-separated)
- Returns:
- the string
-