| Modifier and Type | Interface and Description |
|---|---|
static interface |
TextService.Builder<TString,TCommandSource> |
static interface |
TextService.Pagination<TString,TCommandSource> |
static interface |
TextService.PaginationBuilder<TString,TCommandSource> |
| Modifier and Type | Method and Description |
|---|---|
TextService.Builder<TString,TCommandSource> |
builder() |
TString |
deserialize(java.lang.String text)
Deserializes the provided
String using the
character '&' to determine styles. |
TCommandSource |
getConsole() |
default int |
length(TString text)
Counts the number of characters in the provided
TString
excluding color codes. |
int |
lineCount(TString text)
Counts the number of lines in the provided
TString |
default TString |
of(java.lang.CharSequence... contents)
Create a
TString with the provided contents |
default TString |
of(java.lang.Object... contents)
Create a
TString with the provided contents |
TextService.PaginationBuilder<TString,TCommandSource> |
paginationBuilder() |
void |
send(TString text,
TCommandSource commandSource)
Send the provided
TString to the
provided TCommandSource |
default void |
sendToConsole(TString text)
Send the provided
text to the console |
java.lang.String |
serialize(TString text)
Serializes the provided
String using the
character '&' to serialize styles. |
java.lang.String |
serializePlain(TString text)
Serializes the provided
String and
ignores all styles. |
java.lang.String |
toPlain(java.lang.String text)
Removes all styles codes from the provided
String
using the character '&' to determine styles |
TextService.Builder<TString,TCommandSource> builder()
TextService.Builder instanceTextService.PaginationBuilder<TString,TCommandSource> paginationBuilder()
TextService.PaginationBuilder instancedefault TString of(java.lang.Object... contents)
TString with the provided contentscontents - The contents to add to the resultTStringdefault TString of(java.lang.CharSequence... contents)
TString with the provided contentscontents - The contents to add to the resultTStringvoid send(TString text, TCommandSource commandSource)
TString to the
provided TCommandSourcetext - TString text to sendcommandSource - TCommandSource source to send text todefault void sendToConsole(TString text)
text to the consoletext - TString text to sendTCommandSource getConsole()
TString deserialize(java.lang.String text)
String using the
character '&' to determine styles.text - String text to deserializeTString result of the deserializationjava.lang.String serialize(TString text)
String using the
character '&' to serialize styles.text - TString text to serializeString result of the serializationjava.lang.String serializePlain(TString text)
String and
ignores all styles.text - TString text to serializeString result of the serializationjava.lang.String toPlain(java.lang.String text)
String
using the character '&' to determine styles
For example, "&l&bhello &aworld" becomes "hello world"
text - String text to remove color fromString without any color codesint lineCount(@Nullable
TString text)
TStringtext - TString text to count linesTString.
-1 if null. 0 if empty.default int length(@Nullable
TString text)
TString
excluding color codes.text - TString text to count charactersTString.
-1 if null. 0 if empty.