Class Font
java.lang.Object
net.minecraft.client.gui.Font
- All Implemented Interfaces:
IFontExtension
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic interfacestatic interfaceprivate classstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final floatbooleanNeo: enables linear filtering on textfinal intprivate static final floatprivate final Font.Providerprivate final RandomSourcestatic final floatprivate final StringSplitterprivate static final floatFields inherited from interface IFontExtension
ELLIPSIS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbidirectionalShaping(String text) Apply Unicode Bidirectional Algorithm to string and return a new possibly reordered string for visual rendering.voiddrawInBatch(String str, float x, float y, int color, boolean dropShadow, Matrix4f pose, MultiBufferSource bufferSource, Font.DisplayMode displayMode, int backgroundColor, int packedLightCoords) voiddrawInBatch(Component str, float x, float y, int color, boolean dropShadow, Matrix4f pose, MultiBufferSource bufferSource, Font.DisplayMode displayMode, int backgroundColor, int packedLightCoords) voiddrawInBatch(FormattedCharSequence str, float x, float y, int color, boolean dropShadow, Matrix4f pose, MultiBufferSource bufferSource, Font.DisplayMode displayMode, int backgroundColor, int packedLightCoords) voiddrawInBatch8xOutline(FormattedCharSequence str, float x, float y, int color, int outlineColor, Matrix4f pose, MultiBufferSource bufferSource, int packedLightCoords) private BakedGlyphprivate GlyphSourcegetGlyphSource(FontDescription fontLocation) booleanplainSubstrByWidth(String str, int width) plainSubstrByWidth(String str, int width, boolean reverse) prepareText(String text, float x, float y, int originalColor, boolean drawShadow, int backgroundColor) prepareText(FormattedCharSequence text, float x, float y, int originalColor, boolean drawShadow, boolean includeEmpty, int backgroundColor) self()split(FormattedText input, int maxWidth) splitIgnoringLanguage(FormattedText input, int maxWidth) substrByWidth(FormattedText text, int width) intReturns the width of this string.intwidth(FormattedText text) intwidth(FormattedCharSequence text) intwordWrapHeight(FormattedText input, int textWidth) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IFontExtension
ellipsize
-
Field Details
-
EFFECT_DEPTH
private static final float EFFECT_DEPTH- See Also:
-
OVER_EFFECT_DEPTH
private static final float OVER_EFFECT_DEPTH- See Also:
-
UNDER_EFFECT_DEPTH
private static final float UNDER_EFFECT_DEPTH- See Also:
-
SHADOW_DEPTH
public static final float SHADOW_DEPTH- See Also:
-
lineHeight
public final int lineHeight- See Also:
-
random
-
provider
-
splitter
-
enableTextTextureLinearFiltering
public boolean enableTextTextureLinearFilteringNeo: enables linear filtering on text
-
-
Constructor Details
-
Font
-
-
Method Details
-
getGlyphSource
-
bidirectionalShaping
-
drawInBatch
public void drawInBatch(String str, float x, float y, int color, boolean dropShadow, Matrix4f pose, MultiBufferSource bufferSource, Font.DisplayMode displayMode, int backgroundColor, int packedLightCoords) -
drawInBatch
public void drawInBatch(Component str, float x, float y, int color, boolean dropShadow, Matrix4f pose, MultiBufferSource bufferSource, Font.DisplayMode displayMode, int backgroundColor, int packedLightCoords) -
drawInBatch
public void drawInBatch(FormattedCharSequence str, float x, float y, int color, boolean dropShadow, Matrix4f pose, MultiBufferSource bufferSource, Font.DisplayMode displayMode, int backgroundColor, int packedLightCoords) -
drawInBatch8xOutline
public void drawInBatch8xOutline(FormattedCharSequence str, float x, float y, int color, int outlineColor, Matrix4f pose, MultiBufferSource bufferSource, int packedLightCoords) -
getGlyph
-
prepareText
public Font.PreparedText prepareText(String text, float x, float y, int originalColor, boolean drawShadow, int backgroundColor) -
prepareText
public Font.PreparedText prepareText(FormattedCharSequence text, float x, float y, int originalColor, boolean drawShadow, boolean includeEmpty, int backgroundColor) -
width
Returns the width of this string. Equivalent of FontMetrics.stringWidth(String s). -
width
-
width
-
plainSubstrByWidth
-
plainSubstrByWidth
-
substrByWidth
-
wordWrapHeight
-
split
-
splitIgnoringLanguage
-
isBidirectional
public boolean isBidirectional() -
getSplitter
-
self
- Specified by:
selfin interfaceIFontExtension
-