@FunctionalInterface public interface CharacterVisitor
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(int index,
Style style,
int codePoint)
Visits a single character.
|
@Environment(value=CLIENT)
boolean accept(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