Package net.kyori.adventure.text
Interface TextReplacementConfig
- All Superinterfaces:
- Buildable<TextReplacementConfig,TextReplacementConfig.Builder>,- net.kyori.examination.Examinable
public interface TextReplacementConfig extends Buildable<TextReplacementConfig,TextReplacementConfig.Builder>, net.kyori.examination.Examinable
A configuration for how text can be replaced in a component.
 
The exact structure for a replacement specification is an implementation detail and therefore not exposed.
 Custom implementations of TextReplacementConfig are not supported.
- Since:
- 4.2.0
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceTextReplacementConfig.BuilderA builder for replacement configurations.
- 
Method SummaryModifier and Type Method Description static @NonNull TextReplacementConfig.Builderbuilder()Create a new builder.@NonNull PatternmatchPattern()Get the pattern that will be searched for.
- 
Method Details- 
builderCreate a new builder.- Returns:
- a new builder
- Since:
- 4.2.0
 
- 
matchPattern@NonNull Pattern matchPattern()Get the pattern that will be searched for.- Returns:
- the match pattern
- Since:
- 4.2.0
 
 
-