Interface ActorMenuBuilder

All Superinterfaces:
MenuBuilder<ActorMenuBuilder>

public interface ActorMenuBuilder extends MenuBuilder<ActorMenuBuilder>
Specialized menu builder for actor (player and NPC) interactions.

This builder extends MenuBuilder to provide a fluent API for constructing menu actions that target actors in the game world. Actors include both player characters and non-player characters (NPCs).

Common actor interactions include:

  • Attack - Combat actions against NPCs or players
  • Talk-to - Initiating dialogue with NPCs
  • Follow - Following a player or NPC
  • Trade - Trading with players
  • Pickpocket - Thieving skill actions on NPCs

Example usage:


 AutomatedMenu menu = menuFactory.npc(goblinIndex)
     .option("Attack")
     .target("Goblin")
     .build(goblin.getClickPoint());
 

See Also: