Class BakedSheetGlyph
java.lang.Object
net.minecraft.client.gui.font.glyphs.BakedSheetGlyph
- All Implemented Interfaces:
BakedGlyph,EffectGlyph
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record(package private) static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatprivate final GlyphInfoprivate final float(package private) final GlyphRenderTypesprivate final float(package private) 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 TypeMethodDescription(package private) floatprivate voidbuildEffect(BakedSheetGlyph.EffectInstance effect, float shadowOffset, float depthOffset, int shadowColor, VertexConsumer consumer, int packedLight, Matrix4f pose) createEffect(float p_439937_, float p_439747_, float p_439686_, float p_439982_, float p_440147_, int p_439079_, int p_440306_, float p_440077_) createGlyph(float p_439638_, float p_439877_, int p_440324_, int p_439600_, Style p_440608_, float p_440490_, float p_440025_) private static floatextraThickness(boolean bold) info()(package private) floatprivate voidrender(boolean italic, float x, float y, float z, Matrix4f pose, VertexConsumer consumer, int color, boolean bold, int packedLight) (package private) voidrenderChar(BakedSheetGlyph.GlyphInstance glyph, Matrix4f pose, VertexConsumer consumer, int packedLight, boolean noDepth) (package private) voidrenderEffect(BakedSheetGlyph.EffectInstance effect, Matrix4f pose, VertexConsumer consumer, int packedLight, boolean noDepth) (package private) floatprivate floatprivate floatshearTop()(package private) floattop(BakedSheetGlyph.GlyphInstance glyph)
-
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
void renderChar(BakedSheetGlyph.GlyphInstance glyph, Matrix4f pose, VertexConsumer consumer, int packedLight, boolean noDepth) -
render
private void render(boolean italic, float x, float y, float z, Matrix4f pose, VertexConsumer consumer, int color, boolean bold, int packedLight) -
extraThickness
private static float extraThickness(boolean bold) -
shearBottom
private float shearBottom() -
shearTop
private float shearTop() -
renderEffect
void renderEffect(BakedSheetGlyph.EffectInstance effect, Matrix4f pose, VertexConsumer consumer, int packedLight, boolean noDepth) -
buildEffect
private void buildEffect(BakedSheetGlyph.EffectInstance effect, float shadowOffset, float depthOffset, int shadowColor, VertexConsumer consumer, int packedLight, Matrix4f pose) -
info
- Specified by:
infoin interfaceBakedGlyph
-
createGlyph
public TextRenderable createGlyph(float p_439638_, float p_439877_, int p_440324_, int p_439600_, Style p_440608_, float p_440490_, float p_440025_) - Specified by:
createGlyphin interfaceBakedGlyph
-
createEffect
public TextRenderable createEffect(float p_439937_, float p_439747_, float p_439686_, float p_439982_, float p_440147_, int p_439079_, int p_440306_, float p_440077_) - Specified by:
createEffectin interfaceEffectGlyph
-