All Known Implementing Classes:
DeleteAction, UpdateAction

public interface Action
Represents an action to be applied to a given node.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Gets this action in SQL form.
    net.luckperms.api.node.Node
    apply(net.luckperms.api.node.Node from)
    Applies this action to the given NodeModel, and returns the result.
    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

      void appendSql(PreparedStatementBuilder builder)
      Gets this action in SQL form. Will include a placeholder for the table, as "{table}".
      Parameters:
      builder - the statement builder