Package org.spongepowered.configurate
Interface BasicConfigurationNode
- 
- All Superinterfaces:
- ConfigurationNode,- ScopedConfigurationNode<BasicConfigurationNode>
 
 public interface BasicConfigurationNode extends ScopedConfigurationNode<BasicConfigurationNode> A standard configuration node, without any additional options.- Since:
- 4.0.0
 
- 
- 
Field Summary- 
Fields inherited from interface org.spongepowered.configurate.ConfigurationNodeNUMBER_DEF
 
- 
 - 
Method SummaryStatic Methods Modifier and Type Method Description static ConfigurationNodeFactory<BasicConfigurationNode>factory()Create a new factory providingBasicConfigurationNodeinstances.static BasicConfigurationNoderoot()Create a new empty root node.static BasicConfigurationNoderoot(ConfigurationOptions options)Create a new empty root node with the provided options.static <E extends Exception>
 BasicConfigurationNoderoot(ConfigurationOptions options, CheckedConsumer<? super BasicConfigurationNode,E> maker)Create a new root node with the provided options and initializer.static <E extends Exception>
 BasicConfigurationNoderoot(CheckedConsumer<? super BasicConfigurationNode,E> maker)Create a new root node with the provided initializer which may throw.- 
Methods inherited from interface org.spongepowered.configurate.ConfigurationNodeempty, get, get, get, get, get, get, get, get, get, getBoolean, getBoolean, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getList, getList, getList, getList, getList, getList, getLong, getLong, getString, getString, hasChild, hasChild, hint, isList, isMap, key, options, ownHint, ownHints, path, raw, rawScalar, removeChild, virtual, visit, visit, visit, visit
 - 
Methods inherited from interface org.spongepowered.configurate.ScopedConfigurationNodeact, appendListNode, childrenList, childrenMap, copy, from, hint, mergeFrom, node, node, parent, raw, self, set, set, set, set, setList, setList, toListCollector, toListCollector, toMapCollector, toMapCollector
 
- 
 
- 
- 
- 
Method Detail- 
factorystatic ConfigurationNodeFactory<BasicConfigurationNode> factory() Create a new factory providingBasicConfigurationNodeinstances.The returned factory will create nodes with default options. - Returns:
- a new factory
- Since:
- 4.0.0
 
 - 
rootstatic BasicConfigurationNode root() Create a new empty root node.This node will use the default optionsA root node is always attached, and has no parent and an empty path. - Returns:
- a new empty node
- Since:
- 4.0.0
 
 - 
rootstatic <E extends Exception> BasicConfigurationNode root(CheckedConsumer<? super BasicConfigurationNode,E> maker) throws E extends Exception Create a new root node with the provided initializer which may throw.This node will use the default optionsA root node is always attached, and has no parent and an empty path. - Type Parameters:
- E- error type thrown
- Parameters:
- maker- action to be applied to the newly created node
- Returns:
- a new initialized node
- Throws:
- E- when thrown from inner action
- E extends Exception
- Since:
- 4.0.0
 
 - 
rootstatic BasicConfigurationNode root(ConfigurationOptions options) Create a new empty root node with the provided options.A root node is always attached, and has no parent and an empty path. - Parameters:
- options- options to apply.
- Returns:
- a new empty node
- Since:
- 4.0.0
 
 - 
rootstatic <E extends Exception> BasicConfigurationNode root(ConfigurationOptions options, CheckedConsumer<? super BasicConfigurationNode,E> maker) throws E extends Exception Create a new root node with the provided options and initializer.A root node is always attached, and has no parent and an empty path. - Type Parameters:
- E- thrown type
- Parameters:
- options- options to apply.
- maker- action to be applied to the newly created node
- Returns:
- a new initialized node
- Throws:
- E- when thrown from inner action
- E extends Exception
- Since:
- 4.0.0
 
 
- 
 
-