public class TabCompleteTranslateableTextField<T extends ITranslatable>
extends net.minecraft.client.gui.widget.TextFieldWidget
bordered, canLoseFocus, cursorPos, displayPos, filter, font, formatter, frame, highlightPos, isEditable, maxLength, responder, shiftPressed, suggestion, textColor, textColorUneditable
Constructor and Description |
---|
TabCompleteTranslateableTextField(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) |
T |
getTranslatableValue() |
java.lang.String |
getValue() |
boolean |
keyPressed(int key,
int scanCode,
int modifiers) |
TabCompleteTranslateableTextField<T> |
setCompletions(java.util.Collection<T> completions) |
void |
setValue(T value) |
canConsumeInput, changeFocus, createNarrationMessage, deleteChars, deleteWords, getCursorPosition, getHighlighted, getInnerWidth, getMaxLength, getScreenX, 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, tick
clearFGColor, 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, setWidth
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
public TabCompleteTranslateableTextField(int componentId, net.minecraft.client.gui.FontRenderer fontrendererObj, int x, int y, int par5Width, int par6Height)
public TabCompleteTranslateableTextField<T> setCompletions(java.util.Collection<T> completions)
public boolean keyPressed(int key, int scanCode, int modifiers)
keyPressed
in interface net.minecraft.client.gui.IGuiEventListener
keyPressed
in class net.minecraft.client.gui.widget.TextFieldWidget
public java.lang.String getValue()
getValue
in class net.minecraft.client.gui.widget.TextFieldWidget
public T getTranslatableValue()
public void setValue(T value)
public boolean charTyped(char typedChar, int keyCode)
charTyped
in interface net.minecraft.client.gui.IGuiEventListener
charTyped
in class net.minecraft.client.gui.widget.TextFieldWidget
typedChar
- keyCode
- protected void createCompletionsFor(java.lang.String leftOfCursor)