Package net.minecraft.client.gui
Class Font
java.lang.Object
net.minecraft.client.gui.Font
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
(package private) class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static float
private Function<ResourceLocation,FontSet>
int
private static Vector3f
private StringSplitter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
adjustColor(int p_92720_)
bidirectionalShaping(String p_92802_)
int
int
int
draw(PoseStack p_92878_, FormattedCharSequence p_92879_, float p_92880_, float p_92881_, int p_92882_)
int
drawInBatch(String p_92812_, float p_92813_, float p_92814_, int p_92815_, boolean p_92816_, Matrix4f p_92817_, MultiBufferSource p_92818_, boolean p_92819_, int p_92820_, int p_92821_)
int
drawInBatch(String p_92823_, float p_92824_, float p_92825_, int p_92826_, boolean p_92827_, Matrix4f p_92828_, MultiBufferSource p_92829_, boolean p_92830_, int p_92831_, int p_92832_, boolean p_92833_)
int
drawInBatch(Component p_92842_, float p_92843_, float p_92844_, int p_92845_, boolean p_92846_, Matrix4f p_92847_, MultiBufferSource p_92848_, boolean p_92849_, int p_92850_, int p_92851_)
int
drawInBatch(FormattedCharSequence p_92734_, float p_92735_, float p_92736_, int p_92737_, boolean p_92738_, Matrix4f p_92739_, MultiBufferSource p_92740_, boolean p_92741_, int p_92742_, int p_92743_)
void
drawInBatch8xOutline(FormattedCharSequence p_168646_, float p_168647_, float p_168648_, int p_168649_, int p_168650_, Matrix4f p_168651_, MultiBufferSource p_168652_, int p_168653_)
private int
drawInternal(String p_92909_, float p_92910_, float p_92911_, int p_92912_, boolean p_92913_, Matrix4f p_92914_, MultiBufferSource p_92915_, boolean p_92916_, int p_92917_, int p_92918_, boolean p_92919_)
private int
drawInternal(String p_92804_, float p_92805_, float p_92806_, int p_92807_, Matrix4f p_92808_, boolean p_92809_, boolean p_92810_)
private int
drawInternal(FormattedCharSequence p_92867_, float p_92868_, float p_92869_, int p_92870_, boolean p_92871_, Matrix4f p_92872_, MultiBufferSource p_92873_, boolean p_92874_, int p_92875_, int p_92876_)
private int
drawInternal(FormattedCharSequence p_92727_, float p_92728_, float p_92729_, int p_92730_, Matrix4f p_92731_, boolean p_92732_)
int
drawShadow(PoseStack p_92751_, String p_92752_, float p_92753_, float p_92754_, int p_92755_)
int
drawShadow(PoseStack p_92757_, String p_92758_, float p_92759_, float p_92760_, int p_92761_, boolean p_92762_)
int
drawShadow(PoseStack p_92764_, Component p_92765_, float p_92766_, float p_92767_, int p_92768_)
int
drawShadow(PoseStack p_92745_, FormattedCharSequence p_92746_, float p_92747_, float p_92748_, int p_92749_)
void
drawWordWrap(FormattedText p_92858_, int p_92859_, int p_92860_, int p_92861_, int p_92862_)
(package private) FontSet
getFontSet(ResourceLocation p_92864_)
boolean
plainSubstrByWidth(String p_92835_, int p_92836_)
plainSubstrByWidth(String p_92838_, int p_92839_, boolean p_92840_)
(package private) void
renderChar(BakedGlyph p_92788_, boolean p_92789_, boolean p_92790_, float p_92791_, float p_92792_, float p_92793_, Matrix4f p_92794_, VertexConsumer p_92795_, float p_92796_, float p_92797_, float p_92798_, float p_92799_, int p_92800_)
private float
renderText(String p_92898_, float p_92899_, float p_92900_, int p_92901_, boolean p_92902_, Matrix4f p_92903_, MultiBufferSource p_92904_, boolean p_92905_, int p_92906_, int p_92907_)
private float
renderText(FormattedCharSequence p_92927_, float p_92928_, float p_92929_, int p_92930_, boolean p_92931_, Matrix4f p_92932_, MultiBufferSource p_92933_, boolean p_92934_, int p_92935_, int p_92936_)
split(FormattedText p_92924_, int p_92925_)
substrByWidth(FormattedText p_92855_, int p_92856_)
int
int
width(FormattedText p_92853_)
int
width(FormattedCharSequence p_92725_)
int
wordWrapHeight(String p_92921_, int p_92922_)
-
Field Details
-
EFFECT_DEPTH
private static final float EFFECT_DEPTH- See Also:
- Constant Field Values
-
SHADOW_OFFSET
-
lineHeight
public final int lineHeight- See Also:
- Constant Field Values
-
random
-
fonts
-
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
-
drawInternal
private int drawInternal(FormattedCharSequence p_92727_, float p_92728_, float p_92729_, int p_92730_, Matrix4f p_92731_, boolean p_92732_) -
drawInBatch
public int drawInBatch(String p_92812_, float p_92813_, float p_92814_, int p_92815_, boolean p_92816_, Matrix4f p_92817_, MultiBufferSource p_92818_, boolean p_92819_, int p_92820_, int p_92821_) -
drawInBatch
public int drawInBatch(String p_92823_, float p_92824_, float p_92825_, int p_92826_, boolean p_92827_, Matrix4f p_92828_, MultiBufferSource p_92829_, boolean p_92830_, int p_92831_, int p_92832_, boolean p_92833_) -
drawInBatch
public int drawInBatch(Component p_92842_, float p_92843_, float p_92844_, int p_92845_, boolean p_92846_, Matrix4f p_92847_, MultiBufferSource p_92848_, boolean p_92849_, int p_92850_, int p_92851_) -
drawInBatch
public int drawInBatch(FormattedCharSequence p_92734_, float p_92735_, float p_92736_, int p_92737_, boolean p_92738_, Matrix4f p_92739_, MultiBufferSource p_92740_, boolean p_92741_, int p_92742_, int p_92743_) -
drawInBatch8xOutline
public void drawInBatch8xOutline(FormattedCharSequence p_168646_, float p_168647_, float p_168648_, int p_168649_, int p_168650_, Matrix4f p_168651_, MultiBufferSource p_168652_, int p_168653_) -
adjustColor
private static int adjustColor(int p_92720_) -
drawInternal
private int drawInternal(String p_92909_, float p_92910_, float p_92911_, int p_92912_, boolean p_92913_, Matrix4f p_92914_, MultiBufferSource p_92915_, boolean p_92916_, int p_92917_, int p_92918_, boolean p_92919_) -
drawInternal
private int drawInternal(FormattedCharSequence p_92867_, float p_92868_, float p_92869_, int p_92870_, boolean p_92871_, Matrix4f p_92872_, MultiBufferSource p_92873_, boolean p_92874_, int p_92875_, int p_92876_) -
renderText
private float renderText(String p_92898_, float p_92899_, float p_92900_, int p_92901_, boolean p_92902_, Matrix4f p_92903_, MultiBufferSource p_92904_, boolean p_92905_, int p_92906_, int p_92907_) -
renderText
private float renderText(FormattedCharSequence p_92927_, float p_92928_, float p_92929_, int p_92930_, boolean p_92931_, Matrix4f p_92932_, MultiBufferSource p_92933_, boolean p_92934_, int p_92935_, int p_92936_) -
renderChar
void renderChar(BakedGlyph p_92788_, boolean p_92789_, boolean p_92790_, float p_92791_, float p_92792_, float p_92793_, Matrix4f p_92794_, VertexConsumer p_92795_, float p_92796_, float p_92797_, float p_92798_, float p_92799_, int p_92800_) -
width
-
width
-
width
-
plainSubstrByWidth
-
plainSubstrByWidth
-
substrByWidth
-
drawWordWrap
public void drawWordWrap(FormattedText p_92858_, int p_92859_, int p_92860_, int p_92861_, int p_92862_) -
wordWrapHeight
-
split
-
isBidirectional
public boolean isBidirectional() -
getSplitter
-