@Environment(value=CLIENT) public class ControlsListWidget.KeyBindingEntry extends ControlsListWidget.Entry
| Modifier and Type | Field and Description |
|---|---|
private KeyBinding |
binding |
private Text |
bindingName |
private ButtonWidget |
editButton |
private ButtonWidget |
resetButton |
| Modifier | Constructor and Description |
|---|---|
private |
KeyBindingEntry(KeyBinding binding,
Text text) |
| Modifier and Type | Method and Description |
|---|---|
List<? extends Element> |
children() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
boolean |
mouseReleased(double mouseX,
double mouseY,
int button) |
void |
render(MatrixStack matrices,
int index,
int y,
int x,
int entryWidth,
int entryHeight,
int mouseX,
int mouseY,
boolean hovered,
float tickDelta) |
getFocused, isDragging, setDragging, setFocusedisMouseOverclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyPressed, keyReleased, mouseDragged, mouseScrolled, setInitialFocusisMouseOver, mouseMovedprivate final KeyBinding binding
private final Text bindingName
private final ButtonWidget editButton
private final ButtonWidget resetButton
private KeyBindingEntry(KeyBinding binding, Text text)
public void render(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
render in class EntryListWidget.Entry<ControlsListWidget.Entry>public boolean mouseClicked(double mouseX,
double mouseY,
int button)
public boolean mouseReleased(double mouseX,
double mouseY,
int button)