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>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) private SoundgetSound(com.google.gson.JsonObject object) getSounds(com.google.gson.JsonObject object) private Sound.TypegetType(com.google.gson.JsonObject sound, Sound.Type fallback)
-
Field Details
-
DEFAULT_FLOAT
-
-
Constructor Details
-
SoundEventRegistrationSerializer
public SoundEventRegistrationSerializer()
-
-
Method Details
-
deserialize
public SoundEventRegistration deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<SoundEventRegistration>- Throws:
com.google.gson.JsonParseException
-
getSounds
-
getSound
-
getType
-