public class GuiClickableScrolledSelectionListProxy extends GuiSlot
amountScrolled, bottom, centerListVertically, hasListHeader, headerPadding, height, initialClickY, lastClicked, left, mc, mouseX, mouseY, right, scrollMultiplier, selectedElement, showSelectionBox, slotHeight, top, visible, width| Constructor and Description |
|---|
GuiClickableScrolledSelectionListProxy(RealmsClickableScrolledSelectionList selectionList,
int widthIn,
int heightIn,
int topIn,
int bottomIn,
int slotHeightIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawBackground() |
protected void |
drawSelectionBox(int insideLeft,
int insideTop,
int mouseXIn,
int mouseYIn,
float partialTicks)
Draws the selection box around the selected slot element.
|
protected void |
drawSlot(int slotIndex,
int xPos,
int yPos,
int heightIn,
int mouseXIn,
int mouseYIn,
float partialTicks) |
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 int |
getContentHeight()
Return the height of the content being scrolled
|
protected int |
getScrollBarX() |
protected int |
getSize() |
void |
handleMouseInput() |
protected boolean |
isSelected(int slotIndex)
Returns true if the element passed in is currently selected
|
int |
mouseX() |
int |
mouseY() |
void |
renderSelected(int p_178043_1_,
int p_178043_2_,
int p_178043_3_,
Tezzelator p_178043_4_) |
int |
width() |
actionPerformed, bindAmountScrolled, clickedHeader, drawContainerBackground, drawListHeader, drawScreen, getAmountScrolled, getEnabled, getListWidth, getMaxScroll, getSlotHeight, getSlotIndexFromScreenCoords, isMouseYWithinSlotBounds, overlayBackground, registerScrollButtons, renderDecorations, scrollBy, setDimensions, setEnabled, setHasListHeader, setShowSelectionBox, setSlotXBoundsFromLeft, updateItemPospublic GuiClickableScrolledSelectionListProxy(RealmsClickableScrolledSelectionList selectionList, int widthIn, int heightIn, int topIn, int bottomIn, int slotHeightIn)
protected void elementClicked(int slotIndex,
boolean isDoubleClick,
int mouseX,
int mouseY)
elementClicked in class GuiSlotprotected boolean isSelected(int slotIndex)
isSelected in class GuiSlotprotected void drawBackground()
drawBackground in class GuiSlotprotected void drawSlot(int slotIndex,
int xPos,
int yPos,
int heightIn,
int mouseXIn,
int mouseYIn,
float partialTicks)
public int width()
public int mouseY()
public int mouseX()
protected int getContentHeight()
getContentHeight in class GuiSlotprotected int getScrollBarX()
getScrollBarX in class GuiSlotpublic void handleMouseInput()
handleMouseInput in class GuiSlotpublic void renderSelected(int p_178043_1_,
int p_178043_2_,
int p_178043_3_,
Tezzelator p_178043_4_)
protected void drawSelectionBox(int insideLeft,
int insideTop,
int mouseXIn,
int mouseYIn,
float partialTicks)
drawSelectionBox in class GuiSlot