Interface Action
- All Known Implementing Classes:
DeleteAction,UpdateAction
public interface Action
Represents an action to be applied to a given node.
-
Method Summary
Modifier and TypeMethodDescriptionvoidappendSql(PreparedStatementBuilder builder) Gets this action in SQL form.net.luckperms.api.node.Nodeapply(net.luckperms.api.node.Node from) Applies this action to the given NodeModel, and returns the result.getName()Gets the name of this action
-
Method Details
-
getName
String getName()Gets the name of this action- Returns:
- the name of the action
-
apply
net.luckperms.api.node.Node apply(net.luckperms.api.node.Node from) Applies this action to the given NodeModel, and returns the result.- Parameters:
from- the node to base changes from- Returns:
- the new nodemodel instance, or null if the node should be deleted.
-
appendSql
Gets this action in SQL form. Will include a placeholder for the table, as "{table}".- Parameters:
builder- the statement builder
-