Package ninja.leaping.configurate.hocon
Class HoconConfigurationLoader.Builder
java.lang.Object
ninja.leaping.configurate.loader.AbstractConfigurationLoader.Builder<HoconConfigurationLoader.Builder>
ninja.leaping.configurate.hocon.HoconConfigurationLoader.Builder
- Enclosing class:
- HoconConfigurationLoader
public static class HoconConfigurationLoader.Builder extends AbstractConfigurationLoader.Builder<HoconConfigurationLoader.Builder>
Builds a
HoconConfigurationLoader.-
Field Summary
Fields inherited from class ninja.leaping.configurate.loader.AbstractConfigurationLoader.Builder
defaultOptions, headerMode, sink, source -
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder() -
Method Summary
Modifier and Type Method Description @NonNull HoconConfigurationLoaderbuild()Builds the loader.@NonNull ConfigParseOptionsgetParseOptions()Gets theConfigRenderOptionsto be used by the resultant loader.@NonNull ConfigRenderOptionsgetRenderOptions()Gets theConfigRenderOptionsto be used by the resultant loader.@NonNull HoconConfigurationLoader.BuildersetParseOptions(ConfigParseOptions options)Sets theConfigParseOptionsthe resultant loader should use.@NonNull HoconConfigurationLoader.BuildersetRenderOptions(@NonNull ConfigRenderOptions options)Sets theConfigRenderOptionsthe resultant loader should use.Methods inherited from class ninja.leaping.configurate.loader.AbstractConfigurationLoader.Builder
getDefaultOptions, getHeaderMode, getSink, getSource, preservesHeader, setDefaultOptions, setDefaultOptions, setFile, setHeaderMode, setPath, setPreservesHeader, setSink, setSource, setURL
-
Constructor Details
-
Method Details
-
setRenderOptions
public @NonNull HoconConfigurationLoader.Builder setRenderOptions(@NonNull ConfigRenderOptions options)Sets theConfigRenderOptionsthe resultant loader should use.- Parameters:
options- The render options- Returns:
- This builder (for chaining)
-
getRenderOptions
Gets theConfigRenderOptionsto be used by the resultant loader.- Returns:
- The render options
-
setParseOptions
Sets theConfigParseOptionsthe resultant loader should use.- Parameters:
options- The parse options- Returns:
- This builder (for chaining)
-
getParseOptions
Gets theConfigRenderOptionsto be used by the resultant loader.- Returns:
- The render options
-
build
Description copied from class:AbstractConfigurationLoader.BuilderBuilds the loader.- Specified by:
buildin classAbstractConfigurationLoader.Builder<HoconConfigurationLoader.Builder>- Returns:
- The loader
-