Class PlotCommentContainer

java.lang.Object
com.plotsquared.core.plot.PlotCommentContainer

public final class PlotCommentContainer extends Object
Container for Plot comments
  • Method Details

    • removeComment

      public boolean removeComment(@NonNull PlotComment comment)
      Remove a comment from the plot
      Parameters:
      comment - Comment to remove
      Returns:
      true if the comment was removed, false if not
    • removeComments

      public void removeComments(@NonNull List<PlotComment> comments)
      Remove a list of comments from the plot
      Parameters:
      comments - Comments to remove
    • getComments

      public @NonNull List<PlotComment> getComments(@NonNull String inbox)
      Get all comments in a specific inbox
      Parameters:
      inbox - Inbox
      Returns:
      List of comments
    • addComment

      public void addComment(@NonNull PlotComment comment)
      Add a comment to the plot
      Parameters:
      comment - Comment to add
    • setComments

      public void setComments(@NonNull List<PlotComment> list)
      Set the plot comments
      Parameters:
      list - New comments