Class NpcMenuActionResolver
- java.lang.Object
-
- com.kraken.api.core.interaction.resolver.NpcMenuActionResolver
-
- All Implemented Interfaces:
MenuActionResolver<net.runelite.api.NPC>
public class NpcMenuActionResolver extends java.lang.Object implements MenuActionResolver<net.runelite.api.NPC>
-
-
Constructor Summary
Constructors Constructor Description NpcMenuActionResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<net.runelite.api.NPC>getEntityType()The entity type this resolver handles.java.util.Optional<ResolvedMenuAction>resolve(net.runelite.api.NPC npc, java.lang.String action)Resolves the appropriate menu action for the given entity and action string.
-
-
-
Method Detail
-
getEntityType
public java.lang.Class<net.runelite.api.NPC> getEntityType()
Description copied from interface:MenuActionResolverThe entity type this resolver handles. Used for registry lookup.- Specified by:
getEntityTypein interfaceMenuActionResolver<net.runelite.api.NPC>- 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.NPC npc, java.lang.String action)
Description copied from interface:MenuActionResolverResolves the appropriate menu action for the given entity and action string.- Specified by:
resolvein interfaceMenuActionResolver<net.runelite.api.NPC>- Parameters:
npc- The game entity to interact withaction- The action string (e.g. "Attack", "Talk-to", "Examine")- Returns:
- An Optional containing the resolved action, or empty if resolution failed
-
-