Class TOMLConfigurationLoader.Builder

java.lang.Object
org.spongepowered.configurate.loader.AbstractConfigurationLoader.Builder<TOMLConfigurationLoader.Builder,​TOMLConfigurationLoader>
me.lucko.configurate.toml.TOMLConfigurationLoader.Builder
Enclosing class:
TOMLConfigurationLoader

public static class TOMLConfigurationLoader.Builder extends org.spongepowered.configurate.loader.AbstractConfigurationLoader.Builder<TOMLConfigurationLoader.Builder,​TOMLConfigurationLoader>
  • Method Details

    • setKeyIndent

      public @NonNull TOMLConfigurationLoader.Builder setKeyIndent(int indent)
      Sets the level of indentation the resultant loader should use for keys.
      Parameters:
      indent - The indent level for keys
      Returns:
      This builder (for chaining)
    • getKeyIndent

      public int getKeyIndent()
      Gets the level of key indentation to be used by the resultant loader.
      Returns:
      The indent level
    • setTableIndent

      public @NonNull TOMLConfigurationLoader.Builder setTableIndent(int indent)
      Sets the level of indentation the resultant loader should use for tables.
      Parameters:
      indent - The indent level for tables
      Returns:
      This builder (for chaining)
    • getTableIndent

      public int getTableIndent()
      Gets the level of table indentation to be used by the resultant loader.
      Returns:
      The indent level
    • setZoneOffset

      public @NonNull TOMLConfigurationLoader.Builder setZoneOffset(@NonNull ZoneOffset offset)
      Sets the ZoneOffset the resultant loader should use.
      Parameters:
      offset - The zone offset
      Returns:
      This builder (for chaining)
    • getZoneOffset

      public @NonNull ZoneOffset getZoneOffset()
      Gets the ZoneOffset to be used by the resultant loader.
      Returns:
      The zone offset
    • setArrayPadding

      public @NonNull TOMLConfigurationLoader.Builder setArrayPadding(int padding)
      Sets the amount of padding the resultant loader should use for array delimiters.
      Parameters:
      padding - The padding level for arrays
      Returns:
      This builder (for chaining)
    • getArrayPadding

      public int getArrayPadding()
      Gets the amount of array padding to be used by the resultant loader.
      Returns:
      The padding level for arrays
    • setUseFractionalSeconds

      public @NonNull TOMLConfigurationLoader.Builder setUseFractionalSeconds(boolean fractionalSeconds)
      Sets if the resultant loader should use fractional seconds.
      Parameters:
      fractionalSeconds - If fractional seconds should be used
      Returns:
      This builder (for chaining)
    • getUseFractionalSeconds

      public boolean getUseFractionalSeconds()
      Gets if fractional seconds should be used by the resultant loader.
      Returns:
      If fractional seconds should be used
    • build

      public @NonNull TOMLConfigurationLoader build()
      Specified by:
      build in class org.spongepowered.configurate.loader.AbstractConfigurationLoader.Builder<TOMLConfigurationLoader.Builder,​TOMLConfigurationLoader>