Class TextColor

java.lang.Object
net.minecraft.network.chat.TextColor

public final class TextColor extends Object
  • Field Details

  • Constructor Details

    • TextColor

      private TextColor(int p_131263_, String p_131264_)
    • TextColor

      private TextColor(int p_131261_)
  • Method Details

    • getValue

      public int getValue()
    • serialize

      public String serialize()
    • formatValue

      private String formatValue()
    • equals

      public boolean equals(Object p_131279_)
      Overrides:
      equals in class Object
    • hashCode

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

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

      @Nullable public static TextColor fromLegacyFormat(ChatFormatting p_131271_)
    • fromRgb

      public static TextColor fromRgb(int p_131267_)
    • parseColor

      public static com.mojang.serialization.DataResult<TextColor> parseColor(String p_131269_)