Interface TextHandler.WidthRetriever

Enclosing class:
TextHandler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @Environment(CLIENT) public static interface TextHandler.WidthRetriever
A retriever of character width.
Mappings:
Namespace Name
named net/minecraft/client/font/TextHandler$WidthRetriever
intermediary net/minecraft/class_5225$class_5231
official fgt$f
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    getWidth(int codePoint, Style style)
    Returns the width of a character.
  • Method Details

    • getWidth

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