Interface MenuActionResolver<T>

    • Method Detail

      • resolve

        java.util.Optional<ResolvedMenuAction> resolve​(T entity,
                                                       java.lang.String action)
        Resolves the appropriate menu action for the given entity and action string.
        Parameters:
        entity - 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
      • getEntityType

        java.lang.Class<T> getEntityType()
        The entity type this resolver handles. Used for registry lookup.
        Returns:
        Class<T> The type of game entity this resolver handles (e.g. NPC, Widget, TileObject, etc.)