Class AmountInputService
- java.lang.Object
-
- net.openosrs.api.service.dialogue.AmountInputService
-
@Singleton public final class AmountInputService extends java.lang.ObjectOwns one numeric prompt from opening action through native input submission.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAmountInputService.Operationstatic classAmountInputService.Status
-
Constructor Summary
Constructors Constructor Description AmountInputService(net.runelite.api.Client client, SessionTickClock clock, OperationLeases leases)AmountInputService(net.runelite.api.Client client, SessionTickClock clock, OperationLeases leases, PacketDispatcher packets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadvance()AmountInputService.Operationbegin(OperationOwner owner, int amount, int mode, java.lang.Runnable open, java.util.function.BooleanSupplier context, java.util.function.Predicate<java.lang.String> prompt)No queue: contention rejects before the opening action.voidcancelSession()AmountInputService.OperationgetLastOperation()voidsubmitCurrent(int amount)
-
-
-
Constructor Detail
-
AmountInputService
public AmountInputService(net.runelite.api.Client client, SessionTickClock clock, OperationLeases leases)
-
AmountInputService
@Inject public AmountInputService(net.runelite.api.Client client, SessionTickClock clock, OperationLeases leases, PacketDispatcher packets)
-
-
Method Detail
-
getLastOperation
public AmountInputService.Operation getLastOperation()
-
begin
public AmountInputService.Operation begin(OperationOwner owner, int amount, int mode, java.lang.Runnable open, java.util.function.BooleanSupplier context, java.util.function.Predicate<java.lang.String> prompt)
No queue: contention rejects before the opening action. Input closure is not server success.
-
submitCurrent
public void submitCurrent(int amount)
-
advance
public void advance()
-
cancelSession
public void cancelSession()
-
-