@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(int x,
int y,
Identifier textureId) |
ServerInfo |
getServer() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
private boolean |
method_20136() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
void |
render(int index,
int y,
int x,
int width,
int height,
int mouseX,
int mouseY,
boolean hovering,
float delta) |
private void |
swapEntries(int i,
int j) |
private void |
updateIcon() |
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(int index, int y, int x, int width, int height, int mouseX, int mouseY, boolean hovering, float delta)
render
in class EntryListWidget.Entry<MultiplayerServerListWidget.Entry>
protected void draw(int x, int y, Identifier textureId)
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()