Class ChatReportScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class ChatReportScreen extends Screen
  • 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

      private static final Component OBSERVED_WHAT_LABEL
    • SELECT_REASON

      private static final Component SELECT_REASON
    • MORE_COMMENTS_LABEL

      private static final Component MORE_COMMENTS_LABEL
    • DESCRIBE_PLACEHOLDER

      private static final Component DESCRIBE_PLACEHOLDER
    • REPORT_SENT_MESSAGE

      private static final Component REPORT_SENT_MESSAGE
    • SELECT_CHAT_MESSAGE

      private static final Component SELECT_CHAT_MESSAGE
    • REPORT_SENDING_TITLE

      private static final Component REPORT_SENDING_TITLE
    • REPORT_SENT_TITLE

      private static final Component REPORT_SENT_TITLE
    • REPORT_ERROR_TITLE

      private static final Component REPORT_ERROR_TITLE
    • REPORT_SEND_GENERIC_ERROR

      private static final Component REPORT_SEND_GENERIC_ERROR
    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • lastScreen

      @Nullable final Screen lastScreen
    • reportingContext

      private final ReportingContext reportingContext
    • reasonDescriptionLabel

      @Nullable private MultiLineLabel reasonDescriptionLabel
    • commentBox

      @Nullable private MultiLineEditBox commentBox
    • sendButton

      private Button sendButton
    • reportBuilder

      private ChatReportBuilder reportBuilder
    • cannotBuildReason

      @Nullable private ChatReportBuilder.CannotBuildReason cannotBuildReason
  • Constructor Details

  • Method Details

    • init

      protected void init()
      Overrides:
      init in class Screen
    • onReportChanged

      private void onReportChanged()
    • sendReport

      private void sendReport()
    • onReportSendSuccess

      private void onReportSendSuccess()
    • onReportSendError

      private void onReportSendError(Throwable p_240314_)
    • displayReportSendError

      private void displayReportSendError(Component p_242978_)
    • saveDraft

      void saveDraft()
    • clearDraft

      void clearDraft()
    • render

      public void render(GuiGraphics p_283069_, int p_239923_, int p_239924_, float p_239925_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • tick

      public void tick()
      Overrides:
      tick in class Screen
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • removed

      public void removed()
      Overrides:
      removed in class Screen
    • 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()