moapi.gui
Class KeyBindingField
java.lang.Object
net.minecraft.src.Gui
net.minecraft.src.GuiButton
moapi.gui.TextInputField
moapi.gui.KeyBindingField
public class KeyBindingField
- extends TextInputField
GUI for getText() field within MOAPI
- Since:
- 0.7
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 |
Method Summary |
void |
drawButton(net.minecraft.client.Minecraft minecraft,
int i,
int j)
Draw a textarea with a label inside and an editable text space |
void |
setWide(boolean wide)
Set wide |
void |
textboxKeyTyped(char c,
int i)
Method for handling keyboard input |
Methods inherited from class net.minecraft.src.GuiButton |
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 |
KeyBindingField
public KeyBindingField(int id,
net.minecraft.src.GuiScreen guiscreen,
net.minecraft.src.FontRenderer fontrenderer,
int i,
int j,
ModKeyOption op,
GuiController gui,
boolean global)
setWide
public void setWide(boolean wide)
- Set wide
- Parameters:
wide
- Whether we are to use a wide name area
textboxKeyTyped
public void textboxKeyTyped(char c,
int i)
- Method for handling keyboard input
- Specified by:
textboxKeyTyped
in class TextInputField
- Parameters:
c
- Character typesi
- Integer representation of c
drawButton
public void drawButton(net.minecraft.client.Minecraft minecraft,
int i,
int j)
- Draw a textarea with a label inside and an editable text space
- Overrides:
drawButton
in class TextInputField