Class GeneratableElement.GSONAdapter

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

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

    • GSONAdapter

      public GSONAdapter(@Nonnull Workspace workspace)
  • Method Details

    • deserialize

      public GeneratableElement deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<GeneratableElement>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(GeneratableElement modElement, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<GeneratableElement>