@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(int index,
int y,
int x,
int width,
int height,
int mouseX,
int mouseY,
boolean hovering,
float delta) |
private void |
start() |
changeFocus
isMouseOver
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
private 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(int index, int y, int x, int width, int height, int mouseX, int mouseY, boolean hovering, float delta)
render
in class EntryListWidget.Entry<WorldListWidget.Entry>
public boolean mouseClicked(double mouseX, double mouseY, int button)
mouseClicked
in interface Element
public 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