Class SoundEntryDeserializer

java.lang.Object
net.minecraft.client.sound.SoundEntryDeserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<SoundEntry>

@Environment(CLIENT) public class SoundEntryDeserializer extends Object implements com.google.gson.JsonDeserializer<SoundEntry>
Mappings:
Namespace Name
official gcl
intermediary net/minecraft/class_1115
named net/minecraft/client/sound/SoundEntryDeserializer
  • Field Details

    • ONE

      private static final FloatProvider ONE
      Mappings:
      Namespace Name Mixin selector
      official a Lgcl;a:Lbgb;
      intermediary field_38801 Lnet/minecraft/class_1115;field_38801:Lnet/minecraft/class_5863;
      named ONE Lnet/minecraft/client/sound/SoundEntryDeserializer;ONE:Lnet/minecraft/util/math/floatprovider/FloatProvider;
  • Constructor Details

    • SoundEntryDeserializer

      public SoundEntryDeserializer()
  • Method Details

    • deserialize

      public SoundEntry deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<SoundEntry>
      Throws:
      com.google.gson.JsonParseException
      Mappings:
      Namespace Name Mixin selector
      official a Lgcl;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lgck;
      intermediary method_4791 Lnet/minecraft/class_1115;method_4791(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_1110;
      named deserialize Lnet/minecraft/client/sound/SoundEntryDeserializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/client/sound/SoundEntry;
    • deserializeSounds

      private List<Sound> deserializeSounds(com.google.gson.JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official a Lgcl;a(Lcom/google/gson/JsonObject;)Ljava/util/List;
      intermediary method_4792 Lnet/minecraft/class_1115;method_4792(Lcom/google/gson/JsonObject;)Ljava/util/List;
      named deserializeSounds Lnet/minecraft/client/sound/SoundEntryDeserializer;deserializeSounds(Lcom/google/gson/JsonObject;)Ljava/util/List;
    • deserializeSound

      private Sound deserializeSound(com.google.gson.JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official b Lgcl;b(Lcom/google/gson/JsonObject;)Lgcj;
      intermediary method_4790 Lnet/minecraft/class_1115;method_4790(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_1111;
      named deserializeSound Lnet/minecraft/client/sound/SoundEntryDeserializer;deserializeSound(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/sound/Sound;
    • deserializeType

      private Sound.RegistrationType deserializeType(com.google.gson.JsonObject json, Sound.RegistrationType fallback)
      Mappings:
      Namespace Name Mixin selector
      official a Lgcl;a(Lcom/google/gson/JsonObject;Lgcj$a;)Lgcj$a;
      intermediary method_4789 Lnet/minecraft/class_1115;method_4789(Lcom/google/gson/JsonObject;Lnet/minecraft/class_1111$class_1112;)Lnet/minecraft/class_1111$class_1112;
      named deserializeType Lnet/minecraft/client/sound/SoundEntryDeserializer;deserializeType(Lcom/google/gson/JsonObject;Lnet/minecraft/client/sound/Sound$RegistrationType;)Lnet/minecraft/client/sound/Sound$RegistrationType;