接口 CharacterVisitor
-
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface CharacterVisitor
A visitor for single characters in a string.- Mappings:
Namespace Name official agkintermediary net/minecraft/class_5224named net/minecraft/text/CharacterVisitor
-
-
方法详细资料
-
accept
boolean accept(int index, Style style, int codePoint)Visits a single character.Multiple surrogate characters are converted into one single
codePointwhen 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 character- 返回:
trueto continue visiting other characters, orfalseto terminate the visit- Mappings:
Namespace Name Mixin selector official acceptLagk;accept(ILox;I)Zintermediary acceptLnet/minecraft/class_5224;accept(ILnet/minecraft/class_2583;I)Znamed acceptLnet/minecraft/text/CharacterVisitor;accept(ILnet/minecraft/text/Style;I)Z
-
-