Class SpaceFont

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

@Environment(CLIENT) public class SpaceFont extends Object implements Font
Mappings:
Namespace Name
named net/minecraft/client/font/SpaceFont
intermediary net/minecraft/class_7166
official eyt
  • Field Details

    • codePointsToGlyphs

      private final Int2ObjectMap<Glyph.EmptyGlyph> codePointsToGlyphs
      Mappings:
      Namespace Name Mixin selector
      named codePointsToGlyphs Lnet/minecraft/client/font/SpaceFont;codePointsToGlyphs:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_37842 Lnet/minecraft/class_7166;field_37842:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      official b Leyt;b:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
  • Constructor Details

    • SpaceFont

      public SpaceFont(Map<Integer,Float> codePointsToAdvances)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/font/SpaceFont;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_7166;<init>(Ljava/util/Map;)V
      official <init> Leyt;<init>(Ljava/util/Map;)V
  • Method Details

    • getGlyph

      @Nullable public @Nullable Glyph getGlyph(int codePoint)
      Specified by:
      getGlyph in interface Font
      Mappings:
      Namespace Name Mixin selector
      named getGlyph Lnet/minecraft/client/font/Font;getGlyph(I)Lnet/minecraft/client/font/Glyph;
      intermediary method_2040 Lnet/minecraft/class_390;method_2040(I)Lnet/minecraft/class_379;
      official a Leyr;a(I)Leyq;
    • getProvidedGlyphs

      public IntSet getProvidedGlyphs()
      Returns the set of code points for which this font can provide glyphs.
      Specified by:
      getProvidedGlyphs in interface Font
      Returns:
      the set of code points for which this font can provide glyphs
      Mappings:
      Namespace Name Mixin selector
      named getProvidedGlyphs Lnet/minecraft/client/font/Font;getProvidedGlyphs()Lit/unimi/dsi/fastutil/ints/IntSet;
      intermediary method_27442 Lnet/minecraft/class_390;method_27442()Lit/unimi/dsi/fastutil/ints/IntSet;
      official a Leyr;a()Lit/unimi/dsi/fastutil/ints/IntSet;