Package net.minecraft.client.font
Class TextRenderer.Drawer
java.lang.Object
net.minecraft.client.font.TextRenderer.Drawer
- All Implemented Interfaces:
CharacterVisitor
- Enclosing class:
TextRenderer
- Mappings:
Namespace Name named net/minecraft/client/font/TextRenderer$Drawer
intermediary net/minecraft/class_327$class_5232
official fhf$b
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float
private final float
private final float
private final float
private final TextRenderer.TextLayerType
private final int
private final Matrix4f
private @Nullable List
<GlyphRenderer.Rectangle> private final float
private final boolean
(package private) final VertexConsumerProvider
(package private) float
(package private) float
-
Constructor Summary
ConstructorDescriptionDrawer
(VertexConsumerProvider vertexConsumers, float x, float y, int color, boolean shadow, Matrix4f matrix, TextRenderer.TextLayerType layerType, int light) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Visits a single character.private void
addRectangle
(GlyphRenderer.Rectangle rectangle) float
drawLayer
(int underlineColor, float x)
-
Field Details
-
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
Lfhf$b;a:Lgef;
-
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
Lfhf$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
Lfhf$b;d:F
-
red
private final float red- Mappings:
Namespace Name Mixin selector named red
Lnet/minecraft/client/font/TextRenderer$Drawer;red:F
intermediary field_24243
Lnet/minecraft/class_327$class_5232;field_24243:F
official e
Lfhf$b;e:F
-
green
private final float green- Mappings:
Namespace Name Mixin selector named green
Lnet/minecraft/client/font/TextRenderer$Drawer;green:F
intermediary field_24244
Lnet/minecraft/class_327$class_5232;field_24244:F
official f
Lfhf$b;f:F
-
blue
private final float blue- Mappings:
Namespace Name Mixin selector named blue
Lnet/minecraft/client/font/TextRenderer$Drawer;blue:F
intermediary field_24245
Lnet/minecraft/class_327$class_5232;field_24245:F
official g
Lfhf$b;g:F
-
alpha
private final float alpha- Mappings:
Namespace Name Mixin selector named alpha
Lnet/minecraft/client/font/TextRenderer$Drawer;alpha:F
intermediary field_24246
Lnet/minecraft/class_327$class_5232;field_24246:F
official h
Lfhf$b;h:F
-
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 i
Lfhf$b;i:Lorg/joml/Matrix4f;
-
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 j
Lfhf$b;j:Lfhf$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 k
Lfhf$b;k:I
-
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 l
Lfhf$b;l: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 m
Lfhf$b;m:F
-
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
Lfhf$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>
Lfhf$b;<init>(Lfhf;Lgef;FFIZLorg/joml/Matrix4f;Lfhf$a;I)V
-
-
Method Details
-
addRectangle
- Mappings:
Namespace Name Mixin selector named addRectangle
Lnet/minecraft/client/font/TextRenderer$Drawer;addRectangle(Lnet/minecraft/client/font/GlyphRenderer$Rectangle;)V
intermediary method_27532
Lnet/minecraft/class_327$class_5232;method_27532(Lnet/minecraft/class_382$class_328;)V
official a
Lfhf$b;a(Lfkp$a;)V
-
accept
Visits a single character.Multiple surrogate characters are converted into one single
codePoint
when passed into this method.- Specified by:
accept
in interfaceCharacterVisitor
- Parameters:
index
- the current index of the characterstyle
- the style of the character, containing formatting and font informationcodePoint
- the code point of the character- Returns:
true
to continue visiting other characters, orfalse
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
Laxt;accept(ILxr;I)Z
-
drawLayer
public float drawLayer(int underlineColor, float x) - Mappings:
Namespace Name Mixin selector named drawLayer
Lnet/minecraft/client/font/TextRenderer$Drawer;drawLayer(IF)F
intermediary method_27531
Lnet/minecraft/class_327$class_5232;method_27531(IF)F
official a
Lfhf$b;a(IF)F
-