Package com.kraken.api.core.interaction
Class DoActionInvoker
- java.lang.Object
-
- com.kraken.api.core.interaction.DoActionInvoker
-
public class DoActionInvoker extends java.lang.ObjectEncapsulates the reflection-based invocation of the RuneLite doAction method. Caches the resolved class and method after the first successful lookup.
-
-
Constructor Summary
Constructors Constructor Description DoActionInvoker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinvoke(int param0, int param1, int opcode, int identifier, int itemId, int worldViewId, java.lang.String option, java.lang.String target, int canvasX, int canvasY)Invokes the doAction method through reflection, passing the provided parameters.
-
-
-
Method Detail
-
invoke
public void invoke(int param0, int param1, int opcode, int identifier, int itemId, int worldViewId, java.lang.String option, java.lang.String target, int canvasX, int canvasY)Invokes the doAction method through reflection, passing the provided parameters. Resolves and caches the required method dynamically if not already loaded. If the invocation fails, an error is logged.This method is designed to execute client-side handling tied to in-game interactions like menu or widget actions within a given client context.
- Parameters:
param0- First coordinate or identifier relevant to the action.param1- Second coordinate or identifier relevant to the action.opcode- Action opcode indicating the type of interaction to perform.identifier- Unique identifier for the action's context, such as an in-game object or widget.itemId- Item identifier when the action pertains to an inventory or bank item.worldViewId- Identifier representing the view context of the action in the game world.option- String representing the action's option (e.g., "Examine", "Use").target- Target entity or in-game object related to the action.canvasX- X-coordinate on the game's canvas where the action occurs.canvasY- Y-coordinate on the game's canvas where the action occurs.
-
-