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 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 interface com.google.gson.JsonDeserializer<SoundEventRegistration>
      Throws:
      com.google.gson.JsonParseException
    • getSounds

      private List<Sound> getSounds(com.google.gson.JsonObject p_119831_)
    • getSound

      private Sound getSound(com.google.gson.JsonObject p_119836_)
    • getType

      private Sound.Type getType(com.google.gson.JsonObject p_119833_, Sound.Type p_119834_)