Package com.marcusslover.plus.lib.text
Class ColorUtil
java.lang.Object
com.marcusslover.plus.lib.text.ColorUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Stringstatic @NotNull Stringstatic @NotNull net.md_5.bungee.api.ChatColordyeToChat(@NotNull org.bukkit.DyeColor dye) static @NotNull org.bukkit.ColorgetRGBFromCode(@NotNull String value) Convert color codes and hex codes to Color container (RGB Container)static @NotNull Stringstatic @NotNull org.bukkit.ColorConverts "#FFFFFF" format to a Color object containing RGB valuesstatic @NotNull StringhexTranslation(@NotNull String text) static @NotNull net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerstatic @NotNull net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerstatic @NotNull net.md_5.bungee.api.ChatColormaterialToChat(@NotNull org.bukkit.Material material) static @NotNull org.bukkit.DyeColormaterialToDye(@NotNull org.bukkit.Material material) static @NotNull org.bukkit.Colorminecraft2Rgb(@NotNull String value) Converts ampersand-c format to a Color object containing RGB valuestranslateList(@NotNull List<String> lore)
-
Field Details
-
HEX_TO_BUKKIT
-
HEX_FROM_BUKKIT
-
COLOR_CHAR
public static final char COLOR_CHAR- See Also:
-
-
Method Details
-
hex
-
color
-
color
-
legacySection
@NotNull public static @NotNull net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer legacySection() -
legacyAmpersand
@NotNull public static @NotNull net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer legacyAmpersand() -
hexTranslation
-
getRGBFromCode
Convert color codes and hex codes to Color container (RGB Container)- Parameters:
value- Must match one of these formats "#FFFFFF" or "ampersand-c"- Returns:
- org.bukkit.Color
-
hex2Rgb
Converts "#FFFFFF" format to a Color object containing RGB values- Parameters:
value- Must be in format "#FFFFFF"- Returns:
- org.bukkit.Color
-
minecraft2Rgb
Converts ampersand-c format to a Color object containing RGB values- Parameters:
value- Must be in format "ampersand-0"- Returns:
- org.bukkit.Color
-
dyeToChat
@NotNull public static @NotNull net.md_5.bungee.api.ChatColor dyeToChat(@NotNull @NotNull org.bukkit.DyeColor dye) -
materialToDye
@NotNull public static @NotNull org.bukkit.DyeColor materialToDye(@NotNull @NotNull org.bukkit.Material material) -
materialToChat
@NotNull public static @NotNull net.md_5.bungee.api.ChatColor materialToChat(@NotNull @NotNull org.bukkit.Material material) -
translateList
-