Package net.luckperms.api.actionlog
Interface ActionLog
-
public interface ActionLogRepresents the internal LuckPerms log.The returned instance provides a copy of the data at the time of retrieval.
Any changes made to log entries will only apply to this instance of the log. You can add to the log using the
ActionLogger, and then request an updated copy.All methods are thread safe, and return immutable and thread safe collections.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull @Unmodifiable SortedSet<Action>getContent()Gets theActions that make up this log.@NonNull @Unmodifiable SortedSet<Action>getContent(@NonNull UUID actor)Gets the entries in the log performed by the given actor.@NonNull @Unmodifiable SortedSet<Action>getGroupHistory(@NonNull String name)Gets the log content for a given group@NonNull @Unmodifiable SortedSet<Action>getTrackHistory(@NonNull String name)Gets the log content for a given track@NonNull @Unmodifiable SortedSet<Action>getUserHistory(@NonNull UUID uniqueId)Gets the log content for a given user
-
-
-
Method Detail
-
getContent
@NonNull @Unmodifiable SortedSet<Action> getContent()
Gets theActions that make up this log.- Returns:
- the content
-
getContent
@NonNull @Unmodifiable SortedSet<Action> getContent(@NonNull UUID actor)
Gets the entries in the log performed by the given actor.- Parameters:
actor- the uuid of the actor to filter by- Returns:
- the content for the given actor
-
getUserHistory
@NonNull @Unmodifiable SortedSet<Action> getUserHistory(@NonNull UUID uniqueId)
Gets the log content for a given user- Parameters:
uniqueId- the uuid to filter by- Returns:
- all content in this log where the user = uuid
-
getGroupHistory
@NonNull @Unmodifiable SortedSet<Action> getGroupHistory(@NonNull String name)
Gets the log content for a given group- Parameters:
name- the name to filter by- Returns:
- all content in this log where the group = name
-
-