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 pRenderTypes, GpuTextureView pTextureView, float pU0, float pU1, float pV0, float pV1, float pLeft, float pRight, float pUp, float pDown) -
Method Summary
Modifier and TypeMethodDescriptionfloatbottom(BakedGlyph.GlyphInstance pGlyph) private voidbuildEffect(BakedGlyph.Effect pEffect, float pShadowOffset, float pDepthOffset, int pShadowColor, VertexConsumer pBuffer, int pPackedLight, org.joml.Matrix4f pPose) private static floatextraThickness(boolean pBold) floatleft(BakedGlyph.GlyphInstance pGlyph) private voidrender(boolean pItalic, float pX, float pY, float pZ, org.joml.Matrix4f pPose, VertexConsumer pBuffer, int pColor, boolean pBold, int pPackedLight) voidrenderChar(BakedGlyph.GlyphInstance pGlyph, org.joml.Matrix4f pPose, VertexConsumer pBuffer, int pPackedLight, boolean pNoDepth) voidrenderEffect(BakedGlyph.Effect pEffect, org.joml.Matrix4f pPose, VertexConsumer pBuffer, int pPackedLight, boolean pNoDepth) renderType(Font.DisplayMode pDisplayMode) Deprecated.renderType(Font.DisplayMode pDisplayMode, boolean blur) Neo: returns theRenderTypeto use for the givenFont.DisplayModeand blur settingfloatright(BakedGlyph.GlyphInstance pGlyph) private floatprivate floatshearTop()floattop(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 pGlyph, org.joml.Matrix4f pPose, VertexConsumer pBuffer, int pPackedLight, boolean pNoDepth) -
render
private void render(boolean pItalic, float pX, float pY, float pZ, org.joml.Matrix4f pPose, VertexConsumer pBuffer, int pColor, boolean pBold, int pPackedLight) -
extraThickness
private static float extraThickness(boolean pBold) -
shearBottom
private float shearBottom() -
shearTop
private float shearTop() -
renderEffect
public void renderEffect(BakedGlyph.Effect pEffect, org.joml.Matrix4f pPose, VertexConsumer pBuffer, int pPackedLight, boolean pNoDepth) -
buildEffect
private void buildEffect(BakedGlyph.Effect pEffect, float pShadowOffset, float pDepthOffset, int pShadowColor, VertexConsumer pBuffer, int pPackedLight, org.joml.Matrix4f pPose) -
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