Class InterfaceDefaultOptions

java.lang.Object
org.spongepowered.configurate.interfaces.InterfaceDefaultOptions

public final class InterfaceDefaultOptions extends Object
This class has the default ConfigurationOptions with InterfaceTypeSerializer added to the serializers.
Since:
4.3.0
  • Method Details

    • defaults

      public static ConfigurationOptions defaults()
      The default ConfigurationOptions with InterfaceTypeSerializer added to the serializers.
      Returns:
      the default ConfigurationOptions with InterfaceTypeSerializer added to the serializers.
      Since:
      4.3.0
    • addTo

      Sets the default configuration options to be used by the resultant loader by providing a function which takes interface's default serializer collection and applies any desired changes.
      Parameters:
      options - to transform the existing default options
      Returns:
      the default options with the applied changes
      Since:
      4.3.0
    • addTo

      public static ConfigurationOptions addTo(ConfigurationOptions options, Consumer<ObjectMapper.Factory.Builder> objectMapperConsumer)
      addTo(ConfigurationOptions) with an option to customize the ObjectMapper.Factory.
      Parameters:
      options - to transform the existing default options
      objectMapperConsumer - to transform the ObjectMapper factory
      Returns:
      the default options with the applied changes
      Since:
      4.3.0