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
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, LIGHT_DIRT_BACKGROUND, 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
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, 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, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, 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
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, 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
-
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()
-