public abstract class GuiListExtended extends GuiSlot
Modifier and Type | Class and Description |
---|---|
static interface |
GuiListExtended.IGuiListEntry |
amountScrolled, bottom, field_148163_i, field_178041_q, hasListHeader, headerPadding, height, initialClickY, lastClicked, left, mc, mouseX, mouseY, right, scrollMultiplier, selectedElement, showSelectionBox, slotHeight, top, width
Constructor and Description |
---|
GuiListExtended(Minecraft mcIn,
int widthIn,
int heightIn,
int topIn,
int bottomIn,
int slotHeightIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
drawBackground() |
protected void |
drawSlot(int entryID,
int p_180791_2_,
int p_180791_3_,
int p_180791_4_,
int mouseXIn,
int mouseYIn) |
protected void |
elementClicked(int slotIndex,
boolean isDoubleClick,
int mouseX,
int mouseY)
The element in the slot that was clicked, boolean for whether it was double clicked or not
|
protected void |
func_178040_a(int p_178040_1_,
int p_178040_2_,
int p_178040_3_) |
abstract GuiListExtended.IGuiListEntry |
getListEntry(int index)
Gets the IGuiListEntry object for the given index
|
protected boolean |
isSelected(int slotIndex)
Returns true if the element passed in is currently selected
|
boolean |
mouseClicked(int mouseX,
int mouseY,
int mouseEvent) |
boolean |
mouseReleased(int p_148181_1_,
int p_148181_2_,
int p_148181_3_) |
actionPerformed, bindAmountScrolled, drawListHeader, drawScreen, drawSelectionBox, func_148132_a, func_148135_f, func_148142_b, getAmountScrolled, getContentHeight, getEnabled, getListWidth, getScrollBarX, getSize, getSlotHeight, getSlotIndexFromScreenCoords, handleMouseInput, isMouseYWithinSlotBounds, overlayBackground, registerScrollButtons, scrollBy, setDimensions, setEnabled, setHasListHeader, setShowSelectionBox, setSlotXBoundsFromLeft
public GuiListExtended(Minecraft mcIn, int widthIn, int heightIn, int topIn, int bottomIn, int slotHeightIn)
protected void elementClicked(int slotIndex, boolean isDoubleClick, int mouseX, int mouseY)
elementClicked
in class GuiSlot
protected boolean isSelected(int slotIndex)
isSelected
in class GuiSlot
protected void drawBackground()
drawBackground
in class GuiSlot
protected void drawSlot(int entryID, int p_180791_2_, int p_180791_3_, int p_180791_4_, int mouseXIn, int mouseYIn)
protected void func_178040_a(int p_178040_1_, int p_178040_2_, int p_178040_3_)
func_178040_a
in class GuiSlot
public boolean mouseClicked(int mouseX, int mouseY, int mouseEvent)
public boolean mouseReleased(int p_148181_1_, int p_148181_2_, int p_148181_3_)
public abstract GuiListExtended.IGuiListEntry getListEntry(int index)