Class PlayerMenuActionResolver

  • All Implemented Interfaces:
    MenuActionResolver<net.runelite.api.Player>

    public class PlayerMenuActionResolver
    extends java.lang.Object
    implements MenuActionResolver<net.runelite.api.Player>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<net.runelite.api.Player> getEntityType()
      The entity type this resolver handles.
      java.util.Optional<ResolvedMenuAction> resolve​(net.runelite.api.Player player, java.lang.String action)
      Resolves the appropriate menu action for the given entity and action string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlayerMenuActionResolver

        public PlayerMenuActionResolver()
    • Method Detail

      • getEntityType

        public java.lang.Class<net.runelite.api.Player> getEntityType()
        Description copied from interface: MenuActionResolver
        The entity type this resolver handles. Used for registry lookup.
        Specified by:
        getEntityType in interface MenuActionResolver<net.runelite.api.Player>
        Returns:
        Class<T> The type of game entity this resolver handles (e.g. NPC, Widget, TileObject, etc.)
      • resolve

        public java.util.Optional<ResolvedMenuAction> resolve​(net.runelite.api.Player player,
                                                              java.lang.String action)
        Description copied from interface: MenuActionResolver
        Resolves the appropriate menu action for the given entity and action string.
        Specified by:
        resolve in interface MenuActionResolver<net.runelite.api.Player>
        Parameters:
        player - The game entity to interact with
        action - The action string (e.g. "Attack", "Talk-to", "Examine")
        Returns:
        An Optional containing the resolved action, or empty if resolution failed