Package net.minecraft.client.sound
Class SoundEntryDeserializer
java.lang.Object
net.minecraft.client.sound.SoundEntryDeserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<SoundEntry>
@Environment(CLIENT) public class SoundEntryDeserializer extends Object implements com.google.gson.JsonDeserializer<SoundEntry>
- Mappings:
Namespace Name official eyrintermediary net/minecraft/class_1115named net/minecraft/client/sound/SoundEntryDeserializer
-
Constructor Summary
Constructors Constructor Description SoundEntryDeserializer() -
Method Summary
Modifier and Type Method Description SoundEntrydeserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)private SounddeserializeSound(com.google.gson.JsonObject json)private List<Sound>deserializeSounds(com.google.gson.JsonObject json)private Sound.RegistrationTypedeserializeType(com.google.gson.JsonObject json, Sound.RegistrationType fallback)
-
Constructor Details
-
SoundEntryDeserializer
public SoundEntryDeserializer()
-
-
Method Details
-
deserialize
public SoundEntry deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<SoundEntry>- Throws:
com.google.gson.JsonParseException- Mappings:
Namespace Name Mixin selector official aLeyr;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Leyq;intermediary method_4791Lnet/minecraft/class_1115;method_4791(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_1110;named deserializeLnet/minecraft/client/sound/SoundEntryDeserializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/client/sound/SoundEntry;
-
deserializeSounds
- Mappings:
Namespace Name Mixin selector official aLeyr;a(Lcom/google/gson/JsonObject;)Ljava/util/List;intermediary method_4792Lnet/minecraft/class_1115;method_4792(Lcom/google/gson/JsonObject;)Ljava/util/List;named deserializeSoundsLnet/minecraft/client/sound/SoundEntryDeserializer;deserializeSounds(Lcom/google/gson/JsonObject;)Ljava/util/List;
-
deserializeSound
- Mappings:
Namespace Name Mixin selector official bLeyr;b(Lcom/google/gson/JsonObject;)Leyp;intermediary method_4790Lnet/minecraft/class_1115;method_4790(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_1111;named deserializeSoundLnet/minecraft/client/sound/SoundEntryDeserializer;deserializeSound(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/sound/Sound;
-
deserializeType
private Sound.RegistrationType deserializeType(com.google.gson.JsonObject json, Sound.RegistrationType fallback)- Mappings:
Namespace Name Mixin selector official aLeyr;a(Lcom/google/gson/JsonObject;Leyp$a;)Leyp$a;intermediary method_4789Lnet/minecraft/class_1115;method_4789(Lcom/google/gson/JsonObject;Lnet/minecraft/class_1111$class_1112;)Lnet/minecraft/class_1111$class_1112;named deserializeTypeLnet/minecraft/client/sound/SoundEntryDeserializer;deserializeType(Lcom/google/gson/JsonObject;Lnet/minecraft/client/sound/Sound$RegistrationType;)Lnet/minecraft/client/sound/Sound$RegistrationType;
-