Class TelemetryEventWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ScrollableWidget
net.minecraft.client.gui.screen.option.TelemetryEventWidget
- All Implemented Interfaces:
class_8083,Drawable,Element,Narratable,Selectable,Widget
- Mappings:
Namespace Name official evkintermediary net/minecraft/class_7941named net/minecraft/client/gui/screen/option/TelemetryEventWidget
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordprivate static classNested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier 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.ClickableWidget
active, alpha, field_41797, field_42117, field_42118, field_42119, field_42120, height, hovered, visible, WIDGETS_TEXTURE, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionTelemetryEventWidget(int x, int y, int width, int height, TextRenderer textRenderer) -
Method Summary
Modifier 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 intprotected booleanReturns whether the contents overflow and needs a scrollbar.voidrefresh(boolean optionalTelemetryEnabled) protected voidrenderContents(MatrixStack matrices, 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.ScrollableWidget
getMaxScrollY, getPadding, getPaddingDoubled, getScrollY, isVisible, isWithinBounds, method_48579, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, renderOverlayMethods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, forEachChild, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationPath, getTexture, getTooltipPositioner, getType, getWidth, getX, getY, getYImage, isFocused, isHovered, isMouseOver, isNarratable, isValidClickButton, method_48588, method_48589, method_48590, method_48591, onClick, onDrag, onRelease, playDownSound, render, renderBackground, renderButton, setAlpha, setFocused, setMessage, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, getZOffset, method_48585, method_48586, method_48587, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.class_8083
method_48590Methods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, getNavigationFocus, getNavigationPath, isFocused, isMouseOver, keyPressed, keyReleased, mouseMoved, setFocusedMethods 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 official aLevk;a:Iintermediary field_41355Lnet/minecraft/class_7941;field_41355:Inamed MARGIN_XLnet/minecraft/client/gui/screen/option/TelemetryEventWidget;MARGIN_X:I
-
REQUIRED_TRANSLATION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official bLevk;b:Ljava/lang/String;intermediary field_41356Lnet/minecraft/class_7941;field_41356:Ljava/lang/String;named REQUIRED_TRANSLATION_KEYLnet/minecraft/client/gui/screen/option/TelemetryEventWidget;REQUIRED_TRANSLATION_KEY:Ljava/lang/String;
-
OPTIONAL_TRANSLATION_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official cLevk;c:Ljava/lang/String;intermediary field_41357Lnet/minecraft/class_7941;field_41357:Ljava/lang/String;named OPTIONAL_TRANSLATION_KEYLnet/minecraft/client/gui/screen/option/TelemetryEventWidget;OPTIONAL_TRANSLATION_KEY:Ljava/lang/String;
-
PROPERTY_TITLE_TEXT
- Mappings:
Namespace Name Mixin selector official dLevk;d:Lta;intermediary field_41358Lnet/minecraft/class_7941;field_41358:Lnet/minecraft/class_2561;named PROPERTY_TITLE_TEXTLnet/minecraft/client/gui/screen/option/TelemetryEventWidget;PROPERTY_TITLE_TEXT:Lnet/minecraft/text/Text;
-
textRenderer
- Mappings:
Namespace Name Mixin selector official eLevk;e:Lelw;intermediary field_41359Lnet/minecraft/class_7941;field_41359:Lnet/minecraft/class_327;named textRendererLnet/minecraft/client/gui/screen/option/TelemetryEventWidget;textRenderer:Lnet/minecraft/client/font/TextRenderer;
-
contents
- Mappings:
Namespace Name Mixin selector official fLevk;f:Levk$a;intermediary field_41360Lnet/minecraft/class_7941;field_41360:Lnet/minecraft/class_7941$class_7942;named contentsLnet/minecraft/client/gui/screen/option/TelemetryEventWidget;contents:Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget$Contents;
-
scrollConsumer
- Mappings:
Namespace Name Mixin selector official vLevk;v:Ljava/util/function/DoubleConsumer;intermediary field_41361Lnet/minecraft/class_7941;field_41361:Ljava/util/function/DoubleConsumer;named scrollConsumerLnet/minecraft/client/gui/screen/option/TelemetryEventWidget;scrollConsumer:Ljava/util/function/DoubleConsumer;
-
-
Constructor Details
-
TelemetryEventWidget
- Mappings:
Namespace Name Mixin selector official <init>Levk;<init>(IIIILelw;)Vintermediary <init>Lnet/minecraft/class_7941;<init>(IIIILnet/minecraft/class_327;)Vnamed <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 bLevk;b(Z)Vintermediary method_47638Lnet/minecraft/class_7941;method_47638(Z)Vnamed refreshLnet/minecraft/client/gui/screen/option/TelemetryEventWidget;refresh(Z)V
-
collectContents
- Mappings:
Namespace Name Mixin selector official cLevk;c(Z)Levk$a;intermediary method_47639Lnet/minecraft/class_7941;method_47639(Z)Lnet/minecraft/class_7941$class_7942;named collectContentsLnet/minecraft/client/gui/screen/option/TelemetryEventWidget;collectContents(Z)Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget$Contents;
-
setScrollConsumer
- Mappings:
Namespace Name Mixin selector official aLevk;a(Ljava/util/function/DoubleConsumer;)Vintermediary method_47637Lnet/minecraft/class_7941;method_47637(Ljava/util/function/DoubleConsumer;)Vnamed setScrollConsumerLnet/minecraft/client/gui/screen/option/TelemetryEventWidget;setScrollConsumer(Ljava/util/function/DoubleConsumer;)V
-
setScrollY
protected void setScrollY(double scrollY) - Overrides:
setScrollYin classScrollableWidget- Mappings:
Namespace Name Mixin selector official aLemc;a(D)Vintermediary method_44382Lnet/minecraft/class_7528;method_44382(D)Vnamed setScrollYLnet/minecraft/client/gui/widget/ScrollableWidget;setScrollY(D)V
-
getContentsHeight
protected int getContentsHeight()Returns the total height of the contents.- Specified by:
getContentsHeightin classScrollableWidget- Returns:
- the total height of the contents
- Mappings:
Namespace Name Mixin selector official eLemc;e()Iintermediary method_44391Lnet/minecraft/class_7528;method_44391()Inamed getContentsHeightLnet/minecraft/client/gui/widget/ScrollableWidget;getContentsHeight()I
-
overflows
protected boolean overflows()Returns whether the contents overflow and needs a scrollbar.- Specified by:
overflowsin classScrollableWidget- Returns:
- whether the contents overflow and needs a scrollbar
- Mappings:
Namespace Name Mixin selector official fLemc;f()Zintermediary method_44392Lnet/minecraft/class_7528;method_44392()Znamed overflowsLnet/minecraft/client/gui/widget/ScrollableWidget;overflows()Z
-
getDeltaYPerScroll
protected double getDeltaYPerScroll()- Specified by:
getDeltaYPerScrollin classScrollableWidget- Mappings:
Namespace Name Mixin selector official gLemc;g()Dintermediary method_44393Lnet/minecraft/class_7528;method_44393()Dnamed getDeltaYPerScrollLnet/minecraft/client/gui/widget/ScrollableWidget;getDeltaYPerScroll()D
-
renderContents
Renders the scrolled contents. Subclasses must override this. The rendered contents may overflow; the caller should trim those usingDrawableHelper.enableScissor(int, int, int, int).- Specified by:
renderContentsin classScrollableWidget- Mappings:
Namespace Name Mixin selector official cLemc;c(Lefn;IIF)Vintermediary method_44389Lnet/minecraft/class_7528;method_44389(Lnet/minecraft/class_4587;IIF)Vnamed renderContentsLnet/minecraft/client/gui/widget/ScrollableWidget;renderContents(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
appendClickableNarrations
- Specified by:
appendClickableNarrationsin classClickableWidget- Mappings:
Namespace Name Mixin selector official aLemf;a(Lepg;)Vintermediary method_47399Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)Vnamed appendClickableNarrationsLnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-
appendEventInfo
private void appendEventInfo(TelemetryEventWidget.ContentsBuilder builder, TelemetryEventType eventType) - Mappings:
Namespace Name Mixin selector official aLevk;a(Levk$b;Lfvi;)Vintermediary method_47635Lnet/minecraft/class_7941;method_47635(Lnet/minecraft/class_7941$class_7943;Lnet/minecraft/class_7966;)Vnamed appendEventInfoLnet/minecraft/client/gui/screen/option/TelemetryEventWidget;appendEventInfo(Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget$ContentsBuilder;Lnet/minecraft/client/util/telemetry/TelemetryEventType;)V
-
appendProperties
private void appendProperties(TelemetryEventType eventType, TelemetryEventWidget.ContentsBuilder builder) - Mappings:
Namespace Name Mixin selector official aLevk;a(Lfvi;Levk$b;)Vintermediary method_47636Lnet/minecraft/class_7941;method_47636(Lnet/minecraft/class_7966;Lnet/minecraft/class_7941$class_7943;)Vnamed appendPropertiesLnet/minecraft/client/gui/screen/option/TelemetryEventWidget;appendProperties(Lnet/minecraft/client/util/telemetry/TelemetryEventType;Lnet/minecraft/client/gui/screen/option/TelemetryEventWidget$ContentsBuilder;)V
-
getGridWidth
private int getGridWidth()- Mappings:
Namespace Name Mixin selector official tLevk;t()Iintermediary method_47640Lnet/minecraft/class_7941;method_47640()Inamed getGridWidthLnet/minecraft/client/gui/screen/option/TelemetryEventWidget;getGridWidth()I
-