Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buypublic interface Text
| Modifier and Type | Method and Description |
|---|---|
default Text |
append(Text component)
Appends another component to this one, producing a new combined component.
|
default Text |
append(Text other,
boolean withSpace)
Appends another component to this one.
|
static Text |
concat(String first,
Text second) |
static Text |
empty() |
static Text |
join(String delimiter,
Text... components)
Joins an array of
components into a single Text,
inserting the specified delimiter between each element. |
static TextCompound |
plain(List<?> text) |
static Text |
plain(Object text)
Creates a new plain text component with the given text.
|
default Text |
replaceText(String regex,
Object text) |
default Text |
replaceText(String regex,
Text component)
Replaces all substrings of this component's text that match the given regular expression
with the specified replacement component.
|
String |
toPlainText() |
static Text empty()
static Text plain(Object text)
text - the text content of the componentText instance containing the specified plain textstatic TextCompound plain(List<?> text)
static Text join(String delimiter, Text... components)
components into a single Text,
inserting the specified delimiter between each element.
This method preserves the original components' structure and formatting,
so it is compatible with MiniMessage or any other Text-based system.
default Text append(Text component)
component - the component to appendText instance with the appended contentdefault Text append(Text other, boolean withSpace)
other - the component to appendwithSpace - if true, a space will be inserted before appendingdefault Text replaceText(String regex, Text component)
regex - the regular expression to matchcomponent - the component to replace matches withText instance with the replacements applieddefault Text replaceText(String regex, Object text)
String toPlainText()
Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buy