Class ComponentDispatcher

java.lang.Object
dev.kitteh.factions.util.ComponentDispatcher

@AvailableSince("4.0.0") @NullMarked public class ComponentDispatcher extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    send(org.bukkit.command.CommandSender commandSender, net.kyori.adventure.text.ComponentLike component)
     
    static void
    sendActionBar(org.bukkit.entity.Player player, net.kyori.adventure.text.ComponentLike component)
     
    static void
    setSenders(BiConsumer<org.bukkit.command.CommandSender,net.kyori.adventure.text.ComponentLike> componentSender, BiConsumer<org.bukkit.entity.Player,net.kyori.adventure.text.ComponentLike> actionBarSender)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ComponentDispatcher

      public ComponentDispatcher()
  • Method Details

    • setSenders

      public static void setSenders(BiConsumer<org.bukkit.command.CommandSender,net.kyori.adventure.text.ComponentLike> componentSender, BiConsumer<org.bukkit.entity.Player,net.kyori.adventure.text.ComponentLike> actionBarSender)
    • send

      public static void send(org.bukkit.command.CommandSender commandSender, net.kyori.adventure.text.ComponentLike component)
    • sendActionBar

      public static void sendActionBar(org.bukkit.entity.Player player, net.kyori.adventure.text.ComponentLike component)