mirror of https://github.com/FabricMC/yarn.git
42 lines
2.2 KiB
Plaintext
42 lines
2.2 KiB
Plaintext
|
CLASS net/minecraft/class_7534 net/minecraft/client/gui/screen/TaskScreen
|
||
|
COMMENT A screen that is used for indicating that a task is running or has finished
|
||
|
COMMENT running (either successfully or unsuccessfully). The screen has an optional
|
||
|
COMMENT multi-line description and a button which can be used to close the screen.
|
||
|
COMMENT The button can have a cooldown, which disables the button for a while after
|
||
|
COMMENT the screen is displayed.
|
||
|
FIELD field_39541 TITLE_TEXT_Y I
|
||
|
FIELD field_39542 DESCRIPTION_TEXT_Y I
|
||
|
FIELD field_39543 DESCRIPTION_TEXT_WIDTH I
|
||
|
FIELD field_39544 closeButtonText Lnet/minecraft/class_2561;
|
||
|
FIELD field_39545 closeCallback Ljava/lang/Runnable;
|
||
|
COMMENT The callback executed when the button or the Esc key is pressed. This can
|
||
|
COMMENT have a side effect, such as cancelling a task in progress.
|
||
|
FIELD field_39546 description Lnet/minecraft/class_5489;
|
||
|
FIELD field_39547 button Lnet/minecraft/class_4185;
|
||
|
COMMENT The button to close the screen (potentially with a side effect, such as cancelling a task).
|
||
|
FIELD field_39745 descriptionText Lnet/minecraft/class_2561;
|
||
|
FIELD field_39746 buttonCooldown I
|
||
|
COMMENT How long the button should be disabled after the screen is displayed in ticks.
|
||
|
COMMENT Can be disabled by setting to {@code 0}.
|
||
|
METHOD <init> (Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Ljava/lang/Runnable;I)V
|
||
|
ARG 1 title
|
||
|
ARG 2 descriptionText
|
||
|
ARG 3 closeButtonText
|
||
|
ARG 4 closeCallback
|
||
|
ARG 5 buttonCooldown
|
||
|
METHOD method_44690 createRunningScreen (Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Ljava/lang/Runnable;)Lnet/minecraft/class_7534;
|
||
|
COMMENT {@return a new screen to indicate a task is running}
|
||
|
COMMENT
|
||
|
COMMENT <p>The screen has no description or button cooldown.
|
||
|
ARG 0 title
|
||
|
ARG 1 closeButtonText
|
||
|
ARG 2 closeCallback
|
||
|
METHOD method_44691 createResultScreen (Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Ljava/lang/Runnable;)Lnet/minecraft/class_7534;
|
||
|
COMMENT {@return a new screen to indicate a task has finished running}
|
||
|
COMMENT
|
||
|
COMMENT <p>The screen has a button cooldown of 20 ticks (1 second).
|
||
|
ARG 0 title
|
||
|
ARG 1 descriptionText
|
||
|
ARG 2 closeButtonText
|
||
|
ARG 3 closeCallback
|