mirror of https://github.com/FabricMC/yarn.git
Some text renderer javadoc (#1878)
* Some text renderer javadoc * Update mappings/net/minecraft/client/font/TextRenderer.mapping Co-authored-by: YanisBft <doublecraft.official@gmail.com> * Update mappings/net/minecraft/client/font/TextRenderer.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/client/font/TextRenderer.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update mappings/net/minecraft/client/font/TextRenderer.mapping Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com> * Update TextRenderer.mapping Co-authored-by: YanisBft <doublecraft.official@gmail.com> Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
This commit is contained in:
parent
40d713533d
commit
42277f341c
|
@ -57,7 +57,9 @@ CLASS net/minecraft/class_5225 net/minecraft/client/font/TextHandler
|
|||
ARG 3 style
|
||||
COMMENT the style of the trimmed string
|
||||
METHOD method_27495 wrapLines (Lnet/minecraft/class_5348;ILnet/minecraft/class_2583;)Ljava/util/List;
|
||||
ARG 1 text
|
||||
ARG 2 maxWidth
|
||||
ARG 3 style
|
||||
METHOD method_27496 (Lorg/apache/commons/lang3/mutable/MutableFloat;ILnet/minecraft/class_2583;I)Z
|
||||
ARG 2 unused
|
||||
ARG 3 style
|
||||
|
@ -76,6 +78,10 @@ CLASS net/minecraft/class_5225 net/minecraft/client/font/TextHandler
|
|||
ARG 1 text
|
||||
ARG 2 maxWidth
|
||||
ARG 3 style
|
||||
METHOD method_29971 wrapLines (Lnet/minecraft/class_5348;ILnet/minecraft/class_2583;Ljava/util/function/BiConsumer;)V
|
||||
ARG 1 text
|
||||
ARG 2 maxWidth
|
||||
ARG 3 style
|
||||
METHOD method_30875 getWidth (Lnet/minecraft/class_5481;)F
|
||||
ARG 1 text
|
||||
METHOD method_30876 getStyleAt (Lnet/minecraft/class_5481;I)Lnet/minecraft/class_2583;
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
CLASS net/minecraft/class_327 net/minecraft/client/font/TextRenderer
|
||||
COMMENT Manages the rendering of text.
|
||||
FIELD field_1997 fontStorageAccessor Ljava/util/function/Function;
|
||||
FIELD field_2000 fontHeight I
|
||||
COMMENT The font height of the text that is rendered by the text renderer.
|
||||
FIELD field_2001 random Ljava/util/Random;
|
||||
FIELD field_24237 FORWARD_SHIFT Lnet/minecraft/class_1160;
|
||||
FIELD field_24238 handler Lnet/minecraft/class_5225;
|
||||
|
@ -27,10 +29,18 @@ CLASS net/minecraft/class_327 net/minecraft/client/font/TextRenderer
|
|||
ARG 4 maxWidth
|
||||
ARG 5 color
|
||||
COMMENT the text color in the 0xAARRGGBB format
|
||||
METHOD method_1713 getStringBoundedHeight (Ljava/lang/String;I)I
|
||||
METHOD method_1713 getWrappedLinesHeight (Ljava/lang/String;I)I
|
||||
COMMENT Gets the height of the text when it has been wrapped.
|
||||
COMMENT
|
||||
COMMENT @return the height of the wrapped text
|
||||
COMMENT @see TextRenderer#wrapLines(StringVisitable, int)
|
||||
ARG 1 text
|
||||
ARG 2 maxWidth
|
||||
METHOD method_1714 trimToWidth (Lnet/minecraft/class_5348;I)Lnet/minecraft/class_5348;
|
||||
COMMENT Trims a string to be at most {@code maxWidth} wide.
|
||||
COMMENT
|
||||
COMMENT @return the text
|
||||
COMMENT @see TextHandler#trimToWidth(StringVisitable, int, Style)
|
||||
ARG 1 text
|
||||
ARG 2 width
|
||||
METHOD method_1720 drawWithShadow (Lnet/minecraft/class_4587;Ljava/lang/String;FFI)I
|
||||
|
@ -65,9 +75,15 @@ CLASS net/minecraft/class_327 net/minecraft/client/font/TextRenderer
|
|||
ARG 9 underlineColor
|
||||
ARG 10 light
|
||||
METHOD method_1726 isRightToLeft ()Z
|
||||
COMMENT Checks if the currently set language uses right to left writing.
|
||||
METHOD method_1727 getWidth (Ljava/lang/String;)I
|
||||
COMMENT Gets the width of some text when rendered.
|
||||
ARG 1 text
|
||||
COMMENT the text
|
||||
METHOD method_1728 wrapLines (Lnet/minecraft/class_5348;I)Ljava/util/List;
|
||||
COMMENT Wraps text when the rendered width of text exceeds the {@code width}.
|
||||
COMMENT
|
||||
COMMENT @return a list of ordered text which has been wrapped
|
||||
ARG 1 text
|
||||
ARG 2 width
|
||||
METHOD method_1729 draw (Lnet/minecraft/class_4587;Ljava/lang/String;FFI)I
|
||||
|
@ -141,14 +157,23 @@ CLASS net/minecraft/class_327 net/minecraft/client/font/TextRenderer
|
|||
ARG 10 light
|
||||
ARG 11 rightToLeft
|
||||
METHOD method_27523 trimToWidth (Ljava/lang/String;I)Ljava/lang/String;
|
||||
COMMENT Trims a string to be at most {@code maxWidth} wide.
|
||||
COMMENT
|
||||
COMMENT @return the trimmed string
|
||||
COMMENT @see TextHandler#trimToWidth(String, int, Style)
|
||||
ARG 1 text
|
||||
ARG 2 maxWidth
|
||||
METHOD method_27524 trimToWidth (Ljava/lang/String;IZ)Ljava/lang/String;
|
||||
COMMENT Trims a string to be at most {@code maxWidth} wide.
|
||||
COMMENT
|
||||
COMMENT @return the trimmed string
|
||||
ARG 1 text
|
||||
ARG 2 maxWidth
|
||||
ARG 3 backwards
|
||||
METHOD method_27525 getWidth (Lnet/minecraft/class_5348;)I
|
||||
COMMENT Gets the width of some text when rendered.
|
||||
ARG 1 text
|
||||
COMMENT the text
|
||||
METHOD method_27526 getFontStorage (Lnet/minecraft/class_2960;)Lnet/minecraft/class_377;
|
||||
ARG 1 id
|
||||
METHOD method_27527 getTextHandler ()Lnet/minecraft/class_5225;
|
||||
|
@ -191,6 +216,7 @@ CLASS net/minecraft/class_327 net/minecraft/client/font/TextRenderer
|
|||
COMMENT the text color in the 0xAARRGGBB format
|
||||
ARG 6 rightToLeft
|
||||
METHOD method_30880 getWidth (Lnet/minecraft/class_5481;)I
|
||||
COMMENT Gets the width of some text when rendered.
|
||||
ARG 1 text
|
||||
METHOD method_30881 drawWithShadow (Lnet/minecraft/class_4587;Lnet/minecraft/class_2561;FFI)I
|
||||
ARG 1 matrices
|
||||
|
|
Loading…
Reference in New Issue