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 official dwk$b
intermediary net/minecraft/class_327$class_5232
named net/minecraft/client/font/TextRenderer$Drawer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float
private final float
private final float
private final TextRenderer.class_6415
private final float
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, boolean seeThrough, int light) Drawer
(VertexConsumerProvider vertexConsumerProvider, float float2, float float3, int int2, boolean bool, Matrix4f matrix4f, TextRenderer.class_6415 class_6415, int int3) -
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 official a
Ldwk$b;a:Lenh;
intermediary field_24239
Lnet/minecraft/class_327$class_5232;field_24239:Lnet/minecraft/class_4597;
named vertexConsumers
Lnet/minecraft/client/font/TextRenderer$Drawer;vertexConsumers:Lnet/minecraft/client/render/VertexConsumerProvider;
-
shadow
private final boolean shadow- Mappings:
Namespace Name Mixin selector official c
Ldwk$b;c:Z
intermediary field_24241
Lnet/minecraft/class_327$class_5232;field_24241:Z
named shadow
Lnet/minecraft/client/font/TextRenderer$Drawer;shadow:Z
-
brightnessMultiplier
private final float brightnessMultiplier- Mappings:
Namespace Name Mixin selector official d
Ldwk$b;d:F
intermediary field_24242
Lnet/minecraft/class_327$class_5232;field_24242:F
named brightnessMultiplier
Lnet/minecraft/client/font/TextRenderer$Drawer;brightnessMultiplier:F
-
red
private final float red- Mappings:
Namespace Name Mixin selector official e
Ldwk$b;e:F
intermediary field_24243
Lnet/minecraft/class_327$class_5232;field_24243:F
named red
Lnet/minecraft/client/font/TextRenderer$Drawer;red:F
-
green
private final float green- Mappings:
Namespace Name Mixin selector official f
Ldwk$b;f:F
intermediary field_24244
Lnet/minecraft/class_327$class_5232;field_24244:F
named green
Lnet/minecraft/client/font/TextRenderer$Drawer;green:F
-
blue
private final float blue- Mappings:
Namespace Name Mixin selector official g
Ldwk$b;g:F
intermediary field_24245
Lnet/minecraft/class_327$class_5232;field_24245:F
named blue
Lnet/minecraft/client/font/TextRenderer$Drawer;blue:F
-
alpha
private final float alpha- Mappings:
Namespace Name Mixin selector official h
Ldwk$b;h:F
intermediary field_24246
Lnet/minecraft/class_327$class_5232;field_24246:F
named alpha
Lnet/minecraft/client/font/TextRenderer$Drawer;alpha:F
-
matrix
- Mappings:
Namespace Name Mixin selector official i
Ldwk$b;i:Ld;
intermediary field_24247
Lnet/minecraft/class_327$class_5232;field_24247:Lnet/minecraft/class_1159;
named matrix
Lnet/minecraft/client/font/TextRenderer$Drawer;matrix:Lnet/minecraft/util/math/Matrix4f;
-
field_33997
- Mappings:
Namespace Name Mixin selector official j
Ldwk$b;j:Ldwk$a;
intermediary field_33997
Lnet/minecraft/class_327$class_5232;field_33997:Lnet/minecraft/class_327$class_6415;
named field_33997
Lnet/minecraft/client/font/TextRenderer$Drawer;field_33997:Lnet/minecraft/client/font/TextRenderer$class_6415;
-
light
private final int light- Mappings:
Namespace Name Mixin selector official k
Ldwk$b;k:I
intermediary field_24249
Lnet/minecraft/class_327$class_5232;field_24249:I
named light
Lnet/minecraft/client/font/TextRenderer$Drawer;light:I
-
x
float x- Mappings:
Namespace Name Mixin selector official l
Ldwk$b;l:F
intermediary field_24250
Lnet/minecraft/class_327$class_5232;field_24250:F
named x
Lnet/minecraft/client/font/TextRenderer$Drawer;x:F
-
y
float y- Mappings:
Namespace Name Mixin selector official m
Ldwk$b;m:F
intermediary field_24251
Lnet/minecraft/class_327$class_5232;field_24251:F
named y
Lnet/minecraft/client/font/TextRenderer$Drawer;y:F
-
rectangles
- Mappings:
Namespace Name Mixin selector official n
Ldwk$b;n:Ljava/util/List;
intermediary field_24252
Lnet/minecraft/class_327$class_5232;field_24252:Ljava/util/List;
named rectangles
Lnet/minecraft/client/font/TextRenderer$Drawer;rectangles:Ljava/util/List;
-
-
Constructor Details
-
Drawer
public Drawer(VertexConsumerProvider vertexConsumers, float x, float y, int color, boolean shadow, Matrix4f matrix, boolean seeThrough, int light) - Mappings:
Namespace Name Mixin selector official <init>
Ldwk$b;<init>(Ldwk;Lenh;FFIZLd;ZI)V
intermediary <init>
Lnet/minecraft/class_327$class_5232;<init>(Lnet/minecraft/class_327;Lnet/minecraft/class_4597;FFIZLnet/minecraft/class_1159;ZI)V
named <init>
Lnet/minecraft/client/font/TextRenderer$Drawer;<init>(Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/render/VertexConsumerProvider;FFIZLnet/minecraft/util/math/Matrix4f;ZI)V
-
Drawer
public Drawer(VertexConsumerProvider vertexConsumerProvider, float float2, float float3, int int2, boolean bool, Matrix4f matrix4f, TextRenderer.class_6415 class_6415, int int3)
-
-
Method Details
-
addRectangle
- Mappings:
Namespace Name Mixin selector official a
Ldwk$b;a(Ldyo$a;)V
intermediary method_27532
Lnet/minecraft/class_327$class_5232;method_27532(Lnet/minecraft/class_382$class_328;)V
named addRectangle
Lnet/minecraft/client/font/TextRenderer$Drawer;addRectangle(Lnet/minecraft/client/font/GlyphRenderer$Rectangle;)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 official accept
Lagt;accept(ILpc;I)Z
intermediary accept
Lnet/minecraft/class_5224;accept(ILnet/minecraft/class_2583;I)Z
named accept
Lnet/minecraft/text/CharacterVisitor;accept(ILnet/minecraft/text/Style;I)Z
-
drawLayer
public float drawLayer(int underlineColor, float x) - Mappings:
Namespace Name Mixin selector official a
Ldwk$b;a(IF)F
intermediary method_27531
Lnet/minecraft/class_327$class_5232;method_27531(IF)F
named drawLayer
Lnet/minecraft/client/font/TextRenderer$Drawer;drawLayer(IF)F
-