@Environment(value=CLIENT) public class LanguageOptionsScreen.LanguageSelectionListWidget.LanguageEntry extends AlwaysSelectedEntryListWidget.Entry<LanguageOptionsScreen.LanguageSelectionListWidget.LanguageEntry>
| Modifier and Type | Field and Description |
|---|---|
private LanguageDefinition |
languageDefinition |
| Constructor and Description |
|---|
LanguageEntry(LanguageDefinition languageDefinition) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
mouseClicked(double mouseX,
double mouseY,
int button)
Callback for when a mouse button down event
has been captured.
|
private void |
onPressed() |
void |
render(MatrixStack matrices,
int index,
int y,
int x,
int entryWidth,
int entryHeight,
int mouseX,
int mouseY,
boolean hovered,
float tickDelta)
Renders an entry in a list.
|
changeFocusisMouseOverclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledprivate final LanguageDefinition languageDefinition
public LanguageEntry(LanguageDefinition languageDefinition)
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<LanguageOptionsScreen.LanguageSelectionListWidget.LanguageEntry>matrices - the matrix stack used for renderingindex - the index of the entryy - the Y coordinate of the entryx - the X coordinate of the entryentryWidth - the width of the entryentryHeight - the height of the entrymouseX - the X coordinate of the mousemouseY - the Y coordinate of the mousehovered - whether the mouse is hovering over the entrypublic 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_1private void onPressed()