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