@Environment(value=CLIENT) public class CommandSuggestor.SuggestionWindow extends Object
Modifier and Type | Field and Description |
---|---|
private Rect2i |
area |
private boolean |
completed |
private int |
inWindowIndex |
private int |
lastNarrationIndex |
private Vec2f |
mouse |
private int |
selection |
private com.mojang.brigadier.suggestion.Suggestions |
suggestions |
private String |
typedText |
Modifier | Constructor and Description |
---|---|
private |
SuggestionWindow(int x,
int y,
int width,
com.mojang.brigadier.suggestion.Suggestions suggestions,
boolean narrateFirstSuggestion) |
Modifier and Type | Method and Description |
---|---|
void |
complete() |
void |
discard() |
private String |
getNarration() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(int x,
int y,
int button) |
boolean |
mouseScrolled(double amount) |
void |
render(int mouseX,
int mouseY) |
void |
scroll(int offset) |
void |
select(int index) |
private final Rect2i area
private final com.mojang.brigadier.suggestion.Suggestions suggestions
private final String typedText
private int inWindowIndex
private int selection
private Vec2f mouse
private boolean completed
private int lastNarrationIndex
private SuggestionWindow(int x, int y, int width, com.mojang.brigadier.suggestion.Suggestions suggestions, boolean narrateFirstSuggestion)
public void render(int mouseX, int mouseY)
public boolean mouseClicked(int x, int y, int button)
public boolean mouseScrolled(double amount)
public boolean keyPressed(int keyCode, int scanCode, int modifiers)
public void scroll(int offset)
public void select(int index)
public void complete()
private String getNarration()
public void discard()