Class MenuDispatcher

  • All Implemented Interfaces:
    Dispatcher

    @Singleton
    public class MenuDispatcher
    extends java.lang.Object
    implements Dispatcher
    Primary dispatch tier: routes interactions through the client's native menu-action pipeline (doAction). This path is maintained by the game's own opcode resolution and survives revisions without per-rev tables.
    • Constructor Summary

      Constructors 
      Constructor Description
      MenuDispatcher​(net.runelite.api.Client client)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean dispatch​(net.runelite.api.MenuAction action, int identifier, int param0, int param1, java.lang.String option, java.lang.String target, int itemId, int worldViewId)  
      boolean dispatch​(net.runelite.api.MenuAction action, int identifier, int param0, int param1, java.lang.String option, java.lang.String target, int itemId, int worldViewId, int canvasX, int canvasY)  
      java.util.List<net.runelite.api.MenuAction> unsupportedActions()
      Actions this dispatcher cannot carry; the router falls back to another tier.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MenuDispatcher

        @Inject
        public MenuDispatcher​(net.runelite.api.Client client)
    • Method Detail

      • dispatch

        public boolean dispatch​(net.runelite.api.MenuAction action,
                                int identifier,
                                int param0,
                                int param1,
                                java.lang.String option,
                                java.lang.String target,
                                int itemId,
                                int worldViewId)
        Specified by:
        dispatch in interface Dispatcher
      • dispatch

        public boolean dispatch​(net.runelite.api.MenuAction action,
                                int identifier,
                                int param0,
                                int param1,
                                java.lang.String option,
                                java.lang.String target,
                                int itemId,
                                int worldViewId,
                                int canvasX,
                                int canvasY)
        Specified by:
        dispatch in interface Dispatcher
      • unsupportedActions

        public java.util.List<net.runelite.api.MenuAction> unsupportedActions()
        Description copied from interface: Dispatcher
        Actions this dispatcher cannot carry; the router falls back to another tier.
        Specified by:
        unsupportedActions in interface Dispatcher