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
,IAbstractWidgetExtension
-
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_295441_, Component p_296440_, Font p_296307_) FocusableTextWidget
(int p_295671_, Component p_295867_, Font p_294548_, boolean p_295676_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
playDownSound
(SoundManager p_295576_) void
renderWidget
(GuiGraphics p_296375_, int p_295686_, int p_295354_, float p_295563_) protected void
updateWidgetNarration
(NarrationElementOutput p_295798_) 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.neoforged.neoforge.client.extensions.IAbstractWidgetExtension
onClick
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
-