Class DataHandler

java.lang.Object
net.swofty.data.DataHandler

public class DataHandler extends Object
  • Field Details

  • Constructor Details

    • DataHandler

      public DataHandler()
  • Method Details

    • getUser

      public static DataHandler getUser(UUID uuid)
    • getUser

      public static DataHandler getUser(net.minestom.server.entity.Player player)
    • getUuid

      public UUID getUuid()
    • fromDocument

      public static DataHandler fromDocument(org.bson.Document document) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • toDocument

      public org.bson.Document toDocument()
    • get

      public <R extends Datapoint<T>, T> R get(DataHandler.Data datapoint, Class<R> type)
    • runOnLoad

      public void runOnLoad()
    • runOnSave

      public void runOnSave(SkyBlockPlayer player)
    • initUserWithDefaultData

      public static DataHandler initUserWithDefaultData(UUID uuid)