Class TelemetryEventWidget
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollWidget
net.minecraft.client.gui.screens.telemetry.TelemetryEventWidget
- All Implemented Interfaces:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
(package private) static class
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
Modifier and TypeFieldDescriptionprivate TelemetryEventWidget.Content
private final Font
private static final int
private DoubleConsumer
private static final Component
private static final String
private static final String
private static final String
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionTelemetryEventWidget
(int p_261584_, int p_261895_, int p_261803_, int p_261967_, Font p_261662_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addEventType
(TelemetryEventWidget.ContentBuilder p_261823_, TelemetryEventType p_262127_, boolean p_310858_) private void
addEventTypeProperties
(TelemetryEventType p_262105_, TelemetryEventWidget.ContentBuilder p_261932_, boolean p_310254_) private TelemetryEventWidget.Content
buildContent
(boolean p_261628_) private int
protected int
private Component
grayOutIfDisabled
(Component p_311715_, boolean p_310771_) void
onOptInChanged
(boolean p_261772_) protected void
renderContents
(GuiGraphics p_283081_, int p_283426_, int p_282414_, float p_283358_) protected double
void
setOnScrolledListener
(DoubleConsumer p_261686_) protected void
setScrollAmount
(double p_261736_) void
protected void
updateWidgetNarration
(NarrationElementOutput p_261538_) Methods inherited from class net.minecraft.client.gui.components.AbstractScrollWidget
getMaxScrollAmount, innerPadding, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, renderBackground, renderBorder, renderDecorations, renderWidget, scrollAmount, scrollbarVisible, scrollbarWidth, totalInnerPadding, withinContentAreaPoint, withinContentAreaTopBottom
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage
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.components.events.GuiEventListener
charTyped, getCurrentFocusPath, getRectangle, isFocused, isMouseOver, keyReleased, mouseMoved, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
Methods inherited from interface net.minecraft.client.gui.components.Renderable
render
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
HEADER_HORIZONTAL_PADDING
private static final int HEADER_HORIZONTAL_PADDING- See Also:
-
TELEMETRY_REQUIRED_TRANSLATION_KEY
- See Also:
-
TELEMETRY_OPTIONAL_TRANSLATION_KEY
- See Also:
-
TELEMETRY_OPTIONAL_DISABLED_TRANSLATION_KEY
- See Also:
-
PROPERTY_TITLE
-
font
-
-
onScrolledListener
-
-
Constructor Details
-
TelemetryEventWidget
public TelemetryEventWidget(int p_261584_, int p_261895_, int p_261803_, int p_261967_, Font p_261662_)
-
-
Method Details
-
onOptInChanged
public void onOptInChanged(boolean p_261772_) -
updateLayout
public void updateLayout() -
buildContent
-
setOnScrolledListener
-
setScrollAmount
protected void setScrollAmount(double p_261736_) - Overrides:
setScrollAmount
in classAbstractScrollWidget
-
getInnerHeight
protected int getInnerHeight()- Specified by:
getInnerHeight
in classAbstractScrollWidget
-
scrollRate
protected double scrollRate()- Specified by:
scrollRate
in classAbstractScrollWidget
-
renderContents
- Specified by:
renderContents
in classAbstractScrollWidget
-
updateWidgetNarration
- Specified by:
updateWidgetNarration
in classAbstractWidget
-
grayOutIfDisabled
-
addEventType
private void addEventType(TelemetryEventWidget.ContentBuilder p_261823_, TelemetryEventType p_262127_, boolean p_310858_) -
addEventTypeProperties
private void addEventTypeProperties(TelemetryEventType p_262105_, TelemetryEventWidget.ContentBuilder p_261932_, boolean p_310254_) -
containerWidth
private int containerWidth()
-