Class DragPanelScreenAddon

java.lang.Object
com.hrznstudio.titanium.client.screen.addon.BasicScreenAddon
com.hrznstudio.titanium.client.screen.addon.DragPanelScreenAddon
All Implemented Interfaces:
IScreenAddon, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.TabOrderedElement

public abstract class DragPanelScreenAddon extends BasicScreenAddon
  • Constructor Details

    • DragPanelScreenAddon

      protected DragPanelScreenAddon(int posX, int posY, int sizeX, int sizeY, int panelSizeX, int panelSizeY)
  • Method Details

    • getXSize

      public int getXSize()
      Specified by:
      getXSize in class BasicScreenAddon
    • getYSize

      public int getYSize()
      Specified by:
      getYSize in class BasicScreenAddon
    • mouseDragged

      public boolean mouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY)
      Description copied from interface: IScreenAddon
      Called when the mouse is pressed and dragged
      Parameters:
      mouseX - The X coordinate of the mouse where the drag was initiated
      mouseY - The Y coordinate of the mouse where the drag was initiated
      button - The Id of the Button that was pressed
      dragX - The X coordinate of the mouse where the drag was finished
      dragY - The Y coordinate of the mouse where the drag was finished
      Returns:
      Returns true if the drag was handled
    • getScrollX

      public int getScrollX()
    • getScrollY

      public int getScrollY()
    • getMinX

      public int getMinX()
    • getMinY

      public int getMinY()
    • getMaxX

      public int getMaxX()
    • getMaxY

      public int getMaxY()