Class UpdateAction

java.lang.Object
me.lucko.luckperms.common.bulkupdate.action.UpdateAction
All Implemented Interfaces:
BulkUpdateAction

public class UpdateAction extends Object implements BulkUpdateAction
  • Method Details

    • of

      public static UpdateAction of(BulkUpdateField field, String value)
    • getName

      public String getName()
      Description copied from interface: BulkUpdateAction
      Gets the name of this action
      Specified by:
      getName in interface BulkUpdateAction
      Returns:
      the name of the action
    • getField

      public BulkUpdateField getField()
    • getNewValue

      public String getNewValue()
    • apply

      public net.luckperms.api.node.Node apply(net.luckperms.api.node.Node from)
      Description copied from interface: BulkUpdateAction
      Applies this action to the given NodeModel, and returns the result.
      Specified by:
      apply in interface BulkUpdateAction
      Parameters:
      from - the node to base changes from
      Returns:
      the new node instance, or null if the node should be deleted.