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 named net/minecraft/client/gui/screen/option/TelemetryEventWidget
intermediary net/minecraft/class_7941
official frq
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
private static class
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionprivate TelemetryEventWidget.Contents
private static final String
private static final int
private static final String
private static final Text
private static final String
private @Nullable DoubleConsumer
private final TextRenderer
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionTelemetryEventWidget
(int x, int y, int width, int height, TextRenderer textRenderer) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
private void
appendEventInfo
(TelemetryEventWidget.ContentsBuilder builder, TelemetryEventType eventType, boolean disabled) private void
appendProperties
(TelemetryEventType eventType, TelemetryEventWidget.ContentsBuilder builder, boolean disabled) private TelemetryEventWidget.Contents
collectContents
(boolean optionalTelemetryEnabled) private Text
formatTitleText
(Text title, boolean disabled) protected int
Returns the total height of the contents.protected double
private int
void
void
refresh
(boolean optionalTelemetryEnabled) protected void
renderContents
(DrawContext context, int mouseX, int mouseY, float delta) Renders the scrolled contents.void
setScrollConsumer
(@Nullable DoubleConsumer scrollConsumer) protected void
setScrollY
(double scrollY) Methods inherited from class net.minecraft.client.gui.widget.ScrollableWidget
drawBox, drawBox, getMaxScrollY, getPadding, getPaddingDoubled, getScrollerWidth, getScrollY, isVisible, isWithinBounds, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, overflows, renderOverlay, renderWidget
Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setY
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.Element
charTyped, getFocusedPath, getNavigationFocus, getNavigationPath, isFocused, isMouseOver, keyReleased, mouseMoved, setFocused
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
MARGIN_X
private static final int MARGIN_X- See Also:
- Mappings:
Namespace Name Mixin selector named MARGIN_X
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;MARGIN_X:I
intermediary field_41355
Lnet/minecraft/class_7941;field_41355:I
official a
Lfrq;a:I
-
REQUIRED_TRANSLATION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named REQUIRED_TRANSLATION_KEY
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;REQUIRED_TRANSLATION_KEY:Ljava/lang/String;
intermediary field_41356
Lnet/minecraft/class_7941;field_41356:Ljava/lang/String;
official b
Lfrq;b:Ljava/lang/String;
-
OPTIONAL_TRANSLATION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named OPTIONAL_TRANSLATION_KEY
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;OPTIONAL_TRANSLATION_KEY:Ljava/lang/String;
intermediary field_41357
Lnet/minecraft/class_7941;field_41357:Ljava/lang/String;
official c
Lfrq;c:Ljava/lang/String;
-
DISABLED_TRANSLATION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named DISABLED_TRANSLATION_KEY
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;DISABLED_TRANSLATION_KEY:Ljava/lang/String;
intermediary field_47125
Lnet/minecraft/class_7941;field_47125:Ljava/lang/String;
official d
Lfrq;d:Ljava/lang/String;
-
PROPERTY_TITLE_TEXT
- Mappings:
Namespace Name Mixin selector named PROPERTY_TITLE_TEXT
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;PROPERTY_TITLE_TEXT:Lnet/minecraft/text/Text;
intermediary field_41358
Lnet/minecraft/class_7941;field_41358:Lnet/minecraft/class_2561;
official e
Lfrq;e:Lxp;
-
textRenderer
- Mappings:
Namespace Name Mixin selector named textRenderer
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;
intermediary field_41359
Lnet/minecraft/class_7941;field_41359:Lnet/minecraft/class_327;
official f
Lfrq;f:Lfgr;
-
contents
- Mappings:
Namespace Name Mixin selector named contents
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;contents:Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget$Contents;
intermediary field_41360
Lnet/minecraft/class_7941;field_41360:Lnet/minecraft/class_7941$class_7942;
official m
Lfrq;m:Lfrq$a;
-
scrollConsumer
- Mappings:
Namespace Name Mixin selector named scrollConsumer
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;scrollConsumer:Ljava/util/function/DoubleConsumer;
intermediary field_41361
Lnet/minecraft/class_7941;field_41361:Ljava/util/function/DoubleConsumer;
official n
Lfrq;n:Ljava/util/function/DoubleConsumer;
-
-
Constructor Details
-
TelemetryEventWidget
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;<init>(IIIILnet/minecraft/client/font/TextRenderer;)V
intermediary <init>
Lnet/minecraft/class_7941;<init>(IIIILnet/minecraft/class_327;)V
official <init>
Lfrq;<init>(IIIILfgr;)V
-
-
Method Details
-
refresh
public void refresh(boolean optionalTelemetryEnabled) - Mappings:
Namespace Name Mixin selector named refresh
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;refresh(Z)V
intermediary method_47638
Lnet/minecraft/class_7941;method_47638(Z)V
official b
Lfrq;b(Z)V
-
initContents
public void initContents()- Mappings:
Namespace Name Mixin selector named initContents
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;initContents()V
intermediary method_57767
Lnet/minecraft/class_7941;method_57767()V
official j
Lfrq;j()V
-
collectContents
- Mappings:
Namespace Name Mixin selector named collectContents
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;collectContents(Z)Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget$Contents;
intermediary method_47639
Lnet/minecraft/class_7941;method_47639(Z)Lnet/minecraft/class_7941$class_7942;
official c
Lfrq;c(Z)Lfrq$a;
-
setScrollConsumer
- Mappings:
Namespace Name Mixin selector named setScrollConsumer
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;setScrollConsumer(Ljava/util/function/DoubleConsumer;)V
intermediary method_47637
Lnet/minecraft/class_7941;method_47637(Ljava/util/function/DoubleConsumer;)V
official a
Lfrq;a(Ljava/util/function/DoubleConsumer;)V
-
setScrollY
protected void setScrollY(double scrollY) - Overrides:
setScrollY
in classScrollableWidget
- Mappings:
Namespace Name Mixin selector named setScrollY
Lnet/minecraft/client/gui/widget/ScrollableWidget;setScrollY(D)V
intermediary method_44382
Lnet/minecraft/class_7528;method_44382(D)V
official a
Lfha;a(D)V
-
getContentsHeight
protected int getContentsHeight()Returns the total height of the contents.- Specified by:
getContentsHeight
in classScrollableWidget
- Returns:
- the total height of the contents
- Mappings:
Namespace Name Mixin selector named getContentsHeight
Lnet/minecraft/client/gui/widget/ScrollableWidget;getContentsHeight()I
intermediary method_44391
Lnet/minecraft/class_7528;method_44391()I
official h
Lfha;h()I
-
getDeltaYPerScroll
protected double getDeltaYPerScroll()- Specified by:
getDeltaYPerScroll
in classScrollableWidget
- Mappings:
Namespace Name Mixin selector named getDeltaYPerScroll
Lnet/minecraft/client/gui/widget/ScrollableWidget;getDeltaYPerScroll()D
intermediary method_44393
Lnet/minecraft/class_7528;method_44393()D
official i
Lfha;i()D
-
renderContents
Renders 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:
renderContents
in classScrollableWidget
- Mappings:
Namespace Name Mixin selector named renderContents
Lnet/minecraft/client/gui/widget/ScrollableWidget;renderContents(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_44389
Lnet/minecraft/class_7528;method_44389(Lnet/minecraft/class_332;IIF)V
official c
Lfha;c(Lfgt;IIF)V
-
appendClickableNarrations
- Specified by:
appendClickableNarrations
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named appendClickableNarrations
Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
intermediary method_47399
Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
official a
Lfhe;a(Lflc;)V
-
formatTitleText
- Mappings:
Namespace Name Mixin selector named formatTitleText
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;formatTitleText(Lnet/minecraft/text/Text;Z)Lnet/minecraft/text/Text;
intermediary method_54801
Lnet/minecraft/class_7941;method_54801(Lnet/minecraft/class_2561;Z)Lnet/minecraft/class_2561;
official a
Lfrq;a(Lxp;Z)Lxp;
-
appendEventInfo
private void appendEventInfo(TelemetryEventWidget.ContentsBuilder builder, TelemetryEventType eventType, boolean disabled) - Mappings:
Namespace Name Mixin selector 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
intermediary method_47635
Lnet/minecraft/class_7941;method_47635(Lnet/minecraft/class_7941$class_7943;Lnet/minecraft/class_7966;Z)V
official a
Lfrq;a(Lfrq$b;Lgug;Z)V
-
appendProperties
private void appendProperties(TelemetryEventType eventType, TelemetryEventWidget.ContentsBuilder builder, boolean disabled) - Mappings:
Namespace Name Mixin selector 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
intermediary method_47636
Lnet/minecraft/class_7941;method_47636(Lnet/minecraft/class_7966;Lnet/minecraft/class_7941$class_7943;Z)V
official a
Lfrq;a(Lgug;Lfrq$b;Z)V
-
getGridWidth
private int getGridWidth()- Mappings:
Namespace Name Mixin selector named getGridWidth
Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget;getGridWidth()I
intermediary method_47640
Lnet/minecraft/class_7941;method_47640()I
official k
Lfrq;k()I
-