public class GuiButtonClickImage extends GuiButtonClick
Modifier and Type | Field and Description |
---|---|
protected int |
color |
protected int |
hovercolor |
protected net.minecraft.util.ResourceLocation |
resource |
Constructor and Description |
---|
GuiButtonClickImage(int x,
int y,
int width,
int height,
net.minecraft.util.ResourceLocation resource) |
GuiButtonClickImage(int x,
int y,
int width,
int height,
net.minecraft.util.ResourceLocation resource,
int color,
int hovercolor) |
Modifier and Type | Method and Description |
---|---|
protected void |
color(int color) |
void |
drawButton(net.minecraft.client.Minecraft mc,
int mouseX,
int mouseY) |
void |
setColor(int color) |
void |
setHoverColor(int hovercolor) |
void |
setResource(net.minecraft.util.ResourceLocation resource) |
onClick, setClickAction
mouseClicked, mouseDragged, mouseReleased
drawButtonForegroundLayer, getButtonWidth, getHoverState, isMouseOver, mouseDragged, mousePressed, mouseReleased, playPressSound, setWidth
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canFocus, charTyped, focusChanged, keyPressed, keyReleased, mouseScrolled
protected net.minecraft.util.ResourceLocation resource
protected int color
protected int hovercolor
public GuiButtonClickImage(int x, int y, int width, int height, net.minecraft.util.ResourceLocation resource)
public GuiButtonClickImage(int x, int y, int width, int height, net.minecraft.util.ResourceLocation resource, int color, int hovercolor)
public void setResource(net.minecraft.util.ResourceLocation resource)
public void setColor(int color)
public void setHoverColor(int hovercolor)
public void drawButton(net.minecraft.client.Minecraft mc, int mouseX, int mouseY)
drawButton
in class GuiButtonExtNew
protected void color(int color)