public static class BlockModel.Deserializer extends java.lang.Object implements com.google.gson.JsonDeserializer<BlockModel>
Constructor and Description |
---|
Deserializer() |
Modifier and Type | Method and Description |
---|---|
BlockModel |
deserialize(com.google.gson.JsonElement p_deserialize_1_,
java.lang.reflect.Type p_deserialize_2_,
com.google.gson.JsonDeserializationContext p_deserialize_3_) |
private static com.mojang.datafixers.util.Either<Material,java.lang.String> |
findTexture(ResourceLocation locationIn,
java.lang.String nameIn) |
protected boolean |
getAmbientOcclusionEnabled(com.google.gson.JsonObject object) |
protected java.util.List<ItemOverride> |
getItemOverrides(com.google.gson.JsonDeserializationContext deserializationContext,
com.google.gson.JsonObject object) |
protected java.util.List<BlockPart> |
getModelElements(com.google.gson.JsonDeserializationContext deserializationContext,
com.google.gson.JsonObject object) |
private java.lang.String |
getParent(com.google.gson.JsonObject object) |
private java.util.Map<java.lang.String,com.mojang.datafixers.util.Either<Material,java.lang.String>> |
getTextures(com.google.gson.JsonObject object) |
public BlockModel deserialize(com.google.gson.JsonElement p_deserialize_1_, java.lang.reflect.Type p_deserialize_2_, com.google.gson.JsonDeserializationContext p_deserialize_3_) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<BlockModel>
com.google.gson.JsonParseException
protected java.util.List<ItemOverride> getItemOverrides(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject object)
private java.util.Map<java.lang.String,com.mojang.datafixers.util.Either<Material,java.lang.String>> getTextures(com.google.gson.JsonObject object)
private static com.mojang.datafixers.util.Either<Material,java.lang.String> findTexture(ResourceLocation locationIn, java.lang.String nameIn)
private java.lang.String getParent(com.google.gson.JsonObject object)
protected boolean getAmbientOcclusionEnabled(com.google.gson.JsonObject object)
protected java.util.List<BlockPart> getModelElements(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject object)