public interface EnhancedLegacyText
| Modifier and Type | Interface and Description |
|---|---|
static interface |
EnhancedLegacyText.Builder |
| Modifier and Type | Method and Description |
|---|---|
EnhancedComponentBuilder |
buildComponent(java.lang.String input)
Creates a new
EnhancedComponentBuilder for creating a new component. |
static EnhancedLegacyText.Builder |
builder()
Creates a new
EnhancedLegacyText EnhancedLegacyText.Builder. |
static EnhancedLegacyText |
get()
Gets the all default
EnhancedLegacyText instance. |
default net.kyori.adventure.text.Component |
parse(java.lang.String input)
Parses the input text into a
Component without replacements. |
@NotNull net.kyori.adventure.text.Component |
parse(@NotNull java.lang.String input,
@NotNull java.util.List<Pair<java.util.regex.Pattern,java.util.function.Function<java.util.regex.Matcher,java.lang.Object>>> replacements,
@NotNull RecursiveReplacement recursiveReplacement)
Parses the input text and replacements into a
Component. |
static EnhancedLegacyText get()
EnhancedLegacyText instance.EnhancedLegacyTextstatic EnhancedLegacyText.Builder builder()
EnhancedLegacyText EnhancedLegacyText.Builder.EnhancedLegacyText.BuilderEnhancedComponentBuilder buildComponent(java.lang.String input)
EnhancedComponentBuilder for creating a new component.input - the input textEnhancedComponentBuilder with the input textdefault net.kyori.adventure.text.Component parse(java.lang.String input)
Component without replacements.input - the input textComponent parsed from the input@NotNull
@NotNull net.kyori.adventure.text.Component parse(@NotNull
@NotNull java.lang.String input,
@NotNull
@NotNull java.util.List<Pair<java.util.regex.Pattern,java.util.function.Function<java.util.regex.Matcher,java.lang.Object>>> replacements,
@NotNull
@NotNull RecursiveReplacement recursiveReplacement)
Component.input - the input textreplacements - the replacementsrecursiveReplacement - the recursive replacement policyComponent parsed from the input and replacements