Uses of Interface
net.kyori.adventure.text.TextReplacementConfig.Builder
Packages that use TextReplacementConfig.Builder
Package
Description
Data for controlling components, their styles, and events.
-
Uses of TextReplacementConfig.Builder in net.kyori.adventure.text
Methods in net.kyori.adventure.text that return TextReplacementConfig.BuilderModifier and TypeMethodDescriptionTextReplacementConfig.builder()Create a new builder.TextReplacementConfig.Builder.condition(TextReplacementConfig.Condition condition) Set the function to determine how an individual match should be processed.default TextReplacementConfig.BuilderTextReplacementConfig.Builder.condition(IntFunction2<PatternReplacementResult> condition) Set the function to determine how an individual match should be processed.default TextReplacementConfig.BuilderCompile the provided input as aPatternand set it as the match to test against.Match the providedPattern.default TextReplacementConfig.BuilderTextReplacementConfig.Builder.matchLiteral(String literal) Set this builder to match only the literal string provided.default TextReplacementConfig.BuilderTextReplacementConfig.Builder.once()Only replace the first occurrence of the matched pattern.TextReplacementConfig.Builder.replaceInsideHoverEvents(boolean replace) Set if the replacement should replace insidehover events.default TextReplacementConfig.BuilderTextReplacementConfig.Builder.replacement(String replacement) Supply a literal replacement for the matched pattern.TextReplacementConfig.Builder.replacement(BiFunction<MatchResult, TextComponent.Builder, @Nullable ComponentLike> replacement) Supply a function that provides replacements for each match, with access to group information.default TextReplacementConfig.BuilderTextReplacementConfig.Builder.replacement(Function<TextComponent.Builder, @Nullable ComponentLike> replacement) Supply a function that provides replacements for each match.default TextReplacementConfig.BuilderTextReplacementConfig.Builder.replacement(@Nullable ComponentLike replacement) Supply a literal replacement for the matched pattern.default TextReplacementConfig.BuilderTextReplacementConfig.Builder.times(int times) Only replace the firsttimesmatches of the pattern.Method parameters in net.kyori.adventure.text with type arguments of type TextReplacementConfig.BuilderModifier and TypeMethodDescriptiondefault ComponentComponent.replaceText(Consumer<TextReplacementConfig.Builder> configurer) Finds and replaces any text with this or childComponents using the configured options.