@Environment(value=CLIENT) public class SoundEntryDeserializer extends Object implements com.google.gson.JsonDeserializer<SoundEntry>
| Constructor and Description |
|---|
SoundEntryDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
SoundEntry |
deserialize(com.google.gson.JsonElement jsonElement,
Type type,
com.google.gson.JsonDeserializationContext jsonDeserializationContext) |
private Sound |
deserializeSound(com.google.gson.JsonObject json) |
private List<Sound> |
deserializeSounds(com.google.gson.JsonObject json) |
private Sound.RegistrationType |
deserializeType(com.google.gson.JsonObject json,
Sound.RegistrationType fallback) |
public SoundEntry deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException
deserialize in interface com.google.gson.JsonDeserializer<SoundEntry>com.google.gson.JsonParseExceptionprivate Sound deserializeSound(com.google.gson.JsonObject json)
private Sound.RegistrationType deserializeType(com.google.gson.JsonObject json, Sound.RegistrationType fallback)