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 pInfo, GlyphRenderTypes pRenderTypes, GpuTextureView pTextureView, float pU0, float pU1, float pV0, float pV1, float pLeft, float pRight, float pUp, float pDown) -
Method Summary
Modifier and TypeMethodDescription(package private) floatbottom(BakedSheetGlyph.GlyphInstance pGlyph) private voidbuildEffect(BakedSheetGlyph.EffectInstance pEffect, float pShadowOffset, float pDepthOffset, int pShadowColor, VertexConsumer pConsumer, int pPackedLight, Matrix4f pPose) 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 pBold) info()(package private) floatleft(BakedSheetGlyph.GlyphInstance pGlyph) private voidrender(boolean pItalic, float pX, float pY, float pZ, Matrix4f pPose, VertexConsumer pConsumer, int pColor, boolean pBold, int pPackedLight) (package private) voidrenderChar(BakedSheetGlyph.GlyphInstance pGlyph, Matrix4f pPose, VertexConsumer pConsumer, int pPackedLight, boolean pNoDepth) (package private) voidrenderEffect(BakedSheetGlyph.EffectInstance pEffect, Matrix4f pPose, VertexConsumer pConsumer, int pPackedLight, boolean pNoDepth) (package private) floatright(BakedSheetGlyph.GlyphInstance pGlyph) private floatprivate floatshearTop()(package private) floattop(BakedSheetGlyph.GlyphInstance pGlyph)
-
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 pInfo, GlyphRenderTypes pRenderTypes, 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
void renderChar(BakedSheetGlyph.GlyphInstance pGlyph, Matrix4f pPose, VertexConsumer pConsumer, int pPackedLight, boolean pNoDepth) -
render
private void render(boolean pItalic, float pX, float pY, float pZ, Matrix4f pPose, VertexConsumer pConsumer, int pColor, boolean pBold, int pPackedLight) -
extraThickness
private static float extraThickness(boolean pBold) -
shearBottom
private float shearBottom() -
shearTop
private float shearTop() -
renderEffect
void renderEffect(BakedSheetGlyph.EffectInstance pEffect, Matrix4f pPose, VertexConsumer pConsumer, int pPackedLight, boolean pNoDepth) -
buildEffect
private void buildEffect(BakedSheetGlyph.EffectInstance pEffect, float pShadowOffset, float pDepthOffset, int pShadowColor, VertexConsumer pConsumer, int pPackedLight, Matrix4f pPose) -
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
-