Class StandardTags
All built-in types are included in the default tag resolver.
- Since:
- 4.10.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic TagResolverGet a resolver for the "click" tag.static TagResolvercolor()Get a resolver for the "color" tags.static TagResolverGet a resolver for all decoration tags.static TagResolverdecorations(TextDecoration decoration) Get a resolver for a specific text decoration.static TagResolverdefaults()Get a resolver that handles all default standard tags.static TagResolverfont()Get a resolver for the "font" tag.static TagResolverforPreset(MiniMessage.Preset preset) Get a resolver that handles all standard tags for a given preset.static TagResolvergradient()Get a resolver for the "gradient" tag.static TagResolverGet a resolver for the "hover" tag.static TagResolverGet a resolver for the "insert" tag.static TagResolverkeybind()Get a resolver for the "key" tag.static TagResolvernbt()Get a resolver for the "nbt" tag.static TagResolvernewline()Get a resolver for the "newline" tag.static TagResolverpride()Get a resolver for the "pride" tag.static TagResolverrainbow()Get a resolver for the "rainbow" tag.static TagResolverreset()Get a resolver for the "reset" tag.static TagResolverscore()Get a resolver for the "score" tag.static TagResolverselector()Get a resolver for the "selector" tag.static TagResolverGet a resolver for the "head" tag.static TagResolverGet a resolver for the "shadow" tags.static TagResolversprite()Get a resolver for the "sprite" tag.static TagResolverGet a resolver for the "transition" tag.static TagResolverGet a resolver for the "translate" tag.static TagResolverGet a resolver for the "translate_or" tag.
-
Method Details
-
decorations
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
-
sequentialHead
Get a resolver for the "head" tag.This variant of the head tag handles an alternative shorthand way of writing the head tag
<head:name|uuid|texture:[outer_layer]>.- Returns:
- a resolver for the "head" tag.
- Since:
- 4.25.0
- Since Minecraft:
- 1.21.9
-
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
-
sprite
Get a resolver for the "sprite" tag.- Returns:
- a resolver for the "sprite" tag.
- Since:
- 4.25.0
- Since Minecraft:
- 1.21.9
-
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
-
forPreset
Get a resolver that handles all standard tags for a given preset.- Parameters:
preset- the preset- Returns:
- the resolver for built-in tags for a preset
- Since:
- 5.0.0
-