Class TelemetryEventWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ScrollableWidget
net.minecraft.client.gui.screen.option.TelemetryEventWidget
- All Implemented Interfaces:
- Drawable,- Element,- Narratable,- Navigable,- Selectable,- Widget
- Mappings:
- Namespace - Name - official - eyw- intermediary - net/minecraft/class_7941- named - net/minecraft/client/gui/screen/option/TelemetryEventWidget
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprivate static final recordprivate static classNested classes/interfaces inherited from interface net.minecraft.client.gui.SelectableSelectable.SelectionType
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate TelemetryEventWidget.Contentsprivate static final intprivate static final Stringprivate static final Textprivate static final Stringprivate @Nullable DoubleConsumerprivate final TextRendererFields inherited from class net.minecraft.client.gui.widget.ClickableWidgetACCESSIBILITY_TEXTURE, active, alpha, height, hovered, visible, WIDGETS_TEXTURE, widthFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructorsConstructorDescriptionTelemetryEventWidget(int x, int y, int width, int height, TextRenderer textRenderer) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidprivate voidappendEventInfo(TelemetryEventWidget.ContentsBuilder builder, TelemetryEventType eventType) private voidappendProperties(TelemetryEventType eventType, TelemetryEventWidget.ContentsBuilder builder) private TelemetryEventWidget.ContentscollectContents(boolean optionalTelemetryEnabled) protected intReturns the total height of the contents.protected doubleprivate intvoidrefresh(boolean optionalTelemetryEnabled) protected voidrenderContents(DrawContext context, int mouseX, int mouseY, float delta) Renders the scrolled contents.voidsetScrollConsumer(@Nullable DoubleConsumer scrollConsumer) protected voidsetScrollY(double scrollY) Methods inherited from class net.minecraft.client.gui.widget.ScrollableWidgetdrawBox, drawBox, getMaxScrollY, getPadding, getPaddingDoubled, getScrollY, isVisible, isWithinBounds, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, overflows, renderButton, renderOverlayMethods inherited from class net.minecraft.client.gui.widget.ClickableWidgetappendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawTexture, forEachChild, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getTooltip, getTooltipPositioner, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setFocused, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementcharTyped, getFocusedPath, getNavigationFocus, getNavigationPath, isFocused, isMouseOver, keyReleased, mouseMoved, setFocusedMethods inherited from interface net.minecraft.client.gui.navigation.NavigablegetNavigationOrderMethods inherited from interface net.minecraft.client.gui.widget.WidgetsetPosition
- 
Field Details- 
MARGIN_Xprivate static final int MARGIN_X- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leyw;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- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Leyw;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- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - c- Leyw;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;
 
- 
PROPERTY_TITLE_TEXT- Mappings:
- Namespace - Name - Mixin selector - official - d- Leyw;d:Lsw;- 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- Mappings:
- Namespace - Name - Mixin selector - official - e- Leyw;e:Leov;- 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 - f- Leyw;f:Leyw$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- Mappings:
- Namespace - Name - Mixin selector - official - g- Leyw;g: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- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Leyw;<init>(IIIILeov;)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- 
refreshpublic void refresh(boolean optionalTelemetryEnabled) - Mappings:
- Namespace - Name - Mixin selector - official - b- Leyw;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- Mappings:
- Namespace - Name - Mixin selector - official - c- Leyw;c(Z)Leyw$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- Mappings:
- Namespace - Name - Mixin selector - official - a- Leyw;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
 
- 
setScrollYprotected void setScrollY(double scrollY) - Overrides:
- setScrollYin class- ScrollableWidget
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lepb;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
 
- 
getContentsHeightprotected int getContentsHeight()Returns the total height of the contents.- Specified by:
- getContentsHeightin class- ScrollableWidget
- Returns:
- the total height of the contents
- Mappings:
- Namespace - Name - Mixin selector - official - f- Lepb;f()I- intermediary - method_44391- Lnet/minecraft/class_7528;method_44391()I- named - getContentsHeight- Lnet/minecraft/client/gui/widget/ScrollableWidget;getContentsHeight()I
 
- 
getDeltaYPerScrollprotected double getDeltaYPerScroll()- Specified by:
- getDeltaYPerScrollin class- ScrollableWidget
- Mappings:
- Namespace - Name - Mixin selector - official - g- Lepb;g()D- intermediary - method_44393- Lnet/minecraft/class_7528;method_44393()D- named - getDeltaYPerScroll- Lnet/minecraft/client/gui/widget/ScrollableWidget;getDeltaYPerScroll()D
 
- 
renderContentsRenders the scrolled contents. Subclasses must override this. The rendered contents may overflow; the caller should trim those usingDrawContext.enableScissor(int, int, int, int).- Specified by:
- renderContentsin class- ScrollableWidget
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lepb;c(Leox;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- Specified by:
- appendClickableNarrationsin class- ClickableWidget
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lepf;a(Lesp;)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
 
- 
appendEventInfoprivate void appendEventInfo(TelemetryEventWidget.ContentsBuilder builder, TelemetryEventType eventType) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leyw;a(Leyw$b;Lfzl;)V- intermediary - method_47635- Lnet/minecraft/class_7941;method_47635(Lnet/minecraft/class_7941$class_7943;Lnet/minecraft/class_7966;)V- named - appendEventInfo- Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;appendEventInfo(Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget$ContentsBuilder;Lnet/minecraft/client/util/telemetry/TelemetryEventType;)V
 
- 
appendPropertiesprivate void appendProperties(TelemetryEventType eventType, TelemetryEventWidget.ContentsBuilder builder) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leyw;a(Lfzl;Leyw$b;)V- intermediary - method_47636- Lnet/minecraft/class_7941;method_47636(Lnet/minecraft/class_7966;Lnet/minecraft/class_7941$class_7943;)V- named - appendProperties- Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;appendProperties(Lnet/minecraft/client/util/telemetry/TelemetryEventType;Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget$ContentsBuilder;)V
 
- 
getGridWidthprivate int getGridWidth()- Mappings:
- Namespace - Name - Mixin selector - official - v- Leyw;v()I- intermediary - method_47640- Lnet/minecraft/class_7941;method_47640()I- named - getGridWidth- Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;getGridWidth()I
 
 
-