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
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, 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_) private void
addEventTypeProperties
(TelemetryEventType p_262105_, TelemetryEventWidget.ContentBuilder p_261932_) private TelemetryEventWidget.Content
buildContent
(boolean p_261628_) private int
protected int
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_) 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, totalInnerPadding, withinContentAreaPoint, withinContentAreaTopBottom
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderTexture, setAlpha, setFGColor, setFocused, setHeight, setMessage, 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:
-
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_) -
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
-
addEventType
private void addEventType(TelemetryEventWidget.ContentBuilder p_261823_, TelemetryEventType p_262127_) -
addEventTypeProperties
private void addEventTypeProperties(TelemetryEventType p_262105_, TelemetryEventWidget.ContentBuilder p_261932_) -
containerWidth
private int containerWidth()
-