Class SoundListSerializer

java.lang.Object
net.minecraft.client.audio.SoundListSerializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<SoundList>

public class SoundListSerializer extends Object implements com.google.gson.JsonDeserializer<SoundList>
  • Constructor Details

    • SoundListSerializer

      public SoundListSerializer()
  • Method Details

    • deserialize

      public SoundList deserialize(com.google.gson.JsonElement p_deserialize_1_, Type p_deserialize_2_, com.google.gson.JsonDeserializationContext p_deserialize_3_) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<SoundList>
      Throws:
      com.google.gson.JsonParseException
    • getSounds

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

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

      private Sound.Type getType(com.google.gson.JsonObject p_188732_1_, Sound.Type p_188732_2_)