Class FontStorage

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

@Environment(CLIENT) public class FontStorage extends Object implements AutoCloseable
Mappings:
Namespace Name
named net/minecraft/client/font/FontStorage
intermediary net/minecraft/class_377
official fld
  • Field Details

    • RANDOM

      private static final Random RANDOM
      Mappings:
      Namespace Name Mixin selector
      named RANDOM Lnet/minecraft/client/font/FontStorage;RANDOM:Lnet/minecraft/util/math/random/Random;
      intermediary field_2252 Lnet/minecraft/class_377;field_2252:Lnet/minecraft/class_5819;
      official a Lfld;a:Layw;
    • MAX_ADVANCE

      private static final float MAX_ADVANCE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_ADVANCE Lnet/minecraft/client/font/FontStorage;MAX_ADVANCE:F
      intermediary field_39934 Lnet/minecraft/class_377;field_39934:F
      official b Lfld;b:F
    • textureManager

      private final TextureManager textureManager
      Mappings:
      Namespace Name Mixin selector
      named textureManager Lnet/minecraft/client/font/FontStorage;textureManager:Lnet/minecraft/client/texture/TextureManager;
      intermediary field_2248 Lnet/minecraft/class_377;field_2248:Lnet/minecraft/class_1060;
      official c Lfld;c:Lgqm;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/client/font/FontStorage;id:Lnet/minecraft/util/Identifier;
      intermediary field_2246 Lnet/minecraft/class_377;field_2246:Lnet/minecraft/class_2960;
      official d Lfld;d:Lakr;
    • blankGlyphRenderer

      private GlyphRenderer blankGlyphRenderer
      Mappings:
      Namespace Name Mixin selector
      named blankGlyphRenderer Lnet/minecraft/client/font/FontStorage;blankGlyphRenderer:Lnet/minecraft/client/font/GlyphRenderer;
      intermediary field_2256 Lnet/minecraft/class_377;field_2256:Lnet/minecraft/class_382;
      official e Lfld;e:Lflh;
    • whiteRectangleGlyphRenderer

      private GlyphRenderer whiteRectangleGlyphRenderer
      Mappings:
      Namespace Name Mixin selector
      named whiteRectangleGlyphRenderer Lnet/minecraft/client/font/FontStorage;whiteRectangleGlyphRenderer:Lnet/minecraft/client/font/GlyphRenderer;
      intermediary field_20910 Lnet/minecraft/class_377;field_20910:Lnet/minecraft/class_382;
      official f Lfld;f:Lflh;
    • allFonts

      private List<Font.FontFilterPair> allFonts
      Mappings:
      Namespace Name Mixin selector
      named allFonts Lnet/minecraft/client/font/FontStorage;allFonts:Ljava/util/List;
      intermediary field_49120 Lnet/minecraft/class_377;field_49120:Ljava/util/List;
      official g Lfld;g:Ljava/util/List;
    • availableFonts

      private List<Font> availableFonts
      Mappings:
      Namespace Name Mixin selector
      named availableFonts Lnet/minecraft/client/font/FontStorage;availableFonts:Ljava/util/List;
      intermediary field_49121 Lnet/minecraft/class_377;field_49121:Ljava/util/List;
      official h Lfld;h:Ljava/util/List;
    • glyphRendererCache

      private final GlyphContainer<GlyphRenderer> glyphRendererCache
      Mappings:
      Namespace Name Mixin selector
      named glyphRendererCache Lnet/minecraft/client/font/FontStorage;glyphRendererCache:Lnet/minecraft/client/font/GlyphContainer;
      intermediary field_2253 Lnet/minecraft/class_377;field_2253:Lnet/minecraft/class_8532;
      official i Lfld;i:Lfla;
    • glyphCache

      private final GlyphContainer<FontStorage.GlyphPair> glyphCache
      Mappings:
      Namespace Name Mixin selector
      named glyphCache Lnet/minecraft/client/font/FontStorage;glyphCache:Lnet/minecraft/client/font/GlyphContainer;
      intermediary field_2257 Lnet/minecraft/class_377;field_2257:Lnet/minecraft/class_8532;
      official j Lfld;j:Lfla;
    • charactersByWidth

      private final Int2ObjectMap<IntList> charactersByWidth
      Mappings:
      Namespace Name Mixin selector
      named charactersByWidth Lnet/minecraft/client/font/FontStorage;charactersByWidth:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_2249 Lnet/minecraft/class_377;field_2249:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      official k Lfld;k:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • glyphAtlases

      private final List<GlyphAtlasTexture> glyphAtlases
      Mappings:
      Namespace Name Mixin selector
      named glyphAtlases Lnet/minecraft/client/font/FontStorage;glyphAtlases:Ljava/util/List;
      intermediary field_2254 Lnet/minecraft/class_377;field_2254:Ljava/util/List;
      official l Lfld;l:Ljava/util/List;
  • Constructor Details

    • FontStorage

      public FontStorage(TextureManager textureManager, Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/font/FontStorage;<init>(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/util/Identifier;)V
      intermediary <init> Lnet/minecraft/class_377;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_2960;)V
      official <init> Lfld;<init>(Lgqm;Lakr;)V
  • Method Details

    • setFonts

      public void setFonts(List<Font.FontFilterPair> allFonts, Set<FontFilterType> activeFilters)
      Mappings:
      Namespace Name Mixin selector
      named setFonts Lnet/minecraft/client/font/FontStorage;setFonts(Ljava/util/List;Ljava/util/Set;)V
      intermediary method_2004 Lnet/minecraft/class_377;method_2004(Ljava/util/List;Ljava/util/Set;)V
      official a Lfld;a(Ljava/util/List;Ljava/util/Set;)V
    • setActiveFilters

      public void setActiveFilters(Set<FontFilterType> activeFilters)
      Mappings:
      Namespace Name Mixin selector
      named setActiveFilters Lnet/minecraft/client/font/FontStorage;setActiveFilters(Ljava/util/Set;)V
      intermediary method_57036 Lnet/minecraft/class_377;method_57036(Ljava/util/Set;)V
      official a Lfld;a(Ljava/util/Set;)V
    • clear

      private void clear()
      Mappings:
      Namespace Name Mixin selector
      named clear Lnet/minecraft/client/font/FontStorage;clear()V
      intermediary method_57038 Lnet/minecraft/class_377;method_57038()V
      official c Lfld;c()V
    • applyFilters

      private List<Font> applyFilters(List<Font.FontFilterPair> allFonts, Set<FontFilterType> activeFilters)
      Mappings:
      Namespace Name Mixin selector
      named applyFilters Lnet/minecraft/client/font/FontStorage;applyFilters(Ljava/util/List;Ljava/util/Set;)Ljava/util/List;
      intermediary method_57037 Lnet/minecraft/class_377;method_57037(Ljava/util/List;Ljava/util/Set;)Ljava/util/List;
      official b Lfld;b(Ljava/util/List;Ljava/util/Set;)Ljava/util/List;
    • close

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

      private void closeGlyphAtlases()
      Mappings:
      Namespace Name Mixin selector
      named closeGlyphAtlases Lnet/minecraft/client/font/FontStorage;closeGlyphAtlases()V
      intermediary method_2010 Lnet/minecraft/class_377;method_2010()V
      official d Lfld;d()V
    • isAdvanceInvalid

      private static boolean isAdvanceInvalid(Glyph glyph)
      Mappings:
      Namespace Name Mixin selector
      named isAdvanceInvalid Lnet/minecraft/client/font/FontStorage;isAdvanceInvalid(Lnet/minecraft/client/font/Glyph;)Z
      intermediary method_45079 Lnet/minecraft/class_377;method_45079(Lnet/minecraft/class_379;)Z
      official b Lfld;b(Lezl;)Z
    • findGlyph

      private FontStorage.GlyphPair findGlyph(int codePoint)
      Returns the glyph of codePoint.
      Returns:
      the glyph of codePoint
      API Note:
      Call getGlyph(int, boolean) instead, as that method provides caching.
      Mappings:
      Namespace Name Mixin selector
      named findGlyph Lnet/minecraft/client/font/FontStorage;findGlyph(I)Lnet/minecraft/client/font/FontStorage$GlyphPair;
      intermediary method_40038 Lnet/minecraft/class_377;method_40038(I)Lnet/minecraft/class_377$class_7647;
      official b Lfld;b(I)Lfld$a;
    • getGlyph

      public Glyph getGlyph(int codePoint, boolean validateAdvance)
      Returns the glyph of codePoint.
      Returns:
      the glyph of codePoint
      Implementation Note:
      BuiltinEmptyGlyph.MISSING is returned for missing code points.
      Mappings:
      Namespace Name Mixin selector
      named getGlyph Lnet/minecraft/client/font/FontStorage;getGlyph(IZ)Lnet/minecraft/client/font/Glyph;
      intermediary method_2011 Lnet/minecraft/class_377;method_2011(IZ)Lnet/minecraft/class_379;
      official a Lfld;a(IZ)Lezl;
    • findGlyphRenderer

      private GlyphRenderer findGlyphRenderer(int codePoint)
      Mappings:
      Namespace Name Mixin selector
      named findGlyphRenderer Lnet/minecraft/client/font/FontStorage;findGlyphRenderer(I)Lnet/minecraft/client/font/GlyphRenderer;
      intermediary method_41832 Lnet/minecraft/class_377;method_41832(I)Lnet/minecraft/class_382;
      official c Lfld;c(I)Lflh;
    • getGlyphRenderer

      public GlyphRenderer getGlyphRenderer(int codePoint)
      Mappings:
      Namespace Name Mixin selector
      named getGlyphRenderer Lnet/minecraft/client/font/FontStorage;getGlyphRenderer(I)Lnet/minecraft/client/font/GlyphRenderer;
      intermediary method_2014 Lnet/minecraft/class_377;method_2014(I)Lnet/minecraft/class_382;
      official a Lfld;a(I)Lflh;
    • getGlyphRenderer

      private GlyphRenderer getGlyphRenderer(RenderableGlyph c)
      Mappings:
      Namespace Name Mixin selector
      named getGlyphRenderer Lnet/minecraft/client/font/FontStorage;getGlyphRenderer(Lnet/minecraft/client/font/RenderableGlyph;)Lnet/minecraft/client/font/GlyphRenderer;
      intermediary method_2012 Lnet/minecraft/class_377;method_2012(Lnet/minecraft/class_383;)Lnet/minecraft/class_382;
      official a Lfld;a(Lezn;)Lflh;
    • getObfuscatedGlyphRenderer

      public GlyphRenderer getObfuscatedGlyphRenderer(Glyph glyph)
      Mappings:
      Namespace Name Mixin selector
      named getObfuscatedGlyphRenderer Lnet/minecraft/client/font/FontStorage;getObfuscatedGlyphRenderer(Lnet/minecraft/client/font/Glyph;)Lnet/minecraft/client/font/GlyphRenderer;
      intermediary method_2013 Lnet/minecraft/class_377;method_2013(Lnet/minecraft/class_379;)Lnet/minecraft/class_382;
      official a Lfld;a(Lezl;)Lflh;
    • getId

      public Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/client/font/FontStorage;getId()Lnet/minecraft/util/Identifier;
      intermediary method_57034 Lnet/minecraft/class_377;method_57034()Lnet/minecraft/class_2960;
      official a Lfld;a()Lakr;
    • getRectangleRenderer

      public GlyphRenderer getRectangleRenderer()
      Mappings:
      Namespace Name Mixin selector
      named getRectangleRenderer Lnet/minecraft/client/font/FontStorage;getRectangleRenderer()Lnet/minecraft/client/font/GlyphRenderer;
      intermediary method_22943 Lnet/minecraft/class_377;method_22943()Lnet/minecraft/class_382;
      official b Lfld;b()Lflh;