public class TabCompleteTextField
extends net.minecraft.client.gui.widget.TextFieldWidget
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.String> |
cache |
int |
id |
protected int |
index |
protected boolean |
isCompleting |
bordered, canLoseFocus, cursorPos, displayPos, filter, font, formatter, frame, highlightPos, isEditable, maxLength, responder, shiftPressed, suggestion, textColor, textColorUneditable, value| Constructor and Description |
|---|
TabCompleteTextField(int componentId,
net.minecraft.client.gui.FontRenderer fontrendererObj,
int x,
int y,
int par5Width,
int par6Height) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
charTyped(char typedChar,
int keyCode)
Call this method from your GuiScreen to process the keys into the textbox
|
protected void |
createCompletionsFor(java.lang.String leftOfCursor) |
boolean |
keyPressed(int key,
int scanCode,
int modifiers) |
TabCompleteTextField |
setCompletions(java.util.Collection<java.lang.String> completions) |
canConsumeInput, changeFocus, createNarrationMessage, deleteChars, deleteWords, getCursorPosition, getHighlighted, getInnerWidth, getMaxLength, getScreenX, getValue, getWordPosition, insertText, isBordered, isMouseOver, isVisible, mouseClicked, moveCursor, moveCursorTo, moveCursorToEnd, moveCursorToStart, onFocusedChanged, renderButton, renderHighlight, setBordered, setCanLoseFocus, setCursorPosition, setEditable, setFilter, setFocus, setFormatter, setHighlightPos, setMaxLength, setResponder, setSuggestion, setTextColor, setTextColorUneditable, setValue, setVisible, setX, tickclearFGColor, clicked, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isValidClickButton, mouseDragged, mouseReleased, narrate, onClick, onDrag, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineprotected java.util.List<java.lang.String> cache
protected boolean isCompleting
protected int index
public int id
public TabCompleteTextField(int componentId,
net.minecraft.client.gui.FontRenderer fontrendererObj,
int x,
int y,
int par5Width,
int par6Height)
public TabCompleteTextField setCompletions(java.util.Collection<java.lang.String> completions)
public boolean keyPressed(int key,
int scanCode,
int modifiers)
keyPressed in interface net.minecraft.client.gui.IGuiEventListenerkeyPressed in class net.minecraft.client.gui.widget.TextFieldWidgetpublic boolean charTyped(char typedChar,
int keyCode)
charTyped in interface net.minecraft.client.gui.IGuiEventListenercharTyped in class net.minecraft.client.gui.widget.TextFieldWidgettypedChar - keyCode - protected void createCompletionsFor(java.lang.String leftOfCursor)