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, clamp, clamp, clickedHeader, drawContainerBackground, drawListHeader, drawScreen, drawSelectionBox, floor, getAmountScrolled, getContentHeight, getEntryAt, getListWidth, getMaxScroll, getScrollBarX, 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 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 GuiSlotNew
protected boolean isSelected(int slotIndex)
isSelected
in class GuiSlotNew
protected void drawBackground()
drawBackground
in class GuiSlotNew
protected void drawSlot(int slotIndex, int xPos, int yPos, int heightIn, int mouseXIn, int mouseYIn, float partialTicks)
drawSlot
in class GuiSlotNew
protected void updateItemPos(int entryID, int insideLeft, int yPos, float partialTicks)
updateItemPos
in class GuiSlotNew
public 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 GuiSlotNew
protected 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 GuiSlotNew
protected final int getSize()
getSize
in class GuiSlotNew