Class TelemetryEventWidget
java.lang.Object
net.minecraft.client.gui.GuiComponent
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 class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATION
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
(PoseStack p_261905_, int p_262043_, int p_261724_, float p_262063_) protected boolean
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, renderDecorations, renderWidget, scrollAmount, totalInnerPadding, withinContentAreaPoint, withinContentAreaTopBottom
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, getTabOrderGroup, 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 net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, vLine
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
-
scrollbarVisible
protected boolean scrollbarVisible()- Specified by:
scrollbarVisible
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()
-