@FunctionalInterface @Environment(value=CLIENT) public static interface TextVisitFactory.CharacterVisitor
| Modifier and Type | Method and Description |
|---|---|
boolean |
onChar(int index,
Style style,
int codePoint)
Visits a single character.
|
boolean onChar(int index,
Style style,
int codePoint)
Multiple surrogate characters are converted into one single codePoint when passed into this method.
index - the current index of the characterstyle - the style of the character, containing formatting and font informationcodePoint - the code point of the charactertrue to continue visiting other characters, or false to terminate the visit