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
-
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 static final int
private static final int
private static final int
private static final int
private MultiLineEditBox
private static final Component
private static final int
(package private) final Screen
private static final org.slf4j.Logger
private static final Component
private static final Component
private MultiLineLabel
private static final Component
private static final Component
private static final Component
private static final Component
private static final Component
private ChatReportBuilder
private final ReportingContext
private static final int
private static final int
private static final Component
private static final Component
private Button
Fields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ModifierConstructorDescriptionChatReportScreen
(Screen p_239116_, ReportingContext p_239117_, UUID p_239118_) private
ChatReportScreen
(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) void
private int
private int
private int
private int
private int
private int
private int
private void
displayReportSendError
(Component p_242978_) protected void
init()
boolean
mouseReleased
(double p_239350_, double p_239351_, int p_239352_) void
onClose()
private void
private void
onReportSendError
(Throwable p_240314_) private void
void
removed()
void
(package private) void
private int
private int
private void
void
tick()
Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, resize, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
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
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseScrolled, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
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:
render
in interfaceRenderable
- Overrides:
render
in 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()
-