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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBakedGlyph(GlyphRenderTypes renderTypes, float u0, float u1, float v0, float v1, float left, float right, float up, float down) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidbuildEffect(BakedGlyph.Effect effect, float shadowOffset, float depthOffset, int shadowColor, VertexConsumer buffer, int packedLight, org.joml.Matrix4f pose) private voidrender(boolean italic, float x, float y, float z, org.joml.Matrix4f pose, VertexConsumer buffer, int color, boolean bold, int packedLight) private voidrender(boolean italic, float x, float y, org.joml.Matrix4f pose, VertexConsumer buffer, int color, boolean bold, int packedLight) voidrenderChar(BakedGlyph.GlyphInstance glyph, org.joml.Matrix4f pose, VertexConsumer buffer, int packedLight) voidrenderEffect(BakedGlyph.Effect effect, org.joml.Matrix4f pose, VertexConsumer buffer, int packedLight) renderType(Font.DisplayMode displayMode) Deprecated.renderType(Font.DisplayMode displayMode, boolean blur) Neo: returns theRenderTypeto use for the givenFont.DisplayModeand 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 renderTypes, float u0, float u1, float v0, float v1, float left, float right, float up, float down)
-
-
Method Details
-
renderChar
public void renderChar(BakedGlyph.GlyphInstance glyph, org.joml.Matrix4f pose, VertexConsumer buffer, int packedLight) -
render
private void render(boolean italic, float x, float y, org.joml.Matrix4f pose, VertexConsumer buffer, int color, boolean bold, int packedLight) -
render
private void render(boolean italic, float x, float y, float z, org.joml.Matrix4f pose, VertexConsumer buffer, int color, boolean bold, int packedLight) -
renderEffect
public void renderEffect(BakedGlyph.Effect effect, org.joml.Matrix4f pose, VertexConsumer buffer, int packedLight) -
buildEffect
private void buildEffect(BakedGlyph.Effect effect, float shadowOffset, float depthOffset, int shadowColor, VertexConsumer buffer, int packedLight, org.joml.Matrix4f pose) -
renderType
Neo: returns theRenderTypeto use for the givenFont.DisplayModeand blur setting -
renderType
Deprecated.Neo: UserenderType(Font.DisplayMode, boolean)instead
-
renderType(Font.DisplayMode, boolean)instead