Package rsb.internal

Class NewHooks

java.lang.Object
rsb.internal.NewHooks
All Implemented Interfaces:
net.runelite.api.hooks.Callbacks

@Singleton public class NewHooks extends Object implements net.runelite.api.hooks.Callbacks
This class contains field required for mixins and runelite hooks to work. All remaining method hooks in this class are performance-critical or contain client-specific logic and so they can't just be placed in mixins or sent through event bus.
  • Method Details

    • post

      public void post(Object event)
      Specified by:
      post in interface net.runelite.api.hooks.Callbacks
    • postDeferred

      public void postDeferred(Object event)
      Specified by:
      postDeferred in interface net.runelite.api.hooks.Callbacks
    • tick

      public void tick()
      Specified by:
      tick in interface net.runelite.api.hooks.Callbacks
    • frame

      public void frame()
      Specified by:
      frame in interface net.runelite.api.hooks.Callbacks
    • mousePressed

      public MouseEvent mousePressed(MouseEvent mouseEvent)
      Specified by:
      mousePressed in interface net.runelite.api.hooks.Callbacks
    • mouseReleased

      public MouseEvent mouseReleased(MouseEvent mouseEvent)
      Specified by:
      mouseReleased in interface net.runelite.api.hooks.Callbacks
    • mouseClicked

      public MouseEvent mouseClicked(MouseEvent mouseEvent)
      Specified by:
      mouseClicked in interface net.runelite.api.hooks.Callbacks
    • mouseEntered

      public MouseEvent mouseEntered(MouseEvent mouseEvent)
      Specified by:
      mouseEntered in interface net.runelite.api.hooks.Callbacks
    • mouseExited

      public MouseEvent mouseExited(MouseEvent mouseEvent)
      Specified by:
      mouseExited in interface net.runelite.api.hooks.Callbacks
    • mouseDragged

      public MouseEvent mouseDragged(MouseEvent mouseEvent)
      Specified by:
      mouseDragged in interface net.runelite.api.hooks.Callbacks
    • mouseMoved

      public MouseEvent mouseMoved(MouseEvent mouseEvent)
      Specified by:
      mouseMoved in interface net.runelite.api.hooks.Callbacks
    • mouseWheelMoved

      public MouseWheelEvent mouseWheelMoved(MouseWheelEvent event)
      Specified by:
      mouseWheelMoved in interface net.runelite.api.hooks.Callbacks
    • keyPressed

      public void keyPressed(KeyEvent keyEvent)
      Specified by:
      keyPressed in interface net.runelite.api.hooks.Callbacks
    • keyReleased

      public void keyReleased(KeyEvent keyEvent)
      Specified by:
      keyReleased in interface net.runelite.api.hooks.Callbacks
    • keyTyped

      public void keyTyped(KeyEvent keyEvent)
      Specified by:
      keyTyped in interface net.runelite.api.hooks.Callbacks
    • draw

      public void draw(net.runelite.api.MainBufferProvider mainBufferProvider, Graphics graphics, int x, int y)
      Specified by:
      draw in interface net.runelite.api.hooks.Callbacks
    • drawScene

      public void drawScene()
      Specified by:
      drawScene in interface net.runelite.api.hooks.Callbacks
    • drawAboveOverheads

      public void drawAboveOverheads()
      Specified by:
      drawAboveOverheads in interface net.runelite.api.hooks.Callbacks
    • onGameStateChanged

      @Subscribe public void onGameStateChanged(net.runelite.api.events.GameStateChanged gameStateChanged)
    • updateNpcs

      public void updateNpcs()
      Specified by:
      updateNpcs in interface net.runelite.api.hooks.Callbacks
    • drawInterface

      public void drawInterface(int interfaceId, List<net.runelite.api.widgets.WidgetItem> widgetItems)
      Specified by:
      drawInterface in interface net.runelite.api.hooks.Callbacks
    • drawLayer

      public void drawLayer(net.runelite.api.widgets.Widget layer, List<net.runelite.api.widgets.WidgetItem> widgetItems)
      Specified by:
      drawLayer in interface net.runelite.api.hooks.Callbacks
    • onScriptCallbackEvent

      @Subscribe public void onScriptCallbackEvent(net.runelite.api.events.ScriptCallbackEvent scriptCallbackEvent)