@Environment(value=CLIENT) public static class MultiplayerServerListWidget.LanServerEntry extends MultiplayerServerListWidget.Entry
Modifier and Type | Field and Description |
---|---|
protected MinecraftClient |
client |
private static Text |
field_26588 |
private static Text |
field_26589 |
private MultiplayerScreen |
screen |
protected LanServerInfo |
server |
private long |
time |
Modifier | Constructor and Description |
---|---|
protected |
LanServerEntry(MultiplayerScreen screen,
LanServerInfo server) |
Modifier and Type | Method and Description |
---|---|
LanServerInfo |
getLanServerEntry() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button)
Callback for when a mouse button down 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) |
changeFocus
isMouseOver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
private static final Text field_26588
private static final Text field_26589
private final MultiplayerScreen screen
protected final MinecraftClient client
protected final LanServerInfo server
private long time
protected LanServerEntry(MultiplayerScreen screen, LanServerInfo server)
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<MultiplayerServerListWidget.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_1
public LanServerInfo getLanServerEntry()