Class UnicodeTextureFont

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

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

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ldtt;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_2303 Lnet/minecraft/class_391;field_2303:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/font/UnicodeTextureFont;LOGGER:Lorg/apache/logging/log4j/Logger;
    • resourceManager

      private final ResourceManager resourceManager
      Mappings:
      Namespace Name Mixin selector
      official b Ldtt;b:Lacx;
      intermediary field_2302 Lnet/minecraft/class_391;field_2302:Lnet/minecraft/class_3300;
      named resourceManager Lnet/minecraft/client/font/UnicodeTextureFont;resourceManager:Lnet/minecraft/resource/ResourceManager;
    • sizes

      private final byte[] sizes
      Mappings:
      Namespace Name Mixin selector
      official c Ldtt;c:[B
      intermediary field_2301 Lnet/minecraft/class_391;field_2301:[B
      named sizes Lnet/minecraft/client/font/UnicodeTextureFont;sizes:[B
    • template

      private final String template
      Mappings:
      Namespace Name Mixin selector
      official d Ldtt;d:Ljava/lang/String;
      intermediary field_2300 Lnet/minecraft/class_391;field_2300:Ljava/lang/String;
      named template Lnet/minecraft/client/font/UnicodeTextureFont;template:Ljava/lang/String;
    • images

      private final Map<Identifier,​NativeImage> images
      Mappings:
      Namespace Name Mixin selector
      official e Ldtt;e:Ljava/util/Map;
      intermediary field_2299 Lnet/minecraft/class_391;field_2299:Ljava/util/Map;
      named images Lnet/minecraft/client/font/UnicodeTextureFont;images:Ljava/util/Map;
  • Constructor Details

    • UnicodeTextureFont

      public UnicodeTextureFont​(ResourceManager resourceManager, byte[] sizes, String template)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldtt;<init>(Lacx;[BLjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_391;<init>(Lnet/minecraft/class_3300;[BLjava/lang/String;)V
      named <init> Lnet/minecraft/client/font/UnicodeTextureFont;<init>(Lnet/minecraft/resource/ResourceManager;[BLjava/lang/String;)V
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Font
      Mappings:
      Namespace Name Mixin selector
      official close Ldkg;close()V
      intermediary close Lnet/minecraft/class_390;close()V
      named close Lnet/minecraft/client/font/Font;close()V
    • getImageId

      private Identifier getImageId​(int codePoint)
      Mappings:
      Namespace Name Mixin selector
      official b Ldtt;b(I)Lwb;
      intermediary method_2041 Lnet/minecraft/class_391;method_2041(I)Lnet/minecraft/class_2960;
      named getImageId Lnet/minecraft/client/font/UnicodeTextureFont;getImageId(I)Lnet/minecraft/util/Identifier;
    • getGlyph

      @Nullable public RenderableGlyph getGlyph​(int codePoint)
      Specified by:
      getGlyph in interface Font
      Mappings:
      Namespace Name Mixin selector
      official a Ldkg;a(I)Ldkh;
      intermediary method_2040 Lnet/minecraft/class_390;method_2040(I)Lnet/minecraft/class_383;
      named getGlyph Lnet/minecraft/client/font/Font;getGlyph(I)Lnet/minecraft/client/font/RenderableGlyph;
    • getProvidedGlyphs

      public IntSet getProvidedGlyphs()
      Returns the set of code points for which this font can provide glyphs.
      Specified by:
      getProvidedGlyphs in interface Font
      Returns:
      a set of integer code points.
      Mappings:
      Namespace Name Mixin selector
      official a Ldkg;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;
    • getGlyphImage

      @Nullable private NativeImage getGlyphImage​(Identifier glyphId)
      Mappings:
      Namespace Name Mixin selector
      official a Ldtt;a(Lwb;)Ldky;
      intermediary method_2042 Lnet/minecraft/class_391;method_2042(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1011;
      named getGlyphImage Lnet/minecraft/client/font/UnicodeTextureFont;getGlyphImage(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/texture/NativeImage;
    • getStart

      private static int getStart​(byte size)
      Mappings:
      Namespace Name Mixin selector
      official a Ldtt;a(B)I
      intermediary method_2043 Lnet/minecraft/class_391;method_2043(B)I
      named getStart Lnet/minecraft/client/font/UnicodeTextureFont;getStart(B)I
    • getEnd

      private static int getEnd​(byte size)
      Mappings:
      Namespace Name Mixin selector
      official b Ldtt;b(B)I
      intermediary method_2044 Lnet/minecraft/class_391;method_2044(B)I
      named getEnd Lnet/minecraft/client/font/UnicodeTextureFont;getEnd(B)I