Class UnicodeTextureFont

java.lang.Object
net.minecraft.client.font.UnicodeTextureFont
All Implemented Interfaces:
Closeable, AutoCloseable, Font

@Environment(CLIENT)
public class UnicodeTextureFont
extends Object
implements Font
  • Field Details

  • Constructor Details

    • UnicodeTextureFont

      public UnicodeTextureFont​(ResourceManager resourceManager, byte[] sizes, String template)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Font
    • getImageId

      private Identifier getImageId​(int codePoint)
    • getGlyph

      @Nullable public RenderableGlyph getGlyph​(int codePoint)
      Specified by:
      getGlyph in interface Font
    • getProvidedGlyphs

      public IntSet getProvidedGlyphs()
      Returns the set of code points for which this font can provide glyphs.
      Specified by:
      getProvidedGlyphs in interface Font
      Returns:
      a set of integer code points.
    • getGlyphImage

      @Nullable private NativeImage getGlyphImage​(Identifier glyphId)
    • getStart

      private static int getStart​(byte size)
    • getEnd

      private static int getEnd​(byte size)