Package net.luckperms.api.actionlog
Interface Action.Builder
- Enclosing interface:
- Action
public static interface Action.Builder
Builds an
Action instance-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates aActioninstance from the builder.description(@NonNull String action) Sets the action of the entry.Sets the actor of the entry.sourceName(@NonNull String actorName) Sets the actor name of the entry.Sets the acted object for the entry.targetName(@NonNull String actedName) Sets the acted name for the entry.Sets the type of the entry.Sets the timestamp of the entry.
-
Method Details
-
timestamp
Sets the timestamp of the entry.- Parameters:
timestamp- the timestamp- Returns:
- the builder
- See Also:
-
source
Sets the actor of the entry.- Parameters:
actor- the actor- Returns:
- the builder
-
sourceName
Sets the actor name of the entry.- Parameters:
actorName- the actor name- Returns:
- the builder
-
targetType
Sets the type of the entry.- Parameters:
type- the type- Returns:
- the builder
-
target
Sets the acted object for the entry.- Parameters:
acted- the acted object- Returns:
- the builder
-
targetName
Sets the acted name for the entry.- Parameters:
actedName- the acted name- Returns:
- the builder
-
description
Sets the action of the entry.- Parameters:
action- the action- Returns:
- the builder
-
build
Creates aActioninstance from the builder.- Returns:
- a new log entry instance
-