Enum Formatting

java.lang.Object
java.lang.Enum<Formatting>
net.minecraft.util.Formatting
All Implemented Interfaces:
Serializable, Comparable<Formatting>, java.lang.constant.Constable

public enum Formatting
extends Enum<Formatting>
Mappings:
Namespace Name
official k
intermediary net/minecraft/class_124
named net/minecraft/util/Formatting
  • Enum Constant Details

    • BLACK

      public static final Formatting BLACK
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a:Lk;
      intermediary field_1074 Lnet/minecraft/class_124;field_1074:Lnet/minecraft/class_124;
      named BLACK Lnet/minecraft/util/Formatting;BLACK:Lnet/minecraft/util/Formatting;
    • DARK_BLUE

      public static final Formatting DARK_BLUE
      Mappings:
      Namespace Name Mixin selector
      official b Lk;b:Lk;
      intermediary field_1058 Lnet/minecraft/class_124;field_1058:Lnet/minecraft/class_124;
      named DARK_BLUE Lnet/minecraft/util/Formatting;DARK_BLUE:Lnet/minecraft/util/Formatting;
    • DARK_GREEN

      public static final Formatting DARK_GREEN
      Mappings:
      Namespace Name Mixin selector
      official c Lk;c:Lk;
      intermediary field_1077 Lnet/minecraft/class_124;field_1077:Lnet/minecraft/class_124;
      named DARK_GREEN Lnet/minecraft/util/Formatting;DARK_GREEN:Lnet/minecraft/util/Formatting;
    • DARK_AQUA

      public static final Formatting DARK_AQUA
      Mappings:
      Namespace Name Mixin selector
      official d Lk;d:Lk;
      intermediary field_1062 Lnet/minecraft/class_124;field_1062:Lnet/minecraft/class_124;
      named DARK_AQUA Lnet/minecraft/util/Formatting;DARK_AQUA:Lnet/minecraft/util/Formatting;
    • DARK_RED

      public static final Formatting DARK_RED
      Mappings:
      Namespace Name Mixin selector
      official e Lk;e:Lk;
      intermediary field_1079 Lnet/minecraft/class_124;field_1079:Lnet/minecraft/class_124;
      named DARK_RED Lnet/minecraft/util/Formatting;DARK_RED:Lnet/minecraft/util/Formatting;
    • DARK_PURPLE

      public static final Formatting DARK_PURPLE
      Mappings:
      Namespace Name Mixin selector
      official f Lk;f:Lk;
      intermediary field_1064 Lnet/minecraft/class_124;field_1064:Lnet/minecraft/class_124;
      named DARK_PURPLE Lnet/minecraft/util/Formatting;DARK_PURPLE:Lnet/minecraft/util/Formatting;
    • GOLD

      public static final Formatting GOLD
      Mappings:
      Namespace Name Mixin selector
      official g Lk;g:Lk;
      intermediary field_1065 Lnet/minecraft/class_124;field_1065:Lnet/minecraft/class_124;
      named GOLD Lnet/minecraft/util/Formatting;GOLD:Lnet/minecraft/util/Formatting;
    • GRAY

      public static final Formatting GRAY
      Mappings:
      Namespace Name Mixin selector
      official h Lk;h:Lk;
      intermediary field_1080 Lnet/minecraft/class_124;field_1080:Lnet/minecraft/class_124;
      named GRAY Lnet/minecraft/util/Formatting;GRAY:Lnet/minecraft/util/Formatting;
    • DARK_GRAY

      public static final Formatting DARK_GRAY
      Mappings:
      Namespace Name Mixin selector
      official i Lk;i:Lk;
      intermediary field_1063 Lnet/minecraft/class_124;field_1063:Lnet/minecraft/class_124;
      named DARK_GRAY Lnet/minecraft/util/Formatting;DARK_GRAY:Lnet/minecraft/util/Formatting;
    • BLUE

      public static final Formatting BLUE
      Mappings:
      Namespace Name Mixin selector
      official j Lk;j:Lk;
      intermediary field_1078 Lnet/minecraft/class_124;field_1078:Lnet/minecraft/class_124;
      named BLUE Lnet/minecraft/util/Formatting;BLUE:Lnet/minecraft/util/Formatting;
    • GREEN

      public static final Formatting GREEN
      Mappings:
      Namespace Name Mixin selector
      official k Lk;k:Lk;
      intermediary field_1060 Lnet/minecraft/class_124;field_1060:Lnet/minecraft/class_124;
      named GREEN Lnet/minecraft/util/Formatting;GREEN:Lnet/minecraft/util/Formatting;
    • AQUA

      public static final Formatting AQUA
      Mappings:
      Namespace Name Mixin selector
      official l Lk;l:Lk;
      intermediary field_1075 Lnet/minecraft/class_124;field_1075:Lnet/minecraft/class_124;
      named AQUA Lnet/minecraft/util/Formatting;AQUA:Lnet/minecraft/util/Formatting;
    • RED

      public static final Formatting RED
      Mappings:
      Namespace Name Mixin selector
      official m Lk;m:Lk;
      intermediary field_1061 Lnet/minecraft/class_124;field_1061:Lnet/minecraft/class_124;
      named RED Lnet/minecraft/util/Formatting;RED:Lnet/minecraft/util/Formatting;
    • LIGHT_PURPLE

      public static final Formatting LIGHT_PURPLE
      Mappings:
      Namespace Name Mixin selector
      official n Lk;n:Lk;
      intermediary field_1076 Lnet/minecraft/class_124;field_1076:Lnet/minecraft/class_124;
      named LIGHT_PURPLE Lnet/minecraft/util/Formatting;LIGHT_PURPLE:Lnet/minecraft/util/Formatting;
    • YELLOW

      public static final Formatting YELLOW
      Mappings:
      Namespace Name Mixin selector
      official o Lk;o:Lk;
      intermediary field_1054 Lnet/minecraft/class_124;field_1054:Lnet/minecraft/class_124;
      named YELLOW Lnet/minecraft/util/Formatting;YELLOW:Lnet/minecraft/util/Formatting;
    • WHITE

      public static final Formatting WHITE
      Mappings:
      Namespace Name Mixin selector
      official p Lk;p:Lk;
      intermediary field_1068 Lnet/minecraft/class_124;field_1068:Lnet/minecraft/class_124;
      named WHITE Lnet/minecraft/util/Formatting;WHITE:Lnet/minecraft/util/Formatting;
    • OBFUSCATED

      public static final Formatting OBFUSCATED
      Mappings:
      Namespace Name Mixin selector
      official q Lk;q:Lk;
      intermediary field_1051 Lnet/minecraft/class_124;field_1051:Lnet/minecraft/class_124;
      named OBFUSCATED Lnet/minecraft/util/Formatting;OBFUSCATED:Lnet/minecraft/util/Formatting;
    • BOLD

      public static final Formatting BOLD
      Mappings:
      Namespace Name Mixin selector
      official r Lk;r:Lk;
      intermediary field_1067 Lnet/minecraft/class_124;field_1067:Lnet/minecraft/class_124;
      named BOLD Lnet/minecraft/util/Formatting;BOLD:Lnet/minecraft/util/Formatting;
    • STRIKETHROUGH

      public static final Formatting STRIKETHROUGH
      Mappings:
      Namespace Name Mixin selector
      official s Lk;s:Lk;
      intermediary field_1055 Lnet/minecraft/class_124;field_1055:Lnet/minecraft/class_124;
      named STRIKETHROUGH Lnet/minecraft/util/Formatting;STRIKETHROUGH:Lnet/minecraft/util/Formatting;
    • UNDERLINE

      public static final Formatting UNDERLINE
      Mappings:
      Namespace Name Mixin selector
      official t Lk;t:Lk;
      intermediary field_1073 Lnet/minecraft/class_124;field_1073:Lnet/minecraft/class_124;
      named UNDERLINE Lnet/minecraft/util/Formatting;UNDERLINE:Lnet/minecraft/util/Formatting;
    • ITALIC

      public static final Formatting ITALIC
      Mappings:
      Namespace Name Mixin selector
      official u Lk;u:Lk;
      intermediary field_1056 Lnet/minecraft/class_124;field_1056:Lnet/minecraft/class_124;
      named ITALIC Lnet/minecraft/util/Formatting;ITALIC:Lnet/minecraft/util/Formatting;
    • RESET

      public static final Formatting RESET
      Mappings:
      Namespace Name Mixin selector
      official v Lk;v:Lk;
      intermediary field_1070 Lnet/minecraft/class_124;field_1070:Lnet/minecraft/class_124;
      named RESET Lnet/minecraft/util/Formatting;RESET:Lnet/minecraft/util/Formatting;
  • Field Details

    • BY_NAME

      private static final Map<String,​Formatting> BY_NAME
      Mappings:
      Namespace Name Mixin selector
      official w Lk;w:Ljava/util/Map;
      intermediary field_1052 Lnet/minecraft/class_124;field_1052:Ljava/util/Map;
      named BY_NAME Lnet/minecraft/util/Formatting;BY_NAME:Ljava/util/Map;
    • FORMATTING_CODE_PATTERN

      private static final Pattern FORMATTING_CODE_PATTERN
      Mappings:
      Namespace Name Mixin selector
      official x Lk;x:Ljava/util/regex/Pattern;
      intermediary field_1066 Lnet/minecraft/class_124;field_1066:Ljava/util/regex/Pattern;
      named FORMATTING_CODE_PATTERN Lnet/minecraft/util/Formatting;FORMATTING_CODE_PATTERN:Ljava/util/regex/Pattern;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official y Lk;y:Ljava/lang/String;
      intermediary field_1057 Lnet/minecraft/class_124;field_1057:Ljava/lang/String;
      named name Lnet/minecraft/util/Formatting;name:Ljava/lang/String;
    • code

      private final char code
      Mappings:
      Namespace Name Mixin selector
      official z Lk;z:C
      intermediary field_1059 Lnet/minecraft/class_124;field_1059:C
      named code Lnet/minecraft/util/Formatting;code:C
    • modifier

      private final boolean modifier
      Mappings:
      Namespace Name Mixin selector
      official A Lk;A:Z
      intermediary field_1081 Lnet/minecraft/class_124;field_1081:Z
      named modifier Lnet/minecraft/util/Formatting;modifier:Z
    • stringValue

      private final String stringValue
      Mappings:
      Namespace Name Mixin selector
      official B Lk;B:Ljava/lang/String;
      intermediary field_1069 Lnet/minecraft/class_124;field_1069:Ljava/lang/String;
      named stringValue Lnet/minecraft/util/Formatting;stringValue:Ljava/lang/String;
    • colorIndex

      private final int colorIndex
      Mappings:
      Namespace Name Mixin selector
      official C Lk;C:I
      intermediary field_1071 Lnet/minecraft/class_124;field_1071:I
      named colorIndex Lnet/minecraft/util/Formatting;colorIndex:I
    • colorValue

      @Nullable private final Integer colorValue
      Mappings:
      Namespace Name Mixin selector
      official D Lk;D:Ljava/lang/Integer;
      intermediary field_1053 Lnet/minecraft/class_124;field_1053:Ljava/lang/Integer;
      named colorValue Lnet/minecraft/util/Formatting;colorValue:Ljava/lang/Integer;
  • Constructor Details

    • Formatting

      private Formatting​(String name, char code, int colorIndex, Integer colorValue)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lk;<init>(Ljava/lang/String;ILjava/lang/String;CILjava/lang/Integer;)V
      intermediary <init> Lnet/minecraft/class_124;<init>(Ljava/lang/String;ILjava/lang/String;CILjava/lang/Integer;)V
      named <init> Lnet/minecraft/util/Formatting;<init>(Ljava/lang/String;ILjava/lang/String;CILjava/lang/Integer;)V
    • Formatting

      private Formatting​(String name, char code, boolean modifier)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lk;<init>(Ljava/lang/String;ILjava/lang/String;CZ)V
      intermediary <init> Lnet/minecraft/class_124;<init>(Ljava/lang/String;ILjava/lang/String;CZ)V
      named <init> Lnet/minecraft/util/Formatting;<init>(Ljava/lang/String;ILjava/lang/String;CZ)V
    • Formatting

      private Formatting​(String name, char code, boolean modifier, int colorIndex, Integer colorValue)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lk;<init>(Ljava/lang/String;ILjava/lang/String;CZILjava/lang/Integer;)V
      intermediary <init> Lnet/minecraft/class_124;<init>(Ljava/lang/String;ILjava/lang/String;CZILjava/lang/Integer;)V
      named <init> Lnet/minecraft/util/Formatting;<init>(Ljava/lang/String;ILjava/lang/String;CZILjava/lang/Integer;)V
  • Method Details

    • values

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

      public static Formatting valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • sanitize

      private static String sanitize​(String name)
      Mappings:
      Namespace Name Mixin selector
      official c Lk;c(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_535 Lnet/minecraft/class_124;method_535(Ljava/lang/String;)Ljava/lang/String;
      named sanitize Lnet/minecraft/util/Formatting;sanitize(Ljava/lang/String;)Ljava/lang/String;
    • getColorIndex

      public int getColorIndex()
      Mappings:
      Namespace Name Mixin selector
      official b Lk;b()I
      intermediary method_536 Lnet/minecraft/class_124;method_536()I
      named getColorIndex Lnet/minecraft/util/Formatting;getColorIndex()I
    • isModifier

      public boolean isModifier()
      Mappings:
      Namespace Name Mixin selector
      official c Lk;c()Z
      intermediary method_542 Lnet/minecraft/class_124;method_542()Z
      named isModifier Lnet/minecraft/util/Formatting;isModifier()Z
    • isColor

      public boolean isColor()
      Mappings:
      Namespace Name Mixin selector
      official d Lk;d()Z
      intermediary method_543 Lnet/minecraft/class_124;method_543()Z
      named isColor Lnet/minecraft/util/Formatting;isColor()Z
    • getColorValue

      @Nullable public Integer getColorValue()
      Mappings:
      Namespace Name Mixin selector
      official e Lk;e()Ljava/lang/Integer;
      intermediary method_532 Lnet/minecraft/class_124;method_532()Ljava/lang/Integer;
      named getColorValue Lnet/minecraft/util/Formatting;getColorValue()Ljava/lang/Integer;
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official f Lk;f()Ljava/lang/String;
      intermediary method_537 Lnet/minecraft/class_124;method_537()Ljava/lang/String;
      named getName Lnet/minecraft/util/Formatting;getName()Ljava/lang/String;
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Formatting>
      Mappings:
      Namespace Name Mixin selector
      official toString Lk;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_124;toString()Ljava/lang/String;
      named toString Lnet/minecraft/util/Formatting;toString()Ljava/lang/String;
    • strip

      @Nullable public static String strip​(@Nullable String string)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(Ljava/lang/String;)Ljava/lang/String;
      intermediary method_539 Lnet/minecraft/class_124;method_539(Ljava/lang/String;)Ljava/lang/String;
      named strip Lnet/minecraft/util/Formatting;strip(Ljava/lang/String;)Ljava/lang/String;
    • byName

      @Nullable public static Formatting byName​(@Nullable String name)
      Mappings:
      Namespace Name Mixin selector
      official b Lk;b(Ljava/lang/String;)Lk;
      intermediary method_533 Lnet/minecraft/class_124;method_533(Ljava/lang/String;)Lnet/minecraft/class_124;
      named byName Lnet/minecraft/util/Formatting;byName(Ljava/lang/String;)Lnet/minecraft/util/Formatting;
    • byColorIndex

      @Nullable public static Formatting byColorIndex​(int colorIndex)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(I)Lk;
      intermediary method_534 Lnet/minecraft/class_124;method_534(I)Lnet/minecraft/class_124;
      named byColorIndex Lnet/minecraft/util/Formatting;byColorIndex(I)Lnet/minecraft/util/Formatting;
    • byCode

      @Environment(CLIENT) @Nullable public static Formatting byCode​(char code)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(C)Lk;
      intermediary method_544 Lnet/minecraft/class_124;method_544(C)Lnet/minecraft/class_124;
      named byCode Lnet/minecraft/util/Formatting;byCode(C)Lnet/minecraft/util/Formatting;
    • getNames

      public static Collection<String> getNames​(boolean colors, boolean modifiers)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(ZZ)Ljava/util/Collection;
      intermediary method_540 Lnet/minecraft/class_124;method_540(ZZ)Ljava/util/Collection;
      named getNames Lnet/minecraft/util/Formatting;getNames(ZZ)Ljava/util/Collection;