Class StandardTags
- java.lang.Object
-
- net.kyori.adventure.text.minimessage.tag.standard.StandardTags
-
public final class StandardTags extends Object
Tag types distributed with MiniMessage.All built-in types are included in the default tag resolver.
- Since:
- 4.10.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull TagResolverclickEvent()Get a resolver for the "click" tag.static @NotNull TagResolvercolor()Get a resolver for the "color" tags.static @NotNull TagResolverdecorations()Get 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 TagResolverhoverEvent()Get a resolver for the "hover" tag.static @NotNull TagResolverinsertion()Get a resolver for the "insert" tag.static @NotNull TagResolverkeybind()Get a resolver for the "key" tag.static @NotNull TagResolvernewline()Get a resolver for the "newline" tag.static @NotNull TagResolverrainbow()Get a resolver for the "rainbow" tag.static @NotNull TagResolverreset()Get a resolver for the "reset" tag.static TagResolvertransition()Get a resolver for the "transition" tag.static @NotNull TagResolvertranslatable()Get a resolver for the "translate" tag.
-
-
-
Method Detail
-
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
@NotNull public static @NotNull TagResolver 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
@NotNull public static @NotNull TagResolver 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
@NotNull public static @NotNull TagResolver hoverEvent()
Get a resolver for the "hover" tag.- Returns:
- a resolver for the "hover" tag
- Since:
- 4.10.0
-
clickEvent
@NotNull public static @NotNull TagResolver clickEvent()
Get a resolver for the "click" tag.- Returns:
- a resolver for the "click" tag
- Since:
- 4.10.0
-
keybind
@NotNull public static @NotNull TagResolver keybind()
Get a resolver for the "key" tag.- Returns:
- a resolver for the "key" tag
- Since:
- 4.10.0
-
translatable
@NotNull public static @NotNull TagResolver 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
-
insertion
@NotNull public static @NotNull TagResolver insertion()
Get a resolver for the "insert" tag.- Returns:
- a resolver for the "insert" tag
- Since:
- 4.10.0
-
font
@NotNull public static @NotNull TagResolver font()
Get a resolver for the "font" tag.- Returns:
- a resolver for the "font" tag
- Since:
- 4.10.0
-
gradient
@NotNull public static @NotNull TagResolver gradient()
Get a resolver for the "gradient" tag.- Returns:
- a resolver for the "gradient" tag
- Since:
- 4.10.0
-
rainbow
@NotNull public static @NotNull TagResolver rainbow()
Get a resolver for the "rainbow" tag.- Returns:
- a resolver for the "rainbow" tag
- Since:
- 4.10.0
-
transition
public static TagResolver transition()
Get a resolver for the "transition" tag.- Returns:
- a resolver for the "transition" tag
- Since:
- 4.10.0
-
reset
@NotNull public static @NotNull TagResolver reset()
Get a resolver for the "reset" tag.- Returns:
- a resolver for the "reset" tag.
- Since:
- 4.10.0
-
newline
@NotNull public static @NotNull TagResolver 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
-
defaults
@NotNull public static @NotNull TagResolver 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
-
-