Interface ScriptEvent


  • public interface ScriptEvent
    • Method Detail

      • getArguments

        Object[] getArguments()
        Arguments passed to the script. Index 0 is the script being run and is not an argument.
        Returns:
      • getOp

        int getOp()
        Gets the menu op of the event
        Returns:
        the menu op
      • setOp

        ScriptEvent setOp​(int op)
        Set the menu op of the event
        Parameters:
        op -
      • getMouseX

        int getMouseX()
        Parent relative x coordinate for mouse related events
      • getMouseY

        int getMouseY()
        Parent relative y coordinate for mouse related events
      • getTypedKeyCode

        int getTypedKeyCode()
        Jagex typed keycode
        Returns:
      • getTypedKeyChar

        int getTypedKeyChar()
        Get the typed character, ascii.
        Returns:
      • run

        void run()
        Executes a cs2 script specified by this event This method must be ran on the client thread and is not reentrant