Class GsonConfigurationLoader.Builder
java.lang.Object
org.spongepowered.configurate.loader.AbstractConfigurationLoader.Builder<GsonConfigurationLoader.Builder,GsonConfigurationLoader>
 
org.spongepowered.configurate.gson.GsonConfigurationLoader.Builder
- Enclosing class:
- GsonConfigurationLoader
public static final class GsonConfigurationLoader.Builder
extends AbstractConfigurationLoader.Builder<GsonConfigurationLoader.Builder,GsonConfigurationLoader> 
- Since:
- 4.0.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final net.kyori.option.Option<Integer>The level of indentation to be used by the resulting loader.static final net.kyori.option.Option<Boolean>If the resultant loader should parse leniently.static final net.kyori.option.OptionSchemaA schema of options available on the Gson loader.Fields inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoader.BuilderdefaultOptions, HEADER_MODE, headerMode, sink, source
- 
Method SummaryModifier and TypeMethodDescription@NonNull GsonConfigurationLoaderbuild()Builds the loader.intindent()Gets the level of indentation to be used by the resultant loader.@NonNull GsonConfigurationLoader.Builderindent(int indent) Sets the level of indentation the resultant loader should use.booleanlenient()Gets if the resultant loader should parse leniently.@NonNull GsonConfigurationLoader.Builderlenient(boolean lenient) Sets if the resultant loader should parse leniently.protected net.kyori.option.OptionSchemaGet the schema of available options that can be set on this loader.Methods inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoader.BuilderbuildAndLoadString, buildAndSaveString, defaultOptions, defaultOptions, defaultOptions, editOptions, file, headerMode, headerMode, optionState, optionState, optionStateBuilder, path, sink, sink, source, source, url
- 
Field Details- 
SCHEMAA schema of options available on the Gson loader.- Since:
- 4.2.0
 
- 
INDENTThe level of indentation to be used by the resulting loader.- Since:
- 4.2.0
 
- 
LENIENTIf the resultant loader should parse leniently.- Since:
- 4.2.0
 
 
- 
- 
Method Details- 
optionSchemaDescription copied from class:AbstractConfigurationLoader.BuilderGet the schema of available options that can be set on this loader.This schema should inherit from AbstractConfigurationLoader.Builder.UNSAFE_SCHEMA.- Overrides:
- optionSchemain class- AbstractConfigurationLoader.Builder<GsonConfigurationLoader.Builder,- GsonConfigurationLoader> 
- Returns:
- the option schema
 
- 
indentSets the level of indentation the resultant loader should use.- Parameters:
- indent- the indent level
- Returns:
- this builder (for chaining)
- Since:
- 4.0.0
 
- 
indentGets the level of indentation to be used by the resultant loader.- Returns:
- the indent level
- Since:
- 4.0.0
 
- 
lenientSets if the resultant loader should parse leniently.- Parameters:
- lenient- whether the parser should parse leniently
- Returns:
- this builder (for chaining)
- Since:
- 4.0.0
- See Also:
- 
- JsonReader.setLenient(boolean)
 
 
- 
lenientGets if the resultant loader should parse leniently.- Returns:
- whether the parser should parse leniently
- Since:
- 4.0.0
 
- 
buildDescription copied from class:AbstractConfigurationLoader.BuilderBuilds the loader.- Specified by:
- buildin class- AbstractConfigurationLoader.Builder<GsonConfigurationLoader.Builder,- GsonConfigurationLoader> 
- Returns:
- a new loader
 
 
-