Package net.minecraft.client.gui.screens
Class GenericWaitingScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.GenericWaitingScreen
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.DeferredTooltipRendering, Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate Button
private final Runnable
private final Component
private int
private MultiLineLabel
private static final int
private static final int
private final Component
private static final int
Fields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, PANORAMA, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ModifierConstructorDescriptionprotected
GenericWaitingScreen
(Component p_240300_, Component p_240301_, Component p_240302_, Runnable p_240303_, int p_240304_) -
Method Summary
Modifier and TypeMethodDescriptionstatic GenericWaitingScreen
createCompleted
(Component p_240291_, Component p_240292_, Component p_240293_, Runnable p_240294_) static GenericWaitingScreen
createWaiting
(Component p_240310_, Component p_240311_, Runnable p_240312_) protected void
init()
void
onClose()
void
render
(GuiGraphics p_283537_, int p_239719_, int p_239720_, float p_239721_) boolean
void
tick()
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, advancePanoramaTime, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
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.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
TITLE_Y
private static final int TITLE_Y- See Also:
-
MESSAGE_Y
private static final int MESSAGE_Y- See Also:
-
MESSAGE_MAX_WIDTH
private static final int MESSAGE_MAX_WIDTH- See Also:
-
messageText
-
buttonLabel
-
buttonCallback
-
message
-
button
-
disableButtonTicks
private int disableButtonTicks
-
-
Constructor Details
-
GenericWaitingScreen
-
-
Method Details
-
createWaiting
public static GenericWaitingScreen createWaiting(Component p_240310_, Component p_240311_, Runnable p_240312_) -
createCompleted
public static GenericWaitingScreen createCompleted(Component p_240291_, Component p_240292_, Component p_240293_, Runnable p_240294_) -
init
protected void init() -
tick
public void tick() -
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classScreen
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()- Overrides:
shouldCloseOnEsc
in classScreen
-
onClose
public void onClose() -
getNarrationMessage
- Overrides:
getNarrationMessage
in classScreen
-