public abstract class GuiScrollableList<T extends GuiListExtendedNew.IGuiListEntryNew<T>> extends GuiListExtendedNew<T>
GuiListExtendedNew.IGuiListEntryNew<E extends GuiListExtendedNew.IGuiListEntryNew<E>>| Modifier and Type | Field and Description |
|---|---|
protected int |
listWidth |
protected int |
scrollbarPos |
amountScrolled, bottom, centerListVertically, hasListHeader, headerPadding, height, initialClickY, lastClicked, left, mc, right, selectedElement, showSelectionBox, slotHeight, top, visible, width| Constructor and Description |
|---|
GuiScrollableList(int width,
int height,
int top,
int bottom,
int left,
int right,
int slotHeight,
int listWidth,
int scrollbarPos) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawBackground() |
int |
getListWidth()
Gets the width of the list
|
protected int |
getScrollBarX() |
protected boolean |
isSelected(int index)
Returns true if the element passed in is currently selected
|
protected void |
removeEntry(T entry) |
void |
updateSettings(int width,
int height,
int top,
int bottom,
int left,
int right) |
addEntry, clearEntries, drawSlot, getChildren, getSize, mouseClicked, setSelectedEntry, updateItemPosbindAmountScrolled, charTyped, checkScrollbarClick, clickedHeader, drawContainerBackground, drawListHeader, drawScreen, drawSelectionBox, getAmountScrolled, getContentHeight, getEntryAt, getMaxScroll, getSlotHeight, isMouseInList, isVisible, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, overlayBackground, renderDecorations, scrollBy, setDimensions, setHasListHeader, setShowSelectionBox, setSlotXBoundsFromLeftfocusNext, focusOn, getFocused, setDragging, setFocuseddrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkeyReleasedcanFocus, focusChangedpublic GuiScrollableList(int width,
int height,
int top,
int bottom,
int left,
int right,
int slotHeight,
int listWidth,
int scrollbarPos)
public void updateSettings(int width,
int height,
int top,
int bottom,
int left,
int right)
public int getListWidth()
GuiSlotNewgetListWidth in class GuiSlotNewprotected int getScrollBarX()
getScrollBarX in class GuiSlotNewprotected boolean isSelected(int index)
GuiListExtendedNewisSelected in class GuiListExtendedNew<T extends GuiListExtendedNew.IGuiListEntryNew<T>>protected void drawBackground()
drawBackground in class GuiListExtendedNew<T extends GuiListExtendedNew.IGuiListEntryNew<T>>protected final void removeEntry(T entry)