Class TelemetryEventWidget

All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget

@Environment(CLIENT) public class TelemetryEventWidget extends ScrollableWidget
Mappings:
Namespace Name
official fhn
intermediary net/minecraft/class_7941
named net/minecraft/client/gui/screen/option/TelemetryEventWidget
  • Field Details

    • MARGIN_X

      private static final int MARGIN_X
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lfhn;a:I
      intermediary field_41355 Lnet/minecraft/class_7941;field_41355:I
      named MARGIN_X Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;MARGIN_X:I
    • REQUIRED_TRANSLATION_KEY

      private static final String REQUIRED_TRANSLATION_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lfhn;b:Ljava/lang/String;
      intermediary field_41356 Lnet/minecraft/class_7941;field_41356:Ljava/lang/String;
      named REQUIRED_TRANSLATION_KEY Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;REQUIRED_TRANSLATION_KEY:Ljava/lang/String;
    • OPTIONAL_TRANSLATION_KEY

      private static final String OPTIONAL_TRANSLATION_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lfhn;c:Ljava/lang/String;
      intermediary field_41357 Lnet/minecraft/class_7941;field_41357:Ljava/lang/String;
      named OPTIONAL_TRANSLATION_KEY Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;OPTIONAL_TRANSLATION_KEY:Ljava/lang/String;
    • DISABLED_TRANSLATION_KEY

      private static final String DISABLED_TRANSLATION_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lfhn;d:Ljava/lang/String;
      intermediary field_47125 Lnet/minecraft/class_7941;field_47125:Ljava/lang/String;
      named DISABLED_TRANSLATION_KEY Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;DISABLED_TRANSLATION_KEY:Ljava/lang/String;
    • PROPERTY_TITLE_TEXT

      private static final Text PROPERTY_TITLE_TEXT
      Mappings:
      Namespace Name Mixin selector
      official e Lfhn;e:Lvf;
      intermediary field_41358 Lnet/minecraft/class_7941;field_41358:Lnet/minecraft/class_2561;
      named PROPERTY_TITLE_TEXT Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;PROPERTY_TITLE_TEXT:Lnet/minecraft/text/Text;
    • textRenderer

      private final TextRenderer textRenderer
      Mappings:
      Namespace Name Mixin selector
      official f Lfhn;f:Lews;
      intermediary field_41359 Lnet/minecraft/class_7941;field_41359:Lnet/minecraft/class_327;
      named textRenderer Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;
    • contents

      Mappings:
      Namespace Name Mixin selector
      official m Lfhn;m:Lfhn$a;
      intermediary field_41360 Lnet/minecraft/class_7941;field_41360:Lnet/minecraft/class_7941$class_7942;
      named contents Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;contents:Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget$Contents;
    • scrollConsumer

      @Nullable private @Nullable DoubleConsumer scrollConsumer
      Mappings:
      Namespace Name Mixin selector
      official n Lfhn;n:Ljava/util/function/DoubleConsumer;
      intermediary field_41361 Lnet/minecraft/class_7941;field_41361:Ljava/util/function/DoubleConsumer;
      named scrollConsumer Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;scrollConsumer:Ljava/util/function/DoubleConsumer;
  • Constructor Details

    • TelemetryEventWidget

      public TelemetryEventWidget(int x, int y, int width, int height, TextRenderer textRenderer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfhn;<init>(IIIILews;)V
      intermediary <init> Lnet/minecraft/class_7941;<init>(IIIILnet/minecraft/class_327;)V
      named <init> Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;<init>(IIIILnet/minecraft/client/font/TextRenderer;)V
  • Method Details

    • refresh

      public void refresh(boolean optionalTelemetryEnabled)
      Mappings:
      Namespace Name Mixin selector
      official b Lfhn;b(Z)V
      intermediary method_47638 Lnet/minecraft/class_7941;method_47638(Z)V
      named refresh Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;refresh(Z)V
    • collectContents

      private TelemetryEventWidget.Contents collectContents(boolean optionalTelemetryEnabled)
      Mappings:
      Namespace Name Mixin selector
      official c Lfhn;c(Z)Lfhn$a;
      intermediary method_47639 Lnet/minecraft/class_7941;method_47639(Z)Lnet/minecraft/class_7941$class_7942;
      named collectContents Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;collectContents(Z)Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget$Contents;
    • setScrollConsumer

      public void setScrollConsumer(@Nullable @Nullable DoubleConsumer scrollConsumer)
      Mappings:
      Namespace Name Mixin selector
      official a Lfhn;a(Ljava/util/function/DoubleConsumer;)V
      intermediary method_47637 Lnet/minecraft/class_7941;method_47637(Ljava/util/function/DoubleConsumer;)V
      named setScrollConsumer Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;setScrollConsumer(Ljava/util/function/DoubleConsumer;)V
    • setScrollY

      protected void setScrollY(double scrollY)
      Overrides:
      setScrollY in class ScrollableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Lexa;a(D)V
      intermediary method_44382 Lnet/minecraft/class_7528;method_44382(D)V
      named setScrollY Lnet/minecraft/client/gui/widget/ScrollableWidget;setScrollY(D)V
    • getContentsHeight

      protected int getContentsHeight()
      Returns the total height of the contents.
      Specified by:
      getContentsHeight in class ScrollableWidget
      Returns:
      the total height of the contents
      Mappings:
      Namespace Name Mixin selector
      official g Lexa;g()I
      intermediary method_44391 Lnet/minecraft/class_7528;method_44391()I
      named getContentsHeight Lnet/minecraft/client/gui/widget/ScrollableWidget;getContentsHeight()I
    • getDeltaYPerScroll

      protected double getDeltaYPerScroll()
      Specified by:
      getDeltaYPerScroll in class ScrollableWidget
      Mappings:
      Namespace Name Mixin selector
      official i Lexa;i()D
      intermediary method_44393 Lnet/minecraft/class_7528;method_44393()D
      named getDeltaYPerScroll Lnet/minecraft/client/gui/widget/ScrollableWidget;getDeltaYPerScroll()D
    • renderContents

      protected void renderContents(DrawContext context, int mouseX, int mouseY, float delta)
      Renders the scrolled contents. Subclasses must override this. The rendered contents may overflow; the caller should trim those using DrawContext.enableScissor(int, int, int, int).
      Specified by:
      renderContents in class ScrollableWidget
      Mappings:
      Namespace Name Mixin selector
      official c Lexa;c(Lewu;IIF)V
      intermediary method_44389 Lnet/minecraft/class_7528;method_44389(Lnet/minecraft/class_332;IIF)V
      named renderContents Lnet/minecraft/client/gui/widget/ScrollableWidget;renderContents(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • appendClickableNarrations

      protected void appendClickableNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendClickableNarrations in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official a Lexe;a(Lfaz;)V
      intermediary method_47399 Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
      named appendClickableNarrations Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
    • formatTitleText

      private Text formatTitleText(Text title, boolean disabled)
      Mappings:
      Namespace Name Mixin selector
      official a Lfhn;a(Lvf;Z)Lvf;
      intermediary method_54801 Lnet/minecraft/class_7941;method_54801(Lnet/minecraft/class_2561;Z)Lnet/minecraft/class_2561;
      named formatTitleText Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;formatTitleText(Lnet/minecraft/text/Text;Z)Lnet/minecraft/text/Text;
    • appendEventInfo

      private void appendEventInfo(TelemetryEventWidget.ContentsBuilder builder, TelemetryEventType eventType, boolean disabled)
      Mappings:
      Namespace Name Mixin selector
      official a Lfhn;a(Lfhn$b;Lgjn;Z)V
      intermediary method_47635 Lnet/minecraft/class_7941;method_47635(Lnet/minecraft/class_7941$class_7943;Lnet/minecraft/class_7966;Z)V
      named appendEventInfo Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;appendEventInfo(Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget$ContentsBuilder;Lnet/minecraft/client/session/telemetry/TelemetryEventType;Z)V
    • appendProperties

      private void appendProperties(TelemetryEventType eventType, TelemetryEventWidget.ContentsBuilder builder, boolean disabled)
      Mappings:
      Namespace Name Mixin selector
      official a Lfhn;a(Lgjn;Lfhn$b;Z)V
      intermediary method_47636 Lnet/minecraft/class_7941;method_47636(Lnet/minecraft/class_7966;Lnet/minecraft/class_7941$class_7943;Z)V
      named appendProperties Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;appendProperties(Lnet/minecraft/client/session/telemetry/TelemetryEventType;Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget$ContentsBuilder;Z)V
    • getGridWidth

      private int getGridWidth()
      Mappings:
      Namespace Name Mixin selector
      official j Lfhn;j()I
      intermediary method_47640 Lnet/minecraft/class_7941;method_47640()I
      named getGridWidth Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;getGridWidth()I