Interface NodeMutateEvent

    • Method Detail

      • 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