public interface NucleusNoteService
Modifier and Type | Method and Description |
---|---|
boolean |
addNote(org.spongepowered.api.entity.living.player.User user,
org.spongepowered.api.command.CommandSource source,
String note)
Adds a note to a subject.
|
boolean |
clearNotes(org.spongepowered.api.entity.living.player.User user)
Clears all notes from a subject.
|
com.google.common.collect.ImmutableList<Note> |
getNotes(org.spongepowered.api.entity.living.player.User user)
Gets all notes for a specific user
|
boolean |
removeNote(org.spongepowered.api.entity.living.player.User user,
Note note)
Removes a note from a subject.
|
com.google.common.collect.ImmutableList<Note> getNotes(org.spongepowered.api.entity.living.player.User user)
user
- The User
to check.Note
s.boolean addNote(org.spongepowered.api.entity.living.player.User user, org.spongepowered.api.command.CommandSource source, String note)
user
- The User
to add a note to.source
- The CommandSource
that is adding the note.note
- The note to add.true
if the note was added.boolean removeNote(org.spongepowered.api.entity.living.player.User user, Note note)
user
- The User
to remove a note from.note
- The Note
to remove.true
if the note was removed.boolean clearNotes(org.spongepowered.api.entity.living.player.User user)
user
- The User
to remove all notes from.true
if all notes were removed.