Enum Class TextColor

java.lang.Object
java.lang.Enum<TextColor>
com.mrbysco.measurements.config.TextColor
All Implemented Interfaces:
Serializable, Comparable<TextColor>, Constable

public enum TextColor extends Enum<TextColor>
  • Enum Constant Details

    • RANDOM

      public static final TextColor RANDOM
    • XYZRGB

      public static final TextColor XYZRGB
    • WHITE

      public static final TextColor WHITE
    • ORANGE

      public static final TextColor ORANGE
    • MAGENTA

      public static final TextColor MAGENTA
    • LIGHT_BLUE

      public static final TextColor LIGHT_BLUE
    • YELLOW

      public static final TextColor YELLOW
    • LIME

      public static final TextColor LIME
    • PINK

      public static final TextColor PINK
    • GRAY

      public static final TextColor GRAY
    • LIGHT_GRAY

      public static final TextColor LIGHT_GRAY
    • CYAN

      public static final TextColor CYAN
    • PURPLE

      public static final TextColor PURPLE
    • BLUE

      public static final TextColor BLUE
    • BROWN

      public static final TextColor BROWN
    • GREEN

      public static final TextColor GREEN
    • RED

      public static final TextColor RED
    • BLACK

      public static final TextColor BLACK
  • Method Details

    • values

      public static TextColor[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TextColor valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getColor

      public net.minecraft.world.item.DyeColor getColor(Random random, @Nullable net.minecraft.core.Direction.Axis axis)
      Gets the color
      Parameters:
      random - the RandomSource used to generate a random color if RANDOM is selected
      axis - the axis used when XYZRGB is used
      Returns:
      the color