net.minecraft.client.gui.components

public class TextAndImageButton

extends Button

All mapped superinterfaces:

Renderable, GuiEventListener, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier

epg
net.minecraft.client.gui.components.TextAndImageButton
net.minecraft.class_8084
net.minecraft.client.gui.widget.IconButtonWidget
net.minecraft.src.C_267347_

Field summary

Modifier and TypeField
protected final ResourceLocation
a
resourceLocation
field_43070
iconTexture
f_273941_
protected final int
b
xTexStart
field_43071
iconU
f_273904_
protected final int
c
yTexStart
field_43072
iconV
f_273857_
protected final int
d
yDiffTex
field_43073
iconHoveredVOffset
f_273911_
protected final int
e
textureWidth
field_43074
iconTextureWidth
f_273880_
protected final int
f
textureHeight
field_43075
iconTextureHeight
f_273871_
private final int
E
xOffset
field_42123
iconXOffset
f_267392_
private final int
F
yOffset
field_42124
iconYOffset
f_267457_
private final int
G
usedTextureWidth
field_42125
iconWidth
f_267436_
private final int
H
usedTextureHeight
field_42126
iconHeight
f_267434_

Constructor summary

ModifierConstructor
(Component message, int iconU, int iconV, int iconXOffset, int iconYOffset, int iconHoveredVOffset, int iconWidth, int iconHeight, int iconTextureWidth, int iconTextureHeight, ResourceLocation iconTexture, Button$OnPress onPress)

Method summary

Modifier and TypeMethod
public 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)
renderButton(MatrixStack arg0, int arg1, int arg2, float arg3)
m_87963_(C_3181_ p_268172_, int p_268131_, int p_268056_, float arg3)
public void
a(ehe arg0, enp arg1, int arg2)
renderString(PoseStack arg0, Font arg1, int arg2)
method_48589(class_4587 arg0, class_327 arg1, int arg2)
drawMessage(MatrixStack arg0, TextRenderer arg1, int arg2)
m_274375_(C_3181_ p_275206_, C_3429_ p_275610_, int arg2)
private int
a()
getXOffset()
method_48600()
getIconX()
m_267702_()
private int
b()
getYOffset()
method_48602()
getIconY()
m_267831_()
public static TextAndImageButton$Builder
a(tj arg0, add arg1, eoc$c arg2)
builder(Component arg0, ResourceLocation arg1, Button$OnPress arg2)
method_48601(class_2561 arg0, class_2960 arg1, class_4185$class_4241 arg2)
builder(Text message, Identifier texture, ButtonWidget$PressAction pressAction)
m_267772_(C_4996_ p_268304_, C_5265_ p_268277_, C_3451_$C_3452_ p_268297_)