Interface Inserting

All Superinterfaces:
Tag
All Known Implementing Classes:
TransitionTag

public interface Inserting extends Tag
A tag that inserts a Component into the output.
Since:
4.10.0
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.kyori.adventure.text.minimessage.tag.Tag

    Tag.Argument
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Get whether this tag allows children.
    @NotNull Component
    Returns the component this tag produces.
  • Method Details

    • value

      @NotNull @NotNull Component value()
      Returns the component this tag produces.
      Returns:
      the component this tag produces
      Since:
      4.10.0
    • allowsChildren

      default boolean allowsChildren()
      Get whether this tag allows children.

      If children are not allowed, this tag will be auto-closing, and should not be closed explicitly. In strict mode, a closing tag will be an error. In lenient mode, the closing tag will be interpreted as literal text.

      Returns:
      whether this tag will allow following to become children
      Since:
      4.10.0