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, updateItemPos
bindAmountScrolled, 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, setSlotXBoundsFromLeft
focusNext, focusOn, getFocused, setDragging, setFocused
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
keyReleased
canFocus, focusChanged
public 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()
GuiSlotNew
getListWidth
in class GuiSlotNew
protected int getScrollBarX()
getScrollBarX
in class GuiSlotNew
protected boolean isSelected(int index)
GuiListExtendedNew
isSelected
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)