Class ValueNode
java.lang.Object
net.kyori.adventure.text.minimessage.internal.parser.node.ElementNode
net.kyori.adventure.text.minimessage.internal.parser.node.ValueNode
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
TextNode
Represents a node in the tree which has a text value.
- Since:
- 4.10.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildToString(StringBuilder sb, int indent) Serializes this node to a string.token()Returns the token that lead to the creation of this token.value()Returns the value of this text node.Methods inherited from class net.kyori.adventure.text.minimessage.internal.parser.node.ElementNode
addChild, children, parent, sourceMessage, toString, unsafeChildren
-
Method Details
-
value
Returns the value of this text node.- Returns:
- the value
- Since:
- 4.10.0
-
token
Description copied from class:ElementNodeReturns the token that lead to the creation of this token.- Overrides:
tokenin classElementNode- Returns:
- the token
-
buildToString
Description copied from class:ElementNodeSerializes this node to a string.- Overrides:
buildToStringin classElementNode- Parameters:
sb- the string builder to serialize intoindent- the current indent level- Returns:
- the passed string builder, for chaining
-