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 class
HexUtils.AnimatedGradient
Allows generation of an animated multi-part gradient with a defined number of stepsstatic class
HexUtils.AnimatedRainbow
Allows generation of an animated rainbow gradient with a fixed number of stepsstatic class
HexUtils.Gradient
Allows generation of a multi-part gradient with a defined number of stepsstatic class
HexUtils.Rainbow
Allows generation of a rainbow gradient with a fixed number of steps -
Method Summary
Modifier and Type Method Description static java.lang.String
colorify(java.lang.String message)
Parses gradients, hex colors, and legacy color codesstatic void
sendMessage(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
-