Package net.minecraft.src
Class GuiSlot
java.lang.Object
net.minecraft.src.GuiSlot
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe bottom of the slot container.protected intX axis position of the mouseprotected intY axis position of the mouseprotected final intThe height of a slot.protected intThe top of the slot container. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(GuiButton par1GuiButton) protected abstract voidvoiddrawScreen(int par1, int par2, float par3) draws the slot to the screen, pass in mouse's current x and y and partial ticksprotected abstract voiddrawSlot(int var1, int var2, int var3, int var4, Tessellator var5) protected abstract voidelementClicked(int var1, boolean var2) the element in the slot that was clicked, boolean for wether it was double clicked or notvoidfunc_77207_a(int par1, int par2, int par3, int par4) voidfunc_77208_b(int par1) intintfunc_77210_c(int par1, int par2) protected voidfunc_77215_b(int par1, int par2) protected voidfunc_77222_a(int par1, int par2, Tessellator par3Tessellator) protected voidfunc_77223_a(boolean par1, int par2) protected voidfunc_77224_a(int par1, int par2) protected intreturn the height of the content being scrolledprotected intprotected abstract intgetSize()Gets the size of the current slot list.protected abstract booleanisSelected(int var1) returns true if the element passed in is currently selectedvoidregisterScrollButtons(int par1, int par2) Registers the IDs that can be used for the scrollbar's buttons.voidsetShowSelectionBox(boolean par1)
-
Field Details
-
top
protected int topThe top of the slot container. Affects the overlays and scrolling. -
bottom
protected int bottomThe bottom of the slot container. Affects the overlays and scrolling. -
slotHeight
protected final int slotHeightThe height of a slot. -
mouseX
protected int mouseXX axis position of the mouse -
mouseY
protected int mouseYY axis position of the mouse
-
-
Constructor Details
-
GuiSlot
-
-
Method Details
-
func_77207_a
public void func_77207_a(int par1, int par2, int par3, int par4) -
setShowSelectionBox
public void setShowSelectionBox(boolean par1) -
func_77223_a
protected void func_77223_a(boolean par1, int par2) -
getSize
protected abstract int getSize()Gets the size of the current slot list. -
elementClicked
protected abstract void elementClicked(int var1, boolean var2) the element in the slot that was clicked, boolean for wether it was double clicked or not -
isSelected
protected abstract boolean isSelected(int var1) returns true if the element passed in is currently selected -
getContentHeight
protected int getContentHeight()return the height of the content being scrolled -
drawBackground
protected abstract void drawBackground() -
drawSlot
-
func_77222_a
-
func_77224_a
protected void func_77224_a(int par1, int par2) -
func_77215_b
protected void func_77215_b(int par1, int par2) -
func_77210_c
public int func_77210_c(int par1, int par2) -
registerScrollButtons
public void registerScrollButtons(int par1, int par2) Registers the IDs that can be used for the scrollbar's buttons. -
func_77209_d
public int func_77209_d() -
func_77208_b
public void func_77208_b(int par1) -
actionPerformed
-
drawScreen
public 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 -
getScrollBarX
protected int getScrollBarX()
-