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,
float partial) |
void |
setColor(int color) |
void |
setHoverColor(int hovercolor) |
void |
setResource(net.minecraft.util.ResourceLocation resource) |
onClick, setClickActionmouseClicked, mouseDragged, mouseReleaseddrawButtonForegroundLayer, getButtonWidth, getHoverState, isMouseOver, mouseDragged, mousePressed, mouseReleased, playPressSound, setWidthdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanFocus, charTyped, focusChanged, keyPressed, keyReleased, mouseScrolledprotected 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,
float partial)
drawButton in class GuiButtonExtNewprotected void color(int color)