@Environment(value=CLIENT) public class ControlsListWidget.CategoryEntry extends ControlsListWidget.Entry
| Modifier and Type | Field and Description |
|---|---|
private String |
name |
private int |
nameWidth |
| Constructor and Description |
|---|
CategoryEntry(ControlsListWidget controlsListWidget,
String translationKey) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeFocus(boolean lookForwards) |
List<? extends Element> |
children() |
void |
render(int index,
int y,
int x,
int width,
int height,
int mouseX,
int mouseY,
boolean hovering,
float delta) |
getFocused, isDragging, setDragging, setFocusedisMouseOverclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, focusOn, hoveredElement, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusisMouseOver, mouseMovedprivate final String name
private final int nameWidth
public CategoryEntry(ControlsListWidget controlsListWidget, String translationKey)
public void render(int index,
int y,
int x,
int width,
int height,
int mouseX,
int mouseY,
boolean hovering,
float delta)
render in class EntryListWidget.Entry<ControlsListWidget.Entry>public boolean changeFocus(boolean lookForwards)