net.minecraft.client.gui.components

public abstract class AbstractWidget

extends GuiComponent implements Renderable, GuiEventListener, LayoutElement, NarratableEntry

All mapped superinterfaces:

Renderable, GuiEventListener, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier

enz
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.class_339
net.minecraft.unmapped.C_kpvuxmkp
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.src.C_3449_

Field summary

Modifier and TypeField
public static final ResourceLocation
q
WIDGETS_LOCATION
field_22757
f_olrwingn
WIDGETS_TEXTURE
WIDGETS_TEXTURE
f_93617_
public static final ResourceLocation
r
ACCESSIBILITY_TEXTURE
field_42117
f_hfibhheh
ACCESSIBILITY_TEXTURE
ACCESSIBILITY_TEXTURE
f_267372_
private static final double
a
PERIOD_PER_SCROLLED_PIXEL
field_43055
f_uqewlwtr
field_43055
TIME_PER_SCROLLED_PIXEL
f_273912_
private static final double
b
MIN_SCROLL_PERIOD
field_43056
f_vpgwssld
field_43056
MIN_SCROLL_TIME
f_273840_
protected int
s
width
field_22758
f_kjkcnurp
width
width
f_93618_
protected int
t
height
field_22759
f_pghkhtuu
height
height
f_93619_
private int
c
x
field_22760
f_qqnmwoid
x
x
f_93620_
private int
d
y
field_22761
f_ppowyefj
y
y
f_93621_
private Component
e
message
field_22754
f_vevzmidc
message
message
f_93614_
protected boolean
u
isHovered
field_22762
f_zzvmffin
hovered
hovered
f_93622_
public boolean
v
active
field_22763
f_fjktqkgd
active
active
f_93623_
public boolean
w
visible
field_22764
f_ndumutmu
visible
visible
f_93624_
protected float
x
alpha
field_22765
f_prgrzmyd
alpha
alpha
f_93625_
private int
f
tabOrderGroup
field_42116
f_bfgdavkd
navigationOrder
tabNavigationOrder
f_267443_
private boolean
k
focused
field_22756
f_xzcbpput
focused
focused
f_93616_
private Tooltip
l
tooltip
field_41095
f_cjsmmjyb
tooltip
tooltip
f_256816_
private int
m
tooltipMsDelay
field_41096
f_dzpdyfdx
tooltipDelay
tooltipDelay
f_256936_
private long
n
hoverOrFocusedStartTime
field_41097
f_iwvrdmpf
lastHoveredTime
hoverOrFocusedStartTime
f_256960_
private boolean
o
wasHoveredOrFocused
field_41098
f_wxstegmf
wasHovered
wasHoveredOrFocused
f_256916_

Constructor summary

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

Method summary

Modifier and TypeMethod
public int
h()
getHeight()
method_25364()
m_nbijciuw()
getHeight()
getHeight()
m_93694_()
public void
a(ehe arg0, int arg1, int arg2, float arg3)
render(PoseStack arg0, int arg1, int arg2, float arg3)
method_25394(class_4587 arg0, int arg1, int arg2, float arg3)
m_ljhpujrm(C_cnszsxvd arg0, int arg1, int arg2, float arg3)
render(MatrixStack arg0, int arg1, int arg2, float arg3)
render(MatrixStack arg0, int arg1, int arg2, float arg3)
m_86412_(C_3181_ p_93658_, int p_93659_, int p_93660_, float arg3)
private void
a()
updateTooltip()
method_47401()
m_yxnhowjp()
applyTooltip()
updateTooltip()
m_257936_()
protected ClientTooltipPositioner
i()
createTooltipPositioner()
method_47937()
m_igppotkm()
getTooltipPositioner()
createTooltipPositioner()
m_262860_()
public void
a(eph arg0)
setTooltip(Tooltip arg0)
method_47400(class_7919 arg0)
m_tgibvaaa(C_skehaijy arg0)
setTooltip(Tooltip tooltip)
setTooltip(Tooltip tooltip)
m_257544_(C_256714_ arg0)
public void
b(int arg0)
setTooltipDelay(int arg0)
method_47402(int arg0)
m_xuhmsncd(int arg0)
setTooltipDelay(int delay)
setTooltipDelay(int tooltipDelay)
m_257427_(int arg0)
protected MutableComponent
aH_()
createNarrationMessage()
method_25360()
m_sjpjzqmc()
getNarrationMessage()
getNarrationMessage()
m_5646_()
public static MutableComponent
a(tj arg0)
wrapDefaultNarrationMessage(Component arg0)
method_32602(class_2561 arg0)
m_yttfswob(C_rdaqiwdt arg0)
getNarrationMessage(Text message)
getNarrationMessage(Text message)
m_168799_(C_4996_ p_168800_)
public abstract void
b(ehe arg0, int arg1, int arg2, float arg3)
renderWidget(PoseStack arg0, int arg1, int arg2, float arg3)
method_48579(class_4587 arg0, int arg1, int arg2, float arg3)
m_mxhoikgj(C_cnszsxvd arg0, int arg1, int arg2, float arg3)
renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
drawWidget(MatrixStack matrices, int mouseX, int mouseY, float delta)
m_87963_(C_3181_ p_268034_, int p_268009_, int p_268085_, float arg3)
protected static void
a(ehe arg0, enp arg1, tj arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
renderScrollingString(PoseStack arg0, Font arg1, Component arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
method_49605(class_4587 arg0, class_327 arg1, class_2561 arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
m_yqoezvpo(C_cnszsxvd arg0, C_mavozmpp arg1, C_rdaqiwdt arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
drawScrollableText(MatrixStack matrices, TextRenderer textRenderer, Text text, int left, int top, int right, int bottom, int color)
drawScrollableText(MatrixStack matrices, TextRenderer textRenderer, Text text, int left, int top, int right, int bottom, int color)
m_274366_(C_3181_ p_275352_, C_3429_ p_275395_, C_4996_ p_275742_, int p_275307_, int p_275548_, int p_275592_, int p_275385_, int p_275291_)
protected void
a(ehe arg0, enp arg1, int arg2, int arg3)
renderScrollingString(PoseStack arg0, Font arg1, int arg2, int arg3)
method_49604(class_4587 arg0, class_327 arg1, int arg2, int arg3)
m_bqqbliac(C_cnszsxvd arg0, C_mavozmpp arg1, int arg2, int arg3)
drawScrollableText(MatrixStack matrices, TextRenderer textRenderer, int xMargin, int color)
drawScrollableText(MatrixStack matrices, TextRenderer textRenderer, int xOffset, int color)
m_274450_(C_3181_ p_275333_, C_3429_ p_275661_, int p_275656_, int arg3)
public void
a(ehe arg0, add arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, int arg10)
renderTexture(PoseStack arg0, ResourceLocation arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, int arg10)
method_48588(class_4587 arg0, class_2960 arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, int arg10)
m_sccgwmpk(C_cnszsxvd arg0, C_ncpywfca arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9, int arg10)
drawTexture(MatrixStack matrices, Identifier texture, int x, int y, int u, int v, int hoveredVOffset, int width, int height, int textureWidth, int textureHeight)
drawTexture(MatrixStack matrices, Identifier texture, int x, int y, int u, int v, int hoveredVOffset, int width, int height, int textureWidth, int textureHeight)
m_267741_(C_3181_ p_268031_, C_5265_ p_268218_, int p_267959_, int p_268261_, int p_267978_, int p_267937_, int p_268330_, int p_268160_, int p_267985_, int p_268321_, int arg10)
public void
a(double arg0, double arg1)
onClick(double arg0, double arg1)
method_25348(double arg0, double arg1)
m_hxhlmyqd(double arg0, double arg1)
onClick(double mouseX, double mouseY)
onClick(double mouseX, double mouseY)
m_5716_(double p_93635_, double arg1)
public void
b(double arg0, double arg1)
onRelease(double arg0, double arg1)
method_25357(double arg0, double arg1)
m_fkmytxaq(double arg0, double arg1)
onRelease(double mouseX, double mouseY)
onRelease(double mouseX, double mouseY)
m_7691_(double p_93670_, double arg1)
protected void
a(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)
m_qqoyqdvw(double arg0, double arg1, double arg2, double arg3)
onDrag(double mouseX, double mouseY, double deltaX, double deltaY)
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)
m_fpfqbhfx(double arg0, double arg1, int arg2)
mouseClicked(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)
m_vygbkdkf(double arg0, double arg1, int arg2)
mouseReleased(double arg0, double arg1, int arg2)
mouseReleased(double arg0, double arg1, int arg2)
m_6348_(double p_93685_, double arg1, int arg2)
protected boolean
c(int arg0)
isValidClickButton(int arg0)
method_25351(int arg0)
m_ncxnkkvw(int arg0)
isValidClickButton(int button)
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)
m_shbmcoxj(double arg0, double arg1, int arg2, double arg3, double arg4)
mouseDragged(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)
m_herdybkq(double arg0, double arg1)
clicked(double mouseX, double mouseY)
clicked(double mouseX, double mouseY)
m_93680_(double p_93682_, double arg1)
public ComponentPath
a(erj arg0)
nextFocusPath(FocusNavigationEvent arg0)
method_48205(class_8023 arg0)
m_yirxqyjo(C_ltcpucbp arg0)
getNavigationPath(GuiNavigation arg0)
nextFocusPath(GuiNavigationEvent arg0)
m_264064_(C_263643_ arg0)
public boolean
a_(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
method_25405(double arg0, double arg1)
m_nxrnpxyk(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
m_5953_(double p_93673_, double arg1)
public void
a(fxj arg0)
playDownSound(SoundManager arg0)
method_25354(class_1144 arg0)
m_xaqgdxna(C_hfmtwavd arg0)
playDownSound(SoundManager soundManager)
playDownSound(SoundManager soundManager)
m_7435_(C_4603_ arg0)
public int
j()
getWidth()
method_25368()
m_waltocgu()
getWidth()
getWidth()
m_5711_()
public void
d(int arg0)
setWidth(int arg0)
method_25358(int arg0)
m_fhshjyyq(int arg0)
setWidth(int width)
setWidth(int value)
m_93674_(int arg0)
public void
a(float arg0)
setAlpha(float arg0)
method_25350(float arg0)
m_qavvrysx(float arg0)
setAlpha(float alpha)
setAlpha(float value)
m_93650_(float arg0)
public void
b(tj arg0)
setMessage(Component arg0)
method_25355(class_2561 arg0)
m_cwymxoak(C_rdaqiwdt arg0)
setMessage(Text message)
setMessage(Text message)
m_93666_(C_4996_ arg0)
public Component
k()
getMessage()
method_25369()
m_zqcmyqwx()
getMessage()
getMessage()
m_6035_()
public boolean
aD_()
isFocused()
method_25370()
m_whraqgee()
isFocused()
isFocused()
m_93696_()
public boolean
m()
isHovered()
method_49606()
m_zwivhkak()
isHovered()
isHovered()
m_274382_()
public boolean
n()
isHoveredOrFocused()
method_25367()
m_zawcanxc()
isSelected()
isHoveredOrFocused()
m_198029_()
public boolean
aG_()
isActive()
method_37303()
m_zkmnuipm()
isNarratable()
isNarratable()
m_142518_()
public void
b_(boolean arg0)
setFocused(boolean arg0)
method_25365(boolean arg0)
m_sxncwtsd(boolean arg0)
setFocused(boolean arg0)
setFocused(boolean arg0)
m_93692_(boolean arg0)
public NarratableEntry$NarrationPriority
s()
narrationPriority()
method_37018()
m_ohloyjiq()
getType()
getType()
m_142684_()
public final void
b(ere arg0)
updateNarration(NarrationElementOutput arg0)
method_37020(class_6382 arg0)
m_ubiaqpjr(C_pofrkllk arg0)
appendNarrations(NarrationMessageBuilder arg0)
appendNarrations(NarrationMessageBuilder arg0)
m_142291_(C_141608_ arg0)
protected abstract void
a(ere arg0)
updateWidgetNarration(NarrationElementOutput arg0)
method_47399(class_6382 arg0)
m_acsoyrbk(C_pofrkllk arg0)
appendClickableNarrations(NarrationMessageBuilder builder)
updateNarration(NarrationMessageBuilder builder)
m_168797_(C_141608_ arg0)
protected void
c(ere arg0)
defaultButtonNarrationText(NarrationElementOutput arg0)
method_37021(class_6382 arg0)
m_bhvsucly(C_pofrkllk arg0)
appendDefaultNarrations(NarrationMessageBuilder builder)
appendDefaultNarrations(NarrationMessageBuilder builder)
m_168802_(C_141608_ arg0)
public int
p()
getX()
method_46426()
m_mztqidmr()
getX()
getX()
m_252754_()
public void
e(int arg0)
setX(int arg0)
method_46421(int arg0)
m_alwmixgb(int arg0)
setX(int arg0)
setX(int arg0)
m_252865_(int arg0)
public int
q()
getY()
method_46427()
m_keflvkfy()
getY()
getY()
m_252907_()
public void
f(int arg0)
setY(int arg0)
method_46419(int arg0)
m_qbcfkewq(int arg0)
setY(int arg0)
setY(int arg0)
m_253211_(int arg0)
public void
a(Consumer<enz> arg0)
visitWidgets(Consumer<AbstractWidget> arg0)
method_48206(Consumer<class_339> arg0)
m_dynvkhcq(Consumer<C_kpvuxmkp> arg0)
forEachChild(Consumer<ClickableWidget> arg0)
visitWidgets(Consumer<ClickableWidget> arg0)
m_264134_(Consumer<C_3449_> arg0)
public ScreenRectangle
u()
getRectangle()
method_48202()
m_duvbqmml()
getNavigationFocus()
getArea()
m_264198_()
public int
aF_()
getTabOrderGroup()
method_48590()
m_kjjjnike()
getNavigationOrder()
getTabNavigationOrder()
m_267579_()
public void
g(int arg0)
setTabOrderGroup(int arg0)
method_48591(int arg0)
m_ucfyrqss(int arg0)
setNavigationOrder(int navigationOrder)
setTabNavigationOrder(int order)
m_267708_(int arg0)