public class GuiGraphicButton
extends net.minecraft.client.gui.GuiButton
| Constructor and Description |
|---|
GuiGraphicButton(int buttonID,
int xPosition,
int yPosition,
java.lang.String resourcePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawButton(net.minecraft.client.Minecraft mc,
int posX,
int posY) |
void |
drawTextureModalRectSize(int x,
int y,
int textureX,
int textureY,
int width,
int height,
float size) |
void |
drawTextureSquare(int x,
int y,
int imageSize)
A special method for rendering a square image onto the screen.
|
func_146111_b, func_146113_a, func_146115_a, func_154310_c, getButtonWidth, getHoverState, mouseDragged, mousePressed, mouseReleasedpublic GuiGraphicButton(int buttonID,
int xPosition,
int yPosition,
java.lang.String resourcePath)
public void drawButton(net.minecraft.client.Minecraft mc,
int posX,
int posY)
drawButton in class net.minecraft.client.gui.GuiButtonpublic void drawTextureModalRectSize(int x,
int y,
int textureX,
int textureY,
int width,
int height,
float size)
public void drawTextureSquare(int x,
int y,
int imageSize)
x: - The X position to draw the image at.y: - The Y position to draw the image at.imageSize: - The size of the image which is currently being rendered. Since this is
a square, width and height are the save.