Class SaveFile
java.lang.Object
eu.endercentral.crazy_advancements.save.SaveFile
Represents a Save File
- Author:
- Axel
-
Constructor Summary
ConstructorDescriptionSaveFile
(List<ProgressData> progressData, List<CriteriaData> criteriaData) Constructor for creating a Save File -
Method Summary
Modifier and TypeMethodDescriptionstatic SaveFile
fromJSON
(com.google.gson.JsonElement json) Creates a Save File from JSON Inputstatic SaveFile
Creates a Save File from JSON InputGets a list of Advancement Progress that is saved by criteria listGets a list of Advancement Progress that is saved by progress numbervoid
Merges another Save File onto this one
The Save File that is merged will take prioritytoJson()
Converts this Save File to JSON
-
Constructor Details
-
SaveFile
Constructor for creating a Save File- Parameters:
progressData
- A list of Advancement Progress that is saved by progress numbercriteriaData
- A list of Advancement Progress that is saved by criteria list
-
-
Method Details
-
getProgressData
Gets a list of Advancement Progress that is saved by progress number- Returns:
- The list containing
ProgressData
-
getCriteriaData
Gets a list of Advancement Progress that is saved by criteria list- Returns:
- The list containing
CriteriaData
-
merge
Merges another Save File onto this one
The Save File that is merged will take priority- Parameters:
saveFile
- The Save File that should be merged into this one
-
toJson
Converts this Save File to JSON- Returns:
- the JSON String
-
fromJSON
Creates a Save File from JSON Input- Parameters:
json
- The Input JSON- Returns:
- The newly created Save File
-
fromJSON
Creates a Save File from JSON Input- Parameters:
json
- The Input JSON- Returns:
- The newly created Save File
-