Package org.lushplugins.chatcolorhandler
Class ModernChatColorHandler
java.lang.Object
org.lushplugins.chatcolorhandler.ModernChatColorHandler
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<net.kyori.adventure.text.Component>
translate
(@NotNull Collection<String> strings) Translates a collection of strings to allow for hex colours and placeholdersstatic 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 placeholdersstatic 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 placeholdersstatic 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 placeholdersstatic net.kyori.adventure.text.Component
Translates a string to allow for hex colours and placeholdersstatic net.kyori.adventure.text.Component
Translates a string to allow for hex colours and placeholdersstatic net.kyori.adventure.text.Component
Translates a string to allow for hex colours and placeholdersstatic net.kyori.adventure.text.Component
Translates a string to allow for hex colours and placeholders
-
Method Details
-
translate
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 translatedparsers
- 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 translatedplayer
- 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 convertedplayer
- Player to parse placeholders forparsers
- 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 translatedparsers
- 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 translatedplayer
- 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 translatedplayer
- Player to parse placeholders forparsers
- Parsers which this message will be parsed through
-