Package net.kyori.text.adapter.bukkit
Interface TextAdapter
public interface TextAdapter
An adapter for sending text
Components to Bukkit objects.-
Method Summary
Modifier and Type Method Description static voidsendActionBar(@NonNull java.lang.Iterable<? extends org.bukkit.command.CommandSender> viewers, @NonNull net.kyori.text.Component component)Sendscomponentto the givenviewers's action bar.static voidsendActionBar(@NonNull org.bukkit.command.CommandSender viewer, @NonNull net.kyori.text.Component component)Sendscomponentto the givenviewer's action bar.static voidsendComponent(@NonNull java.lang.Iterable<? extends org.bukkit.command.CommandSender> viewers, @NonNull net.kyori.text.Component component)Deprecated.static voidsendComponent(@NonNull org.bukkit.command.CommandSender viewer, @NonNull net.kyori.text.Component component)Deprecated.static voidsendMessage(@NonNull java.lang.Iterable<? extends org.bukkit.command.CommandSender> viewers, @NonNull net.kyori.text.Component component)Sendscomponentto the givenviewers.static voidsendMessage(@NonNull org.bukkit.command.CommandSender viewer, @NonNull net.kyori.text.Component component)Sendscomponentto the givenviewer.
-
Method Details
-
sendMessage
static void sendMessage(@NonNull org.bukkit.command.CommandSender viewer, @NonNull net.kyori.text.Component component)Sendscomponentto the givenviewer.- Parameters:
viewer- the viewer to send the component tocomponent- the component
-
sendMessage
static void sendMessage(@NonNull java.lang.Iterable<? extends org.bukkit.command.CommandSender> viewers, @NonNull net.kyori.text.Component component)Sendscomponentto the givenviewers.- Parameters:
viewers- the viewers to send the component tocomponent- the component
-
sendComponent
@Deprecated static void sendComponent(@NonNull org.bukkit.command.CommandSender viewer, @NonNull net.kyori.text.Component component)Deprecated.Sendscomponentto the givenviewer.- Parameters:
viewer- the viewer to send the component tocomponent- the component
-
sendComponent
@Deprecated static void sendComponent(@NonNull java.lang.Iterable<? extends org.bukkit.command.CommandSender> viewers, @NonNull net.kyori.text.Component component)Deprecated.Sendscomponentto the givenviewers.- Parameters:
viewers- the viewers to send the component tocomponent- the component
-
sendActionBar
static void sendActionBar(@NonNull org.bukkit.command.CommandSender viewer, @NonNull net.kyori.text.Component component)Sendscomponentto the givenviewer's action bar.- Parameters:
viewer- the viewer to send the component tocomponent- the component
-
sendActionBar
static void sendActionBar(@NonNull java.lang.Iterable<? extends org.bukkit.command.CommandSender> viewers, @NonNull net.kyori.text.Component component)Sendscomponentto the givenviewers's action bar.- Parameters:
viewers- the viewers to send the component tocomponent- the component
-