Class FocusableTextWidget
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractStringWidget
net.minecraft.client.gui.components.MultiLineTextWidget
net.minecraft.client.gui.components.FocusableTextWidget
- All Implemented Interfaces:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.components.MultiLineTextWidget
MultiLineTextWidget.CacheKey
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private static final int
private static final int
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
ConstructorDescriptionFocusableTextWidget
(int p_298289_, Component p_300031_, Font p_298235_) FocusableTextWidget
(int p_299147_, Component p_299786_, Font p_299475_, boolean p_299140_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
playDownSound
(SoundManager p_297351_) void
renderWidget
(GuiGraphics p_297672_, int p_301298_, int p_300386_, float p_299545_) protected void
updateWidgetNarration
(NarrationElementOutput p_300724_) Methods inherited from class net.minecraft.client.gui.components.MultiLineTextWidget
getHeight, getWidth, setCentered, setColor, setMaxRows, setMaxWidth
Methods inherited from class net.minecraft.client.gui.components.AbstractStringWidget
getColor, getFont
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, 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, keyPressed, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
Field Details
-
BACKGROUND_COLOR
private static final int BACKGROUND_COLOR- See Also:
-
PADDING
private static final int PADDING- See Also:
-
alwaysShowBorder
private final boolean alwaysShowBorder
-
-
Constructor Details
-
FocusableTextWidget
-
FocusableTextWidget
-
-
Method Details
-
updateWidgetNarration
- Overrides:
updateWidgetNarration
in classAbstractStringWidget
-
renderWidget
- Overrides:
renderWidget
in classMultiLineTextWidget
-
playDownSound
- Overrides:
playDownSound
in classAbstractWidget
-