moapi.gui
Class TextField
java.lang.Object
net.minecraft.src.Gui
net.minecraft.src.GuiButton
moapi.gui.TextInputField
moapi.gui.TextField
public class TextField
- 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 |
Constructor Summary |
TextField(int id,
net.minecraft.src.GuiScreen guiscreen,
net.minecraft.src.FontRenderer fontrenderer,
int i,
int j,
ModTextOption op,
GuiController gui,
boolean global)
|
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 |
java.lang.String |
getText()
Return getText() value for this field |
protected void |
setText(java.lang.String s)
Sets the getText() for this option and button |
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 |
TextField
public TextField(int id,
net.minecraft.src.GuiScreen guiscreen,
net.minecraft.src.FontRenderer fontrenderer,
int i,
int j,
ModTextOption op,
GuiController gui,
boolean global)
setText
protected void setText(java.lang.String s)
- Sets the getText() for this option and button
- Parameters:
s
- New string to display and use for option value
getText
public java.lang.String getText()
- Return getText() value for this field
- Returns:
- Current getText() value
textboxKeyTyped
public void textboxKeyTyped(char c,
int i)
- Description copied from class:
TextInputField
- 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