public class MessageBuilder
extends java.lang.Object
| Constructor and Description |
|---|
MessageBuilder(@NotNull java.lang.String mainText) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull MessageBuilder |
append(@NotNull java.lang.String text) |
@NotNull net.md_5.bungee.api.chat.BaseComponent[] |
build() |
@NotNull MessageBuilder |
click(@NotNull java.lang.String command,
boolean instant) |
@NotNull MessageBuilder |
color(@NotNull net.md_5.bungee.api.ChatColor color) |
@NotNull MessageBuilder |
hover(@NotNull java.util.List<java.lang.String> lines) |
@NotNull MessageBuilder |
hover(java.lang.String... lines) |
@NotNull MessageBuilder |
hoverWithColor(@NotNull net.md_5.bungee.api.ChatColor color,
@NotNull java.util.List<java.lang.String> lines) |
@NotNull MessageBuilder |
hoverWithColor(@NotNull net.md_5.bungee.api.ChatColor color,
java.lang.String... lines) |
@NotNull MessageBuilder |
reset() |
static void |
send(@NotNull org.bukkit.command.CommandSender sender,
@NotNull net.md_5.bungee.api.chat.BaseComponent[] components) |
void |
sendTo(@NotNull org.bukkit.command.CommandSender sender) |
@NotNull java.lang.String |
toStringFormat() |
static @NotNull java.lang.String |
toStringFormat(@NotNull net.md_5.bungee.api.chat.BaseComponent[] components) |
public MessageBuilder(@NotNull
@NotNull java.lang.String mainText)
@NotNull
public static @NotNull java.lang.String toStringFormat(@NotNull
@NotNull net.md_5.bungee.api.chat.BaseComponent[] components)
public static void send(@NotNull
@NotNull org.bukkit.command.CommandSender sender,
@NotNull
@NotNull net.md_5.bungee.api.chat.BaseComponent[] components)
@Contract(value="_ -> this") @NotNull public @NotNull MessageBuilder color(@NotNull @NotNull net.md_5.bungee.api.ChatColor color)
@Contract(value="_ -> this") @NotNull public @NotNull MessageBuilder append(@NotNull @NotNull java.lang.String text)
@Contract(value="_ -> this") @NotNull public @NotNull MessageBuilder hover(@NotNull java.lang.String... lines)
@Contract(value="_, _ -> this") @NotNull public @NotNull MessageBuilder hoverWithColor(@NotNull @NotNull net.md_5.bungee.api.ChatColor color, @NotNull java.lang.String... lines)
@Contract(value="_ -> this") @NotNull public @NotNull MessageBuilder hover(@NotNull @NotNull java.util.List<java.lang.String> lines)
@Contract(value="_, _ -> this") @NotNull public @NotNull MessageBuilder hoverWithColor(@NotNull @NotNull net.md_5.bungee.api.ChatColor color, @NotNull @NotNull java.util.List<java.lang.String> lines)
@Contract(value="_, _ -> this") @NotNull public @NotNull MessageBuilder click(@NotNull @NotNull java.lang.String command, boolean instant)
@Contract(value=" -> this") @NotNull public @NotNull MessageBuilder reset()
@NotNull public @NotNull net.md_5.bungee.api.chat.BaseComponent[] build()
@NotNull public @NotNull java.lang.String toStringFormat()
public void sendTo(@NotNull
@NotNull org.bukkit.command.CommandSender sender)