Package net.minecraft.client.gui.screens
Class GenericWaitingScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
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
-
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
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
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
boolean
void
tick()
Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, resize, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
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
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
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
-