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
,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
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, 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, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, renderButton, renderDecorations, scrollAmount, totalInnerPadding, withinContentAreaPoint, withinContentAreaTopBottom
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
changeFocus, clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getWidth, getX, getY, getYImage, isActive, isFocused, isHoveredOrFocused, isMouseOver, isValidClickButton, narrationPriority, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBg, setAlpha, setFGColor, setFocused, setHeight, setMessage, setPosition, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, wrapDefaultNarrationMessage
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, 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
changeFocus, charTyped, isMouseOver, keyPressed, keyReleased, mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.Renderable
render
-
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()
-