Package org.spongepowered.configurate
Interface CommentedConfigurationNode
- All Superinterfaces:
- CommentedConfigurationNodeIntermediary<CommentedConfigurationNode>,- ConfigurationNode,- ScopedConfigurationNode<CommentedConfigurationNode>
public interface CommentedConfigurationNode
extends CommentedConfigurationNodeIntermediary<CommentedConfigurationNode>
A configuration node that can have a comment attached to it.
 
All other standard data is supported.
- Since:
- 4.0.0
- 
Field SummaryFields inherited from interface org.spongepowered.configurate.ConfigurationNodeNUMBER_DEF
- 
Method SummaryStatic MethodsModifier and TypeMethodDescriptionfactory()Create a new factory providingCommentedConfigurationNodeinstances.static CommentedConfigurationNoderoot()Create a new empty root node.static CommentedConfigurationNoderoot(ConfigurationOptions options) Create a new empty root node with the provided options.static <E extends Exception>
 CommentedConfigurationNoderoot(ConfigurationOptions options, CheckedConsumer<? super CommentedConfigurationNode, E> action) Create a new root node with the provided options and initializer.static <E extends Exception>
 CommentedConfigurationNoderoot(CheckedConsumer<? super CommentedConfigurationNode, E> action) Create a new root node with the provided initializer.Methods inherited from interface org.spongepowered.configurate.CommentedConfigurationNodeIntermediarycomment, comment, commentIfAbsentMethods inherited from interface org.spongepowered.configurate.ConfigurationNodeempty, get, get, get, 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, isNull, key, options, ownHint, ownHints, path, raw, rawScalar, removeChild, require, require, require, virtual, visit, visit, visit, visitMethods inherited from interface org.spongepowered.configurate.ScopedConfigurationNodeact, appendListNode, childrenList, childrenMap, copy, from, hint, mergeFrom, node, node, parent, raw, self, set, set, set, set, set, setList, setList, toListCollector, toListCollector, toMapCollector, toMapCollector
- 
Method Details- 
factoryCreate a new factory providingCommentedConfigurationNodeinstances.The returned factory will create nodes with default options. - Returns:
- a new factory
- Since:
- 4.0.0
 
- 
rootCreate 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> CommentedConfigurationNode root(CheckedConsumer<? super CommentedConfigurationNode, E> action) throws ECreate a new root node with the provided initializer.This node will use the default optionsA root node is always attached, and has no parent and an empty path. - Type Parameters:
- E- thrown type
- Parameters:
- action- action to be applied to the newly created node
- Returns:
- a new initialized node
- Throws:
- E- when thrown from inner action
- Since:
- 4.0.0
 
- 
rootCreate 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> CommentedConfigurationNode root(ConfigurationOptions options, CheckedConsumer<? super CommentedConfigurationNode, E> action) throws ECreate 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
- action- action to be applied to the newly created node
- Returns:
- a new initialized node
- Throws:
- E- when thrown from inner action
- Since:
- 4.0.0
 
 
-