Class TextureHolder.GSONAdapter

java.lang.Object
net.mcreator.element.parts.TextureHolder.GSONAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<TextureHolder>, com.google.gson.JsonSerializer<TextureHolder>
Enclosing class:
TextureHolder

public static class TextureHolder.GSONAdapter extends Object implements com.google.gson.JsonSerializer<TextureHolder>, com.google.gson.JsonDeserializer<TextureHolder>
  • Constructor Details

    • GSONAdapter

      public GSONAdapter()
  • Method Details

    • deserialize

      public TextureHolder deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<TextureHolder>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(TextureHolder textureHolder, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<TextureHolder>