Class HexUtils
java.lang.Object
dev.esophose.playerparticles.util.HexUtils
public final class HexUtils
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHexUtils.AnimatedGradientAllows generation of an animated multi-part gradient with a defined number of stepsstatic classHexUtils.AnimatedRainbowAllows generation of an animated rainbow gradient with a fixed number of stepsstatic classHexUtils.GradientAllows generation of a multi-part gradient with a defined number of stepsstatic classHexUtils.RainbowAllows generation of a rainbow gradient with a fixed number of steps -
Method Summary
Modifier and Type Method Description static java.lang.Stringcolorify(java.lang.String message)Parses gradients, hex colors, and legacy color codesstatic voidsendMessage(org.bukkit.command.CommandSender sender, java.lang.String message)Sends a CommandSender a colored message
-
Method Details
-
sendMessage
public static void sendMessage(org.bukkit.command.CommandSender sender, java.lang.String message)Sends a CommandSender a colored message- Parameters:
sender- The CommandSender to send tomessage- The message to send
-
colorify
public static java.lang.String colorify(java.lang.String message)Parses gradients, hex colors, and legacy color codes- Parameters:
message- The message- Returns:
- A color-replaced message
-