Package net.runelite.client.callback
Class Hooks
- java.lang.Object
-
- net.runelite.client.callback.Hooks
-
- All Implemented Interfaces:
Callbacks
@Singleton public class Hooks extends Object implements 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Hooks.RenderableDrawListener
-
Method Summary
-
-
-
Method Detail
-
postDeferred
public void postDeferred(Object event)
- Specified by:
postDeferred
in interfaceCallbacks
-
mousePressed
public MouseEvent mousePressed(MouseEvent mouseEvent)
- Specified by:
mousePressed
in interfaceCallbacks
-
mouseReleased
public MouseEvent mouseReleased(MouseEvent mouseEvent)
- Specified by:
mouseReleased
in interfaceCallbacks
-
mouseClicked
public MouseEvent mouseClicked(MouseEvent mouseEvent)
- Specified by:
mouseClicked
in interfaceCallbacks
-
mouseEntered
public MouseEvent mouseEntered(MouseEvent mouseEvent)
- Specified by:
mouseEntered
in interfaceCallbacks
-
mouseExited
public MouseEvent mouseExited(MouseEvent mouseEvent)
- Specified by:
mouseExited
in interfaceCallbacks
-
mouseDragged
public MouseEvent mouseDragged(MouseEvent mouseEvent)
- Specified by:
mouseDragged
in interfaceCallbacks
-
mouseMoved
public MouseEvent mouseMoved(MouseEvent mouseEvent)
- Specified by:
mouseMoved
in interfaceCallbacks
-
mouseWheelMoved
public MouseWheelEvent mouseWheelMoved(MouseWheelEvent event)
- Specified by:
mouseWheelMoved
in interfaceCallbacks
-
keyPressed
public void keyPressed(KeyEvent keyEvent)
- Specified by:
keyPressed
in interfaceCallbacks
-
keyReleased
public void keyReleased(KeyEvent keyEvent)
- Specified by:
keyReleased
in interfaceCallbacks
-
draw
public void draw(MainBufferProvider mainBufferProvider, Graphics graphics, int x, int y)
-
drawAboveOverheads
public void drawAboveOverheads()
- Specified by:
drawAboveOverheads
in interfaceCallbacks
-
serverTick
public void serverTick()
- Specified by:
serverTick
in interfaceCallbacks
-
drawInterface
public void drawInterface(int interfaceId, List<WidgetItem> widgetItems)
- Specified by:
drawInterface
in interfaceCallbacks
-
drawLayer
public void drawLayer(Widget layer, List<WidgetItem> widgetItems)
-
onScriptCallbackEvent
@Subscribe public void onScriptCallbackEvent(ScriptCallbackEvent scriptCallbackEvent)
-
registerRenderableDrawListener
public void registerRenderableDrawListener(Hooks.RenderableDrawListener listener)
-
unregisterRenderableDrawListener
public void unregisterRenderableDrawListener(Hooks.RenderableDrawListener listener)
-
draw
public boolean draw(Renderable renderable, boolean drawingUi)
-
isRuneLiteClientOutdated
public boolean isRuneLiteClientOutdated()
- Specified by:
isRuneLiteClientOutdated
in interfaceCallbacks
-
-