public class StarterButton extends IndexedButton
idNO_TOOLTIP, onPress, onTooltip| Constructor and Description |
|---|
StarterButton(int buttonID,
int x,
int y,
int scale,
ChooseStarterScreen parent,
net.minecraft.client.gui.widget.button.Button.IPressable action)
Initializes a starter Pokémon button.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
mouseClicked(double p_231044_1_,
double p_231044_3_,
int p_231044_5_) |
void |
renderButton(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float random)
Draws this button to the screen.
|
getID, setMessagekeyPressed, onClickchangeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLinepublic StarterButton(int buttonID,
int x,
int y,
int scale,
ChooseStarterScreen parent,
net.minecraft.client.gui.widget.button.Button.IPressable action)
buttonID - The ID of the button.x - The x coordinate of the button.y - The y coordinate of the button.public void renderButton(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float random)
renderButton in class net.minecraft.client.gui.widget.button.Buttonpublic boolean mouseClicked(double p_231044_1_,
double p_231044_3_,
int p_231044_5_)
mouseClicked in interface net.minecraft.client.gui.IGuiEventListenermouseClicked in class net.minecraft.client.gui.widget.Widget