@Environment(value=CLIENT) public class PackListWidget extends AlwaysSelectedEntryListWidget<PackListWidget.ResourcePackEntry>
Modifier and Type | Class and Description |
---|---|
static class |
PackListWidget.ResourcePackEntry |
AlwaysSelectedEntryListWidget.Entry<E extends AlwaysSelectedEntryListWidget.Entry<E>>
EntryListWidget.MoveDirection
Modifier and Type | Field and Description |
---|---|
private static Text |
INCOMPATIBLE |
private static Text |
INCOMPATIBLE_CONFIRM |
private static Identifier |
RESOURCE_PACKS_TEXTURE |
private Text |
title |
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
PackListWidget(MinecraftClient client,
int width,
int height,
Text title) |
Modifier and Type | Method and Description |
---|---|
int |
getRowWidth() |
protected int |
getScrollbarPositionX() |
protected void |
renderHeader(MatrixStack matrices,
int x,
int y,
Tessellator tessellator) |
changeFocus
addEntry, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getEntry, getEntryAtPosition, getFocused, getItemCount, getMaxPosition, getMaxScroll, getRowLeft, getRowTop, getScrollAmount, getSelected, isFocused, isMouseOver, isSelectedItem, keyPressed, method_30015, method_31322, method_31323, method_31383, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelectionIf, remove, removeEntry, render, renderBackground, renderDecorations, renderList, replaceEntries, setLeftPos, setRenderHeader, setRenderSelection, setScrollAmount, setSelected, updateScrollingState, updateSize
isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, focusOn, hoveredElement, keyReleased, setInitialFocus
mouseMoved
private static final Identifier RESOURCE_PACKS_TEXTURE
private static final Text INCOMPATIBLE
private static final Text INCOMPATIBLE_CONFIRM
private final Text title
public PackListWidget(MinecraftClient client, int width, int height, Text title)
protected void renderHeader(MatrixStack matrices, int x, int y, Tessellator tessellator)
renderHeader
in class EntryListWidget<PackListWidget.ResourcePackEntry>
public int getRowWidth()
getRowWidth
in class EntryListWidget<PackListWidget.ResourcePackEntry>
protected int getScrollbarPositionX()
getScrollbarPositionX
in class EntryListWidget<PackListWidget.ResourcePackEntry>