Class Color

java.lang.Object
johnsmith.configoverhauled.api.data.Color

public final class Color extends Object
Acts as a type-key for dynamic factory registration and constructor resolution. This class is not instantiable. Color properties process data strictly as primitive integers.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<Integer>
    Serializes primitive integer colors to hexadecimal strings and deserializes valid hexadecimal strings into integers.
    static final int
    The minimum integer boundary representing a valid RGB color (0x00000000).
    static final int
    The maximum integer boundary representing a valid RGB color (0xFFFFFFFF).
    static final com.mojang.serialization.Codec<Integer>
    Serializes primitive integer colors to hexadecimal strings and deserializes valid hexadecimal strings into integers.
    static final int
    The minimum integer boundary representing a valid RGB color (0x00000000).
    static final int
    The maximum integer boundary representing a valid RGB color (0x00FFFFFF).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • RGB_LOWER_BOUND

      public static final int RGB_LOWER_BOUND
      The minimum integer boundary representing a valid RGB color (0x00000000).
      See Also:
    • RGB_UPPER_BOUND

      public static final int RGB_UPPER_BOUND
      The maximum integer boundary representing a valid RGB color (0x00FFFFFF).
      See Also:
    • ARGB_LOWER_BOUND

      public static final int ARGB_LOWER_BOUND
      The minimum integer boundary representing a valid RGB color (0x00000000).
      See Also:
    • ARGB_UPPER_BOUND

      public static final int ARGB_UPPER_BOUND
      The maximum integer boundary representing a valid RGB color (0xFFFFFFFF).
      See Also:
    • RGB_CODEC

      public static final com.mojang.serialization.Codec<Integer> RGB_CODEC
      Serializes primitive integer colors to hexadecimal strings and deserializes valid hexadecimal strings into integers.
    • ARGB_CODEC

      public static final com.mojang.serialization.Codec<Integer> ARGB_CODEC
      Serializes primitive integer colors to hexadecimal strings and deserializes valid hexadecimal strings into integers.
  • Constructor Details

    • Color

      public Color()