net.minecraft.client.gui.components

public abstract class AbstractWidget

extends GuiComponent implements Widget, GuiEventListener

All mapped superinterfaces:

Widget, GuiEventListener

dcr
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.class_339
net.minecraft.client.gui.widget.AbstractButtonWidget
net.minecraft.client.gui.widget.Widget

Field summary

Modifier and TypeField
public static final ResourceLocation
WIDGETS_LOCATION
WIDGETS_LOCATION
WIDGETS_LOCATION
WIDGETS_LOCATION
private static final int
NARRATE_DELAY_MOUSE
NARRATE_DELAY_MOUSE
NARRATE_DELAY_MOUSE
NARRATE_DELAY_MOUSE
private static final int
NARRATE_DELAY_FOCUS
NARRATE_DELAY_FOCUS
NARRATE_DELAY_FOCUS
NARRATE_DELAY_FOCUS
protected int
width
width
width
width
protected int
height
height
height
height
public int
x
x
x
x
public int
y
y
y
y
private String
message
message
message
message
private boolean
wasHovered
wasHovered
wasHovered
wasHovered
protected boolean
isHovered
isHovered
isHovered
isHovered
public boolean
active
active
active
active
public boolean
visible
visible
visible
visible
protected float
alpha
alpha
alpha
alpha
protected long
nextNarration
nextNarration
nextNarration
nextNarration
private boolean
focused
focused
focused
focused

Constructor summary

ModifierConstructor
public (int x, int y, String text)
public (int x, int y, int width, int height, String message)

Method summary

Modifier and TypeMethod
protected int
getYImage(boolean arg0)
getYImage(boolean arg0)
getYImage(boolean arg0)
getYImage(boolean isHovered)
getYImage(boolean arg0)
public void
render(int arg0, int arg1, float arg2)
render(int arg0, int arg1, float arg2)
render(int arg0, int arg1, float arg2)
render(int arg0, int arg1, float arg2)
render(int arg0, int arg1, float arg2)
protected void
narrate()
narrate()
narrate()
narrate()
protected String
getNarrationMessage()
getNarrationMessage()
getNarrationMessage()
getNarrationMessage()
public void
renderButton(int arg0, int arg1, float arg2)
renderButton(int arg0, int arg1, float arg2)
renderButton(int arg0, int arg1, float arg2)
renderButton(int mouseX, int mouseY, float delta)
renderButton(int arg0, int arg1, float arg2)
protected void
renderBg(dbl arg0, int arg1, int arg2)
renderBg(Minecraft arg0, int arg1, int arg2)
renderBg(class_310 arg0, int arg1, int arg2)
renderBg(MinecraftClient client, int mouseX, int mouseY)
renderBg(Minecraft arg0, int arg1, int arg2)
public void
onClick(double arg0, double arg1)
onClick(double arg0, double arg1)
onClick(double arg0, double arg1)
onClick(double mouseX, double mouseY)
onClick(double arg0, double arg1)
public void
onRelease(double arg0, double arg1)
onRelease(double arg0, double arg1)
onRelease(double arg0, double arg1)
onRelease(double mouseX, double mouseY)
onRelease(double arg0, double arg1)
protected void
onDrag(double arg0, double arg1, double arg2, double arg3)
onDrag(double arg0, double arg1, double arg2, double arg3)
onDrag(double arg0, double arg1, double arg2, double arg3)
onDrag(double mouseX, double mouseY, double deltaX, double deltaY)
onDrag(double arg0, double arg1, double arg2, double arg3)
public boolean
mouseClicked(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
mouseClicked(double arg0, double arg1, int arg2)
public boolean
mouseReleased(double arg0, double arg1, int arg2)
mouseReleased(double arg0, double arg1, int arg2)
mouseReleased(double arg0, double arg1, int arg2)
mouseReleased(double arg0, double arg1, int arg2)
mouseReleased(double arg0, double arg1, int arg2)
protected boolean
isValidClickButton(int arg0)
isValidClickButton(int arg0)
isValidClickButton(int arg0)
isValidClickButton(int arg0)
public boolean
mouseDragged(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)
mouseDragged(double arg0, double arg1, int arg2, double arg3, double arg4)
mouseDragged(double arg0, double arg1, int arg2, double arg3, double arg4)
protected boolean
clicked(double arg0, double arg1)
clicked(double arg0, double arg1)
clicked(double arg0, double arg1)
clicked(double mouseX, double mouseY)
clicked(double arg0, double arg1)
public boolean
isHovered()
isHovered()
isHovered()
isHovered()
public boolean
changeFocus(boolean arg0)
changeFocus(boolean arg0)
changeFocus(boolean arg0)
changeFocus(boolean arg0)
changeFocus(boolean arg0)
protected void
onFocusedChanged(boolean arg0)
onFocusedChanged(boolean arg0)
onFocusedChanged(boolean arg0)
onFocusedChanged(boolean arg0)
public boolean
isMouseOver(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
isMouseOver(double arg0, double arg1)
public void
renderToolTip(int arg0, int arg1)
renderToolTip(int arg0, int arg1)
renderToolTip(int arg0, int arg1)
renderToolTip(int mouseX, int mouseY)
renderToolTip(int arg0, int arg1)
public void
playDownSound(edw arg0)
playDownSound(SoundManager arg0)
playDownSound(class_1144 arg0)
playDownSound(SoundManager soundManager)
playDownSound(SoundHandler arg0)
public int
getWidth()
getWidth()
getWidth()
getWidth()
public void
setWidth(int arg0)
setWidth(int arg0)
setWidth(int arg0)
setWidth(int value)
setWidth(int arg0)
public void
setAlpha(float arg0)
setAlpha(float arg0)
setAlpha(float arg0)
setAlpha(float value)
setAlpha(float arg0)
public void
setMessage(String arg0)
setMessage(String arg0)
setMessage(String arg0)
setMessage(String value)
setMessage(String arg0)
public void
queueNarration(int arg0)
queueNarration(int arg0)
queueNarration(int arg0)
queueNarration(int arg0)
public String
getMessage()
getMessage()
getMessage()
getMessage()
public boolean
isFocused()
isFocused()
isFocused()
isFocused()
protected void
setFocused(boolean arg0)
setFocused(boolean arg0)
setFocused(boolean arg0)
setFocused(boolean focused)
setFocused(boolean arg0)