Class FontSet

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

public class FontSet extends Object implements AutoCloseable
  • Field Details

    • SPACE_GLYPH

      private static final EmptyGlyph SPACE_GLYPH
    • SPACE_INFO

      private static final GlyphInfo SPACE_INFO
    • ZERO_WIDTH_NO_JOIN_INFO

      private static final GlyphInfo ZERO_WIDTH_NO_JOIN_INFO
    • ZERO_WIDTH_NO_JOIN_CODEPOINT

      private static final int ZERO_WIDTH_NO_JOIN_CODEPOINT
      See Also:
    • RANDOM

      private static final Random RANDOM
    • 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<GlyphInfo> 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()
    • getGlyphInfoForSpace

      @Nullable private GlyphInfo getGlyphInfoForSpace(int p_202362_)
    • getGlyphInfo

      public GlyphInfo getGlyphInfo(int p_95066_)
    • getRaw

      private RawGlyph getRaw(int p_95082_)
    • getGlyph

      public BakedGlyph getGlyph(int p_95079_)
    • stitch

      private BakedGlyph stitch(RawGlyph p_95070_)
    • getRandomGlyph

      public BakedGlyph getRandomGlyph(GlyphInfo p_95068_)
    • whiteGlyph

      public BakedGlyph whiteGlyph()