@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) |
private boolean |
method_20136() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
void |
render(MatrixStack matrices,
int x,
int y,
int width,
int height,
int mouseX,
int mouseY,
int int2,
boolean bool,
float tickDelta) |
private void |
swapEntries(int i,
int j) |
private void |
updateIcon() |
changeFocusisMouseOverclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledprivate 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 x, int y, int width, int height, int mouseX, int mouseY, int int2, boolean bool, float tickDelta)
render in class EntryListWidget.Entry<MultiplayerServerListWidget.Entry>protected void draw(MatrixStack matrixStack, int int2, int int3, Identifier identifier)
private boolean method_20136()
private void updateIcon()
public boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
private void swapEntries(int i,
int j)
public boolean mouseClicked(double mouseX,
double mouseY,
int button)
public ServerInfo getServer()