public class GuiMusicPlaylistList extends GuiScrollableList<GuiMusicPlaylistListEntry>
GuiListExtendedNew.IGuiListEntryNew<E extends GuiListExtendedNew.IGuiListEntryNew<E>>
listWidth, scrollbarPos
amountScrolled, bottom, centerListVertically, hasListHeader, headerPadding, height, initialClickY, lastClicked, left, mc, right, selectedElement, showSelectionBox, slotHeight, top, visible, width
Constructor and Description |
---|
GuiMusicPlaylistList(Playlist playlist) |
Modifier and Type | Method and Description |
---|---|
void |
addAllEntries() |
protected boolean |
isSelected(int index)
Returns true if the element passed in is currently selected
|
void |
removeAllEntries() |
void |
setSelectedEntry(int index)
Called when the given entry is selected; sets
GuiSlotNew.selectedElement to the index and updates GuiSlotNew.lastClicked . |
void |
setSelectedEntryWhenMove(int index) |
void |
tick() |
void |
updateAllEntries() |
drawBackground, getListWidth, getScrollBarX, removeEntry, updateSettings
addEntry, clearEntries, drawSlot, getChildren, getSize, mouseClicked, updateItemPos
bindAmountScrolled, charTyped, checkScrollbarClick, clamp, clamp, clickedHeader, drawContainerBackground, drawListHeader, drawScreen, drawSelectionBox, floor, 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 GuiMusicPlaylistList(Playlist playlist)
public void addAllEntries()
public void removeAllEntries()
public void updateAllEntries()
protected boolean isSelected(int index)
GuiListExtendedNew
isSelected
in class GuiScrollableList<GuiMusicPlaylistListEntry>
public void setSelectedEntryWhenMove(int index)
public void setSelectedEntry(int index)
GuiListExtendedNew
GuiSlotNew.selectedElement
to the index and updates GuiSlotNew.lastClicked
.setSelectedEntry
in class GuiListExtendedNew<GuiMusicPlaylistListEntry>
public void tick()