public class StarterButton extends IndexedButton
id
NO_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, setMessage
keyPressed, onClick
changeFocus, 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, setWidth
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
public 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.Button
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
mouseClicked
in interface net.minecraft.client.gui.IGuiEventListener
mouseClicked
in class net.minecraft.client.gui.widget.Widget