2022-06-21 14:07:56 -04:00
|
|
|
CLASS net/minecraft/class_7529 net/minecraft/client/gui/widget/EditBoxWidget
|
|
|
|
COMMENT A widget of {@link EditBox}, a multiline edit box with support for
|
|
|
|
COMMENT basic keyboard shortcuts. This class implements the rendering and scrolling
|
|
|
|
COMMENT for the edit box.
|
|
|
|
FIELD field_39502 CURSOR_PADDING I
|
|
|
|
FIELD field_39503 CURSOR_COLOR I
|
|
|
|
FIELD field_39504 UNDERSCORE Ljava/lang/String;
|
|
|
|
FIELD field_39505 FOCUSED_BOX_TEXT_COLOR I
|
|
|
|
FIELD field_39506 UNFOCUSED_BOX_TEXT_COLOR I
|
|
|
|
FIELD field_39507 textRenderer Lnet/minecraft/class_327;
|
|
|
|
FIELD field_39508 placeholder Lnet/minecraft/class_2561;
|
2022-06-23 08:23:07 -04:00
|
|
|
COMMENT The placeholder text that gets rendered when the edit box is empty. This does not
|
2022-06-21 14:07:56 -04:00
|
|
|
COMMENT get returned from {@link #getText}; an empty string will be returned in such cases.
|
|
|
|
FIELD field_39509 editBox Lnet/minecraft/class_7530;
|
2023-08-05 12:41:13 -04:00
|
|
|
FIELD field_45363 CURSOR_BLINK_INTERVAL I
|
|
|
|
FIELD field_45364 lastSwitchFocusTime J
|
2022-06-21 14:07:56 -04:00
|
|
|
METHOD <init> (Lnet/minecraft/class_327;IIIILnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
|
2023-08-05 12:41:13 -04:00
|
|
|
ARG 1 textRenderer
|
2022-06-21 14:07:56 -04:00
|
|
|
ARG 2 x
|
|
|
|
ARG 3 y
|
|
|
|
ARG 4 width
|
|
|
|
ARG 5 height
|
|
|
|
ARG 6 placeholder
|
|
|
|
ARG 7 message
|
|
|
|
METHOD method_44400 setText (Ljava/lang/String;)V
|
|
|
|
COMMENT Sets the text of the edit box and moves the cursor to the end of the edit box.
|
|
|
|
ARG 1 text
|
|
|
|
METHOD method_44401 setChangeListener (Ljava/util/function/Consumer;)V
|
|
|
|
COMMENT Sets the change listener that is called every time the text changes.
|
|
|
|
ARG 1 changeListener
|
|
|
|
COMMENT the listener that takes the new text of the edit box
|
|
|
|
METHOD method_44402 setMaxLength (I)V
|
|
|
|
COMMENT Sets the maximum length of the edit box text in characters.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>If {@code maxLength} equals {@link EditBox#UNLIMITED_LENGTH}, the edit box does not
|
|
|
|
COMMENT have a length limit, and the widget does not show the current text length indicator.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @throws IllegalArgumentException if {@code maxLength} is negative
|
|
|
|
COMMENT @see EditBox#setMaxLength
|
|
|
|
ARG 1 maxLength
|
2023-04-20 10:15:32 -04:00
|
|
|
METHOD method_44403 drawSelection (Lnet/minecraft/class_332;IIII)V
|
2023-04-21 11:15:10 -04:00
|
|
|
ARG 1 context
|
2022-06-21 14:07:56 -04:00
|
|
|
ARG 2 left
|
|
|
|
ARG 3 top
|
|
|
|
ARG 4 right
|
|
|
|
ARG 5 bottom
|
|
|
|
METHOD method_44404 moveCursor (DD)V
|
|
|
|
ARG 1 mouseX
|
|
|
|
ARG 3 mouseY
|
|
|
|
METHOD method_44405 getText ()Ljava/lang/String;
|
|
|
|
COMMENT {@return the current text of the edit box}
|
|
|
|
METHOD method_44407 onCursorChange ()V
|
|
|
|
METHOD method_44408 getMaxLinesWithoutOverflow ()D
|
|
|
|
COMMENT {@return the maximum amount of lines the widget can hold without overflowing}
|