Interface Font

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
BitmapFont, BlankFont, TrueTypeFont, UnicodeTextureFont

@Environment(CLIENT)
public interface Font
extends Closeable
Mappings:
Namespace Name
official dkg
intermediary net/minecraft/class_390
named net/minecraft/client/font/Font
  • Method Summary

    Modifier and Type Method Description
    default void close()  
    default RenderableGlyph getGlyph​(int codePoint)  
    IntSet getProvidedGlyphs()
    Returns the set of code points for which this font can provide glyphs.
  • Method Details

    • close

      default void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Mappings:
      Namespace Name Mixin selector
      official close Ldkg;close()V
      intermediary close Lnet/minecraft/class_390;close()V
      named close Lnet/minecraft/client/font/Font;close()V
    • getGlyph

      @Nullable default RenderableGlyph getGlyph​(int codePoint)
      Mappings:
      Namespace Name Mixin selector
      official a Ldkg;a(I)Ldkh;
      intermediary method_2040 Lnet/minecraft/class_390;method_2040(I)Lnet/minecraft/class_383;
      named getGlyph Lnet/minecraft/client/font/Font;getGlyph(I)Lnet/minecraft/client/font/RenderableGlyph;
    • getProvidedGlyphs

      IntSet getProvidedGlyphs()
      Returns the set of code points for which this font can provide glyphs.
      Returns:
      a set of integer code points.
      Mappings:
      Namespace Name Mixin selector
      official a Ldkg;a()Lit/unimi/dsi/fastutil/ints/IntSet;
      intermediary method_27442 Lnet/minecraft/class_390;method_27442()Lit/unimi/dsi/fastutil/ints/IntSet;
      named getProvidedGlyphs Lnet/minecraft/client/font/Font;getProvidedGlyphs()Lit/unimi/dsi/fastutil/ints/IntSet;