public class DiscordButton extends ButtonWithIcon
NO_TOOLTIP, onPress, onTooltip
Constructor and Description |
---|
DiscordButton(int x,
int y,
int w,
int h,
net.minecraft.util.text.ITextComponent text,
net.minecraft.client.gui.widget.button.Button.IPressable action) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.ResourceLocation |
getIcon() |
void |
onClick(double mx,
double my) |
void |
renderButton(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mx,
int my,
float pt) |
changeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, 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 DiscordButton(int x, int y, int w, int h, net.minecraft.util.text.ITextComponent text, net.minecraft.client.gui.widget.button.Button.IPressable action)
public net.minecraft.util.ResourceLocation getIcon()
getIcon
in class ButtonWithIcon
public void renderButton(com.mojang.blaze3d.matrix.MatrixStack matrix, int mx, int my, float pt)
renderButton
in class ButtonWithIcon
public void onClick(double mx, double my)
onClick
in class net.minecraft.client.gui.widget.button.AbstractButton