类 TextRenderer
- java.lang.Object
-
- net.minecraft.client.font.TextRenderer
-
@Environment(CLIENT) public class TextRenderer extends Object
Manages the rendering of text.The current instance used by the client can be obtained by
MinecraftClient.getInstance().textRenderer.- 另请参阅:
MinecraftClient.textRenderer- Mappings:
Namespace Name official dvhintermediary net/minecraft/class_327named net/minecraft/client/font/TextRenderer
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) classTextRenderer.Drawer
-
字段概要
字段 修饰符和类型 字段 说明 private static floatfield_32166intfontHeightThe font height of the text that is rendered by the text renderer.private Function<Identifier,FontStorage>fontStorageAccessorprivate static Vec3fFORWARD_SHIFTprivate TextHandlerhandlerRandomrandom
-
构造器概要
构造器 构造器 说明 TextRenderer(Function<Identifier,FontStorage> fontStorageAccessor)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 intdraw(String text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumers, boolean seeThrough, int backgroundColor, int light)intdraw(String text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumers, boolean seeThrough, int backgroundColor, int light, boolean rightToLeft)private intdraw(String text, float x, float y, int color, Matrix4f matrix, boolean shadow, boolean mirror)intdraw(MatrixStack matrices, String text, float x, float y, int color)intdraw(MatrixStack matrices, OrderedText text, float x, float y, int color)intdraw(MatrixStack matrices, Text text, float x, float y, int color)intdraw(OrderedText text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumers, boolean seeThrough, int backgroundColor, int light)private intdraw(OrderedText text, float x, float y, int color, Matrix4f matrix, boolean shadow)intdraw(Text text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumers, boolean seeThrough, int backgroundColor, int light)private voiddrawGlyph(GlyphRenderer glyphRenderer, boolean bold, boolean italic, float weight, float x, float y, Matrix4f matrix, VertexConsumer vertexConsumer, float red, float green, float blue, float alpha, int light)private intdrawInternal(String text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumers, boolean seeThrough, int backgroundColor, int light, boolean mirror)private intdrawInternal(OrderedText text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumerProvider, boolean seeThrough, int backgroundColor, int light)private floatdrawLayer(String text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumerProvider, boolean seeThrough, int underlineColor, int light)private floatdrawLayer(OrderedText text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumerProvider, boolean seeThrough, int underlineColor, int light)voiddrawTrimmed(StringVisitable text, int x, int y, int maxWidth, int color)intdrawWithShadow(MatrixStack matrices, String text, float x, float y, int color)intdrawWithShadow(MatrixStack matrices, String text, float x, float y, int color, boolean rightToLeft)intdrawWithShadow(MatrixStack matrices, OrderedText text, float x, float y, int color)intdrawWithShadow(MatrixStack matrices, Text text, float x, float y, int color)private FontStoragegetFontStorage(Identifier id)TextHandlergetTextHandler()intgetWidth(String text)Gets the width of some text when rendered.intgetWidth(OrderedText text)Gets the width of some text when rendered.intgetWidth(StringVisitable text)Gets the width of some text when rendered.intgetWrappedLinesHeight(String text, int maxWidth)Gets the height of the text when it has been wrapped.booleanisRightToLeft()Checks if the currently set language uses right to left writing.Stringmirror(String text)StringtrimToWidth(String text, int maxWidth)Trims a string to be at mostmaxWidthwide.StringtrimToWidth(String text, int maxWidth, boolean backwards)Trims a string to be at mostmaxWidthwide.StringVisitabletrimToWidth(StringVisitable text, int width)Trims a string to be at mostmaxWidthwide.private static inttweakTransparency(int argb)List<OrderedText>wrapLines(StringVisitable text, int width)Wraps text when the rendered width of text exceeds thewidth.
-
-
-
字段详细资料
-
field_32166
private static final float field_32166
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLdvh;c:Fintermediary field_32166Lnet/minecraft/class_327;field_32166:Fnamed field_32166Lnet/minecraft/client/font/TextRenderer;field_32166:F
-
FORWARD_SHIFT
private static final Vec3f FORWARD_SHIFT
- Mappings:
Namespace Name Mixin selector official dLdvh;d:Lk;intermediary field_24237Lnet/minecraft/class_327;field_24237:Lnet/minecraft/class_1160;named FORWARD_SHIFTLnet/minecraft/client/font/TextRenderer;FORWARD_SHIFT:Lnet/minecraft/util/math/Vec3f;
-
fontHeight
public final int fontHeight
The font height of the text that is rendered by the text renderer.- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLdvh;a:Iintermediary field_2000Lnet/minecraft/class_327;field_2000:Inamed fontHeightLnet/minecraft/client/font/TextRenderer;fontHeight:I
-
random
public final Random random
- Mappings:
Namespace Name Mixin selector official bLdvh;b:Ljava/util/Random;intermediary field_2001Lnet/minecraft/class_327;field_2001:Ljava/util/Random;named randomLnet/minecraft/client/font/TextRenderer;random:Ljava/util/Random;
-
fontStorageAccessor
private final Function<Identifier,FontStorage> fontStorageAccessor
- Mappings:
Namespace Name Mixin selector official eLdvh;e:Ljava/util/function/Function;intermediary field_1997Lnet/minecraft/class_327;field_1997:Ljava/util/function/Function;named fontStorageAccessorLnet/minecraft/client/font/TextRenderer;fontStorageAccessor:Ljava/util/function/Function;
-
handler
private final TextHandler handler
- Mappings:
Namespace Name Mixin selector official fLdvh;f:Lduw;intermediary field_24238Lnet/minecraft/class_327;field_24238:Lnet/minecraft/class_5225;named handlerLnet/minecraft/client/font/TextRenderer;handler:Lnet/minecraft/client/font/TextHandler;
-
-
构造器详细资料
-
TextRenderer
public TextRenderer(Function<Identifier,FontStorage> fontStorageAccessor)
- Mappings:
Namespace Name Mixin selector official <init>Ldvh;<init>(Ljava/util/function/Function;)Vintermediary <init>Lnet/minecraft/class_327;<init>(Ljava/util/function/Function;)Vnamed <init>Lnet/minecraft/client/font/TextRenderer;<init>(Ljava/util/function/Function;)V
-
-
方法详细资料
-
getFontStorage
private FontStorage getFontStorage(Identifier id)
- Mappings:
Namespace Name Mixin selector official aLdvh;a(Lwp;)Ldxj;intermediary method_27526Lnet/minecraft/class_327;method_27526(Lnet/minecraft/class_2960;)Lnet/minecraft/class_377;named getFontStorageLnet/minecraft/client/font/TextRenderer;getFontStorage(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/font/FontStorage;
-
drawWithShadow
public int drawWithShadow(MatrixStack matrices, String text, float x, float y, int color)
- 参数:
color- the text color in the 0xAARRGGBB format- Mappings:
Namespace Name Mixin selector official aLdvh;a(Ldpi;Ljava/lang/String;FFI)Iintermediary method_1720Lnet/minecraft/class_327;method_1720(Lnet/minecraft/class_4587;Ljava/lang/String;FFI)Inamed drawWithShadowLnet/minecraft/client/font/TextRenderer;drawWithShadow(Lnet/minecraft/client/util/math/MatrixStack;Ljava/lang/String;FFI)I
-
drawWithShadow
public int drawWithShadow(MatrixStack matrices, String text, float x, float y, int color, boolean rightToLeft)
- 参数:
color- the text color in the 0xAARRGGBB format- Mappings:
Namespace Name Mixin selector official aLdvh;a(Ldpi;Ljava/lang/String;FFIZ)Iintermediary method_29342Lnet/minecraft/class_327;method_29342(Lnet/minecraft/class_4587;Ljava/lang/String;FFIZ)Inamed drawWithShadowLnet/minecraft/client/font/TextRenderer;drawWithShadow(Lnet/minecraft/client/util/math/MatrixStack;Ljava/lang/String;FFIZ)I
-
draw
public int draw(MatrixStack matrices, String text, float x, float y, int color)
- 参数:
color- the text color in the 0xAARRGGBB format- Mappings:
Namespace Name Mixin selector official bLdvh;b(Ldpi;Ljava/lang/String;FFI)Iintermediary method_1729Lnet/minecraft/class_327;method_1729(Lnet/minecraft/class_4587;Ljava/lang/String;FFI)Inamed drawLnet/minecraft/client/font/TextRenderer;draw(Lnet/minecraft/client/util/math/MatrixStack;Ljava/lang/String;FFI)I
-
drawWithShadow
public int drawWithShadow(MatrixStack matrices, OrderedText text, float x, float y, int color)
- 参数:
color- the text color in the 0xAARRGGBB format- Mappings:
Namespace Name Mixin selector official aLdvh;a(Ldpi;Lagj;FFI)Iintermediary method_27517Lnet/minecraft/class_327;method_27517(Lnet/minecraft/class_4587;Lnet/minecraft/class_5481;FFI)Inamed drawWithShadowLnet/minecraft/client/font/TextRenderer;drawWithShadow(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/text/OrderedText;FFI)I
-
drawWithShadow
public int drawWithShadow(MatrixStack matrices, Text text, float x, float y, int color)
- 参数:
color- the text color in the 0xAARRGGBB format- Mappings:
Namespace Name Mixin selector official aLdvh;a(Ldpi;Lon;FFI)Iintermediary method_30881Lnet/minecraft/class_327;method_30881(Lnet/minecraft/class_4587;Lnet/minecraft/class_2561;FFI)Inamed drawWithShadowLnet/minecraft/client/font/TextRenderer;drawWithShadow(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/text/Text;FFI)I
-
draw
public int draw(MatrixStack matrices, OrderedText text, float x, float y, int color)
- 参数:
color- the text color in the 0xAARRGGBB format- Mappings:
Namespace Name Mixin selector official bLdvh;b(Ldpi;Lagj;FFI)Iintermediary method_27528Lnet/minecraft/class_327;method_27528(Lnet/minecraft/class_4587;Lnet/minecraft/class_5481;FFI)Inamed drawLnet/minecraft/client/font/TextRenderer;draw(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/text/OrderedText;FFI)I
-
draw
public int draw(MatrixStack matrices, Text text, float x, float y, int color)
- 参数:
color- the text color in the 0xAARRGGBB format- Mappings:
Namespace Name Mixin selector official bLdvh;b(Ldpi;Lon;FFI)Iintermediary method_30883Lnet/minecraft/class_327;method_30883(Lnet/minecraft/class_4587;Lnet/minecraft/class_2561;FFI)Inamed drawLnet/minecraft/client/font/TextRenderer;draw(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/text/Text;FFI)I
-
mirror
public String mirror(String text)
- Mappings:
Namespace Name Mixin selector official aLdvh;a(Ljava/lang/String;)Ljava/lang/String;intermediary method_1721Lnet/minecraft/class_327;method_1721(Ljava/lang/String;)Ljava/lang/String;named mirrorLnet/minecraft/client/font/TextRenderer;mirror(Ljava/lang/String;)Ljava/lang/String;
-
draw
private int draw(String text, float x, float y, int color, Matrix4f matrix, boolean shadow, boolean mirror)
- Mappings:
Namespace Name Mixin selector official aLdvh;a(Ljava/lang/String;FFILd;ZZ)Iintermediary method_27520Lnet/minecraft/class_327;method_27520(Ljava/lang/String;FFILnet/minecraft/class_1159;ZZ)Inamed drawLnet/minecraft/client/font/TextRenderer;draw(Ljava/lang/String;FFILnet/minecraft/util/math/Matrix4f;ZZ)I
-
draw
private int draw(OrderedText text, float x, float y, int color, Matrix4f matrix, boolean shadow)
- Mappings:
Namespace Name Mixin selector official aLdvh;a(Lagj;FFILd;Z)Iintermediary method_22941Lnet/minecraft/class_327;method_22941(Lnet/minecraft/class_5481;FFILnet/minecraft/class_1159;Z)Inamed drawLnet/minecraft/client/font/TextRenderer;draw(Lnet/minecraft/text/OrderedText;FFILnet/minecraft/util/math/Matrix4f;Z)I
-
draw
public int draw(String text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumers, boolean seeThrough, int backgroundColor, int light)
- 参数:
color- the text color in the 0xAARRGGBB format- Mappings:
Namespace Name Mixin selector official aLdvh;a(Ljava/lang/String;FFIZLd;Lema;ZII)Iintermediary method_27521Lnet/minecraft/class_327;method_27521(Ljava/lang/String;FFIZLnet/minecraft/class_1159;Lnet/minecraft/class_4597;ZII)Inamed drawLnet/minecraft/client/font/TextRenderer;draw(Ljava/lang/String;FFIZLnet/minecraft/util/math/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;ZII)I
-
draw
public int draw(String text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumers, boolean seeThrough, int backgroundColor, int light, boolean rightToLeft)
- 参数:
color- the text color in the 0xAARRGGBB format- Mappings:
Namespace Name Mixin selector official aLdvh;a(Ljava/lang/String;FFIZLd;Lema;ZIIZ)Iintermediary method_27522Lnet/minecraft/class_327;method_27522(Ljava/lang/String;FFIZLnet/minecraft/class_1159;Lnet/minecraft/class_4597;ZIIZ)Inamed drawLnet/minecraft/client/font/TextRenderer;draw(Ljava/lang/String;FFIZLnet/minecraft/util/math/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;ZIIZ)I
-
draw
public int draw(Text text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumers, boolean seeThrough, int backgroundColor, int light)
- 参数:
color- the text color in the 0xAARRGGBB format- Mappings:
Namespace Name Mixin selector official aLdvh;a(Lon;FFIZLd;Lema;ZII)Iintermediary method_30882Lnet/minecraft/class_327;method_30882(Lnet/minecraft/class_2561;FFIZLnet/minecraft/class_1159;Lnet/minecraft/class_4597;ZII)Inamed drawLnet/minecraft/client/font/TextRenderer;draw(Lnet/minecraft/text/Text;FFIZLnet/minecraft/util/math/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;ZII)I
-
draw
public int draw(OrderedText text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumers, boolean seeThrough, int backgroundColor, int light)
- 参数:
color- the text color in the 0xAARRGGBB format- Mappings:
Namespace Name Mixin selector official aLdvh;a(Lagj;FFIZLd;Lema;ZII)Iintermediary method_22942Lnet/minecraft/class_327;method_22942(Lnet/minecraft/class_5481;FFIZLnet/minecraft/class_1159;Lnet/minecraft/class_4597;ZII)Inamed drawLnet/minecraft/client/font/TextRenderer;draw(Lnet/minecraft/text/OrderedText;FFIZLnet/minecraft/util/math/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;ZII)I
-
tweakTransparency
private static int tweakTransparency(int argb)
- Mappings:
Namespace Name Mixin selector official aLdvh;a(I)Iintermediary method_27515Lnet/minecraft/class_327;method_27515(I)Inamed tweakTransparencyLnet/minecraft/client/font/TextRenderer;tweakTransparency(I)I
-
drawInternal
private int drawInternal(String text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumers, boolean seeThrough, int backgroundColor, int light, boolean mirror)
- Mappings:
Namespace Name Mixin selector official bLdvh;b(Ljava/lang/String;FFIZLd;Lema;ZIIZ)Iintermediary method_27529Lnet/minecraft/class_327;method_27529(Ljava/lang/String;FFIZLnet/minecraft/class_1159;Lnet/minecraft/class_4597;ZIIZ)Inamed drawInternalLnet/minecraft/client/font/TextRenderer;drawInternal(Ljava/lang/String;FFIZLnet/minecraft/util/math/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;ZIIZ)I
-
drawInternal
private int drawInternal(OrderedText text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumerProvider, boolean seeThrough, int backgroundColor, int light)
- Mappings:
Namespace Name Mixin selector official bLdvh;b(Lagj;FFIZLd;Lema;ZII)Iintermediary method_1723Lnet/minecraft/class_327;method_1723(Lnet/minecraft/class_5481;FFIZLnet/minecraft/class_1159;Lnet/minecraft/class_4597;ZII)Inamed drawInternalLnet/minecraft/client/font/TextRenderer;drawInternal(Lnet/minecraft/text/OrderedText;FFIZLnet/minecraft/util/math/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;ZII)I
-
drawLayer
private float drawLayer(String text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumerProvider, boolean seeThrough, int underlineColor, int light)
- Mappings:
Namespace Name Mixin selector official bLdvh;b(Ljava/lang/String;FFIZLd;Lema;ZII)Fintermediary method_1724Lnet/minecraft/class_327;method_1724(Ljava/lang/String;FFIZLnet/minecraft/class_1159;Lnet/minecraft/class_4597;ZII)Fnamed drawLayerLnet/minecraft/client/font/TextRenderer;drawLayer(Ljava/lang/String;FFIZLnet/minecraft/util/math/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;ZII)F
-
drawLayer
private float drawLayer(OrderedText text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumerProvider, boolean seeThrough, int underlineColor, int light)
- Mappings:
Namespace Name Mixin selector official cLdvh;c(Lagj;FFIZLd;Lema;ZII)Fintermediary method_27530Lnet/minecraft/class_327;method_27530(Lnet/minecraft/class_5481;FFIZLnet/minecraft/class_1159;Lnet/minecraft/class_4597;ZII)Fnamed drawLayerLnet/minecraft/client/font/TextRenderer;drawLayer(Lnet/minecraft/text/OrderedText;FFIZLnet/minecraft/util/math/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;ZII)F
-
drawGlyph
private void drawGlyph(GlyphRenderer glyphRenderer, boolean bold, boolean italic, float weight, float x, float y, Matrix4f matrix, VertexConsumer vertexConsumer, float red, float green, float blue, float alpha, int light)
- Mappings:
Namespace Name Mixin selector official aLdvh;a(Ldxm;ZZFFFLd;Ldpm;FFFFI)Vintermediary method_1710Lnet/minecraft/class_327;method_1710(Lnet/minecraft/class_382;ZZFFFLnet/minecraft/class_1159;Lnet/minecraft/class_4588;FFFFI)Vnamed drawGlyphLnet/minecraft/client/font/TextRenderer;drawGlyph(Lnet/minecraft/client/font/GlyphRenderer;ZZFFFLnet/minecraft/util/math/Matrix4f;Lnet/minecraft/client/render/VertexConsumer;FFFFI)V
-
getWidth
public int getWidth(String text)
Gets the width of some text when rendered.- 参数:
text- the text- Mappings:
Namespace Name Mixin selector official bLdvh;b(Ljava/lang/String;)Iintermediary method_1727Lnet/minecraft/class_327;method_1727(Ljava/lang/String;)Inamed getWidthLnet/minecraft/client/font/TextRenderer;getWidth(Ljava/lang/String;)I
-
getWidth
public int getWidth(StringVisitable text)
Gets the width of some text when rendered.- 参数:
text- the text- Mappings:
Namespace Name Mixin selector official aLdvh;a(Loq;)Iintermediary method_27525Lnet/minecraft/class_327;method_27525(Lnet/minecraft/class_5348;)Inamed getWidthLnet/minecraft/client/font/TextRenderer;getWidth(Lnet/minecraft/text/StringVisitable;)I
-
getWidth
public int getWidth(OrderedText text)
Gets the width of some text when rendered.- Mappings:
Namespace Name Mixin selector official aLdvh;a(Lagj;)Iintermediary method_30880Lnet/minecraft/class_327;method_30880(Lnet/minecraft/class_5481;)Inamed getWidthLnet/minecraft/client/font/TextRenderer;getWidth(Lnet/minecraft/text/OrderedText;)I
-
trimToWidth
public String trimToWidth(String text, int maxWidth, boolean backwards)
Trims a string to be at mostmaxWidthwide.- 返回:
- the trimmed string
- Mappings:
Namespace Name Mixin selector official aLdvh;a(Ljava/lang/String;IZ)Ljava/lang/String;intermediary method_27524Lnet/minecraft/class_327;method_27524(Ljava/lang/String;IZ)Ljava/lang/String;named trimToWidthLnet/minecraft/client/font/TextRenderer;trimToWidth(Ljava/lang/String;IZ)Ljava/lang/String;
-
trimToWidth
public String trimToWidth(String text, int maxWidth)
Trims a string to be at mostmaxWidthwide.- 返回:
- the trimmed string
- 另请参阅:
TextHandler.trimToWidth(String, int, Style)- Mappings:
Namespace Name Mixin selector official aLdvh;a(Ljava/lang/String;I)Ljava/lang/String;intermediary method_27523Lnet/minecraft/class_327;method_27523(Ljava/lang/String;I)Ljava/lang/String;named trimToWidthLnet/minecraft/client/font/TextRenderer;trimToWidth(Ljava/lang/String;I)Ljava/lang/String;
-
trimToWidth
public StringVisitable trimToWidth(StringVisitable text, int width)
Trims a string to be at mostmaxWidthwide.- 返回:
- the text
- 另请参阅:
TextHandler.trimToWidth(StringVisitable, int, Style)- Mappings:
Namespace Name Mixin selector official aLdvh;a(Loq;I)Loq;intermediary method_1714Lnet/minecraft/class_327;method_1714(Lnet/minecraft/class_5348;I)Lnet/minecraft/class_5348;named trimToWidthLnet/minecraft/client/font/TextRenderer;trimToWidth(Lnet/minecraft/text/StringVisitable;I)Lnet/minecraft/text/StringVisitable;
-
drawTrimmed
public void drawTrimmed(StringVisitable text, int x, int y, int maxWidth, int color)
- 参数:
color- the text color in the 0xAARRGGBB format- Mappings:
Namespace Name Mixin selector official aLdvh;a(Loq;IIII)Vintermediary method_1712Lnet/minecraft/class_327;method_1712(Lnet/minecraft/class_5348;IIII)Vnamed drawTrimmedLnet/minecraft/client/font/TextRenderer;drawTrimmed(Lnet/minecraft/text/StringVisitable;IIII)V
-
getWrappedLinesHeight
public int getWrappedLinesHeight(String text, int maxWidth)
Gets the height of the text when it has been wrapped.- 返回:
- the height of the wrapped text
- 另请参阅:
wrapLines(StringVisitable, int)- Mappings:
Namespace Name Mixin selector official bLdvh;b(Ljava/lang/String;I)Iintermediary method_1713Lnet/minecraft/class_327;method_1713(Ljava/lang/String;I)Inamed getWrappedLinesHeightLnet/minecraft/client/font/TextRenderer;getWrappedLinesHeight(Ljava/lang/String;I)I
-
wrapLines
public List<OrderedText> wrapLines(StringVisitable text, int width)
Wraps text when the rendered width of text exceeds thewidth.- 返回:
- a list of ordered text which has been wrapped
- Mappings:
Namespace Name Mixin selector official bLdvh;b(Loq;I)Ljava/util/List;intermediary method_1728Lnet/minecraft/class_327;method_1728(Lnet/minecraft/class_5348;I)Ljava/util/List;named wrapLinesLnet/minecraft/client/font/TextRenderer;wrapLines(Lnet/minecraft/text/StringVisitable;I)Ljava/util/List;
-
isRightToLeft
public boolean isRightToLeft()
Checks if the currently set language uses right to left writing.- Mappings:
Namespace Name Mixin selector official aLdvh;a()Zintermediary method_1726Lnet/minecraft/class_327;method_1726()Znamed isRightToLeftLnet/minecraft/client/font/TextRenderer;isRightToLeft()Z
-
getTextHandler
public TextHandler getTextHandler()
- Mappings:
Namespace Name Mixin selector official bLdvh;b()Lduw;intermediary method_27527Lnet/minecraft/class_327;method_27527()Lnet/minecraft/class_5225;named getTextHandlerLnet/minecraft/client/font/TextRenderer;getTextHandler()Lnet/minecraft/client/font/TextHandler;
-
-