@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()
Gets a list of all child GUI elements.
|
boolean |
mouseClicked(double mouseX,
double mouseY,
int button)
Callback for when a mouse button down event
has been captured.
|
boolean |
mouseReleased(double mouseX,
double mouseY,
int button)
Callback for when a mouse button release event
has been captured.
|
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)
GLFW class.mouseX - the X coordinate of the mousemouseY - the Y coordinate of the mousebutton - the mouse button numbertrue to indicate that the event handling is successful/validMouse.onMouseButton(long, int, int, int),
GLFW.GLFW_MOUSE_BUTTON_1public boolean mouseReleased(double mouseX,
double mouseY,
int button)
GLFW class.mouseX - the X coordinate of the mousemouseY - the Y coordinate of the mousebutton - the mouse button numbertrue to indicate that the event handling is successful/validMouse.onMouseButton(long, int, int, int),
GLFW.GLFW_MOUSE_BUTTON_1