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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBakedGlyph
(GlyphRenderTypes pRenderTypes, float pU0, float pU1, float pV0, float pV1, float pLeft, float pRight, float pUp, float pDown) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
buildEffect
(BakedGlyph.Effect pEffect, float pShadowOffset, float pDepthOffset, int pShadowColor, VertexConsumer pBuffer, int pPackedLight, org.joml.Matrix4f pPose) private void
render
(boolean pItalic, float pX, float pY, float pZ, org.joml.Matrix4f pPose, VertexConsumer pBuffer, int pColor, boolean pBold, int pPackedLight) private void
render
(boolean pItalic, float pX, float pY, org.joml.Matrix4f pPose, VertexConsumer pBuffer, int pColor, boolean pBold, int pPackedLight) void
renderChar
(BakedGlyph.GlyphInstance pGlyph, org.joml.Matrix4f pPose, VertexConsumer pBuffer, int pPackedLight) void
renderEffect
(BakedGlyph.Effect pEffect, org.joml.Matrix4f pPose, VertexConsumer pBuffer, int pPackedLight) renderType
(Font.DisplayMode pDisplayMode) Deprecated.renderType
(Font.DisplayMode pDisplayMode, boolean blur) Neo: returns theRenderType
to use for the givenFont.DisplayMode
and blur setting
-
Field Details
-
Z_FIGHTER
public static final float Z_FIGHTER- See Also:
-
renderTypes
-
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, float pU0, float pU1, float pV0, float pV1, float pLeft, float pRight, float pUp, float pDown)
-
-
Method Details
-
renderChar
public void renderChar(BakedGlyph.GlyphInstance pGlyph, org.joml.Matrix4f pPose, VertexConsumer pBuffer, int pPackedLight) -
render
private void render(boolean pItalic, float pX, float pY, org.joml.Matrix4f pPose, VertexConsumer pBuffer, int pColor, boolean pBold, int pPackedLight) -
render
private void render(boolean pItalic, float pX, float pY, float pZ, org.joml.Matrix4f pPose, VertexConsumer pBuffer, int pColor, boolean pBold, int pPackedLight) -
renderEffect
public void renderEffect(BakedGlyph.Effect pEffect, org.joml.Matrix4f pPose, VertexConsumer pBuffer, int pPackedLight) -
buildEffect
private void buildEffect(BakedGlyph.Effect pEffect, float pShadowOffset, float pDepthOffset, int pShadowColor, VertexConsumer pBuffer, int pPackedLight, org.joml.Matrix4f pPose) -
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