java.lang.Object
com.blamejared.crafttweaker.annotation.processor.document.model.comment.Comment
Direct Known Subclasses:
BoldComment, CodeComment, ItalicsComment, LinkComment, ListComment, ListItemComment, NewlineComment, ParagraphComment, PlaintextComment, RootComment

public class Comment extends Object
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<Comment> CODEC
  • Constructor Details

  • Method Details

    • kind

      public CommentKind kind()
    • isEmpty

      public boolean isEmpty()
    • collapse

      public Optional<Comment> collapse(Comment other)
      Attempts to collapse multiple comments of the same type into a single comment
    • merge

      public Comment merge(Comment other)
      Merges multiple comments into a single comment of the same type, or a list comment if differing types