Class BakedSheetGlyph
java.lang.Object
net.minecraft.client.gui.font.glyphs.BakedSheetGlyph
- All Implemented Interfaces:
BakedGlyph, EffectGlyph
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatprivate final GlyphInfoprivate final floatprivate final GlyphRenderTypesprivate final floatprivate final GpuTextureViewprivate final floatprivate final floatprivate final floatprivate final floatprivate final floatstatic final float -
Constructor Summary
ConstructorsConstructorDescriptionBakedSheetGlyph(GlyphInfo info, GlyphRenderTypes renderTypes, GpuTextureView textureView, float u0, float u1, float v0, float v1, float left, float right, float up, float down) -
Method Summary
Modifier and TypeMethodDescriptionprivate floatbottom(BakedSheetGlyph.GlyphInstance instance) private voidbuildEffect(BakedSheetGlyph.EffectInstance effect, float offset, float z, int color, VertexConsumer buffer, int packedLightCoords, Matrix4f pose) createEffect(float x0, float y0, float x1, float y1, float depth, int color, int shadowColor, float shadowOffset) createGlyph(float x, float y, int color, int shadowColor, Style style, float boldOffset, float shadowOffset) private static floatextraThickness(boolean bold) info()private floatleft(BakedSheetGlyph.GlyphInstance instance) private voidrender(boolean italic, float x, float y, float z, Matrix4f pose, VertexConsumer builder, int color, boolean bold, int packedLightCoords) private voidrenderChar(BakedSheetGlyph.GlyphInstance glyphInstance, Matrix4f pose, VertexConsumer buffer, int packedLightCoords, boolean flat) private voidrenderEffect(BakedSheetGlyph.EffectInstance effect, Matrix4f pose, VertexConsumer buffer, int packedLightCoords, boolean flat) private floatright(BakedSheetGlyph.GlyphInstance instance) private floatprivate floatshearTop()private floattop(BakedSheetGlyph.GlyphInstance instance)
-
Field Details
-
Z_FIGHTER
public static final float Z_FIGHTER- See Also:
-
info
-
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
-
BakedSheetGlyph
public BakedSheetGlyph(GlyphInfo info, GlyphRenderTypes renderTypes, 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
private void renderChar(BakedSheetGlyph.GlyphInstance glyphInstance, Matrix4f pose, VertexConsumer buffer, int packedLightCoords, boolean flat) -
render
private void render(boolean italic, float x, float y, float z, Matrix4f pose, VertexConsumer builder, int color, boolean bold, int packedLightCoords) -
extraThickness
private static float extraThickness(boolean bold) -
shearBottom
private float shearBottom() -
shearTop
private float shearTop() -
renderEffect
private void renderEffect(BakedSheetGlyph.EffectInstance effect, Matrix4f pose, VertexConsumer buffer, int packedLightCoords, boolean flat) -
buildEffect
private void buildEffect(BakedSheetGlyph.EffectInstance effect, float offset, float z, int color, VertexConsumer buffer, int packedLightCoords, Matrix4f pose) -
info
- Specified by:
infoin interfaceBakedGlyph
-
createGlyph
public TextRenderable.Styled createGlyph(float x, float y, int color, int shadowColor, Style style, float boldOffset, float shadowOffset) - Specified by:
createGlyphin interfaceBakedGlyph
-
createEffect
public TextRenderable createEffect(float x0, float y0, float x1, float y1, float depth, int color, int shadowColor, float shadowOffset) - Specified by:
createEffectin interfaceEffectGlyph
-