Class ReportReasonSelectionScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.reporting.ReportReasonSelectionScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescription(package private) ReportReasonprivate static final intprivate static final intprivate final Screen(package private) final HeaderAndFooterLayoutprivate final Consumer<ReportReason> private static final intprivate static final Componentprivate static final Componentprivate static final Component(package private) final ReportTypeFields 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, width -
Constructor Summary
ConstructorsConstructorDescriptionReportReasonSelectionScreen(Screen pLastScreen, ReportReason pCurrentlySelectedReason, ReportType pReportType, Consumer<ReportReason> pOnSelectedReason) -
Method Summary
Modifier and TypeMethodDescriptionprivate intprivate intprivate intprivate intprivate intprivate intprotected voidinit()(package private) intvoidonClose()voidrender(GuiGraphics p_282815_, int p_283039_, int p_283620_, float p_281336_) Renders the graphical user interface (GUI) element.protected voidMethods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleClickEvent, handleComponentClicked, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, 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, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
REASON_TITLE
-
REASON_DESCRIPTION
-
READ_INFO_LABEL
-
DESCRIPTION_BOX_WIDTH
private static final int DESCRIPTION_BOX_WIDTH- See Also:
-
DESCRIPTION_BOX_HEIGHT
private static final int DESCRIPTION_BOX_HEIGHT- See Also:
-
PADDING
private static final int PADDING- See Also:
-
lastScreen
-
reasonSelectionList
-
currentlySelectedReason
-
onSelectedReason
-
layout
-
reportType
-
-
Constructor Details
-
ReportReasonSelectionScreen
public ReportReasonSelectionScreen(@Nullable Screen pLastScreen, @Nullable ReportReason pCurrentlySelectedReason, ReportType pReportType, Consumer<ReportReason> pOnSelectedReason)
-
-
Method Details
-
init
protected void init() -
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
p_282815_- the GuiGraphics object used for rendering.p_283039_- the x-coordinate of the mouse cursor.p_283620_- the y-coordinate of the mouse cursor.p_281336_- the partial tick time.
-
descriptionLeft
private int descriptionLeft() -
descriptionRight
private int descriptionRight() -
descriptionTop
private int descriptionTop() -
descriptionBottom
private int descriptionBottom() -
descriptionWidth
private int descriptionWidth() -
descriptionHeight
private int descriptionHeight() -
listHeight
int listHeight() -
onClose
public void onClose()
-