Package net.minecraft.client.gui.screen
Class RunningTaskScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.RunningTaskScreen
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
A screen that can be displayed while running a certain task. The task can be
cancelled, and the display can be changed by calling
setDisplay
methods after the
task succeeded or failed.- Mappings:
Namespace Name official eka
intermediary net/minecraft/class_7534
named net/minecraft/client/gui/screen/RunningTaskScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ButtonWidget
private final Runnable
private final Text
private @Nullable MultilineText
private static final int
private static final int
private int
private static final int
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
init()
Called when a screen should be initialized.static RunningTaskScreen
method_44690
(Text text, Text text2, Runnable runnable) static RunningTaskScreen
method_44691
(Text text, Text text2, Text text3, Runnable runnable) void
render
(MatrixStack matrices, int mouseX, int mouseY, float delta) boolean
Checks whether this screen should be closed when the escape key is pressed.void
tick()
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, filesDragged, findSelectedElementData, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hide, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, remove, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, shouldPause, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
TITLE_TEXT_Y
private static final int TITLE_TEXT_Y- See Also:
- Mappings:
Namespace Name Mixin selector official a
Leka;a:I
intermediary field_39541
Lnet/minecraft/class_7534;field_39541:I
named TITLE_TEXT_Y
Lnet/minecraft/client/gui/screen/RunningTaskScreen;TITLE_TEXT_Y:I
-
DESCRIPTION_TEXT_Y
private static final int DESCRIPTION_TEXT_Y- See Also:
- Mappings:
Namespace Name Mixin selector official b
Leka;b:I
intermediary field_39542
Lnet/minecraft/class_7534;field_39542:I
named DESCRIPTION_TEXT_Y
Lnet/minecraft/client/gui/screen/RunningTaskScreen;DESCRIPTION_TEXT_Y:I
-
DESCRIPTION_TEXT_WIDTH
private static final int DESCRIPTION_TEXT_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector official c
Leka;c:I
intermediary field_39543
Lnet/minecraft/class_7534;field_39543:I
named DESCRIPTION_TEXT_WIDTH
Lnet/minecraft/client/gui/screen/RunningTaskScreen;DESCRIPTION_TEXT_WIDTH:I
-
field_39745
- Mappings:
Namespace Name Mixin selector official n
Leka;n:Lrm;
intermediary field_39745
Lnet/minecraft/class_7534;field_39745:Lnet/minecraft/class_2561;
named field_39745
Lnet/minecraft/client/gui/screen/RunningTaskScreen;field_39745:Lnet/minecraft/text/Text;
-
cancelButtonText
- Mappings:
Namespace Name Mixin selector official o
Leka;o:Lrm;
intermediary field_39544
Lnet/minecraft/class_7534;field_39544:Lnet/minecraft/class_2561;
named cancelButtonText
Lnet/minecraft/client/gui/screen/RunningTaskScreen;cancelButtonText:Lnet/minecraft/text/Text;
-
buttonCallback
- Mappings:
Namespace Name Mixin selector official p
Leka;p:Ljava/lang/Runnable;
intermediary field_39545
Lnet/minecraft/class_7534;field_39545:Ljava/lang/Runnable;
named buttonCallback
Lnet/minecraft/client/gui/screen/RunningTaskScreen;buttonCallback:Ljava/lang/Runnable;
-
description
- Mappings:
Namespace Name Mixin selector official q
Leka;q:Lehi;
intermediary field_39546
Lnet/minecraft/class_7534;field_39546:Lnet/minecraft/class_5489;
named description
Lnet/minecraft/client/gui/screen/RunningTaskScreen;description:Lnet/minecraft/client/font/MultilineText;
-
button
- Mappings:
Namespace Name Mixin selector official r
Leka;r:Legv;
intermediary field_39547
Lnet/minecraft/class_7534;field_39547:Lnet/minecraft/class_4185;
named button
Lnet/minecraft/client/gui/screen/RunningTaskScreen;button:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
field_39746
private int field_39746- Mappings:
Namespace Name Mixin selector official s
Leka;s:I
intermediary field_39746
Lnet/minecraft/class_7534;field_39746:I
named field_39746
Lnet/minecraft/client/gui/screen/RunningTaskScreen;field_39746:I
-
-
Constructor Details
-
RunningTaskScreen
protected RunningTaskScreen(Text title, @Nullable @Nullable Text cancelButtonText, Text text, Runnable runnable, int int2) - Mappings:
Namespace Name Mixin selector official <init>
Leka;<init>(Lrm;Lrm;Lrm;Ljava/lang/Runnable;I)V
intermediary <init>
Lnet/minecraft/class_7534;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Ljava/lang/Runnable;I)V
named <init>
Lnet/minecraft/client/gui/screen/RunningTaskScreen;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Ljava/lang/Runnable;I)V
-
-
Method Details
-
method_44690
- Mappings:
Namespace Name Mixin selector official a
Leka;a(Lrm;Lrm;Ljava/lang/Runnable;)Leka;
intermediary method_44690
Lnet/minecraft/class_7534;method_44690(Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Ljava/lang/Runnable;)Lnet/minecraft/class_7534;
named method_44690
Lnet/minecraft/client/gui/screen/RunningTaskScreen;method_44690(Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Ljava/lang/Runnable;)Lnet/minecraft/client/gui/screen/RunningTaskScreen;
-
method_44691
- Mappings:
Namespace Name Mixin selector official a
Leka;a(Lrm;Lrm;Lrm;Ljava/lang/Runnable;)Leka;
intermediary method_44691
Lnet/minecraft/class_7534;method_44691(Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Ljava/lang/Runnable;)Lnet/minecraft/class_7534;
named method_44691
Lnet/minecraft/client/gui/screen/RunningTaskScreen;method_44691(Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Ljava/lang/Runnable;)Lnet/minecraft/client/gui/screen/RunningTaskScreen;
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
tick
public void tick() -
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Lehu;a(Ldzv;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.- Overrides:
shouldCloseOnEsc
in classScreen
- Mappings:
Namespace Name Mixin selector official af_
Leks;af_()Z
intermediary method_25422
Lnet/minecraft/class_437;method_25422()Z
named shouldCloseOnEsc
Lnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
-
close
public void close() -
getNarratedTitle
- Overrides:
getNarratedTitle
in classScreen
- Mappings:
Namespace Name Mixin selector official ae_
Leks;ae_()Lrm;
intermediary method_25435
Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;
named getNarratedTitle
Lnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
-