Class ShadowStateFactory

  • All Implemented Interfaces:
    com.google.gson.TypeAdapterFactory

    public class ShadowStateFactory
    extends Object
    implements com.google.gson.TypeAdapterFactory
    Factory class for converting ShadowStates to and from packet payloads
    • Constructor Detail

      • ShadowStateFactory

        public ShadowStateFactory()
    • Method Detail

      • create

        public <T> com.google.gson.TypeAdapter<T> create​(com.google.gson.Gson gson,
                                                         com.google.gson.reflect.TypeToken<T> type)
        Creates a new TypeAdapter for conversion to and from packet payloads
        Specified by:
        create in interface com.google.gson.TypeAdapterFactory