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
official eid
intermediary net/minecraft/class_377
named net/minecraft/client/font/FontStorage
  • Field Details

    • RANDOM

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

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

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

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

      private GlyphRenderer whiteRectangleGlyphRenderer
      Mappings:
      Namespace Name Mixin selector
      official e Leid;e:Leig;
      intermediary field_20910 Lnet/minecraft/class_377;field_20910:Lnet/minecraft/class_382;
      named whiteRectangleGlyphRenderer Lnet/minecraft/client/font/FontStorage;whiteRectangleGlyphRenderer:Lnet/minecraft/client/font/GlyphRenderer;
    • fonts

      private final List<Font> fonts
      Mappings:
      Namespace Name Mixin selector
      official f Leid;f:Ljava/util/List;
      intermediary field_2247 Lnet/minecraft/class_377;field_2247:Ljava/util/List;
      named fonts Lnet/minecraft/client/font/FontStorage;fonts:Ljava/util/List;
    • glyphRendererCache

      private final Int2ObjectMap<GlyphRenderer> glyphRendererCache
      Mappings:
      Namespace Name Mixin selector
      official g Leid;g:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_2253 Lnet/minecraft/class_377;field_2253:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      named glyphRendererCache Lnet/minecraft/client/font/FontStorage;glyphRendererCache:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • glyphCache

      private final Int2ObjectMap<Glyph> glyphCache
      Mappings:
      Namespace Name Mixin selector
      official h Leid;h:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_2257 Lnet/minecraft/class_377;field_2257:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      named glyphCache Lnet/minecraft/client/font/FontStorage;glyphCache:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • charactersByWidth

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

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

    • FontStorage

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

    • setFonts

      public void setFonts(List<Font> fonts)
      Mappings:
      Namespace Name Mixin selector
      official a Leid;a(Ljava/util/List;)V
      intermediary method_2004 Lnet/minecraft/class_377;method_2004(Ljava/util/List;)V
      named setFonts Lnet/minecraft/client/font/FontStorage;setFonts(Ljava/util/List;)V
    • close

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

      private void closeFonts()
      Mappings:
      Namespace Name Mixin selector
      official b Leid;b()V
      intermediary method_24290 Lnet/minecraft/class_377;method_24290()V
      named closeFonts Lnet/minecraft/client/font/FontStorage;closeFonts()V
    • closeGlyphAtlases

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

      private Glyph findGlyph(int codePoint)
      Returns the glyph of codePoint.
      Returns:
      the glyph of codePoint
      API Note:
      Call getGlyph(int) instead, as that method provides caching.
      Mappings:
      Namespace Name Mixin selector
      official c Leid;c(I)Ldxu;
      intermediary method_40038 Lnet/minecraft/class_377;method_40038(I)Lnet/minecraft/class_379;
      named findGlyph Lnet/minecraft/client/font/FontStorage;findGlyph(I)Lnet/minecraft/client/font/Glyph;
    • getGlyph

      public Glyph getGlyph(int codePoint)
      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
      official a Leid;a(I)Ldxu;
      intermediary method_2011 Lnet/minecraft/class_377;method_2011(I)Lnet/minecraft/class_379;
      named getGlyph Lnet/minecraft/client/font/FontStorage;getGlyph(I)Lnet/minecraft/client/font/Glyph;
    • findGlyphRenderer

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

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

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

      public GlyphRenderer getObfuscatedGlyphRenderer(Glyph glyph)
      Mappings:
      Namespace Name Mixin selector
      official a Leid;a(Ldxu;)Leig;
      intermediary method_2013 Lnet/minecraft/class_377;method_2013(Lnet/minecraft/class_379;)Lnet/minecraft/class_382;
      named getObfuscatedGlyphRenderer Lnet/minecraft/client/font/FontStorage;getObfuscatedGlyphRenderer(Lnet/minecraft/client/font/Glyph;)Lnet/minecraft/client/font/GlyphRenderer;
    • getRectangleRenderer

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