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
Modifier and TypeClassDescription(package private) class
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate Checkbox
private static final Component
protected static final int
private static final Component
protected final Screen
protected final LinearLayout
private static final org.slf4j.Logger
protected static final int
protected static final Component
private static final Component
protected static final Component
private static final Component
private static final Component
private static final Component
private static final Component
private static final Component
protected B
protected final ReportingContext
protected static final int
protected static final Component
protected static final Component
protected Button
protected static final int
Fields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractReportScreen
(Component p_297559_, Screen p_299592_, ReportingContext p_300174_, B p_300351_) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
(package private) void
protected MultiLineEditBox
createCommentBox
(int p_297252_, int p_301025_, Consumer<String> p_298469_) protected void
protected void
private void
displayReportSendError
(Component p_301245_) protected void
init()
void
onClose()
protected void
private void
onReportSendError
(Throwable p_297880_) private void
void
removed()
protected void
(package private) void
protected void
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onFilesDrop, rebuildWidgets, removeWidget, render, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
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
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.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 p_297559_, Screen p_299592_, ReportingContext p_300174_, B p_300351_)
-
-
Method Details
-
createCommentBox
protected MultiLineEditBox createCommentBox(int p_297252_, int p_301025_, Consumer<String> p_298469_) -
init
protected void init() -
createHeader
protected void createHeader() -
addContent
protected abstract void addContent() -
onReportChanged
protected void onReportChanged() -
repositionElements
protected void repositionElements()- Overrides:
repositionElements
in classScreen
-
sendReport
protected void sendReport() -
onReportSendSuccess
private void onReportSendSuccess() -
onReportSendError
-
displayReportSendError
-
saveDraft
void saveDraft() -
clearDraft
void clearDraft() -
onClose
public void onClose() -
removed
public void removed()
-