Class WarpData

java.lang.Object
fr.fuzeblocks.homeplugin.core.warps.WarpData

public class WarpData extends Object
The type Warp data.
  • 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 name
      creatorName - the creator name
      creatorUUID - the creator uuid
      icon - the icon
      lores - the lores
      isPublic - the is public
      deniedPlayers - the denied players
      cost - the cost
      permission - the permission
      expirationDate - the expiration date
      creationDate - the creation date
      location - the location
    • WarpData

      public WarpData(String name, String creatorName, UUID creatorUUID, org.bukkit.Location location)
      Instantiates a new Warp data.
      Parameters:
      name - the name
      creatorName - the creator name
      creatorUUID - the creator uuid
      location - the location
  • Method Details

    • deserialize

      public static WarpData deserialize(String serializedData)
      Deserialize warp data.
      Parameters:
      serializedData - the serialized data
      Returns:
      the warp data
    • isValidSerializedData

      public static boolean isValidSerializedData(String serializedData)
      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

      public String getName()
      Gets name.
      Returns:
      the name
    • getCreatorName

      public String getCreatorName()
      Gets creator name.
      Returns:
      the creator name
    • getCreatorUUID

      public UUID getCreatorUUID()
      Gets creator uuid.
      Returns:
      the creator uuid
    • getIcon

      public org.bukkit.Material getIcon()
      Gets icon.
      Returns:
      the icon
    • getLores

      public List<String> getLores()
      Gets lores.
      Returns:
      the lores
    • isPublic

      public boolean isPublic()
      Is public boolean.
      Returns:
      the boolean
    • getDeniedPlayers

      public Set<UUID> getDeniedPlayers()
    • getCost

      public double getCost()
      Gets cost.
      Returns:
      the cost
    • getPermission

      public String getPermission()
      Gets permission.
      Returns:
      the permission
    • getExpirationDate

      public Timestamp getExpirationDate()
      Gets expiration date.
      Returns:
      the expiration date
    • getCreationDate

      public Timestamp getCreationDate()
      Gets creation date.
      Returns:
      the creation date
    • getLocation

      public org.bukkit.Location getLocation()
      Gets location.
      Returns:
      the location
    • canAccess

      public boolean canAccess(UUID playerUUID)
    • serialize

      public String 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