YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.client.gui.GuiButton Class Reference
Inheritance diagram for net.minecraft.client.gui.GuiButton:
net.minecraft.client.gui.Gui net.minecraft.client.gui.GuiButtonLanguage net.minecraft.client.gui.GuiButtonLink net.minecraft.client.gui.GuiButtonMerchant net.minecraft.client.gui.GuiSlider net.minecraft.client.gui.GuiSmallButton

Public Member Functions

 GuiButton (int par1, int par2, int par3, String par4Str)
 
 GuiButton (int par1, int par2, int par3, int par4, int par5, String par6Str)
 
void drawButton (Minecraft par1Minecraft, int par2, int par3)
 
void mouseReleased (int par1, int par2)
 
boolean mousePressed (Minecraft par1Minecraft, int par2, int par3)
 
boolean func_82252_a ()
 
void func_82251_b (int par1, int par2)
 
- Public Member Functions inherited from net.minecraft.client.gui.Gui
void drawCenteredString (FontRenderer par1FontRenderer, String par2Str, int par3, int par4, int par5)
 
void drawString (FontRenderer par1FontRenderer, String par2Str, int par3, int par4, int par5)
 
void drawTexturedModalRect (int par1, int par2, int par3, int par4, int par5, int par6)
 
void drawTexturedModelRectFromIcon (int par1, int par2, Icon par3Icon, int par4, int par5)
 

Public Attributes

int xPosition
 
int yPosition
 
String displayString
 
int id
 
boolean enabled
 
boolean drawButton
 

Protected Member Functions

int getHoverState (boolean par1)
 
void mouseDragged (Minecraft par1Minecraft, int par2, int par3)
 
- Protected Member Functions inherited from net.minecraft.client.gui.Gui
void drawHorizontalLine (int par1, int par2, int par3, int par4)
 
void drawVerticalLine (int par1, int par2, int par3, int par4)
 
void drawGradientRect (int par1, int par2, int par3, int par4, int par5, int par6)
 

Protected Attributes

int width
 
int height
 
boolean field_82253_i
 
- Protected Attributes inherited from net.minecraft.client.gui.Gui
float zLevel = 0.0F
 

Additional Inherited Members

- Static Public Member Functions inherited from net.minecraft.client.gui.Gui
static void drawRect (int par0, int par1, int par2, int par3, int par4)
 

Constructor & Destructor Documentation

net.minecraft.client.gui.GuiButton.GuiButton ( int  par1,
int  par2,
int  par3,
String  par4Str 
)
net.minecraft.client.gui.GuiButton.GuiButton ( int  par1,
int  par2,
int  par3,
int  par4,
int  par5,
String  par6Str 
)

Member Function Documentation

void net.minecraft.client.gui.GuiButton.drawButton ( Minecraft  par1Minecraft,
int  par2,
int  par3 
)

Draws this button to the screen.

void net.minecraft.client.gui.GuiButton.func_82251_b ( int  par1,
int  par2 
)
boolean net.minecraft.client.gui.GuiButton.func_82252_a ( )
int net.minecraft.client.gui.GuiButton.getHoverState ( boolean  par1)
protected

Returns 0 if the button is disabled, 1 if the mouse is NOT hovering over this button and 2 if it IS hovering over this button.

void net.minecraft.client.gui.GuiButton.mouseDragged ( Minecraft  par1Minecraft,
int  par2,
int  par3 
)
protected

Fired when the mouse button is dragged. Equivalent of MouseListener.mouseDragged(MouseEvent e).

boolean net.minecraft.client.gui.GuiButton.mousePressed ( Minecraft  par1Minecraft,
int  par2,
int  par3 
)

Returns true if the mouse has been pressed on this control. Equivalent of MouseListener.mousePressed(MouseEvent e).

void net.minecraft.client.gui.GuiButton.mouseReleased ( int  par1,
int  par2 
)

Fired when the mouse button is released. Equivalent of MouseListener.mouseReleased(MouseEvent e).

Member Data Documentation

String net.minecraft.client.gui.GuiButton.displayString

The string displayed on this control.

boolean net.minecraft.client.gui.GuiButton.drawButton

Hides the button completely if false.

boolean net.minecraft.client.gui.GuiButton.enabled

True if this control is enabled, false to disable.

boolean net.minecraft.client.gui.GuiButton.field_82253_i
protected
int net.minecraft.client.gui.GuiButton.height
protected

Button height in pixels

int net.minecraft.client.gui.GuiButton.id

ID for this control.

int net.minecraft.client.gui.GuiButton.width
protected

Button width in pixels

int net.minecraft.client.gui.GuiButton.xPosition

The x position of this control.

int net.minecraft.client.gui.GuiButton.yPosition

The y position of this control.


The documentation for this class was generated from the following file: