Package net.minecraft.client.gui.screen
Class WorldSelectionList.Entry
- java.lang.Object
-
- net.minecraft.client.gui.widget.list.AbstractList.AbstractListEntry<E>
-
- net.minecraft.client.gui.widget.list.ExtendedList.AbstractListEntry<WorldSelectionList.Entry>
-
- net.minecraft.client.gui.screen.WorldSelectionList.Entry
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IGuiEventListener
- Enclosing class:
- WorldSelectionList
public final class WorldSelectionList.Entry extends ExtendedList.AbstractListEntry<WorldSelectionList.Entry> implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description private DynamicTexture
icon
private java.io.File
iconFile
private ResourceLocation
iconLocation
private long
lastClickTime
private Minecraft
minecraft
private WorldSelectionScreen
screen
private WorldSummary
summary
-
Fields inherited from class net.minecraft.client.gui.widget.list.AbstractList.AbstractListEntry
list
-
-
Constructor Summary
Constructors Constructor Description Entry(WorldSelectionList p_i242066_2_, WorldSummary p_i242066_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
deleteWorld()
void
editWorld()
void
joinWorld()
private DynamicTexture
loadServerIcon()
private void
loadWorld()
boolean
mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
private void
queueLoadScreen()
void
recreateWorld()
void
render(MatrixStack p_230432_1_, int p_230432_2_, int p_230432_3_, int p_230432_4_, int p_230432_5_, int p_230432_6_, int p_230432_7_, int p_230432_8_, boolean p_230432_9_, float p_230432_10_)
-
Methods inherited from class net.minecraft.client.gui.widget.list.ExtendedList.AbstractListEntry
changeFocus
-
Methods inherited from class net.minecraft.client.gui.widget.list.AbstractList.AbstractListEntry
isMouseOver
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.client.gui.IGuiEventListener
charTyped, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
-
-
-
Field Detail
-
minecraft
private final Minecraft minecraft
-
screen
private final WorldSelectionScreen screen
-
summary
private final WorldSummary summary
-
iconLocation
private final ResourceLocation iconLocation
-
iconFile
private java.io.File iconFile
-
icon
@Nullable private final DynamicTexture icon
-
lastClickTime
private long lastClickTime
-
-
Constructor Detail
-
Entry
public Entry(WorldSelectionList p_i242066_2_, WorldSummary p_i242066_3_)
-
-
Method Detail
-
render
public void render(MatrixStack p_230432_1_, int p_230432_2_, int p_230432_3_, int p_230432_4_, int p_230432_5_, int p_230432_6_, int p_230432_7_, int p_230432_8_, boolean p_230432_9_, float p_230432_10_)
- Specified by:
render
in classAbstractList.AbstractListEntry<WorldSelectionList.Entry>
-
mouseClicked
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
- Specified by:
mouseClicked
in interfaceIGuiEventListener
-
joinWorld
public void joinWorld()
-
deleteWorld
public void deleteWorld()
-
editWorld
public void editWorld()
-
recreateWorld
public void recreateWorld()
-
loadWorld
private void loadWorld()
-
queueLoadScreen
private void queueLoadScreen()
-
loadServerIcon
@Nullable private DynamicTexture loadServerIcon()
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-