2022-10-26 04:44:19 -04:00
|
|
|
CLASS net/minecraft/class_5223 net/minecraft/text/TextVisitFactory
|
2020-04-25 20:29:03 -04:00
|
|
|
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;
|
2021-11-09 11:55:55 -05:00
|
|
|
FIELD field_29861 REPLACEMENT_CHARACTER C
|
|
|
|
METHOD method_27470 (Lnet/minecraft/class_5224;Lnet/minecraft/class_2583;Ljava/lang/String;)Ljava/util/Optional;
|
|
|
|
ARG 1 style
|
|
|
|
ARG 2 string
|
2020-04-25 20:29:03 -04:00
|
|
|
METHOD method_27471 validateSurrogates (Ljava/lang/String;)Ljava/lang/String;
|
2021-06-07 09:40:13 -04:00
|
|
|
COMMENT {@return a new string that has all surrogate characters within}
|
|
|
|
COMMENT The characters are validated from an original string {@code text}.
|
2020-04-25 20:29:03 -04:00
|
|
|
ARG 0 text
|
|
|
|
COMMENT the original string
|
2020-07-22 12:29:24 -04:00
|
|
|
METHOD method_27472 visitFormatted (Ljava/lang/String;ILnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT Visits the code points of a string, applying the formatting codes within.
|
|
|
|
COMMENT
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT <p>The visit is in forward direction.
|
2020-04-25 20:29:03 -04:00
|
|
|
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
|
2020-07-22 12:29:24 -04:00
|
|
|
METHOD method_27473 visitFormatted (Ljava/lang/String;ILnet/minecraft/class_2583;Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT Visits the code points of a string, applying the formatting codes within.
|
|
|
|
COMMENT
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT <p>The visit is in forward direction.
|
2020-04-25 20:29:03 -04:00
|
|
|
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
|
2020-07-22 12:29:24 -04:00
|
|
|
METHOD method_27474 visitForwards (Ljava/lang/String;Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z
|
2020-04-25 20:29:03 -04:00
|
|
|
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
|
2021-11-09 11:55:55 -05:00
|
|
|
METHOD method_27475 (Ljava/lang/StringBuilder;ILnet/minecraft/class_2583;I)Z
|
|
|
|
ARG 1 index
|
|
|
|
ARG 2 style
|
|
|
|
ARG 3 codePoint
|
2020-07-22 12:29:24 -04:00
|
|
|
METHOD method_27476 visitFormatted (Lnet/minecraft/class_5348;Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z
|
2020-06-08 13:24:56 -04:00
|
|
|
COMMENT Visits the code points for every literal string and the formatting codes
|
|
|
|
COMMENT supplied by the renderable.
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT <p>The visit is in forward direction.
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT @return {@code true} if the full string was visited, or {@code false} indicating
|
|
|
|
COMMENT the {@code visitor} terminated half-way
|
2020-11-20 12:31:04 -05:00
|
|
|
COMMENT @see StringVisitable#visit(StringVisitable.StyledVisitor, Style)
|
2020-06-08 13:24:56 -04:00
|
|
|
ARG 0 text
|
2020-04-25 20:29:03 -04:00
|
|
|
ARG 1 style
|
|
|
|
ARG 2 visitor
|
2020-07-22 12:29:24 -04:00
|
|
|
METHOD method_27477 visitRegularCharacter (Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;IC)Z
|
2020-04-25 20:29:03 -04:00
|
|
|
ARG 0 style
|
|
|
|
ARG 1 visitor
|
|
|
|
ARG 2 index
|
|
|
|
ARG 3 c
|
2020-07-22 12:29:24 -04:00
|
|
|
METHOD method_27478 visitBackwards (Ljava/lang/String;Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z
|
2020-04-25 20:29:03 -04:00
|
|
|
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
|
2020-07-22 12:29:24 -04:00
|
|
|
METHOD method_27479 visitFormatted (Ljava/lang/String;Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT Visits the code points of a string, applying the formatting codes within.
|
|
|
|
COMMENT
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT <p>The visit is in forward direction.
|
2020-04-25 20:29:03 -04:00
|
|
|
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
|
2021-11-09 11:55:55 -05:00
|
|
|
METHOD method_31401 (Ljava/lang/StringBuilder;ILnet/minecraft/class_2583;I)Z
|
|
|
|
ARG 1 index
|
|
|
|
ARG 2 style
|
|
|
|
ARG 3 codePoint
|
2020-11-07 07:51:43 -05:00
|
|
|
METHOD method_31402 removeFormattingCodes (Lnet/minecraft/class_5348;)Ljava/lang/String;
|
|
|
|
ARG 0 text
|