Class YamlConfigurationLoader.Builder
java.lang.Object
org.spongepowered.configurate.loader.AbstractConfigurationLoader.Builder<YamlConfigurationLoader.Builder,YamlConfigurationLoader>
 
org.spongepowered.configurate.yaml.YamlConfigurationLoader.Builder
- Enclosing class:
- YamlConfigurationLoader
public static final class YamlConfigurationLoader.Builder
extends AbstractConfigurationLoader.Builder<YamlConfigurationLoader.Builder,YamlConfigurationLoader> 
Builds a 
YamlConfigurationLoader.
 This builder supports the following options:
- <prefix>.yaml.node-style
- Equivalent to nodeStyle(NodeStyle)
- Since:
- 4.0.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final net.kyori.option.Option<Integer>The indent size (in spaces) to use for documents emitted by the created loader.static final net.kyori.option.Option<NodeStyle>The collection node style to use globally when emitting with this loader.static final net.kyori.option.OptionSchemaA schema of options available to configure the YAML loader.Fields inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoader.BuilderdefaultOptions, HEADER_MODE, headerMode, sink, source
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the loader.intindent()Gets the level of indentation to be used by the resultant loader.indent(int indent) Sets the level of indentation the resultant loader should use.@Nullable NodeStyleGets the node style to be used by the resultant loader.Sets the node style the built loader should use.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 to configure the YAML loader.- Since:
- 4.2.0
 
- 
NODE_STYLEThe collection node style to use globally when emitting with this loader.- Since:
- 4.2.0
- See Also:
 
- 
INDENTThe indent size (in spaces) to use for documents emitted by the created loader.- Since:
- 4.2.0
- See Also:
 
 
- 
- 
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<YamlConfigurationLoader.Builder,- YamlConfigurationLoader> 
- 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
 
- 
nodeStyleSets the node style the built loader should use.- Flow
- the compact, json-like representation.
 Example:{value: [list, of, elements], another: value}
- Block
- expanded, traditional YAML
 Example:value: - list - of - elements another: value
 A nullvalue will tell the loader to pick a value automatically based on the contents of each non-scalar node.- Parameters:
- style- the node style to use
- Returns:
- this builder (for chaining)
- Since:
- 4.0.0
 
- 
nodeStyleGets the node style to be used by the resultant loader.- Returns:
- the node style
- Since:
- 4.0.0
 
- 
buildDescription copied from class:AbstractConfigurationLoader.BuilderBuilds the loader.- Specified by:
- buildin class- AbstractConfigurationLoader.Builder<YamlConfigurationLoader.Builder,- YamlConfigurationLoader> 
- Returns:
- a new loader
 
 
-