Class ModernChatColorHandler

java.lang.Object
org.lushplugins.chatcolorhandler.ModernChatColorHandler

public class ModernChatColorHandler extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<net.kyori.adventure.text.Component>
    translate(@NotNull Collection<String> strings)
    Translates a collection of strings to allow for hex colours and placeholders
    static List<net.kyori.adventure.text.Component>
    translate(@NotNull Collection<String> strings, List<Parser> parsers)
    Translates a collection of strings to allow for hex colours and placeholders
    static List<net.kyori.adventure.text.Component>
    translate(@NotNull Collection<String> strings, org.bukkit.entity.Player player)
    Translates a collection of strings to allow for hex colours and placeholders
    static List<net.kyori.adventure.text.Component>
    translate(@NotNull Collection<String> strings, org.bukkit.entity.Player player, List<Parser> parsers)
    Translates a collection of strings to allow for hex colours and placeholders
    static net.kyori.adventure.text.Component
    translate(@Nullable String string)
    Translates a string to allow for hex colours and placeholders
    static net.kyori.adventure.text.Component
    translate(@Nullable String string, @NotNull List<Parser> parsers)
    Translates a string to allow for hex colours and placeholders
    static net.kyori.adventure.text.Component
    translate(@Nullable String string, org.bukkit.entity.Player player)
    Translates a string to allow for hex colours and placeholders
    static net.kyori.adventure.text.Component
    translate(@Nullable String string, org.bukkit.entity.Player player, @NotNull List<Parser> parsers)
    Translates a string to allow for hex colours and placeholders

    Methods inherited from class java.lang.Object

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

    • translate

      public static net.kyori.adventure.text.Component translate(@Nullable @Nullable String string)
      Translates a string to allow for hex colours and placeholders
      Parameters:
      string - String to be translated
    • translate

      public static net.kyori.adventure.text.Component translate(@Nullable @Nullable String string, @NotNull @NotNull List<Parser> parsers)
      Translates a string to allow for hex colours and placeholders
      Parameters:
      string - String to be translated
      parsers - Parsers which this message won't be parsed through
    • translate

      public static net.kyori.adventure.text.Component translate(@Nullable @Nullable String string, org.bukkit.entity.Player player)
      Translates a string to allow for hex colours and placeholders
      Parameters:
      string - String to be translated
      player - Player to parse placeholders for
    • translate

      public static net.kyori.adventure.text.Component translate(@Nullable @Nullable String string, org.bukkit.entity.Player player, @NotNull @NotNull List<Parser> parsers)
      Translates a string to allow for hex colours and placeholders
      Parameters:
      string - String to be converted
      player - Player to parse placeholders for
      parsers - Parsers which this message will be parsed through
    • translate

      public static List<net.kyori.adventure.text.Component> translate(@NotNull @NotNull Collection<String> strings)
      Translates a collection of strings to allow for hex colours and placeholders
      Parameters:
      strings - Strings to be translated
    • translate

      public static List<net.kyori.adventure.text.Component> translate(@NotNull @NotNull Collection<String> strings, List<Parser> parsers)
      Translates a collection of strings to allow for hex colours and placeholders
      Parameters:
      strings - Strings to be translated
      parsers - Parsers which this message will be parsed through
    • translate

      public static List<net.kyori.adventure.text.Component> translate(@NotNull @NotNull Collection<String> strings, org.bukkit.entity.Player player)
      Translates a collection of strings to allow for hex colours and placeholders
      Parameters:
      strings - Strings to be translated
      player - Player to parse placeholders for
    • translate

      public static List<net.kyori.adventure.text.Component> translate(@NotNull @NotNull Collection<String> strings, org.bukkit.entity.Player player, List<Parser> parsers)
      Translates a collection of strings to allow for hex colours and placeholders
      Parameters:
      strings - Strings to be translated
      player - Player to parse placeholders for
      parsers - Parsers which this message will be parsed through