接口 TextHandler.WidthRetriever
-
- 封闭类:
- TextHandler
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface @Environment(CLIENT) public static interface TextHandler.WidthRetriever
A retriever of character width.- Mappings:
Namespace Name official duw$fintermediary net/minecraft/class_5225$class_5231named net/minecraft/client/font/TextHandler$WidthRetriever
-
-
方法详细资料
-
getWidth
float getWidth(int codePoint, Style style)Returns the width of a character.- 参数:
codePoint- the character's code pointstyle- the style of the character, carrying font and formatting information- Mappings:
Namespace Name Mixin selector official getWidthLduw$f;getWidth(ILox;)Fintermediary getWidthLnet/minecraft/class_5225$class_5231;getWidth(ILnet/minecraft/class_2583;)Fnamed getWidthLnet/minecraft/client/font/TextHandler$WidthRetriever;getWidth(ILnet/minecraft/text/Style;)F
-
-