Package net.minecraft.client.gui
Class Font
java.lang.Object
net.minecraft.client.gui.Font
- All Implemented Interfaces:
IForgeFont
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum(package private) class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate static final float(package private) final booleanprivate final Function<ResourceLocation,FontSet> final intfinal RandomSourceprivate static final org.joml.Vector3fprivate final StringSplitterFields inherited from interface net.minecraftforge.client.extensions.IForgeFont
ELLIPSIS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intadjustColor(int p_92720_) bidirectionalShaping(String p_92802_) intintintdraw(PoseStack p_92878_, FormattedCharSequence p_92879_, float p_92880_, float p_92881_, int p_92882_) intdrawInBatch(String p_272751_, float p_272661_, float p_273129_, int p_273272_, boolean p_273209_, org.joml.Matrix4f p_272940_, MultiBufferSource p_273017_, Font.DisplayMode p_272608_, int p_273365_, int p_272755_) intdrawInBatch(String p_272780_, float p_272811_, float p_272610_, int p_273422_, boolean p_273016_, org.joml.Matrix4f p_273443_, MultiBufferSource p_273387_, Font.DisplayMode p_273551_, int p_272706_, int p_273114_, boolean p_273022_) intdrawInBatch(Component p_273032_, float p_273249_, float p_273594_, int p_273714_, boolean p_273050_, org.joml.Matrix4f p_272974_, MultiBufferSource p_273695_, Font.DisplayMode p_272782_, int p_272603_, int p_273632_) intdrawInBatch(FormattedCharSequence p_273262_, float p_273006_, float p_273254_, int p_273375_, boolean p_273674_, org.joml.Matrix4f p_273525_, MultiBufferSource p_272624_, Font.DisplayMode p_273418_, int p_273330_, int p_272981_) voiddrawInBatch8xOutline(FormattedCharSequence p_168646_, float p_168647_, float p_168648_, int p_168649_, int p_168650_, org.joml.Matrix4f p_254170_, MultiBufferSource p_168652_, int p_168653_) private intdrawInternal(String p_273658_, float p_273086_, float p_272883_, int p_273547_, boolean p_272778_, org.joml.Matrix4f p_272662_, MultiBufferSource p_273012_, Font.DisplayMode p_273381_, int p_272855_, int p_272745_, boolean p_272785_) private intdrawInternal(String p_254064_, float p_254270_, float p_254152_, int p_254242_, org.joml.Matrix4f p_254345_, boolean p_254516_, boolean p_254277_) private intdrawInternal(FormattedCharSequence p_273025_, float p_273121_, float p_272717_, int p_273653_, boolean p_273531_, org.joml.Matrix4f p_273265_, MultiBufferSource p_273560_, Font.DisplayMode p_273342_, int p_273373_, int p_273266_) private intdrawInternal(FormattedCharSequence p_253879_, float p_254094_, float p_254476_, int p_254424_, org.joml.Matrix4f p_253964_, boolean p_254201_) intdrawShadow(PoseStack p_92751_, String p_92752_, float p_92753_, float p_92754_, int p_92755_) intdrawShadow(PoseStack p_92757_, String p_92758_, float p_92759_, float p_92760_, int p_92761_, boolean p_92762_) intdrawShadow(PoseStack p_92764_, Component p_92765_, float p_92766_, float p_92767_, int p_92768_) intdrawShadow(PoseStack p_92745_, FormattedCharSequence p_92746_, float p_92747_, float p_92748_, int p_92749_) voiddrawWordWrap(PoseStack p_275601_, FormattedText p_275493_, int p_275609_, int p_275274_, int p_275484_, int p_275332_) (package private) FontSetgetFontSet(ResourceLocation p_92864_) booleanplainSubstrByWidth(String p_92835_, int p_92836_) plainSubstrByWidth(String p_92838_, int p_92839_, boolean p_92840_) (package private) voidrenderChar(BakedGlyph p_254105_, boolean p_254001_, boolean p_254262_, float p_254256_, float p_253753_, float p_253629_, org.joml.Matrix4f p_254014_, VertexConsumer p_253852_, float p_254317_, float p_253809_, float p_253870_, float p_254287_, int p_253905_) private floatrenderText(String p_273765_, float p_273532_, float p_272783_, int p_273217_, boolean p_273583_, org.joml.Matrix4f p_272734_, MultiBufferSource p_272595_, Font.DisplayMode p_273610_, int p_273727_, int p_273199_) private floatrenderText(FormattedCharSequence p_273322_, float p_272632_, float p_273541_, int p_273200_, boolean p_273312_, org.joml.Matrix4f p_273276_, MultiBufferSource p_273392_, Font.DisplayMode p_272625_, int p_273774_, int p_273371_) self()split(FormattedText p_92924_, int p_92925_) substrByWidth(FormattedText p_92855_, int p_92856_) intintwidth(FormattedText p_92853_) intwidth(FormattedCharSequence p_92725_) intwordWrapHeight(String p_92921_, int p_92922_) intwordWrapHeight(FormattedText p_239134_, int p_239135_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.client.extensions.IForgeFont
ellipsize
-
Field Details
-
EFFECT_DEPTH
private static final float EFFECT_DEPTH- See Also:
-
SHADOW_OFFSET
private static final org.joml.Vector3f SHADOW_OFFSET -
ALPHA_CUTOFF
public static final int ALPHA_CUTOFF- See Also:
-
lineHeight
public final int lineHeight- See Also:
-
random
-
fonts
-
filterFishyGlyphs
final boolean filterFishyGlyphs -
splitter
-
-
Constructor Details
-
Font
-
-
Method Details
-
getFontSet
-
drawShadow
-
drawShadow
-
draw
-
drawShadow
public int drawShadow(PoseStack p_92745_, FormattedCharSequence p_92746_, float p_92747_, float p_92748_, int p_92749_) -
drawShadow
-
draw
public int draw(PoseStack p_92878_, FormattedCharSequence p_92879_, float p_92880_, float p_92881_, int p_92882_) -
draw
-
bidirectionalShaping
-
drawInternal
private int drawInternal(String p_254064_, float p_254270_, float p_254152_, int p_254242_, org.joml.Matrix4f p_254345_, boolean p_254516_, boolean p_254277_) -
drawInternal
private int drawInternal(FormattedCharSequence p_253879_, float p_254094_, float p_254476_, int p_254424_, org.joml.Matrix4f p_253964_, boolean p_254201_) -
drawInBatch
public int drawInBatch(String p_272751_, float p_272661_, float p_273129_, int p_273272_, boolean p_273209_, org.joml.Matrix4f p_272940_, MultiBufferSource p_273017_, Font.DisplayMode p_272608_, int p_273365_, int p_272755_) -
drawInBatch
public int drawInBatch(String p_272780_, float p_272811_, float p_272610_, int p_273422_, boolean p_273016_, org.joml.Matrix4f p_273443_, MultiBufferSource p_273387_, Font.DisplayMode p_273551_, int p_272706_, int p_273114_, boolean p_273022_) -
drawInBatch
public int drawInBatch(Component p_273032_, float p_273249_, float p_273594_, int p_273714_, boolean p_273050_, org.joml.Matrix4f p_272974_, MultiBufferSource p_273695_, Font.DisplayMode p_272782_, int p_272603_, int p_273632_) -
drawInBatch
public int drawInBatch(FormattedCharSequence p_273262_, float p_273006_, float p_273254_, int p_273375_, boolean p_273674_, org.joml.Matrix4f p_273525_, MultiBufferSource p_272624_, Font.DisplayMode p_273418_, int p_273330_, int p_272981_) -
drawInBatch8xOutline
public void drawInBatch8xOutline(FormattedCharSequence p_168646_, float p_168647_, float p_168648_, int p_168649_, int p_168650_, org.joml.Matrix4f p_254170_, MultiBufferSource p_168652_, int p_168653_) -
adjustColor
private static int adjustColor(int p_92720_) -
drawInternal
private int drawInternal(String p_273658_, float p_273086_, float p_272883_, int p_273547_, boolean p_272778_, org.joml.Matrix4f p_272662_, MultiBufferSource p_273012_, Font.DisplayMode p_273381_, int p_272855_, int p_272745_, boolean p_272785_) -
drawInternal
private int drawInternal(FormattedCharSequence p_273025_, float p_273121_, float p_272717_, int p_273653_, boolean p_273531_, org.joml.Matrix4f p_273265_, MultiBufferSource p_273560_, Font.DisplayMode p_273342_, int p_273373_, int p_273266_) -
renderText
private float renderText(String p_273765_, float p_273532_, float p_272783_, int p_273217_, boolean p_273583_, org.joml.Matrix4f p_272734_, MultiBufferSource p_272595_, Font.DisplayMode p_273610_, int p_273727_, int p_273199_) -
renderText
private float renderText(FormattedCharSequence p_273322_, float p_272632_, float p_273541_, int p_273200_, boolean p_273312_, org.joml.Matrix4f p_273276_, MultiBufferSource p_273392_, Font.DisplayMode p_272625_, int p_273774_, int p_273371_) -
renderChar
void renderChar(BakedGlyph p_254105_, boolean p_254001_, boolean p_254262_, float p_254256_, float p_253753_, float p_253629_, org.joml.Matrix4f p_254014_, VertexConsumer p_253852_, float p_254317_, float p_253809_, float p_253870_, float p_254287_, int p_253905_) -
width
-
width
-
width
-
plainSubstrByWidth
-
plainSubstrByWidth
-
substrByWidth
-
drawWordWrap
public void drawWordWrap(PoseStack p_275601_, FormattedText p_275493_, int p_275609_, int p_275274_, int p_275484_, int p_275332_) -
wordWrapHeight
-
wordWrapHeight
-
split
-
isBidirectional
public boolean isBidirectional() -
getSplitter
-
self
- Specified by:
selfin interfaceIForgeFont
-