Class Color


  • public final class Color
    extends java.lang.Object
    • Field Detail

      • LEGACY_FORMAT_TO_COLOR

        private static final java.util.Map<TextFormatting,​Color> LEGACY_FORMAT_TO_COLOR
      • NAMED_COLORS

        private static final java.util.Map<java.lang.String,​Color> NAMED_COLORS
      • value

        private final int value
      • name

        @Nullable
        private final java.lang.String name
    • Constructor Detail

      • Color

        private Color​(int p_i232573_1_,
                      java.lang.String p_i232573_2_)
      • Color

        private Color​(int p_i232572_1_)
    • Method Detail

      • getValue

        public int getValue()
      • serialize

        public java.lang.String serialize()
      • formatValue

        private java.lang.String formatValue()
      • equals

        public boolean equals​(java.lang.Object p_equals_1_)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • fromLegacyFormat

        @Nullable
        public static Color fromLegacyFormat​(TextFormatting p_240744_0_)
      • fromRgb

        public static Color fromRgb​(int p_240743_0_)
      • parseColor

        @Nullable
        public static Color parseColor​(java.lang.String p_240745_0_)