Package com.plotsquared.core.plot
Class PlotCommentContainer
java.lang.Object
com.plotsquared.core.plot.PlotCommentContainer
Container for
Plot
comments-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComment(@NonNull PlotComment comment)
Add a comment to the plot@NonNull List<PlotComment>
getComments(@NonNull String inbox)
Get all comments in a specific inboxboolean
removeComment(@NonNull PlotComment comment)
Remove a comment from the plotvoid
removeComments(@NonNull List<PlotComment> comments)
Remove a list of comments from the plotvoid
setComments(@NonNull List<PlotComment> list)
Set the plot comments
-
Method Details
-
removeComment
Remove a comment from the plot- Parameters:
comment
- Comment to remove- Returns:
true
if the comment was removed,false
if not
-
removeComments
Remove a list of comments from the plot- Parameters:
comments
- Comments to remove
-
getComments
Get all comments in a specific inbox- Parameters:
inbox
- Inbox- Returns:
- List of comments
-
addComment
Add a comment to the plot- Parameters:
comment
- Comment to add
-
setComments
Set the plot comments- Parameters:
list
- New comments
-