接口 TextHandler.WidthRetriever

  • 封闭类:
    TextHandler
    函数接口:
    这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

    @FunctionalInterface
    @Environment(CLIENT)
    public static interface TextHandler.WidthRetriever
    A retriever of character width.
    Mappings:
    Namespace Name
    official duw$f
    intermediary net/minecraft/class_5225$class_5231
    named net/minecraft/client/font/TextHandler$WidthRetriever
    • 方法详细资料

      • getWidth

        float getWidth​(int codePoint,
                       Style style)
        Returns the width of a character.
        参数:
        codePoint - the character's code point
        style - the style of the character, carrying font and formatting information
        Mappings:
        Namespace Name Mixin selector
        official getWidth Lduw$f;getWidth(ILox;)F
        intermediary getWidth Lnet/minecraft/class_5225$class_5231;getWidth(ILnet/minecraft/class_2583;)F
        named getWidth Lnet/minecraft/client/font/TextHandler$WidthRetriever;getWidth(ILnet/minecraft/text/Style;)F