@Environment(value=CLIENT) public abstract class ResourcePackListWidget extends AlwaysSelectedEntryListWidget<ResourcePackListWidget.ResourcePackEntry>
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourcePackListWidget.ResourcePackEntry |
AlwaysSelectedEntryListWidget.Entry<E extends AlwaysSelectedEntryListWidget.Entry<E>>| Modifier and Type | Field and Description |
|---|---|
protected MinecraftClient |
client |
private static Text |
INCOMPATIBLE |
private static Text |
INCOMPATIBLE_CONFIRM |
private static Identifier |
RESOURCE_PACKS_LOCATION |
private Text |
title |
bottom, centerListVertically, headerHeight, height, itemHeight, left, renderHeader, renderSelection, right, top, width, yDragBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
ResourcePackListWidget(MinecraftClient client,
int width,
int height,
Text title) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ResourcePackListWidget.ResourcePackEntry entry) |
int |
getRowWidth() |
protected int |
getScrollbarPositionX() |
protected void |
renderHeader(int x,
int y,
Tessellator tessellator) |
changeFocusaddEntry, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getEntry, getEntryAtPosition, getFocused, getItemCount, getMaxPosition, getRowLeft, getRowTop, getScrollAmount, getSelected, isFocused, isMouseOver, isSelectedItem, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, remove, removeEntry, render, renderBackground, renderDecorations, renderHoleBackground, renderList, replaceEntries, setLeftPos, setRenderHeader, setScrollAmount, setSelected, updateScrollingState, updateSizeisDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, focusOn, hoveredElement, keyReleased, setInitialFocusmouseMovedprivate static final Identifier RESOURCE_PACKS_LOCATION
private static final Text INCOMPATIBLE
private static final Text INCOMPATIBLE_CONFIRM
protected final MinecraftClient client
private final Text title
public ResourcePackListWidget(MinecraftClient client, int width, int height, Text title)
protected void renderHeader(int x,
int y,
Tessellator tessellator)
renderHeader in class EntryListWidget<ResourcePackListWidget.ResourcePackEntry>public int getRowWidth()
getRowWidth in class EntryListWidget<ResourcePackListWidget.ResourcePackEntry>protected int getScrollbarPositionX()
getScrollbarPositionX in class EntryListWidget<ResourcePackListWidget.ResourcePackEntry>public void add(ResourcePackListWidget.ResourcePackEntry entry)