Class PacketInputBackend

  • All Implemented Interfaces:
    InputBackend

    @Singleton
    public class PacketInputBackend
    extends java.lang.Object
    implements InputBackend
    Routes interactions through the client's native menu-action pipeline.

    This path is maintained by the game's own opcode resolution and survives revisions without per-revision tables. It ignores where the cursor happens to be, so it is the only backend that can address a target which is off screen, behind the camera or occluded.

    • Constructor Detail

      • PacketInputBackend

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

      • supports

        public boolean supports​(MenuRequest request)
        Description copied from interface: InputBackend
        Whether this backend can deliver the request at all. Must not move the cursor, rotate the camera or otherwise change game state: this is a question, not an attempt.
        Specified by:
        supports in interface InputBackend
      • legacyInventoryAction

        public static boolean legacyInventoryAction​(net.runelite.api.MenuAction action)