net.minecraft.client.gui.components

public abstract class AbstractWidget

implements Renderable, GuiEventListener, LayoutElement, NarratableEntry

fik
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.class_339
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.src.C_3449_

Field summary

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

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()
m_93694_()
public final void
a(fhz 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)
m_88315_(C_279497_ p_93658_, int p_93659_, int p_93660_, float arg3)
public void
a(fjx arg0)
setTooltip(Tooltip arg0)
method_47400(class_7919 arg0)
setTooltip(Tooltip tooltip)
m_257544_(C_256714_ arg0)
public Tooltip
x()
getTooltip()
method_51254()
getTooltip()
m_278622_()
public void
a(Duration arg0)
setTooltipDelay(Duration arg0)
method_47402(Duration arg0)
setTooltipDelay(Duration tooltipDelay)
m_257427_(Duration arg0)
protected MutableComponent
aQ_()
createNarrationMessage()
method_25360()
getNarrationMessage()
m_5646_()
public static MutableComponent
a_(wz arg0)
wrapDefaultNarrationMessage(Component arg0)
method_32602(class_2561 arg0)
getNarrationMessage(Text message)
m_168799_(C_4996_ p_168800_)
protected abstract void
b(fhz 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)
m_87963_(C_279497_ p_268034_, int p_268009_, int p_268085_, float arg3)
protected static void
a(fhz arg0, fhx arg1, wz 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)
m_280138_(C_279497_ p_281620_, C_3429_ p_282651_, C_4996_ p_281467_, int p_283621_, int p_282084_, int p_283398_, int p_281938_, int p_283471_)
protected static void
a(fhz arg0, fhx arg1, wz 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)
m_295717_(C_279497_ p_298878_, C_3429_ p_301352_, C_4996_ p_297799_, int p_300294_, int p_297733_, int p_298903_, int p_300338_, int p_297281_, int p_299081_)
protected void
a(fhz arg0, fhx 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)
m_280372_(C_279497_ p_282790_, C_3429_ p_282664_, int p_282944_, int arg3)
public void
a(double arg0, double arg1)
onClick(double arg0, double arg1)
method_25348(double arg0, double arg1)
onClick(double mouseX, double mouseY)
m_5716_(double p_93635_, double arg1)
public void
a_(double arg0, double arg1)
onRelease(double arg0, double arg1)
method_25357(double arg0, double arg1)
onRelease(double mouseX, double mouseY)
m_7691_(double p_93670_, double arg1)
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)
m_7212_(double p_93637_, double p_93639_, double arg2, double arg3)
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)
m_6375_(double p_93642_, 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)
m_6348_(double p_93685_, double arg1, int arg2)
protected boolean
j(int arg0)
isValidClickButton(int arg0)
method_25351(int arg0)
isValidClickButton(int button)
m_7972_(int arg0)
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)
m_7979_(double p_93646_, double p_93648_, 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)
m_93680_(double p_93682_, double arg1)
public ComponentPath
a(fmo arg0)
nextFocusPath(FocusNavigationEvent arg0)
method_48205(class_8023 arg0)
getNavigationPath(GuiNavigation arg0)
m_264064_(C_263643_ arg0)
public boolean
c(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
method_25405(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
m_5953_(double p_93673_, double arg1)
public void
a(gvf arg0)
playDownSound(SoundManager arg0)
method_25354(class_1144 arg0)
playDownSound(SoundManager soundManager)
m_7435_(C_4603_ arg0)
public int
y()
getWidth()
method_25368()
getWidth()
m_5711_()
public void
k(int arg0)
setWidth(int arg0)
method_25358(int arg0)
setWidth(int width)
m_93674_(int arg0)
public void
l(int arg0)
setHeight(int arg0)
method_53533(int arg0)
setHeight(int height)
m_293384_(int arg0)
public void
a(float arg0)
setAlpha(float arg0)
method_25350(float arg0)
setAlpha(float alpha)
m_93650_(float arg0)
public void
b(wz arg0)
setMessage(Component arg0)
method_25355(class_2561 arg0)
setMessage(Text message)
m_93666_(C_4996_ arg0)
public Component
z()
getMessage()
method_25369()
getMessage()
m_6035_()
public boolean
aO_()
isFocused()
method_25370()
isFocused()
m_93696_()
public boolean
A()
isHovered()
method_49606()
isHovered()
m_274382_()
public boolean
B()
isHoveredOrFocused()
method_25367()
isSelected()
m_198029_()
public boolean
C()
isActive()
method_37303()
isNarratable()
m_142518_()
public void
a(boolean arg0)
setFocused(boolean arg0)
method_25365(boolean arg0)
setFocused(boolean arg0)
m_93692_(boolean arg0)
public NarratableEntry$NarrationPriority
u()
narrationPriority()
method_37018()
getType()
m_142684_()
public final void
b(fmi arg0)
updateNarration(NarrationElementOutput arg0)
method_37020(class_6382 arg0)
appendNarrations(NarrationMessageBuilder arg0)
m_142291_(C_141608_ arg0)
protected abstract void
a(fmi arg0)
updateWidgetNarration(NarrationElementOutput arg0)
method_47399(class_6382 arg0)
appendClickableNarrations(NarrationMessageBuilder builder)
m_168797_(C_141608_ arg0)
protected void
c(fmi arg0)
defaultButtonNarrationText(NarrationElementOutput arg0)
method_37021(class_6382 arg0)
appendDefaultNarrations(NarrationMessageBuilder builder)
m_168802_(C_141608_ arg0)
public int
D()
getX()
method_46426()
getX()
m_252754_()
public void
m(int arg0)
setX(int arg0)
method_46421(int arg0)
setX(int arg0)
m_252865_(int arg0)
public int
E()
getY()
method_46427()
getY()
m_252907_()
public void
n(int arg0)
setY(int arg0)
method_46419(int arg0)
setY(int arg0)
m_253211_(int arg0)
public int
F()
getRight()
method_55442()
getRight()
m_307439_()
public int
G()
getBottom()
method_55443()
getBottom()
m_306468_()
public void
a(Consumer<fik> arg0)
visitWidgets(Consumer<AbstractWidget> arg0)
method_48206(Consumer<class_339> arg0)
forEachChild(Consumer<ClickableWidget> arg0)
m_264134_(Consumer<C_3449_> arg0)
public void
b(int arg0, int arg1)
setSize(int arg0, int arg1)
method_55445(int arg0, int arg1)
setDimensions(int width, int height)
m_305310_(int p_312301_, int arg1)
public ScreenRectangle
H()
getRectangle()
method_48202()
getNavigationFocus()
m_264198_()
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)
m_306878_(int p_310169_, int p_312247_, int p_310380_, int arg3)
public int
I()
getTabOrderGroup()
method_48590()
getNavigationOrder()
m_267579_()
public void
o(int arg0)
setTabOrderGroup(int arg0)
method_48591(int arg0)
setNavigationOrder(int navigationOrder)
m_267708_(int arg0)