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 steps
    static class  HexUtils.AnimatedRainbow
    Allows generation of an animated rainbow gradient with a fixed number of steps
    static class  HexUtils.Gradient
    Allows generation of a multi-part gradient with a defined number of steps
    static 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 codes
    static void sendMessage​(org.bukkit.command.CommandSender sender, java.lang.String message)
    Sends a CommandSender a colored message

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 to
      message - 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