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 |
Constructor and Description |
---|
TabCompleter(GuiTextField textFieldIn,
boolean hasTargetBlockIn) |
Modifier and Type | Method and Description |
---|---|
void |
complete() |
abstract BlockPos |
getTargetBlockPos() |
private void |
requestCompletions(java.lang.String prefix) |
void |
resetDidComplete() |
void |
resetRequested() |
void |
setCompletions(java.lang.String... newCompl) |
protected final GuiTextField textField
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()
private void requestCompletions(java.lang.String prefix)
@Nullable public abstract BlockPos getTargetBlockPos()
public void setCompletions(java.lang.String... newCompl)
public void resetDidComplete()
public void resetRequested()