Interface TextAdapter


public interface TextAdapter
An adapter for sending text Components to Bukkit objects.
  • Method Summary

    Modifier and Type Method Description
    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 sendActionBar​(@NonNull org.bukkit.command.CommandSender viewer, @NonNull net.kyori.text.Component component)
    Sends component to the given viewer's action bar.
    static void sendComponent​(@NonNull java.lang.Iterable<? extends org.bukkit.command.CommandSender> viewers, @NonNull net.kyori.text.Component component)
    static void sendComponent​(@NonNull org.bukkit.command.CommandSender viewer, @NonNull net.kyori.text.Component component)
    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)
    Sends component to the given viewer.
  • Method Details

    • sendMessage

      static void sendMessage​(@NonNull org.bukkit.command.CommandSender viewer, @NonNull net.kyori.text.Component component)
      Sends component to the given viewer.
      Parameters:
      viewer - the viewer to send the component to
      component - the component
    • sendMessage

      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.
      Parameters:
      viewers - the viewers to send the component to
      component - the component
    • sendComponent

      @Deprecated static void sendComponent​(@NonNull org.bukkit.command.CommandSender viewer, @NonNull net.kyori.text.Component component)
      Sends component to the given viewer.
      Parameters:
      viewer - the viewer to send the component to
      component - the component
    • sendComponent

      @Deprecated static void sendComponent​(@NonNull java.lang.Iterable<? extends org.bukkit.command.CommandSender> viewers, @NonNull net.kyori.text.Component component)
      Sends component to the given viewers.
      Parameters:
      viewers - the viewers to send the component to
      component - the component
    • sendActionBar

      static void sendActionBar​(@NonNull org.bukkit.command.CommandSender viewer, @NonNull net.kyori.text.Component component)
      Sends component to the given viewer's action bar.
      Parameters:
      viewer - the viewer to send the component to
      component - the component
    • sendActionBar

      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.
      Parameters:
      viewers - the viewers to send the component to
      component - the component