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 Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable ReportReasonprivate static final intprivate static final intprivate final @Nullable Screenprivate final HeaderAndFooterLayoutprivate final Consumer<ReportReason> private static final intprivate static final Componentprivate static final Componentprivate static final Componentprivate @Nullable ReportReasonSelectionScreen.ReasonSelectionListprivate final ReportTypeFields inherited from class 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(@Nullable Screen lastScreen, @Nullable ReportReason selectedReason, ReportType reportType, Consumer<ReportReason> onSelectedReason) -
Method Summary
Modifier and TypeMethodDescriptionprivate intprivate intprivate intprivate intprivate intprivate intprotected voidinit()private intvoidonClose()voidrender(GuiGraphics graphics, int mouseX, int mouseY, float a) Renders the graphical user interface (GUI) element.protected voidMethods inherited from class 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, 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 AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface 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 lastScreen, @Nullable ReportReason selectedReason, ReportType reportType, Consumer<ReportReason> onSelectedReason)
-
-
Method Details
-
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:
graphics- the GuiGraphics object used for rendering.mouseX- the x-coordinate of the mouse cursor.mouseY- the y-coordinate of the mouse cursor.a- 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
private int listHeight() -
onClose
-