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 fnp$b
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final float
private final int
private final List
<BakedGlyph.DrawnGlyph> private final TextRenderer.TextLayerType
private final int
private final Matrix4f
private @Nullable List
<BakedGlyph.Rectangle> private final boolean
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) Drawer
(VertexConsumerProvider vertexConsumers, float x, float y, int color, int backgroundColor, boolean shadow, Matrix4f matrix, TextRenderer.TextLayerType layerType, int light, boolean swapZIndex) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Visits a single character.private void
addRectangle
(BakedGlyph.Rectangle rectangle) (package private) void
(package private) float
drawLayer
(float x) private float
private float
-
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
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
- 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
- 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
- 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
- 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
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
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
-