Package net.openosrs.api.input
Class PacketInputBackend
- java.lang.Object
-
- net.openosrs.api.input.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 Summary
Constructors Constructor Description PacketInputBackend(net.runelite.api.Client client)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanlegacyInventoryAction(net.runelite.api.MenuAction action)InputModemode()SubmissionResultsubmit(MenuRequest request)booleansupports(MenuRequest request)Whether this backend can deliver the request at all.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.openosrs.api.input.InputBackend
anticipate, cancelPreparation, isAvailable, isBusy, prepare
-
-
-
-
Method Detail
-
mode
public InputMode mode()
- Specified by:
modein interfaceInputBackend
-
supports
public boolean supports(MenuRequest request)
Description copied from interface:InputBackendWhether 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:
supportsin interfaceInputBackend
-
submit
public SubmissionResult submit(MenuRequest request)
- Specified by:
submitin interfaceInputBackend
-
legacyInventoryAction
public static boolean legacyInventoryAction(net.runelite.api.MenuAction action)
-
-