public class GuiControlsScrollPanel extends GuiSlot
Modifier and Type | Field and Description |
---|---|
protected static ResourceLocation |
WIDGITS |
Constructor and Description |
---|
GuiControlsScrollPanel(GuiControls controls,
GameSettings options,
Minecraft mc) |
Modifier and Type | Method and Description |
---|---|
protected void |
drawBackground() |
void |
drawScreen(int mX,
int mY,
float f)
draws the slot to the screen, pass in mouse's current x and y and partial ticks
|
protected void |
drawSlot(int index,
int xPosition,
int yPosition,
int l,
Tessellator tessellator) |
protected void |
elementClicked(int i,
boolean flag)
the element in the slot that was clicked, boolean for wether it was double clicked or not
|
protected int |
getSize()
Gets the size of the current slot list.
|
protected boolean |
isSelected(int i)
returns true if the element passed in is currently selected
|
boolean |
keyTyped(char c,
int i) |
actionPerformed, drawContainerBackground, func_77207_a, func_77208_b, func_77209_d, func_77210_c, func_77215_b, func_77222_a, func_77223_a, func_77224_a, getContentHeight, getScrollBarX, overlayBackground, registerScrollButtons, setShowSelectionBox
protected static final ResourceLocation WIDGITS
public GuiControlsScrollPanel(GuiControls controls, GameSettings options, Minecraft mc)
protected int getSize()
GuiSlot
protected void elementClicked(int i, boolean flag)
GuiSlot
elementClicked
in class GuiSlot
protected boolean isSelected(int i)
GuiSlot
isSelected
in class GuiSlot
protected void drawBackground()
drawBackground
in class GuiSlot
public void drawScreen(int mX, int mY, float f)
GuiSlot
drawScreen
in class GuiSlot
protected void drawSlot(int index, int xPosition, int yPosition, int l, Tessellator tessellator)
public boolean keyTyped(char c, int i)