Package net.swofty.data
Class DataHandler
java.lang.Object
net.swofty.data.DataHandler
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataHandler
fromDocument
(org.bson.Document document) <R extends Datapoint<T>,
T>
Rget
(DataHandler.Data datapoint, Class<R> type) static DataHandler
static DataHandler
getUser
(net.minestom.server.entity.Player player) getUuid()
static DataHandler
initUserWithDefaultData
(UUID uuid) void
void
runOnSave
(SkyBlockPlayer player) org.bson.Document
-
Field Details
-
userCache
-
-
Constructor Details
-
DataHandler
public DataHandler()
-
-
Method Details
-
getUser
-
getUser
-
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
-
runOnLoad
public void runOnLoad() -
runOnSave
-
initUserWithDefaultData
-