Package net.minecraft.client.font
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.
-
Method Summary
-
Method Details
-
getWidth
Returns the width of a character.- Parameters:
codePoint
- the character's code pointstyle
- the style of the character, carrying font and formatting information
-