Package net.minecraft.client.gui
Class Font
java.lang.Object
net.minecraft.client.gui.Font
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
(package private) class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
private static final float
(package private) final boolean
private final Function<ResourceLocation,
FontSet> final int
final RandomSource
private static final org.joml.Vector3f
private final 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_254471_, float p_253772_, float p_254307_, int p_254485_, boolean p_253711_, org.joml.Matrix4f p_253933_, MultiBufferSource p_254054_, boolean p_254550_, int p_253707_, int p_254557_) int
drawInBatch
(String p_253974_, float p_253825_, float p_254295_, int p_254570_, boolean p_253977_, org.joml.Matrix4f p_254299_, MultiBufferSource p_253904_, boolean p_254255_, int p_253819_, int p_254055_, boolean p_254383_) int
drawInBatch
(Component p_253635_, float p_253857_, float p_253765_, int p_254057_, boolean p_253617_, org.joml.Matrix4f p_254371_, MultiBufferSource p_254194_, boolean p_253802_, int p_254399_, int p_254208_) int
drawInBatch
(FormattedCharSequence p_253999_, float p_254380_, float p_254273_, int p_253824_, boolean p_253968_, org.joml.Matrix4f p_253820_, MultiBufferSource p_253785_, boolean p_253815_, int p_254414_, int p_254065_) 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_) private int
drawInternal
(String p_254506_, float p_253981_, float p_254366_, int p_254180_, boolean p_254142_, org.joml.Matrix4f p_254236_, MultiBufferSource p_253724_, boolean p_254305_, int p_254008_, int p_254344_, boolean p_253878_) 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_) private int
drawInternal
(FormattedCharSequence p_254116_, float p_253739_, float p_254328_, int p_253965_, boolean p_254144_, org.joml.Matrix4f p_254539_, MultiBufferSource p_253987_, boolean p_254306_, int p_254337_, int p_253932_) private int
drawInternal
(FormattedCharSequence p_253879_, float p_254094_, float p_254476_, int p_254424_, org.joml.Matrix4f p_253964_, boolean p_254201_) 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_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 float
renderText
(String p_253621_, float p_254326_, float p_254139_, int p_254332_, boolean p_254523_, org.joml.Matrix4f p_254195_, MultiBufferSource p_254524_, boolean p_253751_, int p_253921_, int p_253648_) private float
renderText
(FormattedCharSequence p_253728_, float p_253634_, float p_254551_, int p_254369_, boolean p_254446_, org.joml.Matrix4f p_253807_, MultiBufferSource p_253975_, boolean p_253685_, int p_253959_, int p_253723_) 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_) int
wordWrapHeight
(FormattedText p_239134_, int p_239135_)
-
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_254471_, float p_253772_, float p_254307_, int p_254485_, boolean p_253711_, org.joml.Matrix4f p_253933_, MultiBufferSource p_254054_, boolean p_254550_, int p_253707_, int p_254557_) -
drawInBatch
public int drawInBatch(String p_253974_, float p_253825_, float p_254295_, int p_254570_, boolean p_253977_, org.joml.Matrix4f p_254299_, MultiBufferSource p_253904_, boolean p_254255_, int p_253819_, int p_254055_, boolean p_254383_) -
drawInBatch
public int drawInBatch(Component p_253635_, float p_253857_, float p_253765_, int p_254057_, boolean p_253617_, org.joml.Matrix4f p_254371_, MultiBufferSource p_254194_, boolean p_253802_, int p_254399_, int p_254208_) -
drawInBatch
public int drawInBatch(FormattedCharSequence p_253999_, float p_254380_, float p_254273_, int p_253824_, boolean p_253968_, org.joml.Matrix4f p_253820_, MultiBufferSource p_253785_, boolean p_253815_, int p_254414_, int p_254065_) -
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_254506_, float p_253981_, float p_254366_, int p_254180_, boolean p_254142_, org.joml.Matrix4f p_254236_, MultiBufferSource p_253724_, boolean p_254305_, int p_254008_, int p_254344_, boolean p_253878_) -
drawInternal
private int drawInternal(FormattedCharSequence p_254116_, float p_253739_, float p_254328_, int p_253965_, boolean p_254144_, org.joml.Matrix4f p_254539_, MultiBufferSource p_253987_, boolean p_254306_, int p_254337_, int p_253932_) -
renderText
private float renderText(String p_253621_, float p_254326_, float p_254139_, int p_254332_, boolean p_254523_, org.joml.Matrix4f p_254195_, MultiBufferSource p_254524_, boolean p_253751_, int p_253921_, int p_253648_) -
renderText
private float renderText(FormattedCharSequence p_253728_, float p_253634_, float p_254551_, int p_254369_, boolean p_254446_, org.joml.Matrix4f p_253807_, MultiBufferSource p_253975_, boolean p_253685_, int p_253959_, int p_253723_) -
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(FormattedText p_92858_, int p_92859_, int p_92860_, int p_92861_, int p_92862_) -
wordWrapHeight
-
wordWrapHeight
-
split
-
isBidirectional
public boolean isBidirectional() -
getSplitter
-