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 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_, int p_335803_) FocusableTextWidget
(int p_335481_, Component p_335339_, Font p_328204_, int p_334529_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
containWithin
(int p_328277_) void
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
-
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_328277_) -
updateWidgetNarration
- Overrides:
updateWidgetNarration
in classAbstractStringWidget
-
renderWidget
- Overrides:
renderWidget
in classMultiLineTextWidget
-
playDownSound
- Overrides:
playDownSound
in classAbstractWidget
-