Class BlockModel.Deserializer

java.lang.Object
net.minecraft.client.renderer.block.model.BlockModel.Deserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<BlockModel>
Direct Known Subclasses:
ExtendedBlockModelDeserializer
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_111498_, Type p_111499_, com.google.gson.JsonDeserializationContext p_111500_) 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_111495_, com.google.gson.JsonObject p_111496_)
    • getTextureMap

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

      private static com.mojang.datafixers.util.Either<Material,String> parseTextureLocationOrReference(ResourceLocation p_111504_, String p_111505_)
    • getParentName

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

      @Nullable protected Boolean getAmbientOcclusion(com.google.gson.JsonObject p_273052_)
    • getElements

      protected List<BlockElement> getElements(com.google.gson.JsonDeserializationContext p_111507_, com.google.gson.JsonObject p_111508_)