Class GuiSlot

java.lang.Object
net.minecraft.src.GuiSlot

public abstract class GuiSlot extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
    The bottom of the slot container.
    protected int
    X axis position of the mouse
    protected int
    Y axis position of the mouse
    protected final int
    The height of a slot.
    protected int
    The top of the slot container.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GuiSlot(Minecraft par1Minecraft, int par2, int par3, int par4, int par5, int par6)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    actionPerformed(GuiButton par1GuiButton)
     
    protected abstract void
     
    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 var1, int var2, int var3, int var4, Tessellator var5)
     
    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
    void
    func_77207_a(int par1, int par2, int par3, int par4)
     
    void
    func_77208_b(int par1)
     
    int
     
    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
    return the height of the content being scrolled
    protected int
     
    protected abstract int
    Gets the size of the current slot list.
    protected abstract boolean
    isSelected(int var1)
    returns true if the element passed in is currently selected
    void
    registerScrollButtons(int par1, int par2)
    Registers the IDs that can be used for the scrollbar's buttons.
    void
    setShowSelectionBox(boolean par1)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • top

      protected int top
      The top of the slot container. Affects the overlays and scrolling.
    • bottom

      protected int bottom
      The bottom of the slot container. Affects the overlays and scrolling.
    • slotHeight

      protected final int slotHeight
      The height of a slot.
    • mouseX

      protected int mouseX
      X axis position of the mouse
    • mouseY

      protected int mouseY
      Y axis position of the mouse
  • Constructor Details

    • GuiSlot

      public GuiSlot(Minecraft par1Minecraft, int par2, int par3, int par4, int par5, int par6)
  • 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

      protected abstract void drawSlot(int var1, int var2, int var3, int var4, Tessellator var5)
    • func_77222_a

      protected void func_77222_a(int par1, int par2, Tessellator par3Tessellator)
    • 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

      public void actionPerformed(GuiButton par1GuiButton)
    • 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()