CLASS net/minecraft/class_5223 net/minecraft/client/font/TextVisitFactory COMMENT A utility class for visiting the characters of strings, handling surrogate COMMENT code points and formatting codes. FIELD field_24215 VISIT_TERMINATED Ljava/util/Optional; METHOD method_27471 validateSurrogates (Ljava/lang/String;)Ljava/lang/String; COMMENT {@return a new string that has all surrogate characters within} COMMENT The characters are validated from an original string {@code text}. ARG 0 text COMMENT the original string METHOD method_27472 visitFormatted (Ljava/lang/String;ILnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z COMMENT Visits the code points of a string, applying the formatting codes within. COMMENT COMMENT

The visit is in forward direction. COMMENT COMMENT @return {@code true} if the full string was visited, or {@code false} indicating COMMENT the {@code visitor} terminated half-way ARG 0 text COMMENT the string visited ARG 1 startIndex COMMENT the starting index of the visit ARG 2 style COMMENT the style of the string ARG 3 visitor METHOD method_27473 visitFormatted (Ljava/lang/String;ILnet/minecraft/class_2583;Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z COMMENT Visits the code points of a string, applying the formatting codes within. COMMENT COMMENT

The visit is in forward direction. COMMENT COMMENT @return {@code true} if the full string was visited, or {@code false} indicating COMMENT the {@code visitor} terminated half-way ARG 0 text COMMENT the string visited ARG 1 startIndex COMMENT the starting index of the visit ARG 2 startingStyle COMMENT the style of the string when the visit starts ARG 3 resetStyle COMMENT the style to reset to when a {@code §r} formatting code is encountered ARG 4 visitor COMMENT the visitor METHOD method_27474 visitForwards (Ljava/lang/String;Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z COMMENT Visits the code points of a string in forward (left to right) direction. COMMENT COMMENT @return {@code true} if the full string was visited, or {@code false} indicating COMMENT the {@code visitor} terminated half-way ARG 0 text COMMENT the string ARG 1 style COMMENT the style of the string ARG 2 visitor COMMENT the visitor of characters METHOD method_27476 visitFormatted (Lnet/minecraft/class_5348;Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z COMMENT Visits the code points for every literal string and the formatting codes COMMENT supplied by the renderable. COMMENT COMMENT

The visit is in forward direction. COMMENT COMMENT @return {@code true} if the full string was visited, or {@code false} indicating COMMENT the {@code visitor} terminated half-way COMMENT @see StringVisitable#visit(StringVisitable.StyledVisitor, Style) ARG 0 text ARG 1 style ARG 2 visitor METHOD method_27477 visitRegularCharacter (Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;IC)Z ARG 0 style ARG 1 visitor ARG 2 index ARG 3 c METHOD method_27478 visitBackwards (Ljava/lang/String;Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z COMMENT Visits the code points of a string in backward (right to left) direction. COMMENT COMMENT @return {@code true} if the full string was visited, or {@code false} indicating COMMENT the {@code visitor} terminated half-way ARG 0 text COMMENT the string ARG 1 style COMMENT the style of the string ARG 2 visitor COMMENT the visitor METHOD method_27479 visitFormatted (Ljava/lang/String;Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z COMMENT Visits the code points of a string, applying the formatting codes within. COMMENT COMMENT

The visit is in forward direction. COMMENT COMMENT @return {@code true} if the full string was visited, or {@code false} indicating COMMENT the {@code visitor} terminated half-way ARG 0 text COMMENT the string visited ARG 1 style COMMENT the style of the string ARG 2 visitor COMMENT the visitor METHOD method_31402 removeFormattingCodes (Lnet/minecraft/class_5348;)Ljava/lang/String; ARG 0 text