public final class Text extends Object
Components and formatted text strings.| Modifier and Type | Field and Description |
|---|---|
static char |
AMPERSAND_CHAR |
static char |
SECTION_CHAR |
| Modifier and Type | Method and Description |
|---|---|
static String |
colorize(String s) |
static String |
decolorize(String s) |
static net.kyori.text.TextComponent |
fromLegacy(String input) |
static net.kyori.text.TextComponent |
fromLegacy(String input,
char character) |
static String |
joinNewline(Stream<String> strings) |
static String |
joinNewline(String... strings) |
static void |
sendMessage(org.bukkit.command.CommandSender sender,
net.kyori.text.Component message) |
static void |
sendMessage(Iterable<org.bukkit.command.CommandSender> senders,
net.kyori.text.Component message) |
static String |
toLegacy(net.kyori.text.Component component) |
static String |
toLegacy(net.kyori.text.Component component,
char character) |
static String |
translateAlternateColorCodes(char from,
char to,
String textToTranslate) |
public static final char SECTION_CHAR
public static final char AMPERSAND_CHAR
public static net.kyori.text.TextComponent fromLegacy(String input, char character)
public static net.kyori.text.TextComponent fromLegacy(String input)
public static String toLegacy(net.kyori.text.Component component, char character)
public static String toLegacy(net.kyori.text.Component component)
public static void sendMessage(org.bukkit.command.CommandSender sender,
net.kyori.text.Component message)
public static void sendMessage(Iterable<org.bukkit.command.CommandSender> senders, net.kyori.text.Component message)
Copyright © 2022. All rights reserved.