public abstract class GuiListExtendedNew<E extends GuiListExtendedNew.IGuiListEntryNew<E>> extends GuiSlotNew
| Modifier and Type | Class and Description |
|---|---|
static class |
GuiListExtendedNew.IGuiListEntryNew<E extends GuiListExtendedNew.IGuiListEntryNew<E>> |
amountScrolled, bottom, centerListVertically, hasListHeader, headerPadding, height, initialClickY, lastClicked, left, mc, right, selectedElement, showSelectionBox, slotHeight, top, visible, width| Constructor and Description |
|---|
GuiListExtendedNew(net.minecraft.client.Minecraft mcIn,
int widthIn,
int heightIn,
int topIn,
int bottomIn,
int slotHeightIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEntry(E entry)
Adds an entry to this list.
|
protected void |
clearEntries()
Removes all entries from this list.
|
protected void |
drawBackground() |
protected void |
drawSlot(int slotIndex,
int xPos,
int yPos,
int heightIn,
int mouseXIn,
int mouseYIn,
float partialTicks) |
java.util.List<E> |
getChildren()
Gets a mutable list of child listeners.
|
protected int |
getSize() |
protected boolean |
isSelected(int slotIndex)
Returns true if the element passed in is currently selected
|
protected boolean |
mouseClicked(int index,
int button,
double mouseX,
double mouseY)
Called when the mouse is clicked onto an entry.
|
void |
setSelectedEntry(int index)
Called when the given entry is selected; sets
GuiSlotNew.selectedElement to the index and updates GuiSlotNew.lastClicked. |
protected void |
updateItemPos(int entryID,
int insideLeft,
int yPos,
float partialTicks) |
bindAmountScrolled, charTyped, checkScrollbarClick, clickedHeader, drawContainerBackground, drawListHeader, drawScreen, drawSelectionBox, getAmountScrolled, getContentHeight, getEntryAt, getListWidth, getMaxScroll, getScrollBarX, 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 GuiListExtendedNew(net.minecraft.client.Minecraft mcIn,
int widthIn,
int heightIn,
int topIn,
int bottomIn,
int slotHeightIn)
protected boolean mouseClicked(int index,
int button,
double mouseX,
double mouseY)
mouseClicked in class GuiSlotNewprotected boolean isSelected(int slotIndex)
isSelected in class GuiSlotNewprotected void drawBackground()
drawBackground in class GuiSlotNewprotected void drawSlot(int slotIndex,
int xPos,
int yPos,
int heightIn,
int mouseXIn,
int mouseYIn,
float partialTicks)
drawSlot in class GuiSlotNewprotected void updateItemPos(int entryID,
int insideLeft,
int yPos,
float partialTicks)
updateItemPos in class GuiSlotNewpublic final java.util.List<E> getChildren()
GuiListExtendedNew, this is a list of the entries of the list
(in the order they are displayed); for a GuiScreen this is the sub-controls.getChildren in class GuiSlotNewprotected final void clearEntries()
protected final void addEntry(E entry)
public void setSelectedEntry(int index)
GuiSlotNew.selectedElement to the index and updates GuiSlotNew.lastClicked.setSelectedEntry in class GuiSlotNewprotected final int getSize()
getSize in class GuiSlotNew