Package dev.kitteh.factions.util
Class ComponentDispatcher
java.lang.Object
dev.kitteh.factions.util.ComponentDispatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsend(org.bukkit.command.CommandSender commandSender, net.kyori.adventure.text.ComponentLike component) static voidsendActionBar(org.bukkit.entity.Player player, net.kyori.adventure.text.ComponentLike component) static voidsetSenders(BiConsumer<org.bukkit.command.CommandSender, net.kyori.adventure.text.ComponentLike> componentSender, BiConsumer<org.bukkit.entity.Player, net.kyori.adventure.text.ComponentLike> actionBarSender)
-
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)
-