Class SoundEventRegistrationSerializer
java.lang.Object
net.minecraft.client.resources.sounds.SoundEventRegistrationSerializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<SoundEventRegistration>
public class SoundEventRegistrationSerializer
extends Object
implements com.google.gson.JsonDeserializer<SoundEventRegistration>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement p_119827_, Type p_119828_, com.google.gson.JsonDeserializationContext p_119829_)
private Sound
getSound(com.google.gson.JsonObject p_119836_)
getSounds(com.google.gson.JsonObject p_119831_)
private Sound.Type
getType(com.google.gson.JsonObject p_119833_, Sound.Type p_119834_)
-
Constructor Details
-
SoundEventRegistrationSerializer
public SoundEventRegistrationSerializer()
-
-
Method Details
-
deserialize
public SoundEventRegistration deserialize(com.google.gson.JsonElement p_119827_, Type p_119828_, com.google.gson.JsonDeserializationContext p_119829_) throws com.google.gson.JsonParseException- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<SoundEventRegistration>
- Throws:
com.google.gson.JsonParseException
-
getSounds
-
getSound
-
getType
-