Package net.luckperms.api.actionlog
Interface Action.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull Actionbuild()Creates aActioninstance from the builder.@NonNull Action.Builderdescription(@NonNull String action)Sets the action of the entry.@NonNull Action.Buildersource(@NonNull UUID actor)Sets the actor of the entry.@NonNull Action.BuildersourceName(@NonNull String actorName)Sets the actor name of the entry.@NonNull Action.Buildertarget(@Nullable UUID acted)Sets the acted object for the entry.@NonNull Action.BuildertargetName(@NonNull String actedName)Sets the acted name for the entry.@NonNull Action.BuildertargetType(Action.Target.Type type)Sets the type of the entry.@NonNull Action.Buildertimestamp(@NonNull Instant timestamp)Sets the timestamp of the entry.
-
-
-
Method Detail
-
timestamp
@NonNull Action.Builder timestamp(@NonNull Instant timestamp)
Sets the timestamp of the entry.- Parameters:
timestamp- the timestamp- Returns:
- the builder
- See Also:
Action.getTimestamp()
-
source
@NonNull Action.Builder source(@NonNull UUID actor)
Sets the actor of the entry.- Parameters:
actor- the actor- Returns:
- the builder
-
sourceName
@NonNull Action.Builder sourceName(@NonNull String actorName)
Sets the actor name of the entry.- Parameters:
actorName- the actor name- Returns:
- the builder
-
targetType
@NonNull Action.Builder targetType(Action.Target.Type type)
Sets the type of the entry.- Parameters:
type- the type- Returns:
- the builder
-
target
@NonNull Action.Builder target(@Nullable UUID acted)
Sets the acted object for the entry.- Parameters:
acted- the acted object- Returns:
- the builder
-
targetName
@NonNull Action.Builder targetName(@NonNull String actedName)
Sets the acted name for the entry.- Parameters:
actedName- the acted name- Returns:
- the builder
-
description
@NonNull Action.Builder description(@NonNull String action)
Sets the action of the entry.- Parameters:
action- the action- Returns:
- the builder
-
-