Uses of Interface
net.kyori.adventure.text.flattener.ComponentFlattener.Builder
Packages that use ComponentFlattener.Builder
Package
Description
Flatteners to convert component trees into linear strings.
-
Uses of ComponentFlattener.Builder in net.kyori.adventure.text.flattener
Methods in net.kyori.adventure.text.flattener that return ComponentFlattener.BuilderModifier and TypeMethodDescriptionstatic ComponentFlattener.BuilderComponentFlattener.builder()Create a new builder for a flattener.<T extends Component>
ComponentFlattener.BuilderComponentFlattener.Builder.complexMapper(Class<T> type, BiConsumer<T, Consumer<Component>> converter) Register a type of component that needs to be flattened to an intermediate stage.<T extends Component>
ComponentFlattener.BuilderRegister a type of component to be handled.ComponentFlattener.Builder.nestingLimit(@Range(from=1L,to=2147483647L) int limit) Sets the limit of nested flatten calls.ComponentFlattener.toBuilder()Create a new builder with the same configuration as this flattener.ComponentFlattener.Builder.unknownMapper(@Nullable Function<Component, String> converter) Register a handler for unknown component types.