类 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>
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明deserialize
(com.google.gson.JsonElement p_119827_, Type p_119828_, com.google.gson.JsonDeserializationContext p_119829_) private Sound
getSound
(com.google.gson.JsonObject p_119836_) getSounds
(com.google.gson.JsonObject p_119831_) private Sound.Type
getType
(com.google.gson.JsonObject p_119833_, Sound.Type p_119834_)
-
字段详细资料
-
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
-
getSound
-
getType
-