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 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_331308_, Component p_330271_, Font p_330898_, boolean p_332016_, int p_331228_) FocusableTextWidget
(int p_295671_, Component p_295867_, Font p_294548_, int p_330770_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
containWithin
(int p_331002_) void
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
-
DEFAULT_PADDING
private static final int DEFAULT_PADDING- See Also:
-
alwaysShowBorder
private final boolean alwaysShowBorder -
padding
private final int padding
-
-
Constructor Details
-
FocusableTextWidget
-
FocusableTextWidget
-
FocusableTextWidget
-
-
Method Details
-
containWithin
public void containWithin(int p_331002_) -
updateWidgetNarration
- Overrides:
updateWidgetNarration
in classAbstractStringWidget
-
renderWidget
- Overrides:
renderWidget
in classMultiLineTextWidget
-
playDownSound
- Overrides:
playDownSound
in classAbstractWidget
-