Class Placeholder
java.lang.Object
net.kyori.adventure.text.minimessage.tag.resolver.Placeholder
Tag resolvers producing tags that insert fixed values.
These are effectively placeholders.
- Since:
- 4.10.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic TagResolver.Singlecomponent(String key, ComponentLike value) Creates a replacement that inserts a component.static TagResolver.SingleCreates a placeholder that inserts a MiniMessage string.static TagResolver.Singlestyling(String key, StyleBuilderApplicable... style) Creates a style tag which will modify the style of the component.static TagResolver.SingleCreates a placeholder that inserts a literal string, without attempting to parse any contained tags.
-
Method Details
-
parsed
Creates a placeholder that inserts a MiniMessage string.The inserted string will impact the rest of the parse process.
- Parameters:
key- the keyvalue- the replacement- Returns:
- the placeholder
- Since:
- 4.10.0
-
unparsed
Creates a placeholder that inserts a literal string, without attempting to parse any contained tags.- Parameters:
key- the keyvalue- the replacement- Returns:
- the placeholder
- Since:
- 4.10.0
-
component
Creates a replacement that inserts a component.This replacement is auto-closing, so its style will not influence the style of following components.
- Parameters:
key- the keyvalue- the replacement- Returns:
- the placeholder
- Since:
- 4.10.0
-
styling
Creates a style tag which will modify the style of the component.This style can be used like other styles.
- Parameters:
key- the keystyle- the style- Returns:
- the placeholder
- Since:
- 4.13.0
-