Class StandardTags
java.lang.Object
net.kyori.adventure.text.minimessage.tag.standard.StandardTags
Tag types distributed with MiniMessage.
All built-in types are included in the default tag resolver.
- Since:
- 4.10.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull TagResolverGet a resolver for the "click" tag.static @NotNull TagResolvercolor()Get a resolver for the "color" tags.static @NotNull TagResolverGet a resolver for all decoration tags.static @NotNull TagResolverdecorations(@NotNull TextDecoration decoration) Get a resolver for a specific text decoration.static @NotNull TagResolverdefaults()Get a resolver that handles all default standard tags.static @NotNull TagResolverfont()Get a resolver for the "font" tag.static @NotNull TagResolvergradient()Get a resolver for the "gradient" tag.static @NotNull TagResolverGet a resolver for the "hover" tag.static @NotNull TagResolverGet a resolver for the "insert" tag.static @NotNull TagResolverkeybind()Get a resolver for the "key" tag.static @NotNull TagResolvernbt()Get a resolver for the "nbt" tag.static @NotNull TagResolvernewline()Get a resolver for the "newline" tag.static @NotNull TagResolverpride()Get a resolver for the "pride" tag.static @NotNull TagResolverrainbow()Get a resolver for the "rainbow" tag.static @NotNull TagResolverreset()Get a resolver for the "reset" tag.static @NotNull TagResolverscore()Get a resolver for the "score" tag.static @NotNull TagResolverselector()Get a resolver for the "selector" tag.static @NotNull TagResolverGet a resolver for the "shadow" tags.static TagResolverGet a resolver for the "transition" tag.static @NotNull TagResolverGet a resolver for the "translate" tag.static @NotNull TagResolverGet a resolver for the "translate_or" tag.
-
Method Details
-
decorations
@NotNull public static @NotNull TagResolver decorations(@NotNull @NotNull TextDecoration decoration) Get a resolver for a specific text decoration.This tag supports both the standard names from
TextDecoration.NAMESas well as a few aliases fromDecorationTag.- Parameters:
decoration- the decoration to have a tag for- Returns:
- a resolver for a certain decoration's tags
- Since:
- 4.10.0
-
decorations
Get a resolver for all decoration tags.This tag supports both standard names from
TextDecoration.NAMESas well as a few aliases fromDecorationTag.- Returns:
- a resolver for all decoration tags
- Since:
- 4.10.0
-
color
Get a resolver for the "color" tags.This tag supports both hex string colors as well as named colors.
- Returns:
- a resolver for the "color" tags
- Since:
- 4.10.0
-
hoverEvent
Get a resolver for the "hover" tag.- Returns:
- a resolver for the "hover" tag
- Since:
- 4.10.0
-
clickEvent
Get a resolver for the "click" tag.- Returns:
- a resolver for the "click" tag
- Since:
- 4.10.0
-
keybind
Get a resolver for the "key" tag.- Returns:
- a resolver for the "key" tag
- Since:
- 4.10.0
-
translatable
Get a resolver for the "translate" tag.This tag also responds to "lang" and "tr".
- Returns:
- a resolver for the "translate" tag
- Since:
- 4.10.0
-
translatableFallback
Get a resolver for the "translate_or" tag.This tag also responds to "lang_or" and "tr_or".
- Returns:
- a resolver for the "translate_or" tag
- Since:
- 4.13.0
-
insertion
Get a resolver for the "insert" tag.- Returns:
- a resolver for the "insert" tag
- Since:
- 4.10.0
-
font
Get a resolver for the "font" tag.- Returns:
- a resolver for the "font" tag
- Since:
- 4.10.0
-
gradient
Get a resolver for the "gradient" tag.- Returns:
- a resolver for the "gradient" tag
- Since:
- 4.10.0
-
rainbow
Get a resolver for the "rainbow" tag.- Returns:
- a resolver for the "rainbow" tag
- Since:
- 4.10.0
-
transition
Get a resolver for the "transition" tag.- Returns:
- a resolver for the "transition" tag
- Since:
- 4.10.0
-
reset
Get a resolver for the "reset" tag.- Returns:
- a resolver for the "reset" tag.
- Since:
- 4.10.0
-
newline
Get a resolver for the "newline" tag.This tag also responds to "br".
- Returns:
- a resolver for the "newline" tag.
- Since:
- 4.10.0
-
selector
Get a resolver for the "selector" tag.This tag also responds to "sel".
- Returns:
- a resolver for the "selector" tag
- Since:
- 4.11.0
-
score
Get a resolver for the "score" tag.- Returns:
- a resolver for the "score" tag
- Since:
- 4.13.0
-
nbt
Get a resolver for the "nbt" tag.This tag also responds to "data".
- Returns:
- a resolver for the "nbt" tag.
- Since:
- 4.13.0
-
pride
Get a resolver for the "pride" tag.- Returns:
- a resolver for the "pride" tag
- Since:
- 4.18.0
-
shadowColor
Get a resolver for the "shadow" tags.This tag support both hex string
- Returns:
- a resolver for the "shadow" tags
- Since:
- 4.18.0
-
defaults
Get a resolver that handles all default standard tags.This will currently return all standard tags, but in the future MiniMessage may add tags that are not enabled by default, and which must explicitly be opted-in to.
- Returns:
- the resolver for built-in tags
- Since:
- 4.10.0
-