Package net.openosrs.api.operation
Class SelectionActions
- java.lang.Object
-
- net.openosrs.api.operation.SelectionActions
-
@Singleton public final class SelectionActions extends java.lang.ObjectHolds selection ownership until native selection and optional target delivery finish.
-
-
Constructor Summary
Constructors Constructor Description SelectionActions(net.runelite.api.Client client, ClientExecutor executor, OperationLeases leases, SessionTickClock clock, InputRouter router)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelSession()Called for an unrelated native click, scene change, logout or shutdown.SubmissionResultsubmit(java.util.function.Supplier<SubmissionResult> select, java.lang.Runnable validate, java.util.function.Supplier<SubmissionResult> target)Validation runs after native selection, on the client thread, before any target click.
-
-
-
Constructor Detail
-
SelectionActions
@Inject public SelectionActions(net.runelite.api.Client client, ClientExecutor executor, OperationLeases leases, SessionTickClock clock, InputRouter router)
-
-
Method Detail
-
submit
public SubmissionResult submit(java.util.function.Supplier<SubmissionResult> select, java.lang.Runnable validate, java.util.function.Supplier<SubmissionResult> target)
Validation runs after native selection, on the client thread, before any target click.
-
cancelSession
public void cancelSession()
Called for an unrelated native click, scene change, logout or shutdown.
-
-