public @NotNull Tag tag() {
    return Objects.requireNonNull(this.tag, "no tag set");
  }
Gets the tag attached to this tag node.

@return the tag for this tag node
@since 4.10.0
text-minimessage/src/main/java/net/kyori/adventure/text/minimessage/internal/parser/node/TagNode.java