YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.client.gui.GuiSlot Class Referenceabstract
Inheritance diagram for net.minecraft.client.gui.GuiSlot:
net.minecraftforge.client.GuiControlsScrollPanel

Public Member Functions

 GuiSlot (Minecraft par1Minecraft, int par2, int par3, int par4, int par5, int par6)
 
void func_77207_a (int par1, int par2, int par3, int par4)
 
void setShowSelectionBox (boolean par1)
 
int func_77210_c (int par1, int par2)
 
void registerScrollButtons (List par1List, int par2, int par3)
 
int func_77209_d ()
 
void func_77208_b (int par1)
 
void actionPerformed (GuiButton par1GuiButton)
 
void drawScreen (int par1, int par2, float par3)
 

Public Attributes

String BACKGROUND_IMAGE = "/gui/background.png"
 

Protected Member Functions

void func_77223_a (boolean par1, int par2)
 
abstract int getSize ()
 
abstract void elementClicked (int i, boolean flag)
 
abstract boolean isSelected (int i)
 
int getContentHeight ()
 
abstract void drawBackground ()
 
abstract void drawSlot (int i, int j, int k, int l, Tessellator tessellator)
 
void func_77222_a (int par1, int par2, Tessellator par3Tessellator)
 
void func_77224_a (int par1, int par2)
 
void func_77215_b (int par1, int par2)
 
int getScrollBarX ()
 
void overlayBackground (int par1, int par2, int par3, int par4)
 
void drawContainerBackground (Tessellator tess)
 

Protected Attributes

int top
 
int bottom
 
final int slotHeight
 
int mouseX
 
int mouseY
 

Constructor & Destructor Documentation

net.minecraft.client.gui.GuiSlot.GuiSlot ( Minecraft  par1Minecraft,
int  par2,
int  par3,
int  par4,
int  par5,
int  par6 
)

Member Function Documentation

void net.minecraft.client.gui.GuiSlot.actionPerformed ( GuiButton  par1GuiButton)
abstract void net.minecraft.client.gui.GuiSlot.drawBackground ( )
protectedpure virtual
void net.minecraft.client.gui.GuiSlot.drawContainerBackground ( Tessellator  tess)
protected
void net.minecraft.client.gui.GuiSlot.drawScreen ( int  par1,
int  par2,
float  par3 
)

draws the slot to the screen, pass in mouse's current x and y and partial ticks

abstract void net.minecraft.client.gui.GuiSlot.drawSlot ( int  i,
int  j,
int  k,
int  l,
Tessellator  tessellator 
)
protectedpure virtual
abstract void net.minecraft.client.gui.GuiSlot.elementClicked ( int  i,
boolean  flag 
)
protectedpure virtual

the element in the slot that was clicked, boolean for wether it was double clicked or not

Implemented in net.minecraftforge.client.GuiControlsScrollPanel.

void net.minecraft.client.gui.GuiSlot.func_77207_a ( int  par1,
int  par2,
int  par3,
int  par4 
)
void net.minecraft.client.gui.GuiSlot.func_77208_b ( int  par1)
int net.minecraft.client.gui.GuiSlot.func_77209_d ( )
int net.minecraft.client.gui.GuiSlot.func_77210_c ( int  par1,
int  par2 
)
void net.minecraft.client.gui.GuiSlot.func_77215_b ( int  par1,
int  par2 
)
protected
void net.minecraft.client.gui.GuiSlot.func_77222_a ( int  par1,
int  par2,
Tessellator  par3Tessellator 
)
protected
void net.minecraft.client.gui.GuiSlot.func_77223_a ( boolean  par1,
int  par2 
)
protected
void net.minecraft.client.gui.GuiSlot.func_77224_a ( int  par1,
int  par2 
)
protected
int net.minecraft.client.gui.GuiSlot.getContentHeight ( )
protected

return the height of the content being scrolled

int net.minecraft.client.gui.GuiSlot.getScrollBarX ( )
protected
abstract int net.minecraft.client.gui.GuiSlot.getSize ( )
protectedpure virtual

Gets the size of the current slot list.

Implemented in net.minecraftforge.client.GuiControlsScrollPanel.

abstract boolean net.minecraft.client.gui.GuiSlot.isSelected ( int  i)
protectedpure virtual

returns true if the element passed in is currently selected

Implemented in net.minecraftforge.client.GuiControlsScrollPanel.

void net.minecraft.client.gui.GuiSlot.overlayBackground ( int  par1,
int  par2,
int  par3,
int  par4 
)
protected

Overlays the background to hide scrolled items

void net.minecraft.client.gui.GuiSlot.registerScrollButtons ( List  par1List,
int  par2,
int  par3 
)

Registers the IDs that can be used for the scrollbar's buttons.

void net.minecraft.client.gui.GuiSlot.setShowSelectionBox ( boolean  par1)

Member Data Documentation

String net.minecraft.client.gui.GuiSlot.BACKGROUND_IMAGE = "/gui/background.png"
int net.minecraft.client.gui.GuiSlot.bottom
protected

The bottom of the slot container. Affects the overlays and scrolling.

int net.minecraft.client.gui.GuiSlot.mouseX
protected

X axis position of the mouse

int net.minecraft.client.gui.GuiSlot.mouseY
protected

Y axis position of the mouse

final int net.minecraft.client.gui.GuiSlot.slotHeight
protected

The height of a slot.

int net.minecraft.client.gui.GuiSlot.top
protected

The top of the slot container. Affects the overlays and scrolling.


The documentation for this class was generated from the following file: