Interface PlayerData


public interface PlayerData

Player's Data

  • Method Details

    • getUniqueId

      UUID getUniqueId()
      Return uuid of player
      Returns:
      uniqueId
    • getDatas

      Collection<Data> getDatas()
      Allows to return list of player Data. Attention you cannot modify the values directly from this collection.
      Returns:
      collections
    • addData

      void addData(Data data)
      Allows you to add a data
      Parameters:
      data - New Data
    • removeData

      void removeData(Data data)
      Allows you to delete a data
      Parameters:
      data - Old Data
    • removeData

      void removeData(String key)
      Allows you to delete a Data
      Parameters:
      key - Data key
    • containsKey

      boolean containsKey(String key)
      Check if data exist
      Parameters:
      key - Data key
      Returns:
      boolean
    • getData

      Optional<Data> getData(String key)
      Get data
      Parameters:
      key - Data key
      Returns:
      optional