Package net.kyori.adventure.text
Interface ComponentIteratorType
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The iterator types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComponentIteratorType
A breadth-first iteration.static final ComponentIteratorType
A depth-first iteration. -
Method Summary
-
Field Details
-
DEPTH_FIRST
A depth-first iteration.- Since:
- 4.9.0
-
BREADTH_FIRST
A breadth-first iteration.- Since:
- 4.9.0
-
-
Method Details
-
populate
void populate(@NotNull @NotNull Component component, @NotNull @NotNull Deque<Component> deque, @NotNull @NotNull Set<ComponentIteratorFlag> flags) Populates a deque with the children of the provided component, based on the iterator type and flags.- Parameters:
component
- the componentdeque
- the dequeflags
- the flags- Since:
- 4.9.0
-