Class TextRenderer.Drawer

java.lang.Object
net.minecraft.client.font.TextRenderer.Drawer
All Implemented Interfaces:
CharacterVisitor
Enclosing class:
TextRenderer

@Environment(CLIENT) private class TextRenderer.Drawer extends Object implements CharacterVisitor
Mappings:
Namespace Name
named net/minecraft/client/font/TextRenderer$Drawer
intermediary net/minecraft/class_327$class_5232
official fnp$b
  • Field Details

    • vertexConsumers

      final VertexConsumerProvider vertexConsumers
      Mappings:
      Namespace Name Mixin selector
      named vertexConsumers Lnet/minecraft/client/font/TextRenderer$Drawer;vertexConsumers:Lnet/minecraft/client/render/VertexConsumerProvider;
      intermediary field_24239 Lnet/minecraft/class_327$class_5232;field_24239:Lnet/minecraft/class_4597;
      official a Lfnp$b;a:Lglk;
    • shadow

      private final boolean shadow
      Mappings:
      Namespace Name Mixin selector
      named shadow Lnet/minecraft/client/font/TextRenderer$Drawer;shadow:Z
      intermediary field_24241 Lnet/minecraft/class_327$class_5232;field_24241:Z
      official c Lfnp$b;c:Z
    • brightnessMultiplier

      private final float brightnessMultiplier
      Mappings:
      Namespace Name Mixin selector
      named brightnessMultiplier Lnet/minecraft/client/font/TextRenderer$Drawer;brightnessMultiplier:F
      intermediary field_24242 Lnet/minecraft/class_327$class_5232;field_24242:F
      official d Lfnp$b;d:F
    • color

      private final int color
      Mappings:
      Namespace Name Mixin selector
      named color Lnet/minecraft/client/font/TextRenderer$Drawer;color:I
      intermediary field_54817 Lnet/minecraft/class_327$class_5232;field_54817:I
      official e Lfnp$b;e:I
    • backgroundColor

      private final int backgroundColor
      Mappings:
      Namespace Name Mixin selector
      named backgroundColor Lnet/minecraft/client/font/TextRenderer$Drawer;backgroundColor:I
      intermediary field_54818 Lnet/minecraft/class_327$class_5232;field_54818:I
      official f Lfnp$b;f:I
    • matrix

      private final Matrix4f matrix
      Mappings:
      Namespace Name Mixin selector
      named matrix Lnet/minecraft/client/font/TextRenderer$Drawer;matrix:Lorg/joml/Matrix4f;
      intermediary field_24247 Lnet/minecraft/class_327$class_5232;field_24247:Lorg/joml/Matrix4f;
      official g Lfnp$b;g:Lorg/joml/Matrix4f;
    • layerType

      private final TextRenderer.TextLayerType layerType
      Mappings:
      Namespace Name Mixin selector
      named layerType Lnet/minecraft/client/font/TextRenderer$Drawer;layerType:Lnet/minecraft/client/font/TextRenderer$TextLayerType;
      intermediary field_33997 Lnet/minecraft/class_327$class_5232;field_33997:Lnet/minecraft/class_327$class_6415;
      official h Lfnp$b;h:Lfnp$a;
    • light

      private final int light
      Mappings:
      Namespace Name Mixin selector
      named light Lnet/minecraft/client/font/TextRenderer$Drawer;light:I
      intermediary field_24249 Lnet/minecraft/class_327$class_5232;field_24249:I
      official i Lfnp$b;i:I
    • swapZIndex

      private final boolean swapZIndex
      Mappings:
      Namespace Name Mixin selector
      named swapZIndex Lnet/minecraft/client/font/TextRenderer$Drawer;swapZIndex:Z
      intermediary field_54973 Lnet/minecraft/class_327$class_5232;field_54973:Z
      official j Lfnp$b;j:Z
    • x

      float x
      Mappings:
      Namespace Name Mixin selector
      named x Lnet/minecraft/client/font/TextRenderer$Drawer;x:F
      intermediary field_24250 Lnet/minecraft/class_327$class_5232;field_24250:F
      official k Lfnp$b;k:F
    • y

      float y
      Mappings:
      Namespace Name Mixin selector
      named y Lnet/minecraft/client/font/TextRenderer$Drawer;y:F
      intermediary field_24251 Lnet/minecraft/class_327$class_5232;field_24251:F
      official l Lfnp$b;l:F
    • glyphs

      private final List<BakedGlyph.DrawnGlyph> glyphs
      Mappings:
      Namespace Name Mixin selector
      named glyphs Lnet/minecraft/client/font/TextRenderer$Drawer;glyphs:Ljava/util/List;
      intermediary field_54911 Lnet/minecraft/class_327$class_5232;field_54911:Ljava/util/List;
      official m Lfnp$b;m:Ljava/util/List;
    • rectangles

      Mappings:
      Namespace Name Mixin selector
      named rectangles Lnet/minecraft/client/font/TextRenderer$Drawer;rectangles:Ljava/util/List;
      intermediary field_24252 Lnet/minecraft/class_327$class_5232;field_24252:Ljava/util/List;
      official n Lfnp$b;n:Ljava/util/List;
  • Constructor Details

    • Drawer

      public Drawer(VertexConsumerProvider vertexConsumers, float x, float y, int color, boolean shadow, Matrix4f matrix, TextRenderer.TextLayerType layerType, int light)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/font/TextRenderer$Drawer;<init>(Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/render/VertexConsumerProvider;FFIZLorg/joml/Matrix4f;Lnet/minecraft/client/font/TextRenderer$TextLayerType;I)V
      intermediary <init> Lnet/minecraft/class_327$class_5232;<init>(Lnet/minecraft/class_327;Lnet/minecraft/class_4597;FFIZLorg/joml/Matrix4f;Lnet/minecraft/class_327$class_6415;I)V
      official <init> Lfnp$b;<init>(Lfnp;Lglk;FFIZLorg/joml/Matrix4f;Lfnp$a;I)V
    • Drawer

      public Drawer(VertexConsumerProvider vertexConsumers, float x, float y, int color, int backgroundColor, boolean shadow, Matrix4f matrix, TextRenderer.TextLayerType layerType, int light, boolean swapZIndex)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/font/TextRenderer$Drawer;<init>(Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/render/VertexConsumerProvider;FFIIZLorg/joml/Matrix4f;Lnet/minecraft/client/font/TextRenderer$TextLayerType;IZ)V
      intermediary <init> Lnet/minecraft/class_327$class_5232;<init>(Lnet/minecraft/class_327;Lnet/minecraft/class_4597;FFIIZLorg/joml/Matrix4f;Lnet/minecraft/class_327$class_6415;IZ)V
      official <init> Lfnp$b;<init>(Lfnp;Lglk;FFIIZLorg/joml/Matrix4f;Lfnp$a;IZ)V
  • Method Details

    • addRectangle

      private void addRectangle(BakedGlyph.Rectangle rectangle)
      Mappings:
      Namespace Name Mixin selector
      named addRectangle Lnet/minecraft/client/font/TextRenderer$Drawer;addRectangle(Lnet/minecraft/client/font/BakedGlyph$Rectangle;)V
      intermediary method_27532 Lnet/minecraft/class_327$class_5232;method_27532(Lnet/minecraft/class_382$class_328;)V
      official a Lfnp$b;a(Lfrb$a;)V
    • accept

      public boolean accept(int index, Style style, int codePoint)
      Visits a single character.

      Multiple surrogate characters are converted into one single codePoint when passed into this method.

      Specified by:
      accept in interface CharacterVisitor
      Parameters:
      index - the current index of the character
      style - the style of the character, containing formatting and font information
      codePoint - the code point of the character
      Returns:
      true to continue visiting other characters, or false to terminate the visit
      Mappings:
      Namespace Name Mixin selector
      named accept Lnet/minecraft/text/CharacterVisitor;accept(ILnet/minecraft/text/Style;I)Z
      intermediary accept Lnet/minecraft/class_5224;accept(ILnet/minecraft/class_2583;I)Z
      official accept Lazr;accept(ILys;I)Z
    • drawLayer

      float drawLayer(float x)
      Mappings:
      Namespace Name Mixin selector
      named drawLayer Lnet/minecraft/client/font/TextRenderer$Drawer;drawLayer(F)F
      intermediary method_27531 Lnet/minecraft/class_327$class_5232;method_27531(F)F
      official a Lfnp$b;a(F)F
    • drawGlyphs

      void drawGlyphs()
      Mappings:
      Namespace Name Mixin selector
      named drawGlyphs Lnet/minecraft/client/font/TextRenderer$Drawer;drawGlyphs()V
      intermediary method_65050 Lnet/minecraft/class_327$class_5232;method_65050()V
      official a Lfnp$b;a()V
    • getForegroundZIndex

      private float getForegroundZIndex()
      Mappings:
      Namespace Name Mixin selector
      named getForegroundZIndex Lnet/minecraft/client/font/TextRenderer$Drawer;getForegroundZIndex()F
      intermediary method_65070 Lnet/minecraft/class_327$class_5232;method_65070()F
      official b Lfnp$b;b()F
    • getBackgroundZIndex

      private float getBackgroundZIndex()
      Mappings:
      Namespace Name Mixin selector
      named getBackgroundZIndex Lnet/minecraft/client/font/TextRenderer$Drawer;getBackgroundZIndex()F
      intermediary method_65071 Lnet/minecraft/class_327$class_5232;method_65071()F
      official c Lfnp$b;c()F