Class SimulationDecisionAdapter.ExecutableStep

  • Enclosing class:
    SimulationDecisionAdapter

    public static final class SimulationDecisionAdapter.ExecutableStep
    extends java.lang.Object
    Runtime step payload translated from simulation decisions.
    • Constructor Detail

      • ExecutableStep

        public ExecutableStep()
    • Method Detail

      • move

        public static SimulationDecisionAdapter.ExecutableStep move​(net.runelite.api.coords.WorldPoint destination)
        Creates movement step.
        Parameters:
        destination - movement destination in world coordinates.
        Returns:
        executable movement step.
      • npcInteract

        public static SimulationDecisionAdapter.ExecutableStep npcInteract​(int npcIndex,
                                                                           java.lang.String action)
        Creates npc interaction step.
        Parameters:
        npcIndex - RuneLite npc index to target.
        action - npc interaction menu action text.
        Returns:
        executable npc-interaction step.
      • switchPrayer

        public static SimulationDecisionAdapter.ExecutableStep switchPrayer​(net.runelite.api.Prayer prayer)
        Creates prayer switch step.
        Parameters:
        prayer - overhead prayer to activate.
        Returns:
        executable prayer-switch step.
      • equipItem

        public static SimulationDecisionAdapter.ExecutableStep equipItem​(int itemId)
        Creates equipment step.
        Parameters:
        itemId - inventory item id to equip.
        Returns:
        executable equip-item step.
      • inventoryInteract

        public static SimulationDecisionAdapter.ExecutableStep inventoryInteract​(int itemId,
                                                                                 java.lang.String action)
        Creates inventory interaction step.
        Parameters:
        itemId - inventory item id to interact with.
        action - interaction action text (for example, Eat/Drink/Use).
        Returns:
        executable inventory-interaction step.
      • castSpell

        public static SimulationDecisionAdapter.ExecutableStep castSpell​(CastableSpell spell,
                                                                         java.lang.Integer targetNpcIndex)
        Creates spell cast step.
        Parameters:
        spell - spell to cast.
        targetNpcIndex - optional target npc index, null for untargeted cast.
        Returns:
        executable spell-cast step.