Class StateMap.GSONAdapter

java.lang.Object
net.mcreator.ui.minecraft.states.StateMap.GSONAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<StateMap>, com.google.gson.JsonSerializer<StateMap>
Enclosing class:
StateMap

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

    • GSONAdapter

      public GSONAdapter()
  • Method Details

    • deserialize

      public StateMap 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<StateMap>
      Throws:
      com.google.gson.JsonParseException
    • serialize

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