@Environment(value=CLIENT) public class MultiplayerServerListWidget.ServerEntry extends MultiplayerServerListWidget.Entry
Modifier and Type | Field and Description |
---|---|
private MinecraftClient |
client |
private NativeImageBackedTexture |
icon |
private Identifier |
iconTextureId |
private String |
iconUri |
private MultiplayerScreen |
screen |
private ServerInfo |
server |
private long |
time |
Modifier | Constructor and Description |
---|---|
protected |
ServerEntry(MultiplayerScreen screen,
ServerInfo server) |
Modifier and Type | Method and Description |
---|---|
protected void |
draw(MatrixStack matrixStack,
int int2,
int int3,
Identifier identifier) |
ServerInfo |
getServer() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers)
Callback for when a key down event has been captured.
|
private boolean |
method_20136() |
void |
method_29978() |
private boolean |
method_29979(String string) |
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) |
private void |
swapEntries(int i,
int j) |
changeFocus
isMouseOver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
private final MultiplayerScreen screen
private final MinecraftClient client
private final ServerInfo server
private final Identifier iconTextureId
private String iconUri
private NativeImageBackedTexture icon
private long time
protected ServerEntry(MultiplayerScreen screen, ServerInfo 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 void method_29978()
protected void draw(MatrixStack matrixStack, int int2, int int3, Identifier identifier)
private boolean method_20136()
public boolean keyPressed(int keyCode, int scanCode, int modifiers)
GLFW
class.keyCode
- the named key code of the event as described in the GLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)true
to indicate that the event handling is successful/validKeyboard.onKey(long, int, int, int, int)
,
GLFW.GLFW_KEY_Q
,
GLFWKeyCallbackI.invoke(long, int, int, int, int)
private void swapEntries(int i, int j)
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 ServerInfo getServer()