Package com.minecolonies.core.generation
Class SoundsJson
java.lang.Object
com.minecolonies.core.generation.SoundsJson
- All Implemented Interfaces:
IJsonSerializable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.gson.JsonObjectcreateSoundJson(String category, com.google.gson.JsonObject properties, List<String> names) Creates a sound json object for the list of names and its propertiesvoiddeserialize(@NotNull com.google.gson.JsonElement jsonElement) static <K,V> Map <K, V> ensureTreeMap(Map<K, V> map) @NotNull com.google.gson.JsonElement
-
Constructor Details
-
SoundsJson
public SoundsJson() -
SoundsJson
-
-
Method Details
-
ensureTreeMap
-
createSoundJson
public static com.google.gson.JsonObject createSoundJson(String category, com.google.gson.JsonObject properties, List<String> names) Creates a sound json object for the list of names and its properties- Parameters:
category- category to setproperties- JsonObject properties to usenames- List of names to set- Returns:
- new JsonObject
-
serialize
@NotNull public @NotNull com.google.gson.JsonElement serialize()- Specified by:
serializein interfaceIJsonSerializable
-
deserialize
public void deserialize(@NotNull @NotNull com.google.gson.JsonElement jsonElement) - Specified by:
deserializein interfaceIJsonSerializable
-