Class InboxPublic
java.lang.Object
com.plotsquared.core.plot.comment.CommentInbox
com.plotsquared.core.plot.comment.InboxPublic
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addComment
(Plot plot, PlotComment comment) boolean
getComments
(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
-
InboxPublic
public InboxPublic()
-
-
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:
getComments
in classCommentInbox
- Parameters:
plot
- plotwhenDone
- task to run when comments are obtained- Returns:
- success or not
-
addComment
- Specified by:
addComment
in classCommentInbox
- Parameters:
plot
- plotcomment
- the comment to add- Returns:
- success or not
-
toString
- Specified by:
toString
in classCommentInbox
-