Class BlockModel.Deserializer

java.lang.Object
net.minecraft.client.renderer.model.BlockModel.Deserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<BlockModel>
Direct Known Subclasses:
ModelLoaderRegistry.ExpandedBlockModelDeserializer
Enclosing class:
BlockModel

public static class BlockModel.Deserializer extends Object implements com.google.gson.JsonDeserializer<BlockModel>
  • Constructor Details

    • Deserializer

      public Deserializer()
  • Method Details

    • deserialize

      public BlockModel deserialize(com.google.gson.JsonElement p_deserialize_1_, Type p_deserialize_2_, com.google.gson.JsonDeserializationContext p_deserialize_3_) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<BlockModel>
      Throws:
      com.google.gson.JsonParseException
    • getOverrides

      protected List<ItemOverride> getOverrides(com.google.gson.JsonDeserializationContext p_187964_1_, com.google.gson.JsonObject p_187964_2_)
    • getTextureMap

      private Map<String,com.mojang.datafixers.util.Either<RenderMaterial,String>> getTextureMap(com.google.gson.JsonObject p_178329_1_)
    • parseTextureLocationOrReference

      private static com.mojang.datafixers.util.Either<RenderMaterial,String> parseTextureLocationOrReference(ResourceLocation p_228819_0_, String p_228819_1_)
    • getParentName

      private String getParentName(com.google.gson.JsonObject p_178326_1_)
    • getAmbientOcclusion

      protected boolean getAmbientOcclusion(com.google.gson.JsonObject p_178328_1_)
    • getElements

      protected List<BlockPart> getElements(com.google.gson.JsonDeserializationContext p_178325_1_, com.google.gson.JsonObject p_178325_2_)