Class ChatReportScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.reporting.ChatReportScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate static final intprivate MultiLineEditBoxprivate static final Componentprivate static final int(package private) final Screenprivate static final org.slf4j.Loggerprivate static final Componentprivate static final Componentprivate MultiLineLabelprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate ChatReportBuilderprivate final ReportingContextprivate static final intprivate static final intprivate static final Componentprivate static final Componentprivate ButtonFields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, widthFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsModifierConstructorDescriptionChatReportScreen(Screen p_239116_, ReportingContext p_239117_, UUID p_239118_) privateChatReportScreen(Screen p_253839_, ReportingContext p_254386_, ChatReportBuilder p_254309_) ChatReportScreen(Screen p_254505_, ReportingContext p_254531_, ChatReportBuilder.ChatReport p_253775_) -
Method Summary
Modifier and TypeMethodDescription(package private) voidprivate intprivate intprivate intprivate intprivate intprivate intprivate intprivate voiddisplayReportSendError(Component p_242978_) protected voidinit()booleanmouseReleased(double p_239350_, double p_239351_, int p_239352_) voidonClose()private voidprivate voidonReportSendError(Throwable p_240314_) private voidvoidremoved()void(package private) voidprivate intprivate intprivate voidvoidtick()Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, vLineMethods 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, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
BUTTON_WIDTH
private static final int BUTTON_WIDTH- See Also:
-
BUTTON_HEIGHT
private static final int BUTTON_HEIGHT- See Also:
-
BUTTON_MARGIN
private static final int BUTTON_MARGIN- See Also:
-
BUTTON_MARGIN_HALF
private static final int BUTTON_MARGIN_HALF- See Also:
-
LABEL_HEIGHT
private static final int LABEL_HEIGHT- See Also:
-
SCREEN_WIDTH
private static final int SCREEN_WIDTH- See Also:
-
SCREEN_HEIGHT
private static final int SCREEN_HEIGHT- See Also:
-
OBSERVED_WHAT_LABEL
-
SELECT_REASON
-
MORE_COMMENTS_LABEL
-
DESCRIBE_PLACEHOLDER
-
REPORT_SENT_MESSAGE
-
SELECT_CHAT_MESSAGE
-
REPORT_SENDING_TITLE
-
REPORT_SENT_TITLE
-
REPORT_ERROR_TITLE
-
REPORT_SEND_GENERIC_ERROR
-
LOGGER
private static final org.slf4j.Logger LOGGER -
lastScreen
-
reportingContext
-
reasonDescriptionLabel
-
commentBox
-
sendButton
-
reportBuilder
-
cannotBuildReason
-
-
Constructor Details
-
ChatReportScreen
private ChatReportScreen(@Nullable Screen p_253839_, ReportingContext p_254386_, ChatReportBuilder p_254309_) -
ChatReportScreen
-
ChatReportScreen
public ChatReportScreen(@Nullable Screen p_254505_, ReportingContext p_254531_, ChatReportBuilder.ChatReport p_253775_)
-
-
Method Details
-
init
protected void init() -
onReportChanged
private void onReportChanged() -
sendReport
private void sendReport() -
onReportSendSuccess
private void onReportSendSuccess() -
onReportSendError
-
displayReportSendError
-
saveDraft
void saveDraft() -
clearDraft
void clearDraft() -
render
- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen
-
tick
public void tick() -
onClose
public void onClose() -
removed
public void removed() -
mouseReleased
public boolean mouseReleased(double p_239350_, double p_239351_, int p_239352_) -
contentLeft
private int contentLeft() -
contentRight
private int contentRight() -
contentTop
private int contentTop() -
contentBottom
private int contentBottom() -
selectChatTop
private int selectChatTop() -
selectInfoTop
private int selectInfoTop() -
commentBoxTop
private int commentBoxTop() -
commentBoxBottom
private int commentBoxBottom() -
completeButtonTop
private int completeButtonTop()
-