public interface TextAdapter
Components to Bukkit objects.| Modifier and Type | Method and Description |
|---|---|
static void |
sendActionBar(@NonNull org.bukkit.command.CommandSender viewer,
@NonNull net.kyori.text.Component component)
Sends
component to the given viewer's action bar. |
static void |
sendActionBar(@NonNull java.lang.Iterable<? extends org.bukkit.command.CommandSender> viewers,
@NonNull net.kyori.text.Component component)
Sends
component to the given viewers's action bar. |
static void |
sendComponent(@NonNull org.bukkit.command.CommandSender viewer,
@NonNull net.kyori.text.Component component)
Deprecated.
|
static void |
sendComponent(@NonNull java.lang.Iterable<? extends org.bukkit.command.CommandSender> viewers,
@NonNull net.kyori.text.Component component)
Deprecated.
|
static void |
sendMessage(@NonNull org.bukkit.command.CommandSender viewer,
@NonNull net.kyori.text.Component component)
Sends
component to the given viewer. |
static void |
sendMessage(@NonNull java.lang.Iterable<? extends org.bukkit.command.CommandSender> viewers,
@NonNull net.kyori.text.Component component)
Sends
component to the given viewers. |
static void sendMessage(@NonNull org.bukkit.command.CommandSender viewer,
@NonNull net.kyori.text.Component component)
component to the given viewer.viewer - the viewer to send the component tocomponent - the componentstatic void sendMessage(@NonNull java.lang.Iterable<? extends org.bukkit.command.CommandSender> viewers,
@NonNull net.kyori.text.Component component)
component to the given viewers.viewers - the viewers to send the component tocomponent - the component@Deprecated
static void sendComponent(@NonNull org.bukkit.command.CommandSender viewer,
@NonNull net.kyori.text.Component component)
sendMessage(CommandSender, Component)component to the given viewer.viewer - the viewer to send the component tocomponent - the component@Deprecated
static void sendComponent(@NonNull java.lang.Iterable<? extends org.bukkit.command.CommandSender> viewers,
@NonNull net.kyori.text.Component component)
sendMessage(Iterable, Component)component to the given viewers.viewers - the viewers to send the component tocomponent - the componentstatic void sendActionBar(@NonNull org.bukkit.command.CommandSender viewer,
@NonNull net.kyori.text.Component component)
component to the given viewer's action bar.viewer - the viewer to send the component tocomponent - the componentstatic void sendActionBar(@NonNull java.lang.Iterable<? extends org.bukkit.command.CommandSender> viewers,
@NonNull net.kyori.text.Component component)
component to the given viewers's action bar.viewers - the viewers to send the component tocomponent - the component