Class TextRenderer

java.lang.Object
net.minecraft.client.font.TextRenderer

@Environment(CLIENT) public class TextRenderer extends Object
Mappings:
Namespace Name
intermediary net/minecraft/class_34
glue class_648
server net/minecraft/class_34
client sj
named net/minecraft/client/font/TextRenderer
  • Field Details

    • characterWidths

      private int[] characterWidths
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2462 Lnet/minecraft/class_34;field_2462:[I
      glue field_2660 Lclass_648;field_2660:[I
      server field_2462 Lnet/minecraft/class_34;field_2462:[I
      client b Lsj;b:[I
      named characterWidths Lnet/minecraft/client/font/TextRenderer;characterWidths:[I
    • boundTexture

      public int boundTexture
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2461 Lnet/minecraft/class_34;field_2461:I
      glue field_2659 Lclass_648;field_2659:I
      server field_2461 Lnet/minecraft/class_34;field_2461:I
      client a Lsj;a:I
      named boundTexture Lnet/minecraft/client/font/TextRenderer;boundTexture:I
    • boundPage

      private int boundPage
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2463 Lnet/minecraft/class_34;field_2463:I
      glue field_2661 Lclass_648;field_2661:I
      server field_2463 Lnet/minecraft/class_34;field_2463:I
      client c Lsj;c:I
      named boundPage Lnet/minecraft/client/font/TextRenderer;boundPage:I
    • pageBuffer

      private IntBuffer pageBuffer
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2464 Lnet/minecraft/class_34;field_2464:Ljava/nio/IntBuffer;
      glue field_2662 Lclass_648;field_2662:Ljava/nio/IntBuffer;
      server field_2464 Lnet/minecraft/class_34;field_2464:Ljava/nio/IntBuffer;
      client d Lsj;d:Ljava/nio/IntBuffer;
      named pageBuffer Lnet/minecraft/client/font/TextRenderer;pageBuffer:Ljava/nio/IntBuffer;
  • Constructor Details

    • TextRenderer

      public TextRenderer(GameOptions options, String fontPath, TextureManager textureManager)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_34;<init>(Lnet/minecraft/class_322;Ljava/lang/String;Lnet/minecraft/class_76;)V
      glue <init> Lclass_648;<init>(Lclass_419;Ljava/lang/String;Lclass_359;)V
      server <init> Lnet/minecraft/class_34;<init>(Lnet/minecraft/class_322;Ljava/lang/String;Lnet/minecraft/class_76;)V
      client <init> Lsj;<init>(Lkv;Ljava/lang/String;Lji;)V
      named <init> Lnet/minecraft/client/font/TextRenderer;<init>(Lnet/minecraft/client/option/GameOptions;Ljava/lang/String;Lnet/minecraft/client/texture/TextureManager;)V
  • Method Details

    • drawWithShadow

      public void drawWithShadow(String text, int x, int y, int color)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1903 Lnet/minecraft/class_34;method_1903(Ljava/lang/String;III)V
      glue method_2146 Lclass_648;method_2146(Ljava/lang/String;III)V
      server method_1903 Lnet/minecraft/class_34;method_1903(Ljava/lang/String;III)V
      client a Lsj;a(Ljava/lang/String;III)V
      named drawWithShadow Lnet/minecraft/client/font/TextRenderer;drawWithShadow(Ljava/lang/String;III)V
    • draw

      public void draw(String text, int x, int y, int color)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1906 Lnet/minecraft/class_34;method_1906(Ljava/lang/String;III)V
      glue method_2149 Lclass_648;method_2149(Ljava/lang/String;III)V
      server method_1906 Lnet/minecraft/class_34;method_1906(Ljava/lang/String;III)V
      client b Lsj;b(Ljava/lang/String;III)V
      named draw Lnet/minecraft/client/font/TextRenderer;draw(Ljava/lang/String;III)V
    • draw

      public void draw(String text, int x, int y, int color, boolean shadow)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1905 Lnet/minecraft/class_34;method_1905(Ljava/lang/String;IIIZ)V
      glue method_2148 Lclass_648;method_2148(Ljava/lang/String;IIIZ)V
      server method_1905 Lnet/minecraft/class_34;method_1905(Ljava/lang/String;IIIZ)V
      client a Lsj;a(Ljava/lang/String;IIIZ)V
      named draw Lnet/minecraft/client/font/TextRenderer;draw(Ljava/lang/String;IIIZ)V
    • getWidth

      public int getWidth(String text)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1901 Lnet/minecraft/class_34;method_1901(Ljava/lang/String;)I
      glue method_2144 Lclass_648;method_2144(Ljava/lang/String;)I
      server method_1901 Lnet/minecraft/class_34;method_1901(Ljava/lang/String;)I
      client a Lsj;a(Ljava/lang/String;)I
      named getWidth Lnet/minecraft/client/font/TextRenderer;getWidth(Ljava/lang/String;)I
    • drawSplit

      public void drawSplit(String text, int x, int y, int width, int color)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1904 Lnet/minecraft/class_34;method_1904(Ljava/lang/String;IIII)V
      glue method_2147 Lclass_648;method_2147(Ljava/lang/String;IIII)V
      server method_1904 Lnet/minecraft/class_34;method_1904(Ljava/lang/String;IIII)V
      client a Lsj;a(Ljava/lang/String;IIII)V
      named drawSplit Lnet/minecraft/client/font/TextRenderer;drawSplit(Ljava/lang/String;IIII)V
    • splitAndGetHeight

      public int splitAndGetHeight(String text, int width)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1902 Lnet/minecraft/class_34;method_1902(Ljava/lang/String;I)I
      glue method_2145 Lclass_648;method_2145(Ljava/lang/String;I)I
      server method_1902 Lnet/minecraft/class_34;method_1902(Ljava/lang/String;I)I
      client a Lsj;a(Ljava/lang/String;I)I
      named splitAndGetHeight Lnet/minecraft/client/font/TextRenderer;splitAndGetHeight(Ljava/lang/String;I)I