Class WorldSelectionList.WorldListEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<E>
net.minecraft.client.gui.components.ObjectSelectionList.Entry<WorldSelectionList.Entry>
net.minecraft.client.gui.screens.worldselection.WorldSelectionList.Entry
net.minecraft.client.gui.screens.worldselection.WorldSelectionList.WorldListEntry
- All Implemented Interfaces:
AutoCloseable
,GuiEventListener
,TabOrderedElement
,NarrationSupplier
- Enclosing class:
- WorldSelectionList
public final class WorldSelectionList.WorldListEntry
extends WorldSelectionList.Entry
implements AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FaviconTexture
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private Path
private long
private final Minecraft
private final SelectWorldScreen
private final LevelSummary
Fields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
list
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
void
void
boolean
void
private void
loadIcon()
private void
boolean
mouseClicked
(double p_101706_, double p_101707_, int p_101708_) private void
void
void
render
(GuiGraphics p_281612_, int p_281353_, int p_283181_, int p_282820_, int p_282420_, int p_281855_, int p_283204_, int p_283025_, boolean p_283396_, float p_282938_) private void
renderExperimentalWarning
(GuiGraphics guiGraphics, int mouseX, int mouseY, int top, int left) private void
Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
updateNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
isFocused, isMouseOver, renderBack, setFocused
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.components.events.GuiEventListener
charTyped, getCurrentFocusPath, getRectangle, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
ICON_WIDTH
private static final int ICON_WIDTH- See Also:
-
ICON_HEIGHT
private static final int ICON_HEIGHT- See Also:
-
ICON_OVERLAY_X_JOIN
private static final int ICON_OVERLAY_X_JOIN- See Also:
-
ICON_OVERLAY_X_JOIN_WITH_NOTIFY
private static final int ICON_OVERLAY_X_JOIN_WITH_NOTIFY- See Also:
-
ICON_OVERLAY_X_WARNING
private static final int ICON_OVERLAY_X_WARNING- See Also:
-
ICON_OVERLAY_X_ERROR
private static final int ICON_OVERLAY_X_ERROR- See Also:
-
ICON_OVERLAY_Y_UNSELECTED
private static final int ICON_OVERLAY_Y_UNSELECTED- See Also:
-
ICON_OVERLAY_Y_SELECTED
private static final int ICON_OVERLAY_Y_SELECTED- See Also:
-
minecraft
-
screen
-
summary
-
icon
-
iconFile
-
lastClickTime
private long lastClickTime
-
-
Constructor Details
-
WorldListEntry
-
-
Method Details
-
validateIconFile
private void validateIconFile() -
getNarration
- Specified by:
getNarration
in classObjectSelectionList.Entry<WorldSelectionList.Entry>
-
render
public void render(GuiGraphics p_281612_, int p_281353_, int p_283181_, int p_282820_, int p_282420_, int p_281855_, int p_283204_, int p_283025_, boolean p_283396_, float p_282938_) - Specified by:
render
in classAbstractSelectionList.Entry<WorldSelectionList.Entry>
-
mouseClicked
public boolean mouseClicked(double p_101706_, double p_101707_, int p_101708_) - Specified by:
mouseClicked
in interfaceGuiEventListener
-
joinWorld
public void joinWorld() -
deleteWorld
public void deleteWorld() -
doDeleteWorld
public void doDeleteWorld() -
editWorld
public void editWorld() -
recreateWorld
public void recreateWorld() -
loadWorld
private void loadWorld() -
queueLoadScreen
private void queueLoadScreen() -
loadIcon
private void loadIcon() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classWorldSelectionList.Entry
-
getLevelName
-
isSelectable
public boolean isSelectable()- Specified by:
isSelectable
in classWorldSelectionList.Entry
-
renderExperimentalWarning
private void renderExperimentalWarning(GuiGraphics guiGraphics, int mouseX, int mouseY, int top, int left)
-