moapi.gui
Class Button

java.lang.Object
  extended by net.minecraft.src.Gui
      extended by net.minecraft.src.GuiButton
          extended by moapi.gui.Button

public class Button
extends net.minecraft.src.GuiButton

A MOAPI button representation to allow the storage of the option's ID inside

Since:
0.8

Field Summary
 
Fields inherited from class net.minecraft.src.GuiButton
displayString, drawButton, enabled, height, id, width, xPosition, yPosition
 
Fields inherited from class net.minecraft.src.Gui
zLevel
 
Constructor Summary
Button(int i, int j, int k, int l, int i1, ModOption op, GuiController gui, boolean worldMode)
          Create button with the given option
Button(int i, int j, int k, int l, int i1, ModOptions op)
          Create button with the given options menu
Button(int i, int j, int k, ModOption op, GuiController gui, boolean worldMode)
          Create button with the given option
Button(int i, int j, int k, ModOptions op)
          Create button with the given options menu
 
Method Summary
 java.lang.String getID()
          Get the ID of the option this button represents
 
Methods inherited from class net.minecraft.src.GuiButton
drawButton, getHoverState, mouseDragged, mousePressed, mouseReleased
 
Methods inherited from class net.minecraft.src.Gui
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawVerticalLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Button

public Button(int i,
              int j,
              int k,
              ModOption op,
              GuiController gui,
              boolean worldMode)
Create button with the given option

Parameters:
op - Option
Since:
0.8

Button

public Button(int i,
              int j,
              int k,
              int l,
              int i1,
              ModOption op,
              GuiController gui,
              boolean worldMode)
Create button with the given option

Parameters:
op - Option
Since:
0.8

Button

public Button(int i,
              int j,
              int k,
              ModOptions op)
Create button with the given options menu

Parameters:
op - Options menu
Since:
0.8

Button

public Button(int i,
              int j,
              int k,
              int l,
              int i1,
              ModOptions op)
Create button with the given options menu

Parameters:
op - Options menu
Since:
0.8
Method Detail

getID

public java.lang.String getID()
Get the ID of the option this button represents

Returns:
ID this button represents
Since:
0.8