Class StringResolvingMatchedTokenConsumer
java.lang.Object
net.kyori.adventure.text.minimessage.internal.parser.match.MatchedTokenConsumer<String>
net.kyori.adventure.text.minimessage.internal.parser.match.StringResolvingMatchedTokenConsumer
A matched token consumer that produces a string and returns a copy of the string with
PreProcess tags resolved.- Since:
- 4.10.0
-
Field Summary
Fields inherited from class net.kyori.adventure.text.minimessage.internal.parser.match.MatchedTokenConsumer
input -
Constructor Summary
ConstructorsConstructorDescriptionStringResolvingMatchedTokenConsumer(String input, TokenParser.TagProvider tagProvider) Creates a string resolving matched token consumer. -
Method Summary
Methods inherited from class net.kyori.adventure.text.minimessage.internal.parser.match.MatchedTokenConsumer
lastEndIndex
-
Constructor Details
-
StringResolvingMatchedTokenConsumer
Creates a string resolving matched token consumer.- Parameters:
input- the inputtagProvider- the resolver for argument-less tags- Since:
- 4.10.0
-
-
Method Details
-
accept
Description copied from class:MatchedTokenConsumerAccepts a matched token.- Overrides:
acceptin classMatchedTokenConsumer<String>- Parameters:
start- the start of the tokenend- the end of the tokentokenType- the type of the token
-
result
Description copied from class:MatchedTokenConsumerGets the result of this consumer, if any.- Specified by:
resultin classMatchedTokenConsumer<String>- Returns:
- the result
-