Class DialogScreen<T extends Dialog>
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.dialog.DialogScreen<T>
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement
- Direct Known Subclasses:
ButtonListDialogScreen,SimpleDialogScreen
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ScrollableLayoutprivate final DialogConnectionAccessprivate final Tstatic final Componentprivate final HeaderAndFooterLayoutprivate Supplier<Optional<ClickEvent>> private final Screenprivate static final intprivate static final WidgetSpritesprivate ButtonFields inherited from class net.minecraft.client.gui.screens.Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionDialogScreen(Screen pPreviousScreen, T pDialog, DialogConnectionAccess pConnectionAccess) -
Method Summary
Modifier and TypeMethodDescriptionprotected LayoutElementprivate Buttonprivate voidhandleDialogClickEvent(ClickEvent pClickEvent, Screen pPreviousScreen) protected final voidinit()booleanprotected voidvoidonClose()protected static LayoutElementpackControlsIntoColumns(List<? extends LayoutElement> pControls, int pColumns) protected voidpopulateBodyElements(LinearLayout pLayout, DialogControlSet pControls, T pDialog, DialogConnectionAccess pConnectionAccess) protected voidvoidrunAction(Optional<ClickEvent> pClickEvent) voidrunAction(Optional<ClickEvent> pClickEvent, DialogAction pAction) booleanprotected voidupdateHeaderAndFooter(HeaderAndFooterLayout pLayout, DialogControlSet pControls, T pDialog, DialogConnectionAccess pConnectionAccess) Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleClickEvent, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onFilesDrop, rebuildWidgets, removed, removeWidget, render, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
DISCONNECT
-
WARNING_BUTTON_SIZE
private static final int WARNING_BUTTON_SIZE- See Also:
-
WARNING_BUTTON_SPRITES
-
dialog
-
layout
-
previousScreen
-
bodyScroll
-
warningButton
-
connectionAccess
-
onClose
-
-
Constructor Details
-
DialogScreen
public DialogScreen(@Nullable Screen pPreviousScreen, T pDialog, DialogConnectionAccess pConnectionAccess)
-
-
Method Details
-
init
protected final void init() -
populateBodyElements
protected void populateBodyElements(LinearLayout pLayout, DialogControlSet pControls, T pDialog, DialogConnectionAccess pConnectionAccess) -
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
createTitleWithWarningButton
-
makeSureWarningButtonIsInBounds
protected void makeSureWarningButtonIsInBounds() -
createWarningButton
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classScreen
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()- Overrides:
shouldCloseOnEscin classScreen
-
onClose
public void onClose() -
runAction
-
runAction
-
handleDialogClickEvent
-
previousScreen
-
packControlsIntoColumns
protected static LayoutElement packControlsIntoColumns(List<? extends LayoutElement> pControls, int pColumns)
-