public abstract class GuiSlot
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
bottom
The bottom of the slot container.
|
protected int |
mouseX
X axis position of the mouse
|
protected int |
mouseY
Y axis position of the mouse
|
protected int |
slotHeight
The height of a slot.
|
protected int |
top
The top of the slot container.
|
Constructor and Description |
---|
GuiSlot(Minecraft par1Minecraft,
int par2,
int par3,
int par4,
int par5,
int par6) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(GuiButton par1GuiButton) |
protected abstract void |
drawBackground() |
protected void |
drawContainerBackground(Tessellator tess) |
void |
drawScreen(int par1,
int par2,
float par3)
draws the slot to the screen, pass in mouse's current x and y and partial ticks
|
protected abstract void |
drawSlot(int i,
int j,
int k,
int l,
Tessellator tessellator) |
protected abstract void |
elementClicked(int i,
boolean flag)
the element in the slot that was clicked, boolean for wether it was double clicked or not
|
void |
func_77207_a(int par1,
int par2,
int par3,
int par4) |
void |
func_77208_b(int par1) |
int |
func_77209_d() |
int |
func_77210_c(int par1,
int par2) |
protected void |
func_77215_b(int par1,
int par2) |
protected void |
func_77222_a(int par1,
int par2,
Tessellator par3Tessellator) |
protected void |
func_77223_a(boolean par1,
int par2) |
protected void |
func_77224_a(int par1,
int par2) |
protected int |
getContentHeight()
return the height of the content being scrolled
|
protected int |
getScrollBarX() |
protected abstract int |
getSize()
Gets the size of the current slot list.
|
protected abstract boolean |
isSelected(int i)
returns true if the element passed in is currently selected
|
protected void |
overlayBackground(int par1,
int par2,
int par3,
int par4)
Overlays the background to hide scrolled items
|
void |
registerScrollButtons(int par1,
int par2)
Registers the IDs that can be used for the scrollbar's buttons.
|
void |
setShowSelectionBox(boolean par1) |
protected int top
protected int bottom
protected final int slotHeight
protected int mouseX
protected int mouseY
public GuiSlot(Minecraft par1Minecraft, int par2, int par3, int par4, int par5, int par6)
public void func_77207_a(int par1, int par2, int par3, int par4)
public void setShowSelectionBox(boolean par1)
protected void func_77223_a(boolean par1, int par2)
protected abstract int getSize()
protected abstract void elementClicked(int i, boolean flag)
protected abstract boolean isSelected(int i)
protected int getContentHeight()
protected abstract void drawBackground()
protected abstract void drawSlot(int i, int j, int k, int l, Tessellator tessellator)
protected void func_77222_a(int par1, int par2, Tessellator par3Tessellator)
protected void func_77224_a(int par1, int par2)
protected void func_77215_b(int par1, int par2)
public int func_77210_c(int par1, int par2)
public void registerScrollButtons(int par1, int par2)
public int func_77209_d()
public void func_77208_b(int par1)
public void actionPerformed(GuiButton par1GuiButton)
public void drawScreen(int par1, int par2, float par3)
protected int getScrollBarX()
protected void overlayBackground(int par1, int par2, int par3, int par4)
protected void drawContainerBackground(Tessellator tess)