类 SoundEventRegistrationSerializer

java.lang.Object
net.minecraft.client.resources.sounds.SoundEventRegistrationSerializer
所有已实现的接口:
com.google.gson.JsonDeserializer<SoundEventRegistration>

public class SoundEventRegistrationSerializer extends Object implements com.google.gson.JsonDeserializer<SoundEventRegistration>
  • 字段详细资料

    • DEFAULT_FLOAT

      private static final FloatProvider DEFAULT_FLOAT
  • 构造器详细资料

    • SoundEventRegistrationSerializer

      public SoundEventRegistrationSerializer()
  • 方法详细资料

    • deserialize

      public SoundEventRegistration deserialize(com.google.gson.JsonElement p_119827_, Type p_119828_, com.google.gson.JsonDeserializationContext p_119829_) throws com.google.gson.JsonParseException
      指定者:
      deserialize 在接口中 com.google.gson.JsonDeserializer<SoundEventRegistration>
      抛出:
      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_)