@Environment(value=CLIENT) public static class ResourcePackListWidget.ResourcePackEntry extends AlwaysSelectedEntryListWidget.Entry<ResourcePackListWidget.ResourcePackEntry>
| Modifier and Type | Field and Description |
|---|---|
protected MinecraftClient |
client |
private ClientResourcePackProfile |
pack |
private ResourcePackListWidget |
resourcePackList |
protected ResourcePackOptionsScreen |
screen |
| Constructor and Description |
|---|
ResourcePackEntry(ResourcePackListWidget listWidget,
ResourcePackOptionsScreen screen,
ClientResourcePackProfile pack) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canMoveDown() |
protected boolean |
canMoveUp() |
protected void |
drawIcon() |
void |
enable(SelectedResourcePackListWidget list) |
protected ResourcePackCompatibility |
getCompatibility() |
ClientResourcePackProfile |
getPack() |
ResourcePackOptionsScreen |
getScreen() |
protected boolean |
isMoveable() |
protected boolean |
isRemovable() |
protected boolean |
isSelectable() |
void |
method_24232(SelectedResourcePackListWidget selectedResourcePackListWidget) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
void |
render(MatrixStack matrixStack,
int y,
int x,
int width,
int height,
int mouseX,
int mouseY,
int int2,
boolean bool,
float float2) |
changeFocusisMouseOverclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledprivate ResourcePackListWidget resourcePackList
protected final MinecraftClient client
protected final ResourcePackOptionsScreen screen
private final ClientResourcePackProfile pack
public ResourcePackEntry(ResourcePackListWidget listWidget, ResourcePackOptionsScreen screen, ClientResourcePackProfile pack)
public void enable(SelectedResourcePackListWidget list)
public void method_24232(SelectedResourcePackListWidget selectedResourcePackListWidget)
protected void drawIcon()
protected ResourcePackCompatibility getCompatibility()
public ClientResourcePackProfile getPack()
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<ResourcePackListWidget.ResourcePackEntry>protected boolean isMoveable()
protected boolean isSelectable()
protected boolean isRemovable()
protected boolean canMoveUp()
protected boolean canMoveDown()
public boolean mouseClicked(double mouseX,
double mouseY,
int button)
public ResourcePackOptionsScreen getScreen()