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
official dxy
intermediary net/minecraft/class_7166
named net/minecraft/client/font/SpaceFont
  • Field Details

    • codePointsToGlyphs

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

    • SpaceFont

      public SpaceFont(Int2FloatMap codePointsToAdvances)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldxy;<init>(Lit/unimi/dsi/fastutil/ints/Int2FloatMap;)V
      intermediary <init> Lnet/minecraft/class_7166;<init>(Lit/unimi/dsi/fastutil/ints/Int2FloatMap;)V
      named <init> Lnet/minecraft/client/font/SpaceFont;<init>(Lit/unimi/dsi/fastutil/ints/Int2FloatMap;)V
  • Method Details

    • getGlyph

      @Nullable public @Nullable Glyph getGlyph(int codePoint)
      Specified by:
      getGlyph in interface Font
      Mappings:
      Namespace Name Mixin selector
      official a Ldxw;a(I)Ldxv;
      intermediary method_2040 Lnet/minecraft/class_390;method_2040(I)Lnet/minecraft/class_379;
      named getGlyph Lnet/minecraft/client/font/Font;getGlyph(I)Lnet/minecraft/client/font/Glyph;
    • 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
      official a Ldxw;a()Lit/unimi/dsi/fastutil/ints/IntSet;
      intermediary method_27442 Lnet/minecraft/class_390;method_27442()Lit/unimi/dsi/fastutil/ints/IntSet;
      named getProvidedGlyphs Lnet/minecraft/client/font/Font;getProvidedGlyphs()Lit/unimi/dsi/fastutil/ints/IntSet;
    • fromJson

      public static FontLoader fromJson(JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxy;a(Lcom/google/gson/JsonObject;)Lein;
      intermediary method_41715 Lnet/minecraft/class_7166;method_41715(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_389;
      named fromJson Lnet/minecraft/client/font/SpaceFont;fromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/font/FontLoader;