Class BakedGlyph
java.lang.Object
net.minecraft.client.gui.font.glyphs.BakedGlyph
- Direct Known Subclasses:
EmptyGlyph
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatprivate final floatprivate final GlyphRenderTypesprivate final floatprivate final GpuTextureViewprivate final floatprivate final floatprivate final floatprivate final floatprivate final floatstatic final float -
Constructor Summary
ConstructorsConstructorDescriptionBakedGlyph(GlyphRenderTypes renderTypes, GpuTextureView textureView, float u0, float u1, float v0, float v1, float left, float right, float up, float down) -
Method Summary
Modifier and TypeMethodDescriptionfloatbottom(BakedGlyph.GlyphInstance glyph) private voidbuildEffect(BakedGlyph.Effect effect, float shadowOffset, float depthOffset, int shadowColor, VertexConsumer buffer, int packedLight, Matrix4f pose) private static floatextraThickness(boolean bold) floatleft(BakedGlyph.GlyphInstance glyph) private voidrender(boolean italic, float x, float y, float z, Matrix4f pose, VertexConsumer buffer, int color, boolean bold, int packedLight) voidrenderChar(BakedGlyph.GlyphInstance glyph, Matrix4f pose, VertexConsumer buffer, int packedLight, boolean noDepth) voidrenderEffect(BakedGlyph.Effect effect, Matrix4f pose, VertexConsumer buffer, int packedLight, boolean noDepth) renderType(Font.DisplayMode displayMode) Deprecated.renderType(Font.DisplayMode displayMode, boolean blur) Neo: returns theRenderTypeto use for the givenFont.DisplayModeand blur settingfloatright(BakedGlyph.GlyphInstance glyph) private floatprivate floatshearTop()floattop(BakedGlyph.GlyphInstance glyph)
-
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 renderTypes, @Nullable GpuTextureView textureView, float u0, float u1, float v0, float v1, float left, float right, float up, float down)
-
-
Method Details
-
left
-
top
-
right
-
bottom
-
renderChar
public void renderChar(BakedGlyph.GlyphInstance glyph, Matrix4f pose, VertexConsumer buffer, int packedLight, boolean noDepth) -
render
private void render(boolean italic, float x, float y, float z, Matrix4f pose, VertexConsumer buffer, int color, boolean bold, int packedLight) -
extraThickness
private static float extraThickness(boolean bold) -
shearBottom
private float shearBottom() -
shearTop
private float shearTop() -
renderEffect
public void renderEffect(BakedGlyph.Effect effect, Matrix4f pose, VertexConsumer buffer, int packedLight, boolean noDepth) -
buildEffect
private void buildEffect(BakedGlyph.Effect effect, float shadowOffset, float depthOffset, int shadowColor, VertexConsumer buffer, int packedLight, Matrix4f pose) -
textureView
-
guiPipeline
-
renderType
Neo: returns theRenderTypeto use for the givenFont.DisplayModeand blur setting -
renderType
Deprecated.Neo: UserenderType(Font.DisplayMode, boolean)instead
-
renderType(Font.DisplayMode, boolean)instead