Class BakedGlyph
java.lang.Object
net.minecraft.client.gui.font.glyphs.BakedGlyph
- Direct Known Subclasses:
EmptyGlyph
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float
private final float
private final GlyphRenderTypes
private final float
private final GpuTextureView
private final float
private final float
private final float
private final float
private final float
static final float
-
Constructor Summary
ConstructorsConstructorDescriptionBakedGlyph
(GlyphRenderTypes pRenderTypes, GpuTextureView pTextureView, float pU0, float pU1, float pV0, float pV1, float pLeft, float pRight, float pUp, float pDown) -
Method Summary
Modifier and TypeMethodDescriptionfloat
bottom
(BakedGlyph.GlyphInstance pGlyph) private void
buildEffect
(BakedGlyph.Effect p_382788_, float p_383227_, float p_382946_, int p_382966_, VertexConsumer p_383218_, int p_382874_, org.joml.Matrix4f p_383104_) private static float
extraThickness
(boolean pBold) float
left
(BakedGlyph.GlyphInstance pGlyph) private void
render
(boolean p_383040_, float p_382836_, float p_382914_, float p_382815_, org.joml.Matrix4f p_382916_, VertexConsumer p_382963_, int p_383056_, boolean p_382998_, int p_382909_) void
renderChar
(BakedGlyph.GlyphInstance p_380988_, org.joml.Matrix4f p_381023_, VertexConsumer p_381084_, int p_381113_, boolean p_427402_) void
renderEffect
(BakedGlyph.Effect p_95221_, org.joml.Matrix4f p_254370_, VertexConsumer p_95223_, int p_95224_, boolean p_427269_) renderType
(Font.DisplayMode pDisplayMode) Deprecated.renderType
(Font.DisplayMode pDisplayMode, boolean blur) Neo: returns theRenderType
to use for the givenFont.DisplayMode
and blur settingfloat
right
(BakedGlyph.GlyphInstance pGlyph) private float
private float
shearTop()
float
top
(BakedGlyph.GlyphInstance pGlyph)
-
Field Details
-
Z_FIGHTER
public static final float Z_FIGHTER- See Also:
-
renderTypes
-
textureView
-
u0
private final float u0 -
u1
private final float u1 -
v0
private final float v0 -
v1
private final float v1 -
left
private final float left -
right
private final float right -
up
private final float up -
down
private final float down
-
-
Constructor Details
-
BakedGlyph
public BakedGlyph(GlyphRenderTypes pRenderTypes, @Nullable GpuTextureView pTextureView, float pU0, float pU1, float pV0, float pV1, float pLeft, float pRight, float pUp, float pDown)
-
-
Method Details
-
left
-
top
-
right
-
bottom
-
renderChar
public void renderChar(BakedGlyph.GlyphInstance p_380988_, org.joml.Matrix4f p_381023_, VertexConsumer p_381084_, int p_381113_, boolean p_427402_) -
render
private void render(boolean p_383040_, float p_382836_, float p_382914_, float p_382815_, org.joml.Matrix4f p_382916_, VertexConsumer p_382963_, int p_383056_, boolean p_382998_, int p_382909_) -
extraThickness
private static float extraThickness(boolean pBold) -
shearBottom
private float shearBottom() -
shearTop
private float shearTop() -
renderEffect
public void renderEffect(BakedGlyph.Effect p_95221_, org.joml.Matrix4f p_254370_, VertexConsumer p_95223_, int p_95224_, boolean p_427269_) -
buildEffect
private void buildEffect(BakedGlyph.Effect p_382788_, float p_383227_, float p_382946_, int p_382966_, VertexConsumer p_383218_, int p_382874_, org.joml.Matrix4f p_383104_) -
textureView
-
guiPipeline
-
renderType
Neo: returns theRenderType
to use for the givenFont.DisplayMode
and blur setting -
renderType
Deprecated.Neo: UserenderType(Font.DisplayMode, boolean)
instead
-
renderType(Font.DisplayMode, boolean)
instead