Class AbstractReportScreen<B extends Report.Builder<?>>
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.reporting.AbstractReportScreen<B>
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
- Direct Known Subclasses:
ChatReportScreen, NameReportScreen, SkinReportScreen
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Checkboxprivate static final Componentprotected static final intprivate static final Componentprotected final Screenprotected final LinearLayoutprivate static final org.slf4j.Loggerprotected static final intprotected static final Componentprivate static final Componentprotected static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprotected Bprotected final ReportingContextprotected static final intprotected static final Componentprotected static final Componentprotected Buttonprotected static final intFields 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
ConstructorsModifierConstructorDescriptionprotectedAbstractReportScreen(Component title, Screen lastScreen, ReportingContext reportingContext, B reportBuilder) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidprivate voidprotected MultiLineEditBoxcreateCommentBox(int width, int height, Consumer<String> valueListener) protected voidprotected voidprivate voiddisplayReportSendError(Component message) protected voidinit()voidonClose()protected voidprivate voidonReportSendError(Throwable throwable) private voidvoidremoved()protected voidprivate voidprotected 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, removeWidget, render, 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
-
REPORT_SENT_MESSAGE
-
REPORT_SENDING_TITLE
-
REPORT_SENT_TITLE
-
REPORT_ERROR_TITLE
-
REPORT_SEND_GENERIC_ERROR
-
SEND_REPORT
-
OBSERVED_WHAT_LABEL
-
SELECT_REASON
-
DESCRIBE_PLACEHOLDER
-
MORE_COMMENTS_LABEL
-
MORE_COMMENTS_NARRATION
-
ATTESTATION_CHECKBOX
-
BUTTON_WIDTH
protected static final int BUTTON_WIDTH- See Also:
-
MARGIN
protected static final int MARGIN- See Also:
-
SCREEN_WIDTH
protected static final int SCREEN_WIDTH- See Also:
-
SPACING
protected static final int SPACING- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
lastScreen
-
reportingContext
-
layout
-
reportBuilder
-
attestation
-
sendButton
-
-
Constructor Details
-
AbstractReportScreen
protected AbstractReportScreen(Component title, Screen lastScreen, ReportingContext reportingContext, B reportBuilder)
-
-
Method Details
-
createCommentBox
-
init
-
createHeader
protected void createHeader() -
addContent
protected abstract void addContent() -
onReportChanged
protected void onReportChanged() -
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
sendReport
protected void sendReport() -
onReportSendSuccess
private void onReportSendSuccess() -
onReportSendError
-
displayReportSendError
-
saveDraft
private void saveDraft() -
clearDraft
private void clearDraft() -
onClose
-
removed
-