Package me.lucko.configurate.toml
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>
Builds a
TOMLConfigurationLoader.-
Field Summary
Fields inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoader.Builder
defaultOptions, headerMode, sink, source -
Method Summary
Modifier and TypeMethodDescription@NonNull TOMLConfigurationLoaderbuild()intGets the amount of array padding to be used by the resultant loader.intGets the level of key indentation to be used by the resultant loader.intGets the level of table indentation to be used by the resultant loader.booleanGets if fractional seconds should be used by the resultant loader.@NonNull ZoneOffsetGets theZoneOffsetto be used by the resultant loader.@NonNull TOMLConfigurationLoader.BuildersetArrayPadding(int padding)Sets the amount of padding the resultant loader should use for array delimiters.@NonNull TOMLConfigurationLoader.BuildersetKeyIndent(int indent)Sets the level of indentation the resultant loader should use for keys.@NonNull TOMLConfigurationLoader.BuildersetTableIndent(int indent)Sets the level of indentation the resultant loader should use for tables.@NonNull TOMLConfigurationLoader.BuildersetUseFractionalSeconds(boolean fractionalSeconds)Sets if the resultant loader should use fractional seconds.@NonNull TOMLConfigurationLoader.BuildersetZoneOffset(@NonNull ZoneOffset offset)Sets theZoneOffsetthe resultant loader should use.Methods inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoader.Builder
buildAndLoadString, buildAndSaveString, defaultOptions, defaultOptions, defaultOptions, file, headerMode, headerMode, path, sink, sink, source, source, url
-
Method Details
-
setKeyIndent
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
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
Sets theZoneOffsetthe resultant loader should use.- Parameters:
offset- The zone offset- Returns:
- This builder (for chaining)
-
getZoneOffset
Gets theZoneOffsetto be used by the resultant loader.- Returns:
- The zone offset
-
setArrayPadding
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
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
- Specified by:
buildin classorg.spongepowered.configurate.loader.AbstractConfigurationLoader.Builder<TOMLConfigurationLoader.Builder,TOMLConfigurationLoader>
-