You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (IChatComponentsibling : chatComponent.getSiblings()) {
459
-
recursiveTransformChatComponent(sibling, action);
460
+
transformAllChatComponents(sibling, action);
460
461
}
461
462
}
463
+
464
+
/**
465
+
* Recursively searches for a chat component to transform based on a given Predicate.
466
+
*
467
+
* Important to note that this function will stop on the first successful transformation, unlike {@link #transformAllChatComponents(IChatComponent, Consumer)}
468
+
* @param chatComponent root chat component
469
+
* @param action predicate that transforms a component and reports a successful transformation
0 commit comments