Class GroundItemMenuActionResolver
- java.lang.Object
-
- com.kraken.api.core.interaction.resolver.GroundItemMenuActionResolver
-
- All Implemented Interfaces:
MenuActionResolver<GroundItem>
public class GroundItemMenuActionResolver extends java.lang.Object implements MenuActionResolver<GroundItem>
-
-
Constructor Summary
Constructors Constructor Description GroundItemMenuActionResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<GroundItem>getEntityType()The entity type this resolver handles.java.util.Optional<ResolvedMenuAction>resolve(GroundItem item, java.lang.String action)Resolves the appropriate menu action for the given entity and action string.
-
-
-
Method Detail
-
getEntityType
public java.lang.Class<GroundItem> getEntityType()
Description copied from interface:MenuActionResolverThe entity type this resolver handles. Used for registry lookup.- Specified by:
getEntityTypein interfaceMenuActionResolver<GroundItem>- Returns:
- Class<T> The type of game entity this resolver handles (e.g. NPC, Widget, TileObject, etc.)
-
resolve
public java.util.Optional<ResolvedMenuAction> resolve(GroundItem item, java.lang.String action)
Description copied from interface:MenuActionResolverResolves the appropriate menu action for the given entity and action string.- Specified by:
resolvein interfaceMenuActionResolver<GroundItem>- Parameters:
item- 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
-
-