public static class ModelLoaderRegistry.ExpandedBlockModelDeserializer extends BlockModel.Deserializer
修飾子とタイプ | フィールドと説明 |
---|---|
static com.google.gson.Gson |
INSTANCE |
コンストラクタと説明 |
---|
ExpandedBlockModelDeserializer() |
修飾子とタイプ | メソッドと説明 |
---|---|
BlockModel |
deserialize(com.google.gson.JsonElement element,
java.lang.reflect.Type targetType,
com.google.gson.JsonDeserializationContext deserializationContext)
Gson invokes this call-back method during deserialization when it encounters a field of the
specified type.
|
getAmbientOcclusionEnabled, getItemOverrides, getModelElements
public BlockModel deserialize(com.google.gson.JsonElement element, java.lang.reflect.Type targetType, com.google.gson.JsonDeserializationContext deserializationContext) throws com.google.gson.JsonParseException
com.google.gson.JsonDeserializer
In the implementation of this call-back method, you should consider invoking
JsonDeserializationContext.deserialize(JsonElement, Type)
method to create objects
for any non-trivial field of the returned object. However, you should never invoke it on the
the same type passing json
since that will cause an infinite loop (Gson will call your
call-back method again).
deserialize
インタフェース内 com.google.gson.JsonDeserializer<BlockModel>
deserialize
クラス内 BlockModel.Deserializer
element
- The Json data being deserializedtargetType
- The type of the Object to deserialize toT
com.google.gson.JsonParseException
- if json is not in the expected format of typeofT