Class SoundEventRegistrationSerializer
java.lang.Object
net.minecraft.client.resources.sounds.SoundEventRegistrationSerializer
- All Implemented Interfaces:
JsonDeserializer<SoundEventRegistration>
public class SoundEventRegistrationSerializer
extends Object
implements JsonDeserializer<SoundEventRegistration>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) private SoundgetSound(JsonObject object) getSounds(JsonObject object) private Sound.TypegetType(JsonObject sound, Sound.Type fallback)
-
Field Details
-
DEFAULT_FLOAT
-
-
Constructor Details
-
SoundEventRegistrationSerializer
public SoundEventRegistrationSerializer()
-
-
Method Details
-
deserialize
public SoundEventRegistration deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException - Specified by:
deserializein interfaceJsonDeserializer<SoundEventRegistration>- Throws:
JsonParseException
-
getSounds
-
getSound
-
getType
-