Class InboxOwner
java.lang.Object
com.plotsquared.core.plot.comment.CommentInbox
com.plotsquared.core.plot.comment.InboxOwner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddComment(Plot plot, PlotComment comment) booleangetComments(Plot plot, RunnableVal<List<PlotComment>> whenDone)
The `whenDone` parameter should be executed when it's done fetching the comments.toString()Methods inherited from class com.plotsquared.core.plot.comment.CommentInbox
canModify, canRead, canWrite, clearInbox, removeComment
-
Constructor Details
-
InboxOwner
public InboxOwner()
-
-
Method Details
-
getComments
Description copied from class:CommentInbox
The `whenDone` parameter should be executed when it's done fetching the comments. The value should be set to List of comments- Specified by:
getCommentsin classCommentInbox- Parameters:
plot- plotwhenDone- task to run when comments are obtained- Returns:
- success or not
-
addComment
- Specified by:
addCommentin classCommentInbox- Parameters:
plot- plotcomment- the comment to add- Returns:
- success or not
-
toString
- Specified by:
toStringin classCommentInbox
-