net.minecraft.client.gui.widget

public abstract class ScrollableTextFieldWidget

extends ScrollableWidget

All mapped superinterfaces:

Widget, Drawable, Element, Navigable, Selectable, Narratable

net.minecraft.client.gui.components.AbstractTextAreaWidget
net.minecraft.client.gui.components.AbstractTextAreaWidget
net.minecraft.class_10415
net.minecraft.client.gui.widget.ScrollableTextFieldWidget

Field summary

Modifier and TypeField
private static final ButtonTextures
BACKGROUND_SPRITES
BACKGROUND_SPRITES
field_55260
TEXTURES
private static final int
INNER_PADDING
INNER_PADDING
field_55261
field_55261
public static final int
DEFAULT_TOTAL_PADDING
DEFAULT_TOTAL_PADDING
field_60867
field_60867
private boolean
showBackground
showBackground
field_60433
hasBackground
private boolean
showDecorations
showDecorations
field_60434
hasOverlay

Constructor summary

ModifierConstructor
public (int x, int y, int width, int height, Text narration, ScrollableWidget$Scrollbar scrollbarSettings)
public (int x, int y, int width, int height, Text message, ScrollableWidget$Scrollbar scrollbar, boolean hasBackground, boolean hasOverlay)

Method summary

Modifier and TypeMethod
public boolean
mouseClicked(MouseButtonEvent event, boolean doubleClick)
mouseClicked(MouseButtonEvent event, boolean doubleClick)
method_25402(class_11909 arg0, boolean arg1)
mouseClicked(Click arg0, boolean arg1)
public boolean
keyPressed(KeyEvent event)
keyPressed(KeyEvent event)
method_25404(class_11908 arg0)
keyPressed(KeyInput arg0)
public void
extractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
extractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_48579(class_332 arg0, int arg1, int arg2, float arg3)
renderWidget(DrawContext arg0, int arg1, int arg2, float arg3)
protected void
extractDecorations(GuiGraphicsExtractor graphics)
extractDecorations(GuiGraphicsExtractor graphics)
method_44384(class_332 arg0)
renderOverlay(DrawContext context)
protected int
innerPadding()
innerPadding()
method_65509()
getTextMargin()
protected int
totalInnerPadding()
totalInnerPadding()
method_65512()
getPadding()
public boolean
isMouseOver(double mouseX, double mouseY)
isMouseOver(double mouseX, double mouseY)
method_25405(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
protected int
scrollBarX()
scrollBarX()
method_65507()
getScrollbarX()
protected int
contentHeight()
contentHeight()
method_44395()
getContentsHeightWithPadding()
protected void
extractBackground(GuiGraphicsExtractor graphics)
extractBackground(GuiGraphicsExtractor graphics)
method_44386(class_332 arg0)
drawBox(DrawContext context)
protected void
extractBorder(GuiGraphicsExtractor graphics, int x, int y, int width, int height)
extractBorder(GuiGraphicsExtractor graphics, int x, int y, int width, int height)
method_65511(class_332 arg0, int arg1, int arg2, int arg3, int arg4)
draw(DrawContext context, int x, int y, int width, int height)
protected boolean
withinContentAreaTopBottom(int top, int bottom)
withinContentAreaTopBottom(int top, int bottom)
method_65510(int arg0, int arg1)
isVisible(int textTop, int textBottom)
protected abstract int
getInnerHeight()
getInnerHeight()
method_44391()
getContentsHeight()
protected abstract void
extractContents(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
extractContents(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_44389(class_332 arg0, int arg1, int arg2, float arg3)
renderContents(DrawContext context, int mouseX, int mouseY, float deltaTicks)
protected int
getInnerLeft()
getInnerLeft()
method_65513()
getTextX()
protected int
getInnerTop()
getInnerTop()
method_65514()
getTextY()
public void
playDownSound(SoundManager soundManager)
playDownSound(SoundManager soundManager)
method_25354(class_1144 arg0)
playDownSound(SoundManager arg0)