net.minecraft.client.gui.components

public abstract class AbstractWidget

implements Renderable, GuiEventListener, LayoutElement, NarratableEntry

fod
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.class_339
net.minecraft.client.gui.widget.ClickableWidget

Field summary

Modifier and TypeField
private static final double
a
PERIOD_PER_SCROLLED_PIXEL
field_43055
field_43055
private static final double
b
MIN_SCROLL_PERIOD
field_43056
field_43056
protected int
g
width
field_22758
width
protected int
h
height
field_22759
height
private int
c
x
field_22760
x
private int
d
y
field_22761
y
private Component
e
message
field_22754
message
protected boolean
i
isHovered
field_22762
hovered
public boolean
j
active
field_22763
active
public boolean
k
visible
field_22764
visible
protected float
l
alpha
field_22765
alpha
private int
f
tabOrderGroup
field_42116
navigationOrder
private boolean
m
focused
field_22756
focused
private final WidgetTooltipHolder
n
tooltip
field_41095
tooltip

Constructor summary

ModifierConstructor
public (int x, int y, int width, int height, Component message)

Method summary

Modifier and TypeMethod
public int
w()
getHeight()
method_25364()
getHeight()
public final void
a(fns arg0, int arg1, int arg2, float arg3)
render(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_25394(class_332 arg0, int arg1, int arg2, float arg3)
render(DrawContext arg0, int arg1, int arg2, float arg3)
public void
a(fpr arg0)
setTooltip(Tooltip arg0)
method_47400(class_7919 arg0)
setTooltip(Tooltip tooltip)
public Tooltip
x()
getTooltip()
method_51254()
getTooltip()
public void
a(Duration arg0)
setTooltipDelay(Duration arg0)
method_47402(Duration arg0)
setTooltipDelay(Duration tooltipDelay)
protected MutableComponent
aR_()
createNarrationMessage()
method_25360()
getNarrationMessage()
public static MutableComponent
a_(xv arg0)
wrapDefaultNarrationMessage(Component arg0)
method_32602(class_2561 arg0)
getNarrationMessage(Text message)
protected abstract void
b(fns arg0, int arg1, int arg2, float arg3)
renderWidget(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_48579(class_332 arg0, int arg1, int arg2, float arg3)
renderWidget(DrawContext context, int mouseX, int mouseY, float delta)
protected static void
a(fns arg0, fnq arg1, xv arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
renderScrollingString(GuiGraphics arg0, Font arg1, Component arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
method_52718(class_332 arg0, class_327 arg1, class_2561 arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
drawScrollableText(DrawContext context, TextRenderer textRenderer, Text text, int startX, int startY, int endX, int endY, int color)
protected static void
a(fns arg0, fnq arg1, xv arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8)
renderScrollingString(GuiGraphics arg0, Font arg1, Component arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8)
method_49605(class_332 arg0, class_327 arg1, class_2561 arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8)
drawScrollableText(DrawContext context, TextRenderer textRenderer, Text text, int centerX, int startX, int startY, int endX, int endY, int color)
protected void
a(fns arg0, fnq arg1, int arg2, int arg3)
renderScrollingString(GuiGraphics arg0, Font arg1, int arg2, int arg3)
method_49604(class_332 arg0, class_327 arg1, int arg2, int arg3)
drawScrollableText(DrawContext context, TextRenderer textRenderer, int xMargin, int color)
public void
a(double arg0, double arg1)
onClick(double arg0, double arg1)
method_25348(double arg0, double arg1)
onClick(double mouseX, double mouseY)
public void
a_(double arg0, double arg1)
onRelease(double arg0, double arg1)
method_25357(double arg0, double arg1)
onRelease(double mouseX, double mouseY)
protected void
b(double arg0, double arg1, double arg2, double arg3)
onDrag(double arg0, double arg1, double arg2, double arg3)
method_25349(double arg0, double arg1, double arg2, double arg3)
onDrag(double mouseX, double mouseY, double deltaX, double deltaY)
public boolean
a(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
method_25402(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
public boolean
b(double arg0, double arg1, int arg2)
mouseReleased(double arg0, double arg1, int arg2)
method_25406(double arg0, double arg1, int arg2)
mouseReleased(double arg0, double arg1, int arg2)
protected boolean
h(int arg0)
isValidClickButton(int arg0)
method_25351(int arg0)
isValidClickButton(int button)
public boolean
a(double arg0, double arg1, int arg2, double arg3, double arg4)
mouseDragged(double arg0, double arg1, int arg2, double arg3, double arg4)
method_25403(double arg0, double arg1, int arg2, double arg3, double arg4)
mouseDragged(double arg0, double arg1, int arg2, double arg3, double arg4)
protected boolean
d(double arg0, double arg1)
clicked(double arg0, double arg1)
method_25361(double arg0, double arg1)
clicked(double mouseX, double mouseY)
public ComponentPath
a(fsj arg0)
nextFocusPath(FocusNavigationEvent arg0)
method_48205(class_8023 arg0)
getNavigationPath(GuiNavigation arg0)
public boolean
c(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
method_25405(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
public void
a(hgn arg0)
playDownSound(SoundManager arg0)
method_25354(class_1144 arg0)
playDownSound(SoundManager soundManager)
public static void
b(hgn arg0)
playButtonClickSound(SoundManager arg0)
method_62888(class_1144 arg0)
playClickSound(SoundManager soundManager)
public int
y()
getWidth()
method_25368()
getWidth()
public void
i(int arg0)
setWidth(int arg0)
method_25358(int arg0)
setWidth(int width)
public void
j(int arg0)
setHeight(int arg0)
method_53533(int arg0)
setHeight(int height)
public void
a(float arg0)
setAlpha(float arg0)
method_25350(float arg0)
setAlpha(float alpha)
public void
b(xv arg0)
setMessage(Component arg0)
method_25355(class_2561 arg0)
setMessage(Text message)
public Component
z()
getMessage()
method_25369()
getMessage()
public boolean
aN_()
isFocused()
method_25370()
isFocused()
public boolean
A()
isHovered()
method_49606()
isHovered()
public boolean
B()
isHoveredOrFocused()
method_25367()
isSelected()
public boolean
C()
isActive()
method_37303()
isNarratable()
public void
a(boolean arg0)
setFocused(boolean arg0)
method_25365(boolean arg0)
setFocused(boolean arg0)
public NarratableEntry$NarrationPriority
u()
narrationPriority()
method_37018()
getType()
public final void
b(fsd arg0)
updateNarration(NarrationElementOutput arg0)
method_37020(class_6382 arg0)
appendNarrations(NarrationMessageBuilder arg0)
protected abstract void
a(fsd arg0)
updateWidgetNarration(NarrationElementOutput arg0)
method_47399(class_6382 arg0)
appendClickableNarrations(NarrationMessageBuilder builder)
protected void
c(fsd arg0)
defaultButtonNarrationText(NarrationElementOutput arg0)
method_37021(class_6382 arg0)
appendDefaultNarrations(NarrationMessageBuilder builder)
public int
D()
getX()
method_46426()
getX()
public void
k(int arg0)
setX(int arg0)
method_46421(int arg0)
setX(int arg0)
public int
E()
getY()
method_46427()
getY()
public void
l(int arg0)
setY(int arg0)
method_46419(int arg0)
setY(int arg0)
public int
F()
getRight()
method_55442()
getRight()
public int
G()
getBottom()
method_55443()
getBottom()
public void
a(Consumer<fod> arg0)
visitWidgets(Consumer<AbstractWidget> arg0)
method_48206(Consumer<class_339> arg0)
forEachChild(Consumer<ClickableWidget> arg0)
public void
b(int arg0, int arg1)
setSize(int arg0, int arg1)
method_55445(int arg0, int arg1)
setDimensions(int width, int height)
public ScreenRectangle
H()
getRectangle()
method_48202()
getNavigationFocus()
public void
a(int arg0, int arg1, int arg2, int arg3)
setRectangle(int arg0, int arg1, int arg2, int arg3)
method_55444(int arg0, int arg1, int arg2, int arg3)
setDimensionsAndPosition(int width, int height, int x, int y)
public int
I()
getTabOrderGroup()
method_48590()
getNavigationOrder()
public void
m(int arg0)
setTabOrderGroup(int arg0)
method_48591(int arg0)
setNavigationOrder(int navigationOrder)