@Environment(value=CLIENT) public final class WorldListWidget.Entry extends AlwaysSelectedEntryListWidget.Entry<WorldListWidget.Entry> implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
private MinecraftClient |
client |
private NativeImageBackedTexture |
icon |
private File |
iconFile |
private Identifier |
iconLocation |
private LevelSummary |
level |
private SelectWorldScreen |
screen |
private long |
time |
| Constructor and Description |
|---|
Entry(WorldListWidget levelList,
LevelSummary level,
LevelStorage levelStorage) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
delete() |
void |
edit() |
private NativeImageBackedTexture |
getIconTexture() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
void |
play() |
void |
recreate() |
void |
render(MatrixStack matrixStack,
int y,
int x,
int width,
int height,
int mouseX,
int mouseY,
int int2,
boolean bool,
float float2) |
private void |
start() |
changeFocusisMouseOverclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledprivate final MinecraftClient client
private final SelectWorldScreen screen
private final LevelSummary level
private final Identifier iconLocation
private File iconFile
@Nullable private final NativeImageBackedTexture icon
private long time
public Entry(WorldListWidget levelList, LevelSummary level, LevelStorage levelStorage)
public void render(MatrixStack matrixStack, int y, int x, int width, int height, int mouseX, int mouseY, int int2, boolean bool, float float2)
render in class EntryListWidget.Entry<WorldListWidget.Entry>public boolean mouseClicked(double mouseX,
double mouseY,
int button)
mouseClicked in interface Elementpublic void play()
public void delete()
public void edit()
public void recreate()
private void start()
@Nullable private NativeImageBackedTexture getIconTexture()
public void close()
close in interface AutoCloseable