Package net.luckperms.api.actionlog
Interface Action
-
- All Superinterfaces:
Comparable<Action>
public interface Action extends Comparable<Action>
Represents a logged action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAction.BuilderBuilds anActioninstancestatic interfaceAction.SourceRepresents the source of an action.static interfaceAction.TargetRepresents the target of an action.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static @NonNull Action.Builderbuilder()Gets aAction.Builder@NonNull StringgetDescription()Returns a string describing the action which took place.@NonNull Action.SourcegetSource()Gets the source of the action.@NonNull Action.TargetgetTarget()Gets the target of the action.@NonNull InstantgetTimestamp()Gets the time when the action occurred.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
builder
static @NonNull Action.Builder builder()
Gets aAction.Builder- Returns:
- a new builder
-
getTimestamp
@NonNull Instant getTimestamp()
Gets the time when the action occurred.- Returns:
- the timestamp
-
getSource
@NonNull Action.Source getSource()
Gets the source of the action.- Returns:
- the source
-
getTarget
@NonNull Action.Target getTarget()
Gets the target of the action.- Returns:
- the target
-
-