Class FontSet

java.lang.Object
net.minecraft.client.gui.font.FontSet
All Implemented Interfaces:
AutoCloseable

public class FontSet extends Object implements AutoCloseable
  • Field Details

    • RANDOM

      private static final RandomSource RANDOM
    • LARGE_FORWARD_ADVANCE

      private static final float LARGE_FORWARD_ADVANCE
      See Also:
    • textureManager

      private final TextureManager textureManager
    • name

      private final ResourceLocation name
    • missingGlyph

      private BakedGlyph missingGlyph
    • whiteGlyph

      private BakedGlyph whiteGlyph
    • providers

      private final List<GlyphProvider> providers
    • glyphs

      private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<BakedGlyph> glyphs
    • glyphInfos

      private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<FontSet.GlyphInfoFilter> glyphInfos
    • glyphsByWidth

      private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<it.unimi.dsi.fastutil.ints.IntList> glyphsByWidth
    • textures

      private final List<FontTexture> textures
  • Constructor Details

  • Method Details

    • reload

      public void reload(List<GlyphProvider> p_95072_)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • closeProviders

      private void closeProviders()
    • closeTextures

      private void closeTextures()
    • hasFishyAdvance

      private static boolean hasFishyAdvance(GlyphInfo p_243323_)
    • computeGlyphInfo

      private FontSet.GlyphInfoFilter computeGlyphInfo(int p_243321_)
    • getGlyphInfo

      public GlyphInfo getGlyphInfo(int p_243235_, boolean p_243251_)
    • computeBakedGlyph

      private BakedGlyph computeBakedGlyph(int p_232565_)
    • getGlyph

      public BakedGlyph getGlyph(int p_95079_)
    • stitch

      private BakedGlyph stitch(SheetGlyphInfo p_232557_)
    • getRandomGlyph

      public BakedGlyph getRandomGlyph(GlyphInfo p_95068_)
    • whiteGlyph

      public BakedGlyph whiteGlyph()