public abstract class TabCompleter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
completionIdx |
protected java.util.List<java.lang.String> |
completions |
protected boolean |
didComplete |
protected boolean |
hasTargetBlock |
protected boolean |
requestedCompletions |
protected GuiTextField |
textField
The
GuiTextField that is backing this TabCompleter |
Constructor and Description |
---|
TabCompleter(GuiTextField textFieldIn,
boolean hasTargetBlockIn) |
Modifier and Type | Method and Description |
---|---|
void |
complete()
Called when tab key pressed.
|
abstract BlockPos |
getTargetBlockPos() |
void |
resetDidComplete()
Called when new text is entered, or backspace pressed
|
void |
resetRequested() |
void |
setCompletions(java.lang.String... newCompl)
Only actually sets completions if they were requested (via requestCompletions)
|
protected final GuiTextField textField
GuiTextField
that is backing this TabCompleter
protected final boolean hasTargetBlock
protected boolean didComplete
protected boolean requestedCompletions
protected int completionIdx
protected java.util.List<java.lang.String> completions
public TabCompleter(GuiTextField textFieldIn, boolean hasTargetBlockIn)
public void complete()
public abstract BlockPos getTargetBlockPos()
public void setCompletions(java.lang.String... newCompl)
public void resetDidComplete()
public void resetRequested()