public interface NodeMutateEvent extends LuckPermsEvent
| Modifier and Type | Method and Description |
|---|---|
@NonNull Set<Node> |
getDataAfter()
Gets an immutable copy of the holders data after the change
|
@NonNull Set<Node> |
getDataBefore()
Gets an immutable copy of the holders data before the change
|
@NonNull PermissionHolder |
getTarget()
Gets the target of the event
|
default boolean |
isGroup()
Gets whether the target of this event is a
Group |
default boolean |
isUser()
Gets whether the target of this event is a
User |
getApi, getEventType@NonNull PermissionHolder getTarget()
@NonNull Set<Node> getDataBefore()
@NonNull Set<Node> getDataAfter()
default boolean isUser()
User
This is equivalent to checking if getTarget() instanceof User
default boolean isGroup()
Group
This is equivalent to checking if getTarget() instanceof Group