Class MultiplayerServerListWidget.ServerEntry
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry<MultiplayerServerListWidget.Entry>
net.minecraft.client.gui.screen.multiplayer.MultiplayerServerListWidget.Entry
net.minecraft.client.gui.screen.multiplayer.MultiplayerServerListWidget.ServerEntry
- All Implemented Interfaces:
Element
- Enclosing class:
- MultiplayerServerListWidget
@Environment(CLIENT) public class MultiplayerServerListWidget.ServerEntry extends MultiplayerServerListWidget.Entry
-
Field Summary
Fields Modifier and Type Field Description private MinecraftClientclientprivate NativeImageBackedTextureiconprivate IdentifiericonTextureIdprivate StringiconUriprivate MultiplayerScreenscreenprivate ServerInfoserverprivate longtime -
Constructor Summary
Constructors Modifier Constructor Description protectedServerEntry(MultiplayerScreen screen, ServerInfo server) -
Method Summary
Modifier and Type Method Description protected voiddraw(MatrixStack matrixStack, int int2, int int3, Identifier identifier)ServerInfogetServer()booleankeyPressed(int keyCode, int scanCode, int modifiers)private booleanmethod_20136()voidmethod_29978()private booleanmethod_29979(String string)booleanmouseClicked(double mouseX, double mouseY, int button)voidrender(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)private voidswapEntries(int i, int j)Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
changeFocusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
Constructor Details
-
Method Details
-
render
public void render(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)- Specified by:
renderin classEntryListWidget.Entry<MultiplayerServerListWidget.Entry>
-
method_29978
public void method_29978() -
draw
-
method_20136
private boolean method_20136() -
method_29979
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) -
swapEntries
private void swapEntries(int i, int j) -
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) -
getServer
-