Package net.minecraft.client.gui
Class Font
java.lang.Object
net.minecraft.client.gui.Font
- All Implemented Interfaces:
- IFontExtension
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enum(package private) class
- 
Field SummaryFieldsModifier 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.neoforged.neoforge.client.extensions.IFontExtensionELLIPSIS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static intadjustColor(int p_92720_) bidirectionalShaping(String p_92802_) 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(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_) (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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.client.extensions.IFontExtensionellipsize
- 
Field Details- 
EFFECT_DEPTHprivate static final float EFFECT_DEPTH- See Also:
 
- 
SHADOW_OFFSETprivate static final org.joml.Vector3f SHADOW_OFFSET
- 
ALPHA_CUTOFFpublic static final int ALPHA_CUTOFF- See Also:
 
- 
lineHeightpublic final int lineHeight- See Also:
 
- 
random
- 
fonts
- 
filterFishyGlyphsfinal boolean filterFishyGlyphs
- 
splitter
 
- 
- 
Constructor Details- 
Font
 
- 
- 
Method Details- 
getFontSet
- 
bidirectionalShaping
- 
drawInBatchpublic 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_) 
- 
drawInBatchpublic 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_) 
- 
drawInBatchpublic 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_) 
- 
drawInBatchpublic 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_) 
- 
drawInBatch8xOutlinepublic 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_) 
- 
adjustColorprivate static int adjustColor(int p_92720_) 
- 
drawInternalprivate 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_) 
- 
drawInternalprivate 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_) 
- 
renderTextprivate 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_) 
- 
renderTextprivate 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_) 
- 
renderCharvoid 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
- 
wordWrapHeight
- 
wordWrapHeight
- 
split
- 
isBidirectionalpublic boolean isBidirectional()
- 
getSplitter
- 
self- Specified by:
- selfin interface- IFontExtension
 
 
-