Class ExtendedBlockModelDeserializer

java.lang.Object
net.minecraft.client.renderer.block.model.BlockModel.Deserializer
net.minecraftforge.client.model.ExtendedBlockModelDeserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<BlockModel>

public class ExtendedBlockModelDeserializer extends BlockModel.Deserializer
A version of BlockModel.Deserializer capable of deserializing models with custom loaders, as well as other changes introduced to the spec by Forge.
  • Field Details

    • INSTANCE

      public static final com.google.gson.Gson INSTANCE
  • Constructor Details

    • ExtendedBlockModelDeserializer

      public ExtendedBlockModelDeserializer()
  • Method Details

    • deserialize

      public BlockModel deserialize(com.google.gson.JsonElement element, Type targetType, com.google.gson.JsonDeserializationContext deserializationContext) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<BlockModel>
      Overrides:
      deserialize in class BlockModel.Deserializer
      Throws:
      com.google.gson.JsonParseException
    • deserializeGeometry

      @Nullable public static @Nullable IUnbakedGeometry<?> deserializeGeometry(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject object) throws com.google.gson.JsonParseException
      Throws:
      com.google.gson.JsonParseException