Interface NodeMutateEvent

All Superinterfaces:
LuckPermsEvent
All Known Subinterfaces:
NodeAddEvent, NodeClearEvent, NodeRemoveEvent

public interface NodeMutateEvent extends LuckPermsEvent
Called when a node is added to/removed from a user/group
  • Method Details

    • getTarget

      Gets the target of the event
      Returns:
      the event target
    • getDataType

      @NonNull DataType getDataType()
      Gets the data type that was mutated.
      Returns:
      the data type
    • getDataBefore

      @NonNull @Unmodifiable Set<Node> getDataBefore()
      Gets an immutable copy of the holders data before the change
      Returns:
      the data before the change
    • getDataAfter

      @NonNull @Unmodifiable Set<Node> getDataAfter()
      Gets an immutable copy of the holders data after the change
      Returns:
      the data after the change
    • isUser

      default boolean isUser()
      Gets whether the target of this event is a User

      This is equivalent to checking if getTarget() instanceof User

      Returns:
      if the event is targeting a user
    • isGroup

      default boolean isGroup()
      Gets whether the target of this event is a Group

      This is equivalent to checking if getTarget() instanceof Group

      Returns:
      if the event is targeting a group